Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment You can automate it (Score 4, Informative) 297

While it does involve having thousands of addresses, this kind of thing is pretty easy to automate, given what your goals are. For example, I use this tool to determine which country my visitors are in and display the relevant contact information (show the French address to people in France, the Belgian one to people in Belgium, etc). I have a cron job set up to update the database once a week; it is fully automatic and very reliable.

If you need to be more specific, this guy has a php class that can supposedly give you information as specific as city, or you can write your own using the db you can download here, although I can't personally vouch for either. You could also parse the hostnames in your server and only allow service providers in your area.

Also, google code has a really good tutorial for a client side application if your server is limited in its capabilities.

Either way, it sounds from the summary like you have access to a database of ip address ranges you want to allow. Just set up a cron job to download it and parse it.

Comment Not piracy (Score 5, Insightful) 576

Now yes, from a strict legal point of view, I've no doubt that still counts of piracy.

IANAL, but I believe that unless it happens on the high seas and involves forcefully robbing or commandeering a vessel, from a strict legal point of view it is not piracy.

Comment Forget the charger... (Score 5, Insightful) 184

As a former infantryman, I can tell you that you are really over thinking this. Rugged means more than just hard to break. It also means that it is a single piece (so he can't loose part of it) and that those pieces are easily replaceable.

Forget the charger, and get him something nice that runs on AAs. Lots of military equipment, such as the AN/PRC-14 night vision goggles or the little radios that squads carry around, run on AAs and so he is sure never to have a shortage. You literally have boxes of these things just floating around where ever you go. They aren't that heavy, they are virtually unbreakable, and he will have to carry some anyway. When I was in, guys bought electric shavers that ran on AAs expressly for this reason.

Besides, his unit will appreciate him not flipping a mirror out for all to see whenever he wants to listen to music.
Input Devices

Solar Power Pre-Deployment To Afghanistan? 184

dAzED1 writes "My little brother is heading for training at 29 Palms as a Navy Corpsman with FMF. He gets a [Sailor|Soldier|Marine]'s pay, so while he can't afford gadgets, I can; since he'll be in a LAR unit, I was thinking of getting him a small video camera, an iPod, and some sort of solar recharger. Whatever he takes, he'll have to be able to carry in his pack, which is already going to be heavy with his medic gear. Other than the weight issue, I am having problems finding a solar recharger that doesn't get wildly differing reviews as to basic quality. He'll have plenty of sun and few clouds, but it needs to be lightweight, effective, and robust. With price not being much of a concern, what would you suggest for accomplishing this? Advice on a small robust video camera would be appreciated as well."
The Courts

RIAA, Stop Suing Tech Investors! 114

The RIAA isn't just suing tens of thousands of music consumers; they've also begun filing lawsuits naming the directors of and investors in tech companies that they believe contribute to copyright infringement. NewYorkCountryLawyer writes: "ZDNet urges the big recording industries to stop suing tech investors, and cites the draft legislation that I posted, which would immunize from secondary copyright infringement liability any work done by a director in 'his or her capacity as a member of the board of directors or committee thereof,' and any conduct by an investor based solely upon his or her having 'invested in any such corporation, including any oversight, monitoring, or due diligence activities in connection therewith.'"

Comment Don't do that (Score 2, Informative) 209

Be careful with this, though, because a lot of places you wouldn't expect don't support the + sign. For example, when I had to renew my SSL cert after the debian ssl debacle, I had a problem: the email I used was me+thawte@gmail.com. Thawte has no problem sending junk email to this address, and they accepted it just fine when I initially accepted the cert, but when I went to renew the it, their system was silently dropping the plus and throwing an error when I tried to confirm the reissue.

Their technical support was no help either. After talking with some douche called "Jeremy E", he simply informed me that the best he could do was change the address to me.thawte@gmail.com, which of course is equivalent to methawte@gmail.com and not my address. He then did this without waiting for my approval and sent the reissue information to some total stranger (I tried to register it, it was taken). I never did get them to change the address, nor to reissue the cert.

You would think that a business like SSL certs that charges extortionate (hundreds of dollars) prices for something that an automated system does would have a working email system, but no. I ended up having to buy a new cert from another company.

By the way, THAWTE AND VERISIGN SUCK

Comment Which is why they have other ways to measure you. (Score 3, Interesting) 383

Lots of tracking software has ways to account for people like you. Xiti, for example, loads both a script and a small image. They err on the side of caution and assume that people who load the image but not the script have fairly restrictive settings. So, Xiti tells me that after filtering out bots 2% of my users have js dis-activated, although I believe that the actual percentage is lower. If I assume that all of those users have flash disabled and combine that with the fact that Javascript-based Google analytics tells me that 3% of my users either don't have Flash or that it doesn't recognize their flash version, at most 5% of my visitors don't have Flash and the actual number is probably a small fraction of that.

In general, I do not advocate the use of Flash in web design, but you cannot deny that it is nearly ubiquitous.

Comment Google will let you know for free (Score 2, Insightful) 383

At least for your own site, google analytics will not only tell you what proportion of users have flash installed but also which version.

For example, on my sites (4 medium/smallish commercial sites with around 1000 visits per day each) 45% of users have Flash 10.0 r12, 53% have some version of Flash 9, and 3% have "not set," which is probably split between users with no Flash and users with something that blocks GA's data collection (things such as no script could do this, but I think this is unlikely as noscript has google whitelisted by default).

So, for my sites, the number of users without Flash installed is probably between 0 and 3%. I think it is closer to 3% than 0, but anybody else's guess is as good as mine.

The point is, the overwhelming majority of users have flash.

That tidbit aside, I must say that IMHO using Flash is for anything but movies and games is incredibly bad form. There is no reason whatsoever to have flash menus, navigation or anything else that can be handled in html, css or javascript. Flash destroys accessibility, distracts from your message and is just annoying for visitors.
Operating Systems

DragonFly BSD 2.2 Released 44

An anonymous reader writes "DragonFly BSD 2.2 is now available. The second release to feature the HAMMER (versioning, among other things) filesystem — now considered production-ready — it includes 'major stability improvements across the board, new drivers, much better pkgsrc support and integration.' Apart from the CD ISO, this release has a DVD ISO with 'a fully operational X environment,' as well as a bootable USB disk-key image."

Comment Re:Not a surprise. (Score 3, Interesting) 723

Of course they did. They are, after all, on the right side of Swedish law. All that remains to be seen is whether we can say the same about the Swedish courts.

I dare say that very few of us here are qualified to make that statement, probably including you, my good sir. In fact, I believe that this trial is happening because a large number of lawmakers, layers, and judges in the Sweden can't even answer that question yet. We will soon see if they are breaking the law in Sweden or not, though.

Comment Re:A Strawman for the Symptom (Score 3, Insightful) 723

The Pirate Bay is about theft, plain and simple.

Dude, are you trolling? Why can we not discuss this issue without some idiot like you hijacking the thread? Look, copyright infringment is not theft. You can argue the im/morality of copyright infringement all you want, and I and many others might agree with you if you argue that it is wrong and can support the statement.

However, copyright infringement and theft are not the same fucking thing already. Jesus.

Comment exactly (Score 4, Informative) 195

exactly right.

Honestly, if the OP is in the situation where he is trying to find and patch holes, it would probably be a better idea to do a little homework and start the project over again and use good security techniques when writing.

It is not that hard, really. You just have to remember never to trust user input. That means that you filter all of it, you don't rely on cookies for access control, and you don't trust the variables that the browser sent you (such as $_SESSION['http_referer']).

As far as filtering is concerned, remember that php has a lot of filters at your disposal (just remember to strip new lines out of email addresses yourself, the filter misses that one). Another word of warning: if you are echoing user input out onto a page, it is much easier to use bb syntax than allow html tags through strip tags: the danger is that an attacker can get javascript attributes the filter and it is better just to avoid it.

Comment Re:Highlights one of the problems.. (Score 1) 195

I have 50 accounts for 20 or so users spread across 4 domains that use google apps for domains. Although google apps is not perfect, I have never once heard of the kind of issues you are describing. I would posit that the issue is your client.

However, I agree that google apps is not appropriate for a large organization such as a school. It works for us because we are small enough that simply relying on individual email users to back up their gmail accounts once a week in case google should go bankrupt is more cost effective than anything else. The uptime that we have had from google apps is better than anything we can do in house for a similar price.

Slashdot Top Deals

"Everything should be made as simple as possible, but not simpler." -- Albert Einstein

Working...