Slashdot Mirror


User: CastrTroy

CastrTroy's activity in the archive.

Stories
0
Comments
11,581
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 11,581

  1. Re:Use a persistence library on Anatomy of a SQL Injection Attack · · Score: 2, Interesting

    Well this is the entire problem. People doing stuff that they have no business doing. There's a lot of coders out there who could write a lot better SQL than many DBA's I've seen, and a lot of DBAs who can write SQL better than coders. Now it all comes down to how you want to run your company. Do you want to hire a coder, who can't write SQL, and and DBA who can write sql, and get them to communicate together to get the jobs done, or do you want to hire 1 person, who can do both coding and SQL, and they can get the job done by themselves? Oh, the other problem. If they can't code SQL, what kind of job will they do in the other programming language they are working in. Most of the coders I know who work in an environment where SQL is used, and who don't know SQL aren't very good at writing the other half of the code either.

  2. Re:Use a persistence library on Anatomy of a SQL Injection Attack · · Score: 3, Informative
    It's ok to create dynamic queries as long as you aren't generating those based on user content. Doing the following (VB/Pseudocode) is perfectly fine.

    sql = "SELECT item FROM table WHERE keyword IN ("
    FirstValue = True
    ParamNo = 1

    For each Value in MyValueList
    If Not FirstValue Then
    sql &= ","
    Else
    FirstValue = False
    End If

    sql &= "@Param_" & i
    cmd.Parameters.AddWithValue("@Param_" & i,Value)
    ParamNo += 1
    Next

    sql &= ")"

    Since there is no user input used in generating the query, you can never have an SQL inection attack, and still use dynamic queries. There are ways to do dynamic queries, without opening yourself up to attacks.

  3. Re:Confession time on OpenOffice 3.2 Released · · Score: 4, Insightful

    Nobody is as bad as the Windows XP Search dog. Why would I want a dog helping me find files. This whole idea of little characters popping up to help me is kind of demeaning, but having a dog help me is just terrible. I think they should really try to have a more professional image. There should be no cartoon characters popping up, especially on the XP Professional version. If it was Windows XP Kids edition I could understand, but I think it just makes the product look like a joke.

  4. Re:Just Faster??? I wish I was just Richer!!! on OpenOffice 3.2 Released · · Score: 4, Insightful

    I don't think I've used any new features for a word processor since WordPerfect 5.1. That had just about everything I needed. For 99.9999% of the population, OpenOffice is more than enough. I think that MS will have a hard time maintaining market share in the next 30 years on the desktop market. Software is just becoming too much of a commodity. Easily replaced by free alternatives. Obviously the change isn't going to happen overnight, but over the long term, there's no way that MS can keep on charging for upgrades to software when software with the same features can be had for free.

  5. Re:Why redirect them? on Is Internet Explorer 6/7 Support Required Now? · · Score: 1

    But that's the point. In the end, is it cheaper for every web developer in the world to spend time and money supporting old browser, or is it cheaper for the few organizations who still use IE to upgrade. I would say that it much cheaper over all for the companies that do use IE 6 to upgrade, then for all the other companies go on supporting IE6 for the next 10 years.

  6. Re:Mates in another country on SourceForge Removes Blanket Blocking · · Score: 2, Insightful

    Or any of the millions of the completely open proxy servers.

  7. Re:it still comes down to one thing on Gaining Root Access On Linux-Based Femtocells · · Score: 2, Interesting

    Maybe they could give a custom password to each device, and then have their assembly line print out the default password on the bottom of the device. They already print a serial number. Why not print a password? Each device would have a different default password. You may want to keep a highly guarded list of passwords/serial numbers for customer support issues, but if it's printed on the bottom of the device, I would say even that is unnecessary.

  8. Re:Ah, yes, one of the modern evils... on Electric Bicycles Surging In Popularity · · Score: 1

    Which is quite funny, because most cyclists can do 30 km/h (18 mph) on flat ground easily. Why they would limit electric bikes to be slower than regular pedal bikes is beyond me.

  9. Re:Ah, yes, one of the modern evils... on Electric Bicycles Surging In Popularity · · Score: 1

    We don't own a car, so here's how we do the shopping for our family of 4. Once a month we do a large groceries with all the canned goods, and other non-perishables, along with frozen foods, and get it delivered. Costs $8 for delivery, but it's cheaper than owning a car. The other weeks we only need to pick up fresh veggies, meat, bread, eggs and a couple other necessities. This can all be carried in a couple bags. We're not poor or anything. Just that we've chosen to do without a car, because cars cost a lot of money, and for the 1 or 2 times a week that we would end up using it, it just isn't worth it.

  10. Dont make it too important on Chemistry Tasks For the Computer Lab? · · Score: 5, Insightful

    Don't make the use of computers too important. While I think computers could help the course, we have to point out that this is highschool, and you really should be sticking to the basics. Unless you have some specialized software for showing specific chemical concepts, like how different atoms form different molecules, or something like that, I don't think computers have much place in the class. They should be doing real experiments. Maybe using excel or other spreadsheet to record and graph their results would be useful, with some curve fitting too. But beyond that, I think making too much use of computers will just stress students who aren't computer savvy with learning one extra thing, and distract from the information actually being taught. Short story here. When I was in university, I knew a girl taking chemical engineering, and in one course the needed to to VBA for Excel for one of their assignments. For students who hadn't done any programming apart from a single semester of C in the first semester, it was quite a task to expect them to program, and to understand the material of the assignment. Maybe kids are different now, and they are all geniuses on computers, and have no problems working with them. But I doubt it. Most kids probably won't have problems with MS Word or MSN Messenger, but probably will get quite tripped up by trying to use excel with formulas and charting.

  11. Re:Headaches... on 1Gbps Optical Wireless Network Might Replace Wi-Fi · · Score: 1

    I remember our family got or first 386 system and it cost at least $2000. I think the only reason we got one was because my step-father's employee (a mine) had a deal where they would sell you a computer and just take a little off your paycheck every month. I think half the town got a computer out of that deal. These computers were good, but definitely not top of the line or anything. Now you can get a computer for $500, that will basically do anything that anybody will want to do, apart from playing some of the more resource intensive games.

  12. Re:Or, you could just use cables on 1Gbps Optical Wireless Network Might Replace Wi-Fi · · Score: 1

    We already tried this. It was called irda. That's right. Infra red data transfer. Palm pilots used to support it back in the day. A lot of laptops had it also. It wasn't a bad thing. About the same speed as a serial port, which was the standard back then anyway. If you need 1 GBPS speeds, and you have to be in the same room, you might as well use cables. That way, you can get 1 GBPS x Number of cables, whereas things travelling over the electromagnetic spectrum seem to always have problems with interference, so the bandwidth has to be shared. I can't think of too many devices where I would need 1 GBPS transfer speeds, but where I couldn't bother with a cable.

  13. Re:Internet play is a huge factor on How Do You Measure a Game's Worth? · · Score: 1

    Might be worth checking out Mario Kart Wii. It has online play, without any communication between the players. This I think, has all the advantages with none of the disadvantages. Firstly, you get to play real people, which is almost always better than playing against the computer, and you don't have to listen to people shouting garbage while playing.

  14. Re:Enter the Matrix was OK... on Failed Games That Damaged Or Killed Their Companies · · Score: 1

    I found that the "Cars" game pretty good. Quite fun to play actually. Not sure if it was worth the price of a full game, but overall it wasn't bad. Some sites agree and give it a good rating.

  15. Re:This makes perfect sense on Google Phone Could Drive Apple Into Allegiance With Microsoft · · Score: 4, Insightful

    Sorry, but any search engine that requires me to download a browser extension gets an automatic fail in my opinion.

  16. Re:Would be nice outside USA on Nintendo Wii To Get Netflix Streaming · · Score: 1

    The fact that iTunes allows you to rent and buy digital movies makes me think that it's more to do with licensing and companies not wanting to deal with the Canadian market, moreso than anything to do with the CRTC. Do you have any information to back up that the CRTC is causing problems?

  17. Re:American youth have it easy. on US Youth Have Serious Mental Health Issues · · Score: 1

    I grew up in a small town in Ontario in the 80's/90's. Nobody there was particularly bad off, in fact, most families had quite a bit of money. I still don't remember it making a different which clothes you wore, or which cool toys you had. Rich kids hung out with poor kids, and nobody really cared. I'm not sure when things changed, or why money matters so much now. I don't know if it's to do with the parenting, or marketing, or what, but I do feel that things have changed.

  18. Re:Power Corrupts... on Do IT Pros Abuse Their Power? · · Score: 3, Interesting

    CA's aren't supposed to guarantee that their customers are trustworthy. The only thing a certificate is for is to verify that internet traffic is coming from who it says it's coming from. That's it. Nothing more, nothing less. Nothing says you can't get a virus from only going to SSL sites. You can get an ssl cert for as little as $15 these days. Basically it's just a big cash grabs by the CAs. They don't actually have to verify that the site in question is using their cert for good, but just that they are who they say they are.

  19. Re:Why not? on Thorium, the Next Nuclear Fuel? · · Score: 1

    Even you count in the scale, there's been a lot more total deaths due to car crashes or airliner crashes than with nuclear plants. France gets 78% of their power from nuclear, yet the only accident I could find was 3 workers getting confined due to not using proper safety equipment. Probably a lot less than the problems we get with coal based power.

  20. Re:Getting off the train to crazytown on Google Chrome Displaces Safari As Third In Survey · · Score: 1

    MS has been making some good moves. Silverlight is probably their biggest problem right now as far as interoperability goes, and even then there's moonlight. But other than that, they seem to be moving forward on standards. Don't they actually use JQuery as part of their standard web app development package. They realize they aren't the only browser in town anymore, and they are making big inroads in web app development to make people want to use their platform including open sourcing ASP.Net MVC. They are a quite far from where they were in the old days with ActiveX. I don't even think they want people to go that route anymore. They realize they will have to embrace openness to compete on the web.

  21. Re:Why not? on Thorium, the Next Nuclear Fuel? · · Score: 1

    Yes but by that logic, we should ground all the planes, or stop using cars because there have been some disasters. Important things are to learn from our mistakes, and ensure that the same mistakes do not happen again. Cars get safer all the time because we use them, we learn new things, and we make them safer. Seat belts, air bags, crumple zones are all examples of this. We would have never discovered any of these things if it weren't for the fact that we drove cars. If we refuse to make any nuclear power plants, we can never learn to make them better.

  22. Re:What do you expect. on Novelist Blames Piracy On Open Source Culture · · Score: 1

    Did anybody stop to think about what this statistic means. People with eBook readers buy 3.1 times as many books as non-ebook owners. So, what it really says to me, as that people who are interested in reading enough to go out and buy a $200-$400 device to read books on read more books than people who aren't interested enough in reading to spend $200-$400 on a device to read books on. Basiscally it's nothing new. People who like to read books bought a device to read books on. And eBook sales went up because we finally have a couple of really good ebook readers around. And a lot more places to buy ebooks from. So all I see is people who are interested in reading, moving over to reading ebook as well.

  23. Re:360? on Ten Gadgets That Defined the Decade · · Score: 1

    The fact that you need an ethernet cable says it all. Nobody has ethernet in their living room. Had they fully thought out their console, they would have given it wireless networking.

  24. Re:Madness on Geoengineering a Snow-Free Winter Fails In Moscow · · Score: 1

    Lots of ski resorts have little side hills where you can go toboganning. Most of the places are actually tubing, where you sit on an inflated tube and go down the hill. There's even some hills that offer only tubing. A rope tows you up the top, and some hills have moving walkways. Lots of fun for everyone.

  25. Re:Too bad we don't have rules to deal with this on Midwest Seeing Red Over 'Green' Traffic Lights · · Score: 3, Insightful

    Living with snow is easy to deal with. Just put some good snow tires on your car, and dress warm. I'd take a winter blizzard anyday over even having the possibility of hurricanes.