Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 08-30-2011, 12:03 PM   #1326
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,782
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yeah that sounds about right...
gaming_mouse is offline   Reply With Quote
Old 08-30-2011, 12:27 PM   #1327
stabn
Usurper
 
stabn's Avatar
 
Join Date: Sep 2004
Location: Boris?
Posts: 21,296
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

re: macbook air competitors.

The samsung series 9 stacks up the best. The 128gb SSD, core i5-2537, 4gb ddr3 13.3" version is 2.88 pounds. Oh and it is 1300 at newegg right now. Newegg samsung

The 11.6" version is $999.
stabn is offline   Reply With Quote
Old 08-30-2011, 12:35 PM   #1328
Jeff_B
Pooh-Bah
 
Jeff_B's Avatar
 
Join Date: Jul 2005
Location: I need Patience NOW
Posts: 3,919
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quick question,

I have problem where I need to be able to track % of items belonging to something.

for example, a class and their grades.

15% got A's
22% got B's
18% got C's
25% got D's
20% got F's

I would have to do numerous calculations to get each "grade"...

What would be the best way to store this information?

There is also a boolean on the bigger structure that requires 100% of the class to get the same grade, and this will be the case the majority of the time.

im guessing easiest is just to make a struct and deal with the 100% cases when setting the qtys?

struct class {
int qtyA;
etc
}

?
Jeff_B is offline   Reply With Quote
Old 08-30-2011, 03:16 PM   #1329
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,466
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by DeathAndTaxes View Post
Person 1 writes an AHK script. Person 2 knows nothing about scripting uses AHK script as a template to make 2nd AHK scipt. Third newb comes along sees two AHK scripts, takes parts form each and makes a third, etc.
this was pretty much it for me too.

that said, the new AHK development is coming along, there is now Object support, and proposed changes to the syntax so you dont have to mess with all those clunky commands, eventually everything will be converted into functions
greg nice is offline   Reply With Quote
Old 08-30-2011, 07:48 PM   #1330
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 12,952
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

When I started banging out the AHK scripts, there was a few examples in the SW forum which kinda influenced me, but AutoIT was certainly considered. AHK was "harder" to learn for me, at that time I knew JavaScript / basic C and kinda hated what little VB/Script I knew, AHK is much closer to VB syntax imo.

Main thing to me though was the dominant site at the time, Party - was none too keen on autoit for some reason. probably had encountered one too many autoit users making crappy bots. accounts locked for running autoit were not unheard of. so ahk was perceived safer to me.

also researching the history, ahk was a split from autoit, sometime during v2 when autoit changed away from open-source gpl to private. ahk remained Free / open source, I could read the C source code, so that was good for my interesting reading, but also of course for security being as we're dealing with sometimes big money. I certainly wouldn't have been so keen to encourage others to install something on their poker computer, who for unknown reason decided they'd rather not anyone see the source code. Plus with the license change it was unclear if autoit would even remain free (to use).

Also, while a little less powerful initially (since fixed in newer versions adding e.g. function pointers/callbacks), ahk is often way less wordy and much more "english readable" imo than autoit. much easier for a non-programmer to edit a few lines if need be, or even begin learning. not so much when an ahk gets complicated!

Last edited by _dave_; 08-30-2011 at 07:53 PM.
_dave_ is offline   Reply With Quote
Old 08-31-2011, 02:21 AM   #1331
sorrow
old hand
 
sorrow's Avatar
 
Join Date: Apr 2008
Location: Perth, Western Australia
Posts: 1,531
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Zurvan View Post
But the thing with userstyles.org is it has tons of options and YOU can find the one YOU like best. Reddit, were they to change their style, would have to find the one that the MOST people would like most of the time, and that the other people wouldn't hate. That's why design is so hard, because so much of it is about finding a universally appealing aesthetic.
I'm bored.

No site likes to change up its design. The immediate deluge of user screaming is enough to put most people off. Take a look at the zeitgeist around a facebook interface update, or at p5s posts when they moved a couple of years back, and I imagine even 2+2 whenever they last updated their look (2003? sic.)

Sites like Wikipedia and slashdot have successfully transitioned through multiple styles, but they usually do so through design competitions.

fwiw - site that always humbles my html design skills: http://www.csszengarden.com/ - Its the same page over and over again using the same source and different sytlesheets by different designers.
sorrow is offline   Reply With Quote
Old 08-31-2011, 06:14 AM   #1332
Gullanian
Carpal \'Tunnel
 
Gullanian's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 14,008
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Anyone know how to do a high quality screen record on Win 7?

https://forumserver.twoplustwo.com/48...s-7-a-1091929/

Does Windows have a built in recorder which can do clever stuff so it can be really good quality? Or do I just need the best computer in the world to get 20fps constant
Gullanian is offline   Reply With Quote
Old 08-31-2011, 10:26 AM   #1333
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by sorrow View Post
Sites like Wikipedia and slashdot have successfully transitioned through multiple styles, but they usually do so through design competitions.
fwiw i'm a dinosaur who still reads /.. there are *still* people who ***** about the "new" design in the comments *or in their signatures*. one of those things that makes me glad i got out of web design shortly after high school -- i get few complaints about how ugly my build scripts are .
tyler_cracker is offline   Reply With Quote
Old 08-31-2011, 10:28 AM   #1334
Gullanian
Carpal \'Tunnel
 
Gullanian's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 14,008
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Changing design always meets huge amounts of resistance, I changed one recently which was definitively better but people resisted it surprisingly strongly. I think people generally just don't like change.
Gullanian is offline   Reply With Quote
Old 08-31-2011, 11:27 AM   #1335
greg nice
Carpal \'Tunnel
 
greg nice's Avatar
 
Join Date: Aug 2004
Posts: 9,466
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Gullanian View Post
Anyone know how to do a high quality screen record on Win 7?

https://forumserver.twoplustwo.com/48...s-7-a-1091929/

Does Windows have a built in recorder which can do clever stuff so it can be really good quality? Or do I just need the best computer in the world to get 20fps constant
did you try the two web based ones i posted for you earlier in this thread?
greg nice is offline   Reply With Quote
Old 08-31-2011, 11:40 AM   #1336
bjordan
adept
 
bjordan's Avatar
 
Join Date: Nov 2008
Location: Anticipating a raise
Posts: 1,160
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Good programmer's comic.

http://aprogrammerslife.info/
bjordan is offline   Reply With Quote
Old 08-31-2011, 11:49 AM   #1337
DeathAndTaxes
old hand
 
Join Date: Jun 2011
Posts: 1,456
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

A couple good ones there ...
DeathAndTaxes is offline   Reply With Quote
Old 08-31-2011, 09:09 PM   #1338
sylar
Ivan Drago's homeslice
 
sylar's Avatar
 
Join Date: Dec 2006
Location: Znaroks fan club
Posts: 20,310
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

enjoy

sylar is offline   Reply With Quote
Old 09-05-2011, 11:51 AM   #1339
Gullanian
Carpal \'Tunnel
 
Gullanian's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 14,008
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

This is cool, try searching with it!
http://mrdoob.com/projects/chromeexp...oogle_gravity/
Gullanian is offline   Reply With Quote
Old 09-05-2011, 08:03 PM   #1340
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,782
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Can't remember if I ever shared this here or not, but i finally got around to posting it in software. It's a script that lets you take notes on other 2p2ers...

https://forumserver.twoplustwo.com/45...sters-1094506/
gaming_mouse is offline   Reply With Quote
Old 09-08-2011, 12:22 AM   #1341
daveT
S.A.G.E. Master
 
daveT's Avatar
 
Join Date: Jun 2005
Location: La La Land
Posts: 23,168
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I came in here to ***** about Python.

I just started using Python3 about 5 minutes ago, and my code shows invalid syntax errors. No help from the debugger, and I am scratching my head. How the hell did I screw up a print statement?

Code:
print "hello" , myVar

print "hello" , "world"
Now I'm ****ing up a "hello world" program?

Python decided to make print a function, so now we have to write:

print(x).

The Docs are very helpful with this situation:

Quote:
Initially, you’ll be finding yourself typing the old print x a lot in interactive mode. Time to retrain your fingers to type print(x) instead!
What else is new in Python3? http://docs.python.org/release/3.0.1/whatsnew/3.0.html

Lots of stuff, but this one is the only thing I find pointless, but I guess I need to be properly informed.

I know that someone will be very pleased to see these are gone:

Quote:

dict methods dict.keys(), dict.items() and dict.values() return “views” instead of lists. For example, this no longer works: k = d.keys(); k.sort(). Use k = sorted(d) instead (this works in Python 2.5 too and is just as efficient).

