Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Other Topics > Programming

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 05-30-2012, 01:37 PM   #3811
Ivan Drago's homeslice
 
sylar's Avatar
 
Join Date: Dec 2006
Location: Zinatula fan club
Posts: 16,901
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by tyler_cracker View Post
ok i think i finally understand what you want to do: you basically want global state.

i guess for something small or for interface things it could make sense, but basically it's a slippery slope and you're better off without it.
Global state is a legitimate requirement though. It's just that doing it through static variables is dangerous for reasons like race conditions, parallel design, etc. We always implement it through an interface, and provide two impls, one through a local singleton pattern and another through some sort of service (db, keystore, cache, whatever). seems to work well.
sylar is offline   Reply With Quote
Old 05-30-2012, 04:23 PM   #3812
Carpal \'Tunnel
 
Ryanb9's Avatar
 
Join Date: Aug 2006
Location: NEVA!
Posts: 6,406
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by sylar View Post
Global state is a legitimate requirement though. It's just that doing it through static variables is dangerous for reasons like race conditions, parallel design, etc. We always implement it through an interface, and provide two impls, one through a local singleton pattern and another through some sort of service (db, keystore, cache, whatever). seems to work well.
can you give any more details? xD
Ryanb9 is offline   Reply With Quote
Old 05-30-2012, 06:03 PM   #3813
Carpal \'Tunnel
 
Join Date: Aug 2004
Posts: 7,216
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Gullanian View Post
Any of you read this on an alternative to A/B testing? (Posted on HN) It was an 'aha' moment for me and is a really great read!
http://stevehanov.ca/blog/index.php?id=132

Surprisingly for me a lot of HN comments just didn't get it, a lot of people criticise it for this and that without realising the same criticisms apply to A/B testing.
thank you sir, i need to read HN more..
greg nice is offline   Reply With Quote
Old 05-30-2012, 06:37 PM   #3814
veteran
 
MrWooster's Avatar
 
Join Date: Mar 2007
Location: Shoving AK
Posts: 2,839
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by greg nice View Post
thank you sir, i need to read HN more..
I also subscribe to Hacker Monthly, its a monthly print magazine (tho I subscribe to the digital version) of Hacker News articles

http://hackermonthly.com/
MrWooster is offline   Reply With Quote
Old 05-30-2012, 06:40 PM   #3815
old hand
 
Burnss's Avatar
 
Join Date: Feb 2012
Location: #CZ #LoZ
Posts: 1,330
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

got my samsung 7chromos today and it looks very very very sweeet!. thanks for the suggestions guys
Burnss is offline   Reply With Quote
Old 05-31-2012, 06:11 PM   #3816
Carpal \'Tunnel
 
Ryanb9's Avatar
 
Join Date: Aug 2006
Location: NEVA!
Posts: 6,406
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

If this is out of line plz dont give me another infraction but... does anyone know how to rip audio from a ROM? (more specifically, a M.A.M.E. ROM). I've spent about an hour looking for a sound and I cant find it so this is the only thing I can think of. I'm sure its possible but I'm afraid it might be harder than it sounds.
Ryanb9 is offline   Reply With Quote
Old 05-31-2012, 06:53 PM   #3817
King of the sidebar
 
Neil S's Avatar
 
Join Date: Sep 2004
Location: Northern Virginia
Posts: 16,002
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Ryanb9 View Post
If this is out of line plz dont give me another infraction but... does anyone know how to rip audio from a ROM? (more specifically, a M.A.M.E. ROM). I've spent about an hour looking for a sound and I cant find it so this is the only thing I can think of. I'm sure its possible but I'm afraid it might be harder than it sounds.
Well "M.A.M.E. ROM" is a very vague concept. MAME supports many kinds of hardware, which suggests many different audio formats.

There's going to be no general answer to this, even among the hardware types that use standard encoded audio that may or may not be compressed in memory.
Neil S is offline   Reply With Quote
Old 05-31-2012, 06:56 PM   #3818
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK
Posts: 9,190
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

probably easiest to just try and capture it on playback
_dave_ is offline   Reply With Quote
Old 06-01-2012, 04:08 AM   #3819
Carpal \'Tunnel
 
Ryanb9's Avatar
 
Join Date: Aug 2006
Location: NEVA!
Posts: 6,406
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by _dave_ View Post
probably easiest to just try and capture it on playback
But then I have sounds mixed together >.<
Ryanb9 is offline   Reply With Quote
Old 06-01-2012, 05:45 AM   #3820
gwp
grinder
 
gwp's Avatar
 
Join Date: Jan 2006
Location: Achieving illumination...
Posts: 416
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

one place to start would be the MAME source code, could be a fun project
gwp is offline   Reply With Quote
Old 06-01-2012, 10:22 AM   #3821
Carpal \'Tunnel
 
jukofyork's Avatar
 
Join Date: Sep 2004
Posts: 10,257
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by gwp View Post
one place to start would be the MAME source code, could be a fun project
Yeah, I think this is prolly your best bet although I think it'll be pretty hard going as they just simulate the hardware and the actual software on the ROM could be using some weird encoding/compression.

Are you trying to get something akin to a tracker track or just the samples themselves?

Juk
jukofyork is offline   Reply With Quote
Old 06-01-2012, 10:25 AM   #3822
Carpal \'Tunnel
 
jukofyork's Avatar
 
Join Date: Sep 2004
Posts: 10,257
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Had a quick look and I think your best bet might be to see if you can hack the source to dump the raw sample here:

http://mamedev.org/source/src/emu/sound/samples.h.html

See the start_raw() function.

It depends if there is software mixing going on in the game or not.

If that proves to be a dead end, then see if you can find out what hardware your MAME ROM is running on:

http://mamedev.org/source/src/emu/sound/index.html

Juk
jukofyork is offline   Reply With Quote
Old 06-01-2012, 12:55 PM   #3823
bacon wannabe
 
Freakin's Avatar
 
Join Date: Sep 2004
Posts: 17,058
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yeah it is likely encoded in MIDI in the ROM in some way
Freakin is offline   Reply With Quote
Old 06-01-2012, 01:05 PM   #3824
Carpal \'Tunnel
 
Ryanb9's Avatar
 
Join Date: Aug 2006
Location: NEVA!
Posts: 6,406
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Thanks guys, now I will be busy again xD
Ryanb9 is offline   Reply With Quote
Old 06-01-2012, 06:28 PM   #3825
adept
 
Join Date: Apr 2010
Location: Deep end of the player pool
Posts: 733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by gaming_mouse View Post
Judt read about this in NY-Times, supposedly 20mb in size, quite extraordinary it went undetected for so long
myNameIsInga is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 09:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive