Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: Anniversary Parties, Important Notes 6

The A2 party already has like 70 signed up. We're going to have to rethink venue or time I think if we really have that many people. Wait a few more days and see what we can work out. Keep reading in the party forum for info. We have 500 shirts to print and hand out... it'll be fun to see where they go.

more info as I get it. There will be notes on future stories as days get closer.

User Journal

Journal Journal: Another MySQL Interlude 2

A comparison between the "easy to use" MySQL and the "hard to use" PostgreSQL:

MySQL:

CREATE TABLE up_subjects_books (
BOOK_ID int(11),
SUBJECT_ID int(11),
KEY bo_id (BOOK_ID),
KEY su_id (SUBJECT_ID),
CONSTRAINT up_bo_fk1 FOREIGN KEY (BOOK_ID) REFERENCES up_books (id) ON DELETE RESTRICT,
CONSTRAINT up_sub_fk1 FOREIGN KEY (SUBJECT_ID) REFERENCES up_subjects (id) ON DELETE RESTRICT
) ENGINE=InnoDB;

PostgreSQL:

CREATE TABLE up_subjects_books (
BOOK_ID INTEGER REFERENCES up_books(id),
SUBJECT_ID INTEGER REFERENCES up_subjects(id)
);

Of course, many people don't bother with foreign key constraints and they do such things programmatically. Which, to my mind, makes nothing easier. It simply makes the programmer responsible for data integrity, which is a recipe for trouble.

If there's a better way to do this in MySQL I'd love to hear it. I can't find it in the official documentation, but to be fair I stopped looking when I finally found an incantation that fucking worked. "INTEGER REFERENCES up_books(id)" certainly works, but it doesn't establish a constraint, which makes the whole exercise silly in my opinion. Why on Earth would anybody pick MySQL? I certainly wouldn't, but the server where this Web app currently sits is dropping its Oracle license and they've only installed MySQL.

(Oracle has its own set of oddities and quirks which annoy me, but at least I had confidence in the engine. To my mind, PostgreSQL is so far superior to both MySQL and Oracle for small-to-large database projects it's not even funny. Easy, fast and predictable. For certain enterprise setups I can see where Oracle stomps all over the free software options, and if Oracle were more reasonably priced I wouldn't be opposed to using it. But you have to be a sadist to want to do something non-trivial in MySQL.)

Slashdot.org

Journal Journal: Attention iPhone Users! 20

If any of you are using an iPhone and are willing to help test out some Slashdot handheld crap, shoot me off a note... my email is the same address as always, and if you can't guess it, you probably can't help anyway ;) I've built a stylesheet and Tim put together a few little options that we think will make a few bits of Slashdot look nice on an iPhone (or really most lower resolution displays) but unfortunately none of us actually HAVE one yet... so anyway, let us know. Or if you work at Apple, send us freebies dammit!
User Journal

Journal Journal: EU racing against US, USSR to build GPS 2

Story link

Having launched one of the thirty satellites required, the eight-member commercial consortium tasked with building Galileo, the EU's planned rival to the American NAVSTAR (better known as GPS) and Soviet GLONASS systems, has apparently declined to invest further money in the project. Future funding will consist entirely of another $4bn and change from EU taxpayers, since the consortium is no longer confident of getting a return on their own investment. (Somehow, it sounds almost as if they doubt the commercial prospects of being the third to launch a service which has already been available to everyone free of charge for over a decade...)

Despite this setback, with a further influx of EU funding, the European Commission hopes to have the constellation online by 2011; the American and Russian counterparts were completed in 1995 and 1994 respectively.

Just imagine how far behind the Soviet Union the EU would be without the influx of billions in extra funding to speed things up...

User Journal

Journal Journal: Multiply and conquer 5

Time to follow the herd, I suppose: Multiply. Go there, and find out who it was who sent me an e-mail last week - asking me what my e-mail address is...
User Journal

Journal Journal: Server death, the sequel... 4

*sniff* Alas, poor Server!

My current server, home to some of my websites, some e-mail and half my DNS service, has decided it would make life more fun if it rebooted spontaneously every few minutes. Nothing in the logs, just unsolicited rebooting - possibly a power supply issue of some sort. (All I know is SMART shows the hard drive is OK; I'd expect most memory or CPU problems to give different symptoms, but being eight time zones away makes diagnostics rather limited.)

I was going to have to change all my domain registrations anyway, since the IP address was going to change soon because of new transit arrangements with their transit provider, but now it's rather more urgent: I have a production site which is only sporadically available! :-(

My plan is to get a second virtual server (I had one virtual and one physical, until now) and set everything up to be replicated between them (currently, I only have DNS and MySQL replicated fully, with some web sites rsynced when I change them, others only hosted on one machine or the other). Email will be more of a pain: I have a few mailing lists under ezmlm, which I'll probably convert to use MySQL for replicated list management (so list posts get delivered to and distributed by either of the two) - but my mailboxes themselves can only live on a single host, really.

The one big advantage of having a physical server was the value: for about the same money, I got far more disk space, RAM and bandwidth, with a dedicated CPU instead of sharing a couple of Xeon cores with a dozen or two other users. On the downside, no console access (I did have for a while, but that disappeared at some point), less control (a couple of times I ordered remote power-cycling through the host's web interface, while still logged in to the server; from the fact I was still logged in, the reboot didn't seem as successful as the site claimed!) - and no protection against hardware failure, which suddenly seems much more important now...

Has anyone in the zoo set up things like this before? Or, for that matter, got any ideas why my previously-reliable server suddenly starts rebooting itself? Any hosting recommendations for me?

User Journal

Journal Journal: "Only" being paid $200k is a "constitutional crisis" 10

According to Chief Justice of the Supreme Court John Roberts, paying his colleagues a "mere" $200k, with federal district court judges languishing on just $165k, is "inadequate" and "has now reached the level of a constitutional crisis."

Inadequate compensation directly threatens the viability of life tenure, and if tenure in office is made uncertain, the strength and independence judges need to uphold the rule of law - even when it is unpopular to do so - will be seriously eroded

Frankly, I'm not convinced of his core assumption that "life tenure" is desirable, let alone essential - I'd prefer term limits, the very opposite, or at least having them face regular election to make them accountable to those they profess to serve. Perhaps he does have a point that without the taxpayer making judges rich directly, their greed will drive them into the pockets of lobbyists, but I suspect the opposite is more likely: make them richer and you'll be attracting more people motivated by money, rather than more laudable motives, as in the Simpsons episode where America entrusts the trillion dollar bill to Montgomery Burns: as the richest man, clearly he's the least corrupt.

User Journal

Journal Journal: Christmas Slashdot Functionality

The discussion2 system had 2 notable changes in this weeks code refresh that I'd love to hear feedback on (use email if you can't post here). The first is Scott's very excellent new draggable slider control. Everyone mostly figured out the slider tool before, but it was very unresponsive... but no longer! It has some layout niggles under some browsers, but it functions properly in most of them.

Equally exciting is new dynamic updating... the old code actually transferred the full discussion and displayed/hid content as requested by your settings. Thew new code properly requests comments as needed, and when needed. This cuts page sizes dramatically for people reading with filters turned up very high. It also puts us a few stone throws away from a 'refresh' button which can just add newly posted comments in place. There's some work to be done yet, but it's made a lot of progress. I hope you like it.

We've tested everything under most of our most common browsers... if you're curious they are very roughly FF2 38%, FF1.5 19%, IE7 8%, Safari 7%, Opera 3%. Missing from our compatibility list is IE6 with 13% of our traffic. Fixing IE6 is non-trivial and we'd certainly take patches... but since the IE6 population lost a point or two last month anyway, and fixing the code is pretty substantial, we'll probably be focusing our development time on the larger and growing platforms (FF2 and IE7 obviously being the most important).

Anyway, merry-whatever-you-believe to everyone out there. I'm spending my holidays the same as always- driving from family gathering to family gathering. Roads suck but the person I like being with most is in the car too, so it doesn't matter.

User Journal

Journal Journal: The SJ degree 2

