- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
A fair few people in our office were invited into a meeting once. "First, let me tell you that the jobs of everybody in this room are safe," started the manager. We nervously looked round to see who was missing. We never saw the missing ones again.
Admin
Admin
I'm curious as to how many people used a negative PIN.
Admin
But just imagine if there were airport-style security checks at every train station. A 2-hour commute would be preceded by a 6-hour wait in line, and 90% of the world would no longer be able to get to work.
Ignore the terrorists. Anything else lets them win.
Admin
Admin
It was, you normally have to troll Youtube to find that many morons that quickly.
Admin
You ever used a packet sniffer? No, I thought so! An IP address in an IPv4 packet is transmitted as 4 bytes. Always. Yes, Windows and Linux store IP addresses as Strings, but that doesn't imply that that's what's being stored in memory, used internally or transmitted over the network. It would simply be too inefficient.
Admin
There are special locks that the TSA has keys/codes for. Then there's always the bolt cutters.
Admin
TDWTF is really serving up some mundane stories these days! TRWTF is why I wasted time reading this :(
Admin
Ahhh yes.. George Carlin's favorite line:
"made him so groggy that he blew right through a stop sign on the way to work causing a near-miss with some guy on a bicycle."
So he hit the guy?! Otherwise it'd be a near-hit...
Admin
Admin
I think you would have to be incredibly naive to be so much more freaked out by terrorism than the thousands of other, infinitely more likely ways you could die.
If you're so paranoid about being blown up by brown people, move to Nebraska where there's nothing interesting to bomb in the first place.
Admin
Yes. If they stored the PIN as a 4 character string it would've avoided the "range of a 16-bit signed integer" problem entirely; and because strings are easily compressed it might have only cost 1 byte to store each 4 character string instead of 2 bytes.
Strings are wonderful like that. For example, if you store dates as strings you never need to worry if "1/4/2000" is the 1st of April or the 4th of January; and if you store "age" as a string you don't need to recalculate it every year. They're also very portable - you don't need to care if the data is big endian or little endian, or ASCII or EBCDIC or UTF16.
Basically, you don't actually need competent programmers for anything, as long as you store everything as strings. Of course real programmers don't want you to find this out because they don't want to lose their jobs and be replaced by script kiddies.
Admin
Interestingly, the comment you quote appears to simply point out that the paranoia about aircraft getting hijacked is no more rational than the equivalent happneing to trains or cars....
But of course (as I just learnt) the internet is no fun unless you're disagreeing with someone....
Admin
Admin
TRWTF is that they're storing the actual PIN, and not a hash of it. Right?
Admin
What you are saying is that IP addresses are sets of binary digits with a fixed length that, for human readability, are displayed as decimal digits, right?
Admin
Admin
Admin
Admin
"and if you store "age" as a string you don't need to recalculate it every year."
Good job I wasn't drinking a cup of coffee or I'd have had to wash my laptop and medicate my sinuses.
Excellent troll. Best I've seen for ages.
Admin
[quote user="cellocgwAnd how many bombs have been set off in USA trains and busses? You're either an amateur troll or a professional moron.
BTW if "the terrorists" "come back" I'll do the proper thing: ignore them. You simply have no concept of the intent of a terrorist. [/quote]
Not in the USA, but in the UK the 7/7 attacks in 2005 happened on the underground and buses.
In the early 2000s, bus-bombings in Israel were very common.
Northern Ireland had car bombings although the IRA didn't do suicide bombing and would leave the car before blowing it up in a crowded area.
Admin
(Hint: x is not the same as ×.)
Admin
I'm sure this is were the terrorist got their idea from
Admin
Every time the police catch me nearly killing a complete stranger, it has always been because of an inexplicable one-off fault in an alarm clock. All 93 times.
Admin
That's bullshit in this case. The problem was that insufficient space was reserved for the PIN, not the way of storing it. And given the PIN system they use, no problems can ever occur as a consequence of storing it as, say, a dword. Nobody needs ‘sage’ advice that doesn't actually help anyone.
Admin
Also in some countries postal code can have letters. Currently they all use latin letters, but in the past there were systems based on Cyrillic and there are no warrants about future. So, please use Unicode strings of unlimited length. Also there are places without postal codes in countries with postal code systems and there are countries without postal code system, so please provide interface in your form to choose between them and please don't store your data in Oracle where null and empty strings are equal.
Admin
In fact, if you're planning on selling outside of a social group that contains few more than your friends and family, it's recommended that you store all text that serves to identify your users as Unicode. Although there is a case for implementing some sort of check on the length of certain fields, to guard against malicious users who, in order to cause problems in your storage media, cut and paste the entirety of e.g. War and Peace into the postcode field.
Admin
Admin
Everyone is missing the point.
The problem with planes isn't someone setting a bomb off on them. The problem with planes is someone turning it into an unstoppable missile. Short of putting automatic shut-down protocols on commercial planes (at the peril of everyone on board), there's not much you can do to stop a successfully hijacked plane quickly.
Your options after hijacking a train are limited. You're not going to "drive a train into a crowded building" unless that crowded building also happens to be built on the tracks of the train. (And don't go into "they can blow the tracks!", because there are safeguards against that kind of thing.)
Admin
Similar quotes about similar situations have been made. Namely, the architects for the world trade center.
The fact of the matter is, those cases were planes crashing into a building due to malfunction or pilot error. The significance being a plane that's crashing like the Hudson River Landing is going significantly slower than a plane that's deliberately smashed into a building.
Not to say that you're wrong, after all it's been revealed that a government agency of ours was assessing the risk of hijacked planes flying into buildings before it actually happened. But lets be clear of the difference in the two scenarios.
Admin
That's what they said about kilobytes once.
Admin
All the time actually.
And an IPv4 address IS a string... 4 octets long. IPv6 has an address string that's 16 octets long.
It's a fixed-length string. Of course, it's also horribly inconvenient to display properly so we often like to make the string prettier by restrcting the characters it could use. But the 4 or 16 octet string is what's used on the network.
Ethernet packets are variable length strings ranging from 64 to 1500 octets, with a special jumbo mode of 9000+ octets being possible.
Admin
Admin
Admin
When it comes to handling IDs, I prefer to just use strings, no matter how big or small the ID is. SSN? String. Employee ID? String. Why? Because by using strings, I don't have these kinds of problems. The string knows to resize itself to accommodate the space needed. 16 bits? 32? 64? It doesn't matter. It handles any and all sizes.
Admin
Agree that the danger of the Bad Guys taking advantage of "locks" that arent, is very real.
Disagree that the authorities dont plant stuff. They do it all the time. You only find out about it when it goes wrong, eg [http://www.cbc.ca/news/world/story/2008/05/26/japan-drugdog.html].
I dont fly, and its not because Im afraid of aeroplanes.
Admin
OK, wiseguys. You've seen too many Hollywood films with "unstoppable" and "runaway" trains. First, a train doesn't just go where and when it pleases. Its route is determined by track switches that have to be thrown either by the driver or trackside staff, depending on conditions and location. Some switches are remote controlled and can't be thrown manually without a special tool. So if you want to drive a train through a famous station, you can't just steal a train and start driving - you can't get it out of the yard without derailing, unless you get the yard staff to co-operate and not get suspicious when somebody they'd never met before wanted to take an engine out without a timetable or train number or any job assignment. Of course you'd have to know how to operate the engine, know which engine to take that would be ready to go, know where to pick up the keys and reverser handle... at which point it would serve you better to forget about the silly terrorism business, which could land you in jail or killed, or both, and sign up as an engineer for the railroad.
Oh, but we were originally talking about inspecting the passengers' luggage in case one of them were to ram the train into the station. Once you're boarding the train, it has a full staff, working engine(s), functional brakes, and it's under the watchful eye of traffic control (the details of which vary depending on location).
What's more, there's already at least one person in the cab of the engine, and the train is fully capable of performing an emergency stop even without that person. Also, depending on jurisdiction, it very probably has equipment in place to enforce signals and speed limits - besides which there's the point of switches and routing...
Finally, it's not necessarily even possible to walk from the passenger cars to the engine whilst the train is moving; you may well be watching the nose and windshield of the last engine from the end door of the first car. If not, the cab door will be locked to give the driver peace to do their job.
Be as it may, if you were fully convinced you could somehow get around all this, what would scanning your luggage reveal? Tools? Al-Qaeda membership card?
Admin
I am the only person who thinks the guy's "near-miss" with a guy on a bike wasn't especially humorous?
Admin
A hijacker would have the same degree of control.
Even if switches were controlled by ground staff in nearby stations, if ground staff don't know that the train is hijacked then they'll still direct the train to the same airport or same huge ordinary station or wherever it was supposed to go. A hijacker will still have an easy time of delivering and exploding their bomb.
The one at the front of the train. Aha, so THAT's how we know that 9/11 never happened and all those news reports were fake.I bet a hijacker can learn to operate a train faster than they can learn to fly a plane, even though they didn't need to learn how to land a plane.
So what? They still won't know about the bomb until it's too late. Or if a hijacker takes the driver's seat, no one will know about the ramming plan until it's too late. Or as a non-hypothetical case, if you're willing to consider the real world, no one knew about the sarin until it was too late. The reason inspections won't occur is that they'd turn a 2 hour commute into a 6 hour wait in line followed by a 2 hour commute, and 90% of the world won't be able to get to work any more.You have to ignore the terrorists. Anything else lets them win?
Yes, and I'm not sure what conditions caused it to be operated, but for anything other than an earthquake it surely depended on a human knowing of a reason to pull a switch someplace.Also, depending on jurisdiction, it very probably has equipment in place to enforce signals and speed limits - besides which there's the point of switches and routing...
The engine is in the first car. There's a glass door separating the driver's room from the rest of the car. I suppose subways in the US might have a metal door separating the driver's room from the rest of the car, so hijacking might be tougher, but still no one's going to know about the bomb or the sarin until it's too late. As a matter of fact, if scanning were practical, if everyone would wait in line 6 hours before taking their 2 hour commute, then scanning would have revealed the components for sarin. The terrorists were carrying both components and one terrorist even used an umbrella to try mixing the two when they didn't mix by themselves as quickly as he hoped. But anyway, scanning isn't going to happen, at least not for ordinary trains.Scanning does take place at airports, AFTER arrival.
Admin
Admin
Why do you think the indexing is slower for strings than numbers? A DBMS isn't going to store numbers as a float or an integer, after all. (Even MySQL doesn't do that...) And if you declare a zipcode as, e.g., "char(5)", why couldn't they optimize for the incredibly common case of "short strings that can be stored in a machine register"?
Admin
It's the exact opposite situation, in fact, using planes as missiles became obsolete on 9/11 when Flight 93 rushed the cockpit. Passengers aware of the danger and reinforced cockpit doors have made that tactic completely worthless.
Admin
Admin
Admin
I thought you were talking about hijacking a train to ram it into a building; I must have misunderstood you. You've made it abundantly clear that you don't know jack about railroading. It's OK, most people don't, even though they imagine a lot of things.
I initially understood that you were talking about ramming the train itself into something solid, but apparently you were talking about taking a bomb on board and blowing it up in (under?) a significant building. Bombs on trains have happened, but to my understanding, most that they've accomplished is blowing a hole in train and more holes in some unfortunate people inside. Most railroad stations, even ones under buildings, are very open, so a bomb that goes off inside a confined railroad car made of really thick metal has a really hard time doing structural damage. Don't forget that an underground railroad station (mainline or subway) has to withstand accidents, such as a train derailing into a supporting column, so they tend to be heavily built.
There have been a few train bombings plus the 1995 sarin attack. The way I see it, having or not having inspections is a judgement call. Some long distance high speed trains have some kind of inspections in place. In a crowded subway station it would be simply impossible.
I did read - somewhere - that one thing that did help the UK fight the IRA terrorists was an agreement that IRA strikes should not be front page news. The IRA were after publicity, and it was made harder for them to get it. Unfortunately I can't verify or recall the source, so you can take that with a pinch of salt.
I did take two seconds to search for some actual train hijackings. Yes, they have happened. In a variety of ways. By both terrorists and lunatics. About five cases globally within the past 40 years.
So are we talking about mainline railroads or subways here? Because it actually matters. Sounds to me like you've seen pictures of, or visited some particular type of train, possibly a Siemens Velaro, that has such a wall. A Velaro is a long distance high speed train with passenger volumes vastly different from subways. There are locomotive-hauled trains where there's no access from the engine to the passenger cars. There may even be cars in between without any end doors, such as mail, freight, or vehicle transport cars.
The engine may be first in the train. It may also be the last, in which case there will be a control cab in the first car. It can also be in the middle, in which case there are control cabs in both ends. There may also be engines in both ends of the train. The train may even be split along the route or coupled to another train, so none of this is necessarily constant. In the case of a multiple-unit train such as the Velaro, there are traction components all over the train, so you can't really talk about an "engine". There's a cab in the front of the train, that's about all you can say, and that's what matters for controlling the train. Of course, there are fully automatic, driverless subway systems - no separate engine, no cab...
Like I said, it's a judgement call to decide on inspections. It's about balancing risks and returns. They may be warranted in some conditions, and impractical in others. I know of border crossings where freight trains are X-rayed for contraband. Improvements in maintenance, staff training, and working conditions are more likely to produce better returns in safety than scanning each and every passenger. Some specific cases may warrant inspections, such as the Eurotunnel. It's all about looking at the big picture; how many injuries and deaths occur on the system and why, what can be done to improve the situation, and what things are likely to cause problems in the future, and how they can be prevented. Wasting passengers' time is taken into account as part of the judgement.
However, there's a difference between a train and a plane, and a certain similarity between the Eurotunnel and a flight. Let me know when you figure out what it is.
Admin
Admin
Are you in Frankfurt by any chance?
All I'm saying is that terrorist strikes against railroads have happened, and trains have been hijacked, but not very much in the way you pictured it, and if you're going to talk about something, please do two minutes of research about it. There are enough people who have Hollywood movies in their respective heads, and who set up all kinds of impractical cunning plans to foil the schemes that only exist in those movies, not to mention the few nutcases who try to implement the Hollywood movie schemes.
There are actual, good, working security measures to be made, but they are often boring, not very visible, and involve experience, judgement, statistics, probabilities, and percentages, which nobody understands anyway.
Admin
While Columbia was on orbit during its last mission, Boeing were asked about the potential for damage from a lump of insulation foam that had been seen to break off and hit the shuttle. The lump was estimated at around 1920 cubic inches. The PowerPoint presentation basically ran,
Admin
At least in Europe most trains are electric fed from a catenary or a 3rd rail, so you can't really expect to escape in them, they'll kill the power and that's it. Never mind they could switch you on a spur ending at a wall. Also, many railway systems do in fact have fleet-wide radio commanded emergency braking, I've personally seen such a system in Poland.