Also, the dict.iterkeys(), dict.iteritems() and dict.itervalues() methods are no longer supported.
Just beware that the docs don't cover all the changes.
daveT is offline   Reply With Quote
Old 09-08-2011, 12:33 AM   #1342
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,782
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

ok guys, please give me some advice on how i can relatively quickly learn to be not retarded at server admin stuff. someone setup a web server for me for a php app that uses APC and php-fpm and nginx. I don't really understand what any of that means other than that I know apc is a cache of some sort (for what? php byte code?) and nginx is a web server. I dont really understand what it's doing vs what what the php-fpm is doing. The whole thing is just a big mystery to me. Can anyone recommend a good book or, even better, a short article that would explain it all? i know my around a basic linux command line but thats about it.
gaming_mouse is offline   Reply With Quote
Old 09-08-2011, 01:07 AM   #1343
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 12,952
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

set up similar for yourself in a virtualbox or on an old machine, where it can be broken & fixed repeatedly with no worries, and experiment / read docs

edit: from what I can gather, APC is indeed a bytecode cache for php. nginx is a fast webserver, I think it needs php-fpm to execute php pages.

edit2: here's a (good?) link: http://interfacelab.com/nginx-php-fpm-apc-awesome/

Last edited by _dave_; 09-08-2011 at 01:14 AM.
_dave_ is offline   Reply With Quote
Old 09-08-2011, 02:17 AM   #1344
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

gm,

what exactly are you trying to do? it's likely that you won't need to care about the details -- just put code where the server expects to find it.
tyler_cracker is offline   Reply With Quote
Old 09-08-2011, 06:49 AM   #1345
Zurvan
Retired
 
Zurvan's Avatar
 
Join Date: Apr 2005
Location: On the front porch, yelling at kids
Posts: 32,281
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by tyler_cracker View Post
gm,

what exactly are you trying to do? it's likely that you won't need to care about the details -- just put code where the server expects to find it.
+1

Server admins are magicians. Their voodoo is not for the rest of us to understand.
Zurvan is offline   Reply With Quote
Old 09-08-2011, 08:33 AM   #1346
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 22,556
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by daveT View Post
I came in here to ***** about Python.

I just started using Python3 about 5 minutes ago, and my code shows invalid syntax errors. No help from the debugger, and I am scratching my head. How the hell did I screw up a print statement?
Yeah, the change to Python3 is pretty big. I believe the adoption rate of Python 3 is growing, but we're still using 2.7 and so are lots of other people.

It's probably not worth it for you to switch at this point. It's just going to make life more annoying for you.
jjshabado is offline   Reply With Quote
Old 09-08-2011, 04:07 PM   #1347
diebitter
Grotesquely Handsome
 
diebitter's Avatar
 
Join Date: Mar 2005
Posts: 64,099
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

mkay I don't post much, but I lurk here a fair bit.

I just had to brag, I just got myself a Asus Transformer (the tablet with the detaching keyboard), and it's FRIKKIN AWESOME. This is what an android tablet should be.

Last edited by diebitter; 09-08-2011 at 04:14 PM.
diebitter is offline   Reply With Quote
Old 09-08-2011, 05:07 PM   #1348
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,782
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Zurvan View Post
+1

Server admins are magicians. Their voodoo is not for the rest of us to understand.
My suspicion is quite different:

Server Admins : Programmers :: Best Buy Geek Squad : Your Grandmother
gaming_mouse is offline   Reply With Quote
Old 09-08-2011, 05:09 PM   #1349
kyleb
Carpal \'Tunnel
 
kyleb's Avatar
 
Join Date: Sep 2004
Location: Seattle
Posts: 39,036
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

lol

well it shouldn't be your responsibility to figure out how your PHP is served, whether it's through fast-CGI module in node.js or simply apache

just ask "hurrrr i am coder where does .php files go" and they should handle the rest
kyleb is offline   Reply With Quote
Old 09-08-2011, 07:45 PM   #1350
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by gaming_mouse View Post
My suspicion is quite different:

Server Admins : Programmers :: Best Buy Geek Squad : Your Grandmother
i'm not entirely sure what this means, but i think i resent at least one of the implications.
tyler_cracker 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


Forum Jump


All times are GMT -4. The time now is 07:37 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online