1. State I'd rather live in: TX
2. Stranded on island/desert: I'll take the dessert, please.
3. What "catches your eye" first in the opposite sex? Head - face, hair, expression, eyes.
4. How much do you think a guy should spend on an engagement ring? No idea
5. How old do you want to be when you retire? N/A - the idea of stopping work just because you hit some arbitrary age seems daft.
6. ? Probably.
7. Would you rather be the smartest person in the world or the most attractive person in the world? Smartest: looks fade much more readily.
8. Do you think tattoos are hot? Not really.
9. What was your first pet? A black Labrador.
10. Where did you go on your first Spring Break? Nope.
11. Are you scared of spiders or snakes? Not unless they're dangerous ones.
12. What was your first job? IT, scraping mangled bits off mangled servers.
13. What is in your front, right pocket? Handkerchief, some coins.
14. Do you put up a real Christmas tree each year? Usually - it's in the back of the car ATM...
15. How many blankets are on your bed? Just the one duvet.
16. Do you have a TV in your bedroom? No, just three or four computers.
17. When was the last time you received a card in the mail? This morning.
18. There is no question 18. Wrong: it's just rhetorical.
19. Who was the last person that text-messaged you? Probably my brother.
20. Who was the first person you saw today? Ditto - we're heading out for our weekly lunch together soon.
21. Do you have any awards hanging on your wall? No.
22. Do you own glasses? Yes - tried contacts, didn't like them.
23. When is the last time you shaved something on your body? My face, yesterday.
24. MIA.
25. What was your first vehicle? A Peugeot, with slightly dodgy brakes, which embedded itself in the back of something solid on its first outing. Not a good start.
26. Do you miss high school? Sometimes.
27. Are you more of a neat or messy person? Ask the team searching for the carpet.
28. Do you think that everyone should have a cell phone? Yes. Preferably one which only rings silently.
29. Do you remember your first family vacation? France - when my brother was taken ill and my mother had to explain to the doctor why she didn't want to give a two year old child aspirin.
30. Ever been in a fight with a best friend? Sort of - we argue over technical points all the time.
31. Ever puked in public? Only once - on the ceiling.
32. Would you prefer dinner and a movie or bowling and ice cream? The former.
33. Do you sleep with your door open or closed at night? Slightly open, so my cat can get in and out.
34. How far do you live from work? 20-odd miles, costing about $18/day by public transport. Not good value, even with $7/gallon as the alternative.
35. Do you believe in afterlife? Not particularly.
36. How many credit cards do you own? Five: one AmEx (which I normally use for the loyalty points), one Visa (which I normally use in places which don't take AmEx) and three MasterCard (two disused, one which I use at the moment becase it's interest free until September).
37. Would you move to another country tomorrow, if you were offered a $100,000 job? That depends on the country. The US, Australia, Canada? In a heartbeat. Iraq? Probably not.
38. How many kids do you see yourself having? Probably one or two, depending on circumstances.
39. Were you a trouble child? In some ways; I wasn't a big fan of rules.
40. Do you like butterflies? Yes.
41. Can you shake your booty? Erm... never tried - not really my thing.
42. Do you shower at night or in the morning? Morning.
43. Where is your favorite place to eat? It varies. I'm planning to try this place soon - most of my favorites are similar to that. There's a good Thai place in town where I'll probably have lunch today, though.
44. What did you wear to bed last night? A cat and a duvet.
45. Do you have to sleep with something "ON" every night in order to sleep? I like to have some music, although XP x64's driver "issues" robbed me of that lately :-(
46. On average, how much TV do you watch a day? Two hours, I suppose, while multi-tasking.
47. Do you have any piercings? No.
48. Would you rather go snorkeling in the Caribbean or hiking on the Appalachian Trail? Hiking: I'm too attached to being able to breathe.
49. Have you ever taken karate lessons? No, just judo.
50. Do you think if you got married, you would ever get a divorce? It's possible, but I hope not.
User Journal

Journal Journal: Experimental Threading Test

If you have enabled the Discussion2 beta, you will notice a number of confusingly titled links appearing in comments. These control expansion/contraction of threads in several different ways. They are confusingly titled because we want you to try each of them and let us know which ones you like best without concerning yourself explicitly with how they work.

You can email your feedback to me (try d2 at cmdrtaco dot net) or some of you can actually post here.

I think next week will have a patch with a number of D2 changes (including some results from this experiment hopefully) so your help is really appreciated.

User Journal

Journal Journal: Firefox, Tabs, Gmail and Quicksilver

As web applications grow more and more featureful, I slowly find myself replacing desktop apps with web apps. This really makes a lot of navigation on the desktop a real pain in the ass. Example: Gmail. It's probably open in a tab right now. Not sure which one... occasionally we accidentallly close tabs. But if I use quicksilver to open 'gmail' it will open a NEW tab every time. Same if I use the gmail notifier.

