Search found 35 matches

by newhouseb
Wed Dec 10, 2008 5:05 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0513: "Friends"
Replies: 914
Views: 226689

Re: "Friends" Discussion

hm, well in light of the previous post i'll try to tie what i was about to say in the previous comment... ignoring the manipulative aspect of Nice Guy (which is bad), he's failing to recognize that the girl doesn't look at him that way, and will never look at him that way, and there's nothing he can...
by newhouseb
Sat Dec 06, 2008 12:18 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0513: "Friends"
Replies: 914
Views: 226689

Re: "Friends" Discussion

(Though admittedly there is not very much to loose on that last account: She doesn't avoid me so far, but doesn't seek my company either.) Been there done that, two choices: A) tell her, be rejected, put her in an awkward situation, bumble around trying to convince her that she should date you, des...
by newhouseb
Fri Dec 05, 2008 5:07 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0513: "Friends"
Replies: 914
Views: 226689

Re: "Friends" Discussion

this comic was painful, as a similar, but (in my head) better intentioned, situation has been rocking my world the past few months. i've quite literally said the last frame. i was in a similar situation in the past few months. i'd been good friends with a girl for a while, thought that if things wen...
by newhouseb
Mon Sep 08, 2008 9:41 am UTC
Forum: General
Topic: Thinking about moving out of the US.
Replies: 39
Views: 3863

Re: Thinking about moving out of the US.

Good access to the internet. a strong Open-source community. DONT come to China (Beijing) if you want either of these. I imagine I spend about half of my time on my computer surfing the internet, the other half getting the damn internet to work. Furthermore, I need to VPN out to America to see a lo...
by newhouseb
Mon Sep 08, 2008 4:01 am UTC
Forum: Coding
Topic: Large Projects w/o an IDE
Replies: 19
Views: 2925

Re: Large Projects w/o an IDE

I second screen, my standard way of handling big projects is setting up 3 screen tabs--"code" "compile" and "commence" and then using vim to edit code. Furthermore, learn to use the split commands (:vs, :hsplit) well. I've been using tabs since the first minute I opened...
by newhouseb
Sat Sep 06, 2008 10:11 am UTC
Forum: Hardware
Topic: Need suggestions for a KVM switch
Replies: 11
Views: 1869

Re: Need suggestions for a KVM switch

Before you buy hardware I would suggest first looking at remote desktop options (such as RDP on windows or VNC on linux) or using Synergy, which shares your mouse and keyboard across multiple computers (you need multiple monitors though). I regularly manage 3 or 4 computers from one using a combinat...
by newhouseb
Sat Sep 06, 2008 9:18 am UTC
Forum: Computer Science
Topic: 9 questions I have somewhat relevant to CS
Replies: 10
Views: 2731

Re: 9 questions I have somewhat relevant to CS

I'd imaging your paper is done and due, but heck this is a fun and interesting thread, and I love talking about myself. I'm a EE BS at Stanford, expected to graduate in June 2010. 1. To the fantastic person who is reading this, what drove you towards computer science? Since I was young I was always ...
by newhouseb
Sat Aug 30, 2008 2:54 pm UTC
Forum: Coding
Topic: Python socket works only locally
Replies: 9
Views: 2582

Re: Python socket works only locally

Just thought I'd clarify something here... Port Forwarding is needed because when someone asks for port 80 at your routers IP, it doesn't know which computer to forward the request to. But you can still ask from your computer behind the router for port 80 outside your router on the computer of a ser...
by newhouseb
Sat Aug 30, 2008 2:39 pm UTC
Forum: Coding
Topic: c++ random numbers vs java
Replies: 41
Views: 3990

Re: c++ random numbers vs java

