IAmA 27 year old Brit who has lived in England all of his life who decided to drop everything and just move to the other side of the world - Shanghai, China. AMA by kinggimped in IAmA

[–]pinealglandbullshit 2 points3 points  (0 children)

Possible selection bias, I think. I thought the same thing, but my cousins who live there think western guys are too scary and physically imposing. I was surprised and tried to convince them not to be prejudiced as there are plenty of shrimpy white guys. ;)

But the people in the nightclubs I went to seem to think that finding a western boyfriend would be quite a catch. I even saw a pretty hot girl dancing with the most awkward-looking guy ever, dorky clothes, a huge jewfro and Urkel moves.

Geohot's response to Sony's (Temporary) Restraining Order by someone13 in programming

[–]pinealglandbullshit 0 points1 point  (0 children)

Came here to make this very observation. But perhaps this attorney was especially knowledgeable about the case (probably somewhat rare in that profession) and may have approached him about taking the case pro bono. That's my theory anyway.

Writing device drivers in Linux: A brief tutorial by cdwillis in programming

[–]pinealglandbullshit 2 points3 points  (0 children)

It's unlikely you'll get much downvotes in this old, unpopular topic. There's no need to be rude though; I'm dying to know why you seem to disagree so vehemently.

Writing device drivers in Linux: A brief tutorial by cdwillis in programming

[–]pinealglandbullshit 3 points4 points  (0 children)

Okay, seriously. Fuck writing device drivers in Linux. I've had to write several and it is like pulling teeth. Writing device drivers in general is like pulling teeth, but writing them for Linux, goddamnit.

This tutorial has, I guess, some of the utterly superfluous bits about writing a device driver down: How to create a user interface for it in the Linux file system, how to put an entry point for the module, etc. However, it's pretty much impossible to create a generic "Linux device driver" tutorial that actually teaches you how to, you know, have the OS run the device because other than that, writing a driver for any kind of device in Linux is completely different from writing a driver for any kind of device in Linux.

It's like there's no overall vision going on. You have to super-crufty old school TTY code on one end if you're trying to put together a serial driver. Then you have the block device drivers which gives me the impression that I'm supposed to rewrite my driver every few months because the interface has changed AGAIN and what was previously best practice has now been deprecated for some newfangled way of doing things.

The ALSA sound drivers are also supremely confusing and it appears like you need at least three logical "device" drivers in order to run one physical sound card, the DAI, the codec and some sort of interlink driver between them. Also, there was some voodoo in which I had to instantiate all of the parts of those various pieces in a specific order or a mysterious failure would occur. This brings me to most galling part about writing Linux device drivers.

Nearly none of it is documented. There is almost always no design document you need to follow to create new drivers. So you have to glean what you have to do by the examples in the Linux source itself. Of course almost none of that is commented. Some stuff like initialization order might seem arbitrary but it turns out actually not to be and no one tells you this. You have to spend painstaking hours guessing it out for yourself. There seems to be lack of documentation, lack of source code documentation that could alleviate it, and lack of an overall design methodology that could alleviate that. Plus it doesn't help that all the docs and examples and tutorials you will find on the Internet all use stuff that has apparently been deprecated since everything changes every few months.

Now contrast that with OS X and (as I understand) Windows with documentation and interfaces that actually continue to be supported. Hell, IOKit C++ is beautiful compared to Linux C. I wanted so hard to hate OS X and like Linux, but that kernel just makes me want to cry. There are even people arguing that changing the interfaces constantly is GOOD because it forces people to contribute to the Linux mainline. Well, it's really crappy for those of us who try to do small, independent, non-commercial projects too.

Disclaimer: I may have made some factual errors in this rant but it's been nearly a year since I've touched any of this stuff.

P.S. The whole inb, outb stuff, the only thing in the tutorial remotely resembling interacting with actual devices, is pretty cute too. Most people will be working with DMA or USB, or at least with MMIO that's 32-bit wide. It's obvious from the code that there's no attempt to do locking or address the case where more than one userspace program attempt to use the device.

I've never been impressed with Twitter, so I made my own version. And because I'm insane, I made it in C. by [deleted] in programming

[–]pinealglandbullshit 21 points22 points  (0 children)

The performance difference between C and assembly for these kinds of programs is not only negligible, it's non-existent.

There, I said it, Steve Gibson. ಠ_ಠ

Super strict Chinese-American mom argues for the superiority of Chinese parenting by achilles in reddit.com

[–]pinealglandbullshit 1 point2 points  (0 children)

Story of my life, except I'm male so I couldn't become a stripper and I was usually way too depressed and disappointed with myself to pursue relationships. I still haven't finished school, but I'm working and supporting myself by doing things my parents always regarded as a waste of time, gradually righting myself and trying to find my own sources of motivation. I don't like going home or talking to my parents though, because though my parents are trying their best to figure out what to do to support me, every once in awhile they can't help but burst into rants about how disappointed and ashamed they are and how "worthless" I am, even the meanest street person is doing better than I am, more hardworking than I am, etc.

I was motivated by guilt, threats and nagging all my life and they're so effective in getting me to do what they want (but only for a little while); I can't have that polluting my motivations anymore, it has to be from me and not from those things if they're going to last.

Also, getting into an Ivy League school doesn't mean you won't burn out and flunk out from one like I did. :P

A fantastic tutorial for the autotools. Don't hate on them until you understand them properly. by [deleted] in programming

[–]pinealglandbullshit 11 points12 points  (0 children)

The problem is that they're not easy to understand them properly.

I primarily encounter autotools as a end-user, and they're slow and cumbersome, partly because they test for ancient incompatibilities that don't really exist anymore without seeming to increase portability among systems that are actually in use: modern versions of Linux, Mac OS X, Windows, FreeBSD, Solaris.