Applications each open individually, and they know that they get focused when activated/launched whatever. But effectively firefox may (or may NOT!) actually encapsulate 2-3 different applications... spreadsheets, email, or say, the bookmarks that I use to maintain Slashdot's submissions bin.

I'm not exactly sure how to deal with this. I imagine this problem will only grow if good web applications continue to replace desktop applications.

User Journal

Journal Journal: Why My Job Is Wierd

one of the many emails I get on an almost daily basis is email requests to be included on the slashdot supporters list. I read these emails, and every few weeks filter out the junk links (SEO spam etc) and add a few to the list. I try to include only links that look like they are actual people. I'm not crazy picky, but I don't include really obvious stuff. Some folks get annoyed if I don't choose there link, but here's a recent one that really kind of blew my mind. I won't tell you the domain name for obvious reasons, but this guy emailed me 3-4 times over the course of a few days. Finally today I got this one:

Subj:Please don't fuck people around, thanks

Now he rambles a bit, but regardless, I don't need rudeness in my inbox, so I finally reply to this guy. He'd send me like 4 messages, so I figured I'd tell him to stop it. I simply wrote

I am not going to link you back. that is very rude.

This was like 4 hours ago. And keep in mind that the preceding message was the only one I wrote. These all came from him in rapid succession:

Yes thanks,
how about not naswering on my prevoius e-mails ?

How about FUCK DMOZ.ROG ?
Sorry
But i don't know any more who is more Crude, or Rude
any way thanks for your answer ...

followed by...

Thanks, your button has been removed.
At least i don't need to play a prostitute in order to get a link on your
site.

And minutes later he links me one of the entries on the supporters page that his site is better than. But then the truth comes out:

If i did not wrote that subject would you answer me than ?
I apologize, i stop smoking now in 5 weeks :-)

Ok, so that explains it. He quit smoking. That sucks. Must be rough. But then he needs to further clarify:

PLEASE IS THERE A WAY I CAN APOLOGIZE FOR THIS ?
I'm on the web since 1997 ...
I'm sorry ...
I'm 43 years old (married + 4 children)
I have stopped smoking last 5 weeks, this might have reduced my patience ...
Thank You.
This is my last e-mail and i will be not bothering you.

Now I actually kind of feel bad about all of this. I mean, not like baby punching bad, but at least an aww thats unfortunate. Until I get...

OK i understand, you hate muslims ...

WTF?! Muslims? When did that come into it? It's pretty clear that this guy's english is not his first language, but who am I to judge? My english is my first language and I'm barely literate. But somehow this guy has determined that I hate his religion, even tho I didn't even know what it was. But wait, that's not all:

OK i think you are a Spam filter not a human right ?
If I use "Fu*ck" word you react directly ...
OR are you Serbian and hate Albanians ?

and most recently:

Probaly you don't know what APOLOGIZE is.

Poor spam filter.

Mind you all of these messages were sent minutes apart- when I was out picking my car up from the shop! But it doesnt' end. While writing this journal entry I got

OK i see you hate Jews,
I'm half jewish ...
but i can't hep

Now wait a minute, I thought he was muslim. And I was serbian? I'm very confused as to who I hate atm. But I'll end this with his last message

Hmm in no way i can trigger any other answer ?!

I guess this is the closest thing to triggering any answer I can think of.

User Journal

Journal Journal: Col. Tubesnake 1

Over the last few months, the office has become home to a variety of creatures. It started when samzenpus brought in a turtle. He found this poor creature stuck in road tar. He saved the thing from certain death, cleaned the tar off him and dropped him in an aquarium. Soon after Hemos brought in an old tank to put in some salt water fish. Not to be outdone I finally fulfilled a childhood fantasy by getting a pet Ball Python that i have named Col. Tubesnake.

He's doing well. He's been eating his mice like a good little snake. This morning he didn't seem interested in the mouse tho, which i understand. I've been giving him frozen feeder mice from the pet shop which don't seem to do much for his hunter instincts. This time I warmed the thing on my coffee cup heater thingee and got it a lot warmer then before and tossed it in the tank. He struck almost before the mouse hit the ground. Snakes kick ass. The question is who will be the first to get a scorpion or tarantula.

Random popular culture notes: Aaron Sorkin's new Studio 60 on the Sunset Strip premiered earlier this week and has a lot of potential. Good cast, and of course since Sorkin is basically my jesus, I really hope the show comes together. Tonight is the premiere of The Office. Not much else on network TV worth watching this season, which I guess leaves me time to farm for herbs and raid in warcraft and wish the expansion would come out.