Well, I'm certainly glad I erroneously mentioned that, as I've learned a lot from this thread. I wonder if GCC has similar things... nonetheless, I shouldn't drag this thread off topic anymore than it already is Someone should make a thread about comical random sources of entropy, like the number of...
by newhouseb
Sat Aug 30, 2008 2:22 pm UTC
Forum: Coding
Topic: Noob needs help using DLLs in .NET =(
Replies: 4
Views: 1061

Re: Noob needs help using DLLs in .NET =(

first, a quick example of a C vs C# struct, for educational purposes... struct InputStruct{ char * name; int count; struct InputStruct * next; } in C# you would have to declare a C# type [StructLayout(LayoutKind.Sequential)] //We need this or c# will optimize the layout and rearrange everything stru...
by newhouseb
Fri Aug 29, 2008 8:48 pm UTC
Forum: Coding
Topic: Texinfo: alternating colors for table rows?
Replies: 3
Views: 1247

Re: Texinfo: alternating colors for table rows?

you could probably write up a perl one-liner to replace every other occurance of "<tr>" with "<tr class=colored>" or something. it's not ideal, but it's simple and it works if you're doing static documentation
by newhouseb
Thu Aug 28, 2008 11:43 pm UTC
Forum: Coding
Topic: Noob needs help using DLLs in .NET =(
Replies: 4
Views: 1061

Re: Noob needs help using DLLs in .NET =(

Well, if my understanding is correct, if you have a run of the mill DLL, the exported functions are straight C, so that means no objects or anything fancy like that, only just your basic structs/function pointers/basic types. If you're passing around anything beyond a basic type, there's a fair chan...
by newhouseb
Thu Aug 28, 2008 9:16 am UTC
Forum: Coding
Topic: c++ random numbers vs java
Replies: 41
Views: 3990

Re: c++ random numbers vs java

Hmm, I don't remember which article I read about the ordeal, but it clearly was a little off as it exclusively mentioned the uninitialized stuff as the root of all evil. I stand corrected.
by newhouseb
Thu Aug 28, 2008 8:21 am UTC
Forum: Coding
Topic: c++ random numbers vs java
Replies: 41
Views: 3990

Re: c++ random numbers vs java

Well, it depends on the context of the randomness. Turns out that you can have whatever fancy math you want, but the basic installation of a linux distro/generation of keys occurs in such a consistent fashion that you can pretty easily predict keys (or at least parts of them). Apparently, reading un...
by newhouseb
Thu Aug 28, 2008 7:34 am UTC
Forum: Coding
Topic: c++ random numbers vs java
Replies: 41
Views: 3990

Re: c++ random numbers vs java

Alternatively you could read from some uninitialized variable. That's exactly what OpenSSL was doing before someone commented it out because the compiler was giving warnings, which in turn caused the whole OpenSSL key security fiasco as referenced by http://xkcd.com/424/ Two forward slashes never ha...
by newhouseb
Tue Aug 26, 2008 3:00 pm UTC
Forum: General
Topic: Fun words to misspronounce.
Replies: 217
Views: 18588

Re: Fun words to misspronounce.

i love going to restaurants and asking for par-mee-sian (parmesan) cheese, and then trying to keep a straight face when the waiter asks you to say it again to try and figure out what the heck you're asking for.
by newhouseb
Fri Aug 22, 2008 4:37 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0466: "Moving"
Replies: 165
Views: 32649

Re: Moving

Wow, having moved into two new apartments in the last two months this is perfect. I think Randall should make another comic about finding wifi without the pringles can. How many of you have stood on your bed, arms fully extended with your laptop dangerously hovering near the ceiling (the only place ...
by newhouseb
Thu Aug 21, 2008 12:01 pm UTC
Forum: Religious Wars
Topic: What OS do you use?
Replies: 321
Views: 153297

Re: What OS do you use?

I run a pretty standard OS X with VMWare Fusion pretty much full-time hosting Ubuntu 8.04 and Windows XP. I use OS X for what I would call life... communcation, browsing, etc etc Ubuntu for developing... hooray wmii and vi! Windows for windows specific software and VPN browsing (that way I don't hav...
by newhouseb
Tue Aug 19, 2008 12:46 pm UTC
Forum: Computer Science
Topic: 3d graphics not based on polygons?
Replies: 14
Views: 3483

Re: 3d graphics not based on polygons?

I have basically zero graphics experience, but on my evening wikipedia exploration I came across RenderMan Interface Specification (RISpec) which was apparently one of the first platforms to support higher level geometric primitives (ie. not just polygons). And for added bonus points, there seems to...
by newhouseb
Mon Aug 18, 2008 5:25 pm UTC
Forum: The Help Desk
Topic: Opinions - Linux vs. OS X?
Replies: 14
Views: 2136

Re: Opinions - Linux vs. OS X?

A HUGE second to VMWare Fusion. I consistently run OSX, Ubuntu, and XP all side by side at full speed (most of the time). I do C++ dev on my Ubuntu VM, use XP for IE compatibility and surfing through a VPN and OS X for regular internetting/everything else. Look for a Academic Discount too, as I thin...
by newhouseb
Thu Aug 07, 2008 3:29 am UTC
Forum: Computer Science
Topic: Majoring in Comp Sci: Do I have a shot at this?
Replies: 42
Views: 8903

Re: Majoring in Comp Sci: Do I have a shot at this?

Using PHP very easily let's you ignore OOP, Memory Management, proper usage of variables etc. Just a word of warning. That being said, I started off with PHP and have since moved on to C/C++ with a touch of erlang/python/anything that looks interesting. PHP got me into the game, but I didn't feel co...
by newhouseb
Thu Aug 07, 2008 3:15 am UTC
Forum: Coding
Topic: files are not updated until restart (learning php)
Replies: 6
Views: 1436

Re: files are not updated until restart (learning php)

An alternative to messing with your cache is first appending something random to the query string like "?rand=2134". Your browser will think this is a whole new page, and re-execute the php script as you want. If the above works then you need to set up the various required HTTP header fiel...
by newhouseb
Mon Aug 04, 2008 8:34 am UTC
Forum: Coding
Topic: Coding Professionally
Replies: 37
Views: 4665

Re: Coding Professionally

I think what matters is that you have a degree in anything. Making it through college is a testament that you can learn, not necessarily a testament to what you learn. I know countless people doing interesting work coding at start-ups around here without a formal CS degree. I currently am interning ...
by newhouseb
Mon Jul 28, 2008 7:10 pm UTC
Forum: Coding
Topic: Automating tasks in windows
Replies: 7
Views: 1348

Re: Automating tasks in windows

Yeah, download Firebug for firefox and watch all network activity when you delete/change things. Then just use cURL with some nice regular expressions in your scripting language of choice and you can automate everything without having to open a browser by just curling various URLs and parsing them w...
by newhouseb
Mon Jul 28, 2008 7:01 pm UTC
Forum: Computer Science
Topic: Majoring in Comp Sci: Do I have a shot at this?
Replies: 42
Views: 8903

Re: Majoring in Comp Sci: Do I have a shot at this?

No it's certainly not necessary. Plenty of people graduate from my university wouldn't touch Linux with a 10ft pole yet still get jobs with, well Microsoft :D . Game developers are also a big portion of coders who don't need Linux experience. If you want to work at a web company, particularly a LAMP...
by newhouseb
Mon Jul 28, 2008 6:41 am UTC
Forum: Computer Science
Topic: Majoring in Comp Sci: Do I have a shot at this?
Replies: 42
Views: 8903

Re: Majoring in Comp Sci: Do I have a shot at this?

Hey. Great post :). Could you explain to me though why one should learn to install/update/utilize/know your way around a Linux distribution ? Learning Linux is a great experience in and of itself if you want to truly get into the bowels of modern computing. Doing things in Linux often take 10x as l...
by newhouseb
Mon Jul 28, 2008 6:14 am UTC
Forum: Coding
Topic: my feeble attempt at C sockets
Replies: 11
Views: 1788

Re: my feeble attempt at C sockets

Yeah, you need to change struct sockaddr_in* address; to struct sockaddr_in* address = (struct sockaddr_in *) malloc(sizeof(struct sockaddr_in)); Also, since address is already a pointer, you don't need to de-reference it when you call connet(), so you can change if(connect(sockfd, (struct sockaddr*...
by newhouseb
Wed Jul 23, 2008 4:24 pm UTC
Forum: Computer Science
Topic: Essay troubles: Understanding how the interwubs work
Replies: 9
Views: 2417

Re: Essay troubles: Understanding how the interwubs work

Although not technically accurate, you can imagine a connection on the internet as being a tube that you talk through. Sorry, nothing to add, but when I saw this I just had to say... "It's not a trunk you can just dump something on, it's a series of tubes!" I was hoping someone would noti...
by newhouseb
Wed Jul 23, 2008 4:23 pm UTC
Forum: Coding
Topic: What should be the first C book? And how should one learn C?
Replies: 16
Views: 2953

Re: What should be the first C book? And how should one learn C?

From my perspective, I don't care about knowing what is officially included in the standard, but rather knowing which functions or aspects of the language cannot be built from other parts of the language, ie. what parts of C are empirical. Printf() is not empirical, I think that's what srikanthsrs i...
by newhouseb
Tue Jul 22, 2008 6:57 pm UTC
Forum: Coding
Topic: Alternatives to Polling
Replies: 8
Views: 1797

Re: Alternatives to Polling

Well if you were smart about naming your users and feeds internally etc etc you could get away with incrementing a user's count in O(1) time. And if you think about it, the relationship between a user and a RSS feed can either be stored with the user or with the feed, space-wise they're the same, bu...
by newhouseb
Tue Jul 22, 2008 5:37 pm UTC
Forum: Coding
Topic: Alternatives to Polling
Replies: 8
Views: 1797

Re: Alternatives to Polling

What are you writing in? SQL? C?

As I see it, maintain a list of users following every feed, and every time a given feed is incremented, increment that users count and if it triggers a value higher than specified, queue up a dispatch to that user.

Unless I'm misunderstanding...
by newhouseb
Tue Jul 22, 2008 4:19 pm UTC
Forum: Computer Science
Topic: Essay troubles: Understanding how the interwubs work
Replies: 9
Views: 2417

Re: Essay troubles: Understanding how the interwubs work

As I see it you've got quite a few complicated questions here, at any rate here are some basic guidelines... 1) The internet you see on your web browser was originally designed around short connections to download a page. How this page is generated is via a number of methods, it is either read from ...
by newhouseb
Tue Jul 22, 2008 11:50 am UTC
Forum: General
Topic: Post your room!
Replies: 165
Views: 26097

Re: Post your room!

This was pre-adding two extra monitors last year. I'll find another photo that was more accurate when I get home. Sigh, I miss my 300% more monitor space than I have in my cube for the summer here in Beijing :( http://photos-a.ak.facebook.com/photos-ak-sf2p/v125/17/102/221300/n221300_32673472_2612.j...
by newhouseb
Tue Jul 22, 2008 11:19 am UTC
Forum: Coding
Topic: What should be the first C book? And how should one learn C?
Replies: 16
Views: 2953

Re: What should be the first C book? And how should one learn C?

I would highly suggest writing a really basic HTTP server as a beginning C project. Not one that serves files or anything (or you could if you want, I would find this pretty boring) but just that says "Hello world!" when you point your browser to http://localhost/. An efficient implementat...
by newhouseb
Tue Jul 22, 2008 11:07 am UTC
Forum: Computer Science
Topic: Best undergrad CS schools?
Replies: 89
Views: 17419

Re: Best undergrad CS schools?

Stanford and a lot of private universities are based on hand holding, and are going to push the company line... you *must* take course A, B, C before course D and you *must* take course E on your third semester. In my experience, and my friend's experience, public universities around the country ar...

Go to advanced search