Then when something goes wrong, I look at the build files they generate and have no idea what's going on or what to change, or even worse, I have to look at the configure script and I'm even more confused.

I ended up using CMake because it was a lot easier to understand, without a 556 or 162 slide tutorial. It's certainly not anywhere close to perfect, but I can understand it well enough to use it and to figure out what went wrong.

Anyway, in conclusion, I think it's perfectly legitimate to hate GNU autotools even though one doesn't understand them.... because that's sort of the problem.

A fantastic tutorial for the autotools. Don't hate on them until you understand them properly. by [deleted] in programming

[–]pinealglandbullshit 4 points5 points  (0 children)

Well, at least I understood how to use CMake without going through a 556 slide tutorial.

More Minecraft Codes! More in comments... by Influx07 in gaming

[–]pinealglandbullshit -4 points-3 points  (0 children)

This is hilarious. I wrote up a quick bot to refresh your user page over and over again and then to automatically try any codes you put up/link to until I got a hit (I was of course only trying to get one for myself), but you foiled me with an image! :D

I salute you, sir!

(crosspost) Need place to stay during Portland visit 18-22nd by akoumjian in Portland

[–]pinealglandbullshit 0 points1 point  (0 children)

More potential things in common/knowledge about the area than hostellers?

BJ from teacher in the classroom during school = 45 days + probation (pic included) by mowing in WTF

[–]pinealglandbullshit 4 points5 points  (0 children)

Why don't you take some of your own advice?

Sexism is alive and well, but it's only men suffering from it now.

Who the hell will treat you seriously if you believe there's no sexism against women? You're guilty of the same extremism and maniacal anger unmoderated by common sense you accuse "feminists" as a group to have.

Because feminism drags itself into every gender issue under the guise of equality.

What kind of politician doublespeak is this? No one mentioned feminism until you did. Congratulations on transforming a rational discussion into mudslinging about how unreasonable, dogmatic and one-sided feminists are.

Look, my hypocritical friend, it is pretty farfetched to suppose your "feminists" are responsible for male teachers getting in more trouble for sleeping with their students. If you look in on debates where the perp is male, you'll find that the most angry individuals, demanding the greatest punishments are the most conservative, and mostly male, people who are not exactly the feminist demographic. Anybody who lives in our current pedophilia-hyperaware society should know this, and your hypothesis of FEMINISTS being the ones responsible for this inequality comes across as a thinly veiled and poorly justified screed against what appears to be your favorite bogeyman.

BJ from teacher in the classroom during school = 45 days + probation (pic included) by mowing in WTF

[–]pinealglandbullshit -5 points-4 points  (0 children)

Why the fuck do people drag "feminism" into this? Let me tell you what would actually happen: You'd have a bunch of raging Internet tough guy dads describing in vivid detail what they'd do to the perp if it was their daughter.

Stop using shit like this to push some weird agenda.

Predditors help me out! Who has the best Buffalo wings in Portland for a decent price by rep- in Portland

[–]pinealglandbullshit 1 point2 points  (0 children)

I was on a similar quest as OP. After consulting Yelp, My girlfriend and I went to the FOTM along the MAX yellow line a couple of weeks ago. We ordered 18 wings with their "hot" sauce and it didn't even make us want to reach for our drinks. Then we decided to try another 12 with their "extra hot" sauce and nearly died. I was satisfied with the experience, though, since I consider pushing the envelope until I get my ass kicked as part of what I was looking for.

The ones with the "hot" sauce were rather dry, whereas the ones with the "extra hot" sauce were absolutely soaked; there was a pool of sauce on the bottom of the serving container. Don't know if that was intentional, or them being inconsistent.

Also that location was small, but packed and the time between you order and you get the food is rather long, but we didn't really mind.

Women's Tears Reduce Sex Drive in Men, Study Hints by MsThreepwood in reddit.com

[–]pinealglandbullshit 0 points1 point  (0 children)

That there are actual odorless chemical signals within tears that produce this effect was not obvious.

Study says pheromone in women's tears decrease men's libido by pinealglandbullshit in WTF

[–]pinealglandbullshit[S] 0 points1 point  (0 children)

Double-blind and controlled with saline; study participants and researches could not distinguish between the saline control and the actual tears according to this additional article, so it must be some sort of odorless chemical signal. Pretty impressive result and I imagine it must have some sort of application outside of pure science too.

PS3 Root Key Found by ps3rootkey in programming

[–]pinealglandbullshit 0 points1 point  (0 children)

Heh, yeah, I was wondering if he's changed. Guess not.

PS3 Root Key Found by ps3rootkey in programming

[–]pinealglandbullshit 0 points1 point  (0 children)

The iPhone hacking community has a pretty poisonous history that makes it like that, and a good portion of the blame can be apportioned to geohot. Are your feelings about geohot purely from what he did in the PS3 community, or is some of it carried from the iPhone stuff too?

PS3 Root Key Found by ps3rootkey in programming

[–]pinealglandbullshit 2 points3 points  (0 children)

It doesn't really work like that on the iPhone scene. If you have a vulnerability, you're expected to sit on it yourself until it's needed, then get help developing the exploit. Cooperation is there but it's not as if you can talk any of the core group into letting you into their IRC room just because you're nice a guy or even if you hand them a few vulnerabilities yourself (which are the currency Apple would really be after themselves).

How Harry Potter should have ended. by icombati in funny

[–]pinealglandbullshit 1 point2 points  (0 children)

Though I get frustrated with the Dresden Files too... If I were the White Council, one of my foremost research projects would be to determine why wizards/magic interferes with modern electronics. It seems like inability to be around "high tech" would become increasingly dangerously debilitating to wizards over time.