User Journal

Journal Journal: Discussion2

More than half of yesterday's discussion revolved around IE support. We PLAN IE support, we're just not knocking ourselves out to get that done while everything else is in flux. IE7 is definitely a priority. Not sure about 6. It really depends on how far we get, and when IE7 comes out, and how busted their javascript really is. patches would rock- this is all client side stuff and I bet someone with IE and a debugger could get some compatibiltiy in for any browser without that much effort, none of us are IE experts tho, so I'd rather we spend time on new functions.

The way D2 was rolled out for testing was that we actually had two discussion systems in place for awhile. One was a University of Michigan Research project written by nate. We used that as a rough framework to build our system. Subscribers got our system. Odd numbered users got our system, even got ours. Nate's system was given to a few hundred users, while ours was given to an ever growing number of readers that we rolled out over the course of a couple months. This is how we roll out many functions that aren't ready for prime time. Giving everythign to everyone all at once has performance issues for us. A slower rollout makes sure that we can work the kinks out before we give it ultimately to anonymous users.

If you use the handheld/low bandwidth options, the floaty control widget can cause problems. We know. It's on the list, but since only a tiny percentage of users are using those modes, it's not a top priority. The fix is relatively simple: the floaty needs a toggle from top to side. The code has a widget for a top floaty, but it's an older version. Basically I want to make the side floaty work properly (drag & drop instead of clickable for example) then redesign it to work up top and add the toggle. But that problem is easy to solve.

A VERY key point that a few users got is that this doesn't solve the problem that the old system has in favoring older threads. There is no good solution to this, short of randomizing top level comments. The REAL solution is to rework the scoring system to re-value threads with more granularity then -1..5. That of course is the plan.

As for one-click moderation, this is a baby step for us. The new moderation system is vastly different then the old one... and in-place moderation was critical to make it work.

A number of readers commented on the highest comments first not existing in this system... thats true, but you can fake it reasonably well. By setting the threshold fairly high, and hiding a good number of comments you can easily filter to score:4 or score:5 comments. Admittedly that doesn't give you 5s then 4s then 3s, but for mature discussions there are already dozens of comments. The new moderation will aim to address this problem in more detail, but I think a high enough threshold is BETTER then simply sorting by score becaause it's possible for you to navigate up or down without a page load when you do find a comment that you think might be worthy of further research.

As for patches, tf23 and a few others noted that we don't provide much in the way of direction. Well thats kinda true- the SF project page has tons of feature requests. If you emailed me and asked for my opinions on any of those features i'd tell you. I simply reject all feature requests that are worthless. Some of them are low priority, or things that I just wouldn't use for Slashdot. I read the mailing list- although I have little to say there. I've learned that if I'm not paying people, I don't usually get what I want for Slashdot, and thats fine. Code what you think works for your stuff. But if you want it on Slashdot, ask me how it should work or if it's crazy. Sometimes I reject ideas becasue our hardware can't handle extra queries. Other times I reject them because they have serious social issues or I decide that cluttering the UI isn't worth it for a tiny percentage of users who want a function. But there's a lot of fairly obvious stuff that could be fixed. I mentioned a number of things in the story I posted yesterday too. And a lot of that stuff is totally in the javascript- no downloading and installing slashcode to test even required.

Anyway the feedback on D2 is mostly favorable. I'm disappointed that the bulk of the discussion yesterday focused on the fact that we've chosen to beta test on the single browser used by most of our readers and worry about compatibility later. It meant I got less real feedback then I might like. But I think that's always the case- if there is one glaring issue, readers can't see past it to talk about the hundred other issues that are honestly more helpful...

What's interesting to me is figuring out how users can navigate this datastructure intelligently. What does it MEAN to expand a thread. To collapse a thread? Do I need siblings? Do I need expand-all? I don't want 35 buttons... where is the line between needless clutter and the necessary UI? Interesting problems to solve. Fun stuff. What's tough is that some readers want everything and the kitchen sink, but most users will find 3-4 buttons sufficient (and others will think 2 is intimidating). We have to balance minimalism, functionality, and hardware limitations. I find it enjoyable.

Slashdot Top Deals

There are two ways to write error-free programs; only the third one works.

Working...