|
|
| Programming Discussions about computer programming |
07-18-2012, 02:35 PM
|
#4501
|
|
Carpal \'Tunnel
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,784
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Quote:
Originally Posted by Gullanian
My headphones probably are the best thing I've ever bought in terms of enjoyment, quality and long lastingness! I got HD650's and had them for years, amazing things that are comparable quality to my hi fi. Seriously good cans, worth every single penny.
|
+1, but HD280 Pro
Actually I think my wetshaving equipment, coffee grinder+aeropress and evoluent mouse and the dual 27" setup might rank ahead of it but then it's the headphones.
|
|
|
07-18-2012, 06:12 PM
|
#4502
|
|
King of the sidebar
Join Date: Sep 2004
Location: Northern Virginia
Posts: 15,952
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
OK I'll grant there are some things you can't get from Apple in terms of hardware.
|
|
|
07-18-2012, 06:18 PM
|
#4503
|
|
Carpal \'Tunnel
Join Date: Aug 2006
Location: NEVA!
Posts: 6,369
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
wtf is squid girl
|
|
|
07-18-2012, 07:27 PM
|
#4504
|
|
lolcat
Join Date: Nov 2005
Posts: 20,753
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
You could go old school and get this though.
|
|
|
07-18-2012, 10:18 PM
|
#4505
|
|
grinder
Join Date: Mar 2003
Location: always dressed like a bum
Posts: 693
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Quote:
Originally Posted by MinusEV
Btw - for those interested the book ' Are you smart enough to work at Google?' deals with these kinds of interview-questions, giving a lot of examples and explaining different interpretations and "correct" answers as well as the general thinking behind this process. Some are nonsensical like the mt. fuji one, like "you are shrunk to be an inch tall and thrown into a blender that will start in 2 minutes - what do you do?", but a lot of them are interesting and good puzzles also.
|
Let me just say that having done 100+ interviews for Google, I've never heard of anyone using those stupid questions, at least not within engineering. (Which is not to say that some interviewers don't have their own pet stupid questions, but at least they tend to be a little more technical).
That said, I'd have been ecstatic to find any candidate who would make me clarify assumptions or justify the decisions made in any given question. I'd also ding people for douchiness, though. There's a certain amount of value in being able to communicate the idea "this is stupid, and here's why" without being insulting.
|
|
|
07-19-2012, 02:42 AM
|
#4506
|
|
temp-banned
Join Date: Sep 2002
Posts: 15,499
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
#define CONTAINING_RECORD(address, type, field) ((type *)( \
(PCHAR)(address) - \
(ULONG_PTR)(&((type *)0)->field)))
Can't decide if above is cute, inspired, tricky, or crap. Context:
To add a new entry to the list, allocate an XXX_ENTRY structure, and then pass a pointer to the SingleListEntry member to PushEntryList. To convert a pointer to the SINGLE_LIST_ENTRY back to an XXX_ENTRY, use CONTAINING_RECORD. Here is an example of routines that insert and remove driver-defined entries from a singly linked list.
typedef struct {
PVOID DriverData1;
SINGLE_LIST_ENTRY SingleListEntry;
ULONG DriverData2;
} XXX_ENTRY, *PXXX_ENTRY;
void
PushXxxEntry(PSINGLE_LIST_ENTRY ListHead, PXXX_ENTRY Entry)
{
PushEntryList(ListHead, &(Entry->SingleListEntry));
}
PXXX_ENTRY
PopXxxEntry(PSINGLE_LIST_ENTRY ListHead)
{
PSINGLE_LIST_ENTRY SingleListEntry;
SingleListEntry = PopEntryList(ListHead);
return CONTAINING_RECORD(SingleListEntry, XXX_ENTRY, SingleListEntry);
}
|
|
|
07-19-2012, 02:43 AM
|
#4507
|
|
Carpal \'Tunnel
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,784
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Quote:
|
There's a certain amount of value in being able to communicate the idea "this is stupid, and here's why" without being insulting.
|
Especially if you work at Google...ziiiiing :P
|
|
|
07-19-2012, 04:09 AM
|
#4508
|
|
help me help you
Join Date: Apr 2007
Location: up-at-dawn, pride-swallowing siege
Posts: 21,312
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Quote:
Originally Posted by adios
#define CONTAINING_RECORD(address, type, field) ((type *)( \
(PCHAR)(address) - \
(ULONG_PTR)(&((type *)0)->field)))
Can't decide if above is cute, inspired, tricky, or crap.
}
|
The bolded is offsetof(). The rest of your post makes me glad I migrated to c#.
It's a trick the first time. The second time it's a technique.
|
|
|
07-19-2012, 11:13 AM
|
#4509
|
|
veteran
Join Date: Mar 2007
Location: Shoving AK
Posts: 2,839
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
My Raspbery PI finally arrived (I ordered it over 2 months ago). Its an awesome piece of kit.
For those who havent heard of it: http://www.raspberrypi.org/faqs
Its a $35 computer aimed at schools to get kids interested in programming. Its a (slightly bigger than) credit card sized chip with 2 usb slots, 1 hdmi, 1 audio, 1 video, 1 LAN, 1 micro-usb (power) and 1 sd card slot.
You load a linux image onto the SD card (actually very easy), pop it in, plug the micro-usb in and load it up.
Took me about 10 minutes to get it all running over remote SSH (dont have a USB keyboard), the setup is very simple for anyone who has used a linux system before. The intention is to use it as a micro-hub at home with an HDD attached to it so I can access files remotely.
Here's a pic of it http://yfrog.com/h736ampj
|
|
|
07-19-2012, 12:05 PM
|
#4510
|
|
veteran
Join Date: Sep 2004
Posts: 2,815
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Has anyone done extensive research on various graph databases? I've been mainly looking into neo4j. Has anyone been using this out in the wild and are happy about using it?
|
|
|
07-19-2012, 12:50 PM
|
#4511
|
|
Carpal \'Tunnel
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,784
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Hook up some display+keyboard etc. for < 65$ and lol 100$ laptop imo
Also reading up on Erlang a bit because it was all the rage ~5 years ago (still is I guess lol fast moving IT industry). Finally my Prolog skillz come in handy
I already have a nice little project in mind
|
|
|
07-19-2012, 04:05 PM
|
#4512
|
|
veteran
Join Date: Feb 2005
Location: Los Angeles
Posts: 3,446
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Quick question, been searching around a bit on learning two programming languages at once.
I'm in CC right now, transferring this year. My school offers C++ and Java, but first I have to take an intro class that teaches BASIC/Python. I have the option to take them concurrently however.
It seems like Python is different enough/easy enough that I could take one of the other courses as well. I learned BASIC in elementary school, which was like 20 years ago but I actually remember some things.
If I decided to do this I'd probably start right now on Python since I have about a month before school starts. Just not sure Java vs. C++(leaning towards C++).
|
|
|
07-19-2012, 10:03 PM
|
#4513
|
|
Carpal \'Tunnel
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 13,915
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
basic is useless: not practical, doesn't teach you anything. python is relatively awesome. so that choice is easy.
c++ is a more difficult language which will teach you more. however it's ugly compared to java, and probably less marketable. java sucks, but is still widely used in industry and makes a better platform for learning about object oriented programming than c++.
|
|
|
07-19-2012, 10:14 PM
|
#4514
|
|
Carpal \'Tunnel
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 11,947
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
Quote:
Originally Posted by tyler_cracker
basic is useless: not practical, doesn't teach you anything. python is relatively awesome. so that choice is easy.
c++ is a more difficult language which will teach you more. however it's ugly compared to java, and probably less marketable. java sucks, but is still widely used in industry and makes a better platform for learning about object oriented programming than c++.
|
+1 to all of this, though i'd take the slightly more opinionated stance of "for the love of god don't learn c++"
|
|
|
07-19-2012, 10:24 PM
|
#4515
|
|
Carpal \'Tunnel
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 13,915
|
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
g_m,
first i wrote this:
Quote:
|
Originally Posted by tyler - timedelta(seconds=60)
there are many languages i prefer to c++. i'm not sure java is one of them.
|
but now i'm like:
Quote:
|
Originally Posted by tyler = datetime.now()
that's a little unfair. i hate java but it's the superior choice here.
but op: you really must go learn c at some point. a low-level[1] language is essential for really being a good programmer, and c is easily the most useful of the bunch.
[1] "'low level'? it has symbols! that is some high-tech ****!" bring it on trolls! 
|
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 12:54 AM.
|