Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

08-30-2011 , 12:03 PM
Yeah that sounds about right...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-30-2011 , 12:27 PM
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-30-2011 , 12:35 PM
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
}

?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-30-2011 , 03:16 PM
Quote:
Originally Posted by DeathAndTaxes
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
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-30-2011 , 07:48 PM
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 02:21 AM
Quote:
Originally Posted by Zurvan
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 06:14 AM
Anyone know how to do a high quality screen record on Win 7?

http://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
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 10:26 AM
Quote:
Originally Posted by sorrow
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 bitch 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 .
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 10:28 AM
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 11:27 AM
Quote:
Originally Posted by Gullanian
Anyone know how to do a high quality screen record on Win 7?

http://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?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 11:40 AM
Good programmer's comic.

http://aprogrammerslife.info/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 11:49 AM
A couple good ones there ...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-31-2011 , 09:09 PM
enjoy

** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2011 , 11:51 AM
This is cool, try searching with it!
http://mrdoob.com/projects/chromeexp...oogle_gravity/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-05-2011 , 08:03 PM
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...

http://forumserver.twoplustwo.com/45...sters-1094506/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 12:22 AM
I came in here to Bitch 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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 12:33 AM
ok guys, please give me some advice on how i can relatively quickly learn to be not ******ed 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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 01:07 AM
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 02:17 AM
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 06:49 AM
Quote:
Originally Posted by tyler_cracker
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 08:33 AM
Quote:
Originally Posted by daveT
I came in here to Bitch 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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 04:07 PM
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 05:07 PM
Quote:
Originally Posted by Zurvan
+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
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 05:09 PM
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
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2011 , 07:45 PM
Quote:
Originally Posted by gaming_mouse
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.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m