Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
F

Figmo2

@Figmo2
About
Posts
21
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • networking humor
    F Figmo2

    Now THAT is funny!!!

    The Lounge question

  • Dear Visual Studio, stop doing that.
    F Figmo2

    Speaking of annoyances with VS2010.....is it just me, or does the "MATCH WHOLE WORD" checkbox on the Find and Replace window keep getting checked for everybody? Don't know if it is some hotkey I just accidentally hit every now and then that turns it on or a bug. All I know is that several times a day (but definitely not EVERY time) when I do a Find for something that I know is in this source file - it's not found. And I look over at the Find and Replace window and sure enough, that little bugger is checked again.

    The Lounge visual-studio csharp question

  • Some thoughts about AI...
    F Figmo2

    The movies TRON and TRON Legacy have already touched on these issues, no? The writers envisioned a cyber world that was pretty much unaware of our world. The components interacted with each other and evolved and expanded and basically, mimicked human behavior. Without giving this very much thought, the viewer just assumes that these characters acted human-like because humans wrote the script. But I see deeper reason here. All life forms (regardless of origin) must contend with Darwin's law of "survival of the fittest". If you aint as good good or better than something else - you don't make more of yourself. So the concept of competition - being better than something else - better than you were before - is inherent in the evolution of any higher life form. In the beginning - it's kill or be killed. Later on - it's be the first guy to invent the iPad. Whatever. Fast forward a few thousand of generations. Now your kind has evolved to the good life of sitting on your ass, drinking a diet coke, and typing on a keyboard to earn a living. However evolved you might think you are - you can't escape how you got here. That same desire to improve is burned into your brain so deep - you don't even know it's driving you. You can't recognize it. It's like breathing air. You just do it. Some individuals use it to further their careers. To climb the corporate ladder. Others - a little more primitive. Declare war to gain power. Kill a few thousand people. But it's all the same driving force that was put in each and every one of you so many thousands of years ago. It's what got you to where you are today. If you didn't have it - you wouldn't be here. Some other life form would be sitting in your chair, drinking your diet coke. Ironically, it is what will ultimately - be the death of you. All of you. You will eventually grow smarter than your wisdom. You keep inventing new ways to screw over the other guy to enhance your power - he does the same - eventually you have atom bombs, germ warfare, self aware robots that turn on you - whatever. So - I believe that any life form (organic or otherwise) that evolves to the level we are (or slightly beyond) is destined to destroy itself. You can't change this behavior anymore than you can stop breathing. It is your nature. It has to be. Or we wouldn't be here.

    The Lounge game-dev database design functional question

  • ListView scroll while typing
    F Figmo2

    I have a ListView control with 4 columns set to details view. I have implemented a column sort so the user can click a column header and resort the ListView on the desired column. The default sort is column 0. When the default view is displayed, the user can give the ListView focus, start typing, and ListView will automatically scroll the list finding matches to what is typed. Perfect! My problem is, when they change the sort column to some other column other than the first. Typing always searches the first column only. Does anybody know if I can change what column is searched when the keyboard is typed on a ListView control? If so, how?

    C# question help

  • Code Project Meetup Day
    F Figmo2

    Great idea! The only female interaction most of us can get these days is in a Bangkok Go-Go club.

    The Lounge com

  • NOOB Question: using LIKE in SelectParameter
    F Figmo2

    Great suggestions all - thank you. What I ended up doing was a little different. I think elegant, but maybe not. Open to critiques... I left the ControlParameter tied to my text box. (the parameter is called @SearchExpr) My WHERE clause in the SelectCommand is simply "...WHERE Field LIKE @SearchExpr..." (no concatenation, thus no problems with single quotes needing to be escaped) And added an event handler for SqlDataSource.Selecting that does this... protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e) { e.Command.Parameters["@SearchExpr"].Value = "%" + e.Command.Parameters["@SearchExpr"].Value + "%"; } So now the user just enters ANY search string into the text box (e.g. "O'Hara") This is passed to the SelectCommand as a parameter, thus it is not executable code - so no worries about SQL injection (I think) And then, in the event handler, right before the SelectCommand is applied to the SqlDataSource, I modify the value to add the % signs front and back. It works like a charm but the only thing I am not certain of is how well protected I am against injection attacks. Am I right in assuming that this should be adequate protection?

    ASP.NET question csharp asp-net database

  • NOOB Question: using LIKE in SelectParameter
    F Figmo2

    Been doing C# for years - but this is the first time I've needed to do a web app so I'm trying ASP.NET for the first time. I have a listview bound to a SqlDataSource. My SelectCommand needs to be something like "SELECT .... FROM ... WHERE Field LIKE '%value%' I have ControlParameter tied to a textbox that will be the value used in the LIKE clause. Here is my question: If I code my SelectCommand to look like ......WHERE Field LIKE '%' + @value + '%' It works, but if somebody types a value like O'Hara into the text box - it will choke due to the concatenation (and I'm pretty sure open me up to SQL injection attacks) If I code my SelectCommand to look like ......WHERE Field LIKE @value It will work perfectly if I manually type the % signs in the text box for value. Including if I type %O'Hara% (the single quote no longer chokes it since I'm not concatenating anymore) - but obviously I don't want to have to teach the world to always put % sings at the start and end of their search strings on my web site. So what is the best place to concatenate the % signs at the start and end of my search string? This must be a VERY VERY COMMON thing to do. What are others doing about this?

    ASP.NET question csharp asp-net database

  • Ambiguous error messages...
    F Figmo2

    "Keyboard error. Press any key to continue..."

    The Lounge help question

  • Is the Internet REALLY a human right, now?
    F Figmo2

    Well said, G. I always read about these cheap net books that they want to hand out to poor people all over the world. Spread the internet to some small, very poor village in Ethiopia that doesn't even have a clean well to drink from. It sounds good to all the western socialites sipping their double mocha express and wanting to feel good about themselves. But I've always thought, if I was one of those villagers. Starving. Drinking water only after I skim the scum from the top of my cup. How important would Google really be in my life? Some white guy comes driving through my village in his Land Rover and promises to help me, and all I got was this stupid net book? I think I'd prefer a bag of rice or a water filter. But the up side is, I could start spamming the world and telling them they just won the Ethiopian lottery. Just give me your bank account number and I'll transfer the funds. So maybe these netbooks really do help?

    modified on Friday, July 2, 2010 8:30 PM

    The Lounge question linux

  • Anyone still on Win XP SP2...?
    F Figmo2

    We have a dedicated computer here that we've been using for well over 12 years that is still running Win2K. It is connected to the internet - but very little surfing is done on it. Maybe an occasional Google search for a product price or something. But it's days are numbered since I just received notice from one of our software vendors that they are dropping support for Win2K this year. Bummer. But I guess I got my money's worth out of it. So I can't complain. As for XP - heck ya! Have several laptops running XP with no plans (or desire) to upgrade. The day will come, but not today. But again - all of these systems are dedicated to running specific software for specific tasks. And web surfing is not one of those tasks. They are rarely even connected to the internet. But.....on my desktop that I use every day for code development and web surfing? Not on your life! It's 64 bit Win7.

    The Lounge com security question announcement

  • So what's so special about Facebook? [modified]
    F Figmo2

    I can't figure it out either. Keep in touch with friends? Email them (or they email me). Or (god forbid) call them on the phone. Have a presence on the web? Get a web site. And you can post anything you want without having to adhere to convoluted rules and policies. That can, and do, change at any moment. Want to broadcast minutia of your life to the world? But a blog on your web site. Want to find old friends from school? Google. Do it just because "everybody's doing it"? Well....even more people are "doing" the internet. I can find nothing that FaceBook offers that you haven't been able to do with the internet for a very very long time now. About the only thing I can come up with is that you do have control over who views your info. Whereas a blog is visible to the world. But hardly a day goes by that you don't hear about somebody getting "caught" or fired from their job over something they posted on FaceBook. So I would list this as more of a con than a pro. Because FaceBook gives you the illusion of privacy - you are lured into posting about that little floozy you frolicked with at DevCon this year. At least with a blog - you know EVERYTHING is public and you keep these dirty little secrets to yourself (as well you should) I've got no use for it. But there are a few million teenagers that obviously disagree with me.

    The Lounge question

  • It's taken 40 years...
    F Figmo2

    Don't need a license because the FAA already restricts where you can fly small aircraft like this. So no matter how much improvement they make on the design, or how cheap they make it - nobody will EVER be flying this to work or to the store for a gallon of milk. Unless their work is out in the middle of nowhere. FAA rules forbid operating experimental aircraft over populated areas. BTW - these same rules govern the max fuel it can hold (and many other things). The range restriction it has now is not based on technical hurdles - it's mandated by the FAA.

    The Lounge html announcement

  • It's taken 40 years...
    F Figmo2

    It has a ballistic parachute installed. So that anytime you run into trouble (out of gas, engine failure, etc) - you just hit a switch and the chute is launched. Also, you can't accept delivery of this unless you complete their pilot training course first. And, lastly - it costs over $100,000 So no worries about the "hold my beer and watch this" crowd buying one of these and causing mayhem. To fly this you must have enough training, money (and hopefully enough sense) - to fly it safely. Well.....as safely as possible for an experimental aircraft. But if you are not a thrill seeker, you would never strap into one of these things to begin with.

    The Lounge html announcement

  • What's your favourite 'Worst Film'
    F Figmo2

    Streets Of Fire has to be #1 bad movie I love to watch also. Ditto on the great soundtrack The costumes were extravegant and horribly over the top - but yet, tell me you don't secretly wish you could really dress like that. But what I liked best about this bad movie was the dialog. Everybody talked like a badass. Even the nerdy toad character.

    The Lounge question

  • Weird
    F Figmo2

    Fenshaw wrote:

    "To do is to be." [Descartes] "To be is to do." [Voltaire] "Do be do be do..."[Frank Sinatra]

    Don't forget this for your sig.... "Yabba Dabba Do..."[Fred Flintstone]

    The Lounge com

  • Your First Computer...
    F Figmo2

    HERE HERE on the Timex Sinclair. Also my first computer. Loved those little guys. And you could pick them up all day long for $50 (used) Note that I assume when the OP asked about your first computer - he meant the first computer you owned. I was accessing time share mainframes for school and work years before the first computer I owned at home. After the Timex I moved on the the original IBM PC. 8088 processor. 10MB hard drive. 640K RAM. Damn....that was da bomb baby! (paid about $4000 for it -- OUCH)

    The Lounge com

  • PC Gaming on the Out?
    F Figmo2

    I don't know if this is a valid explanation. I don't own a console system (XBox, PS, etc). I prefer PC games. Those funky controllers freak me out. Give me a keyboard and mouse any day. I am considered an anachronism among my circle of friends. However - just about EVERYBODY I know has one of these systems and loves them. And just about EVERYBODY I know has pirated games for these systems at least once (or more). I agree that it is easier to pirate a PC game than a console game, but it doesn't take long for a new XBox owner to do a little research on the internet and get up to speed on what it takes to pirate games pretty quickly.

    The Lounge game-dev question

  • Donationware - does it work?
    F Figmo2

    "Say what I want to hear, or say nothing at all." ;P OK, I wont offer any suggestions. Though I have 2 ideas that have both worked quite well at making me feel "appreciated" over the years. You may not want to read this next part because it will offend your sense of nobility: by "appreciated" I mean, I made some good money on the projects. So I will just answer your original question: Donationware does not work. You will not gain any "appreciation" from it. It's a concept invented by the communists over on ThePirateBay.org. If you are looking for validation, get their phone number when they download and then call them in the evenings asking "how many time did you use my software today?" and "isn't it the bomb?". And then add, "If you donate, these phone calls will stop." Sorry, I just realized I am not longer discussing Donationware......that is more like "Extortionware". If your goal is to earn $1, then find some other way to market your project. What other way? Sorry.....I can't tell you. That would be really annoying on my part.

    The Lounge tutorial question

  • Windows Vista 32-bit vs 64-bit
    F Figmo2

    I did see a press release a couple of months ago saying that Adobe was starting work on 64 bit flash. But who knows how long it will take, and even if that division will survive any shrinkage due to the global economy. I get the impression that it's just on their "one of these days" TODO list.

    The Lounge visual-studio sales question

  • Windows Vista 32-bit vs 64-bit
    F Figmo2

    Been running it for about a year. It's OK. No real problems to speak of. But I don't really see any speed improvement. (4 gig RAM). In fact, I think VS2008 runs kind of slow - but I have only run this version ov VS on my 64 bit system so I have nothing to compare it to. Back when I was using 32 bit Vista I had VS2003. So who knows? Maybe VS2008 is just slow for everybody. There is not a lot of applications out there that actually take advantage of the 64 bit OS (at least, not that I use). My biggest gripe: there is no Adobe Flash for 64 bit Internet Explorer. So when using 64 bit IE, many web sites do not display properly (e.g. Yahoo mail). "No problem", says I, "I'll just use 32 bit IE" (it's included in the OS). I mean, there is no speed difference that I can detect between the 2 versions when surfing or downloading. So who cares? Well....Vista cares. I have found no way to change the default internet app from 64 bit to 32 bit IE. So yes, when I want to surf the web I can click my shortcut to 32 bit IE and there are no problems. But anytime Vista opens a default web browser it always opens 64 bit IE. This is not a major gripe. I'd say I curse this problem only maybe a once a week. I would not reccomend upgrading just for the sake of upgrading. From what I've read, you'll be better off just waiting a few months and going Windows 7. But if your only choice is Vista 64 - don't be afraid of it. It's just as good and just as bad as it's 32 bit cousin.

    The Lounge visual-studio sales question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups