I am almost offended by calling JavaScript a language. It has little structure or syntax and is almost completely unmaintainable by anyone except the one who originally wrote the code. I can't imagine being completely dependant on this mess for LOB applications. I have to try to maintain JS code daily and daily I curse the devs who came before me.
Dave Buhl
Posts
-
What If -
SQL or Sequal?Depends on what camp you are in. If you are working with Microsoft tech, their documentation actually identifies the pronounciation as Sequal. If you are working in Oracle/MySQL they specify in their documentation that you pronounce each letter as S Q L. In the big picture, as long as Select * from table works.......
-
Reliable and affordable hosting companyI use Mochahost and have not had a problem. Their packages are pretty well built out and reasonable. I have had really good service from customer support as well. They are based out of US west coast though if that matters to you. http://www.mochahost.com/[^]
-
IE9 Release CandidateGood points, and don't misconstrue, I am not saying because I don't use the add ons that others wouldn't find them useful/essential. I am just saying that the 20 year olds I know are more likely to be using the add ons than the 30+ folks. And at least right now, the 30+ crowd is the larger audience. I really don't advocate any one browser over another. Use what you like, or what fits your style but don't put everything else down. Here is another analogy for you. Lets take a car company X that has been around for ages. Company X makes very reliable cars and has a large customer base. Company Y is new on the scene and puts out 5 new models every year each one more flashy than the last and top speed gets higher in each model. Company Y gets the young crowd interested but the folks who have been around for a while sit back and watch while sticking with company X for now. They know that the flash wears off and the speed limit won't let you use all the speed that might be available in your new expensive flashy Y car. As company Y matures (if they are able to survive) the flash starts to become less, the engineering into latest greatest drops off to a slow crawl and reliability improves drawing a larger audience. Zealotry in the browser wars, or OS wars, or Automobile wars may be human nature but is not logical purely emotional. If you enjoy Y, great but that does not mean that X is terrible, just different. If you live on the bleeding edge you get cut more often than everyone else.
-
IE9 Release CandidateWhen you are a company as big as Microsoft with a history as long as Microsoft and a product chain with the market share of Microsoft where people are not compelled to use the latest version, a lot of effort has to go into making sure that you maintain backwards compatibility. And when there is a time that comes to break the backwards compatibility chain, the legal team gets involved in the whole bureacratic nightmare as well. And what about security issues? The more the browser interacts with the local system the more security issues that come up, and while noone would think of trying to litigate against an open source project, Microsoft is considered the lottery by many. The latest greatest is not what gets market share, most real world users still barely know how to get on the internet with an always on connection. The users are becoming more sophisticated but by and large the largest user group is not. So, take some things into consideration before trying to demonize.
-
IE9 Release CandidateMeh.... I've used FireFox, Chrome, Opera, Safari, Netscape Navigator, ..... but usually fall back to IE (latest released version). I am typically a Desktop App with DB dev and dabble in Silverlight/ASP.Net. I rarely come across things that don't work for me in any browser and really don't use all the add ons. In my opinion, much of the war is just hype fueled by Professors in university drilling it in everyones head that anything Microsoft is EVIL. Ho Hum. Bores me to sleep. If IE was exactly like Chrome was exactly like Firefox what would be the point? enjoy the diversity and if you want the majority of real world users to be able to use your web apps, ensure your pages work on the browser most likely to be used to visit your site rather than your personal favorite. "Web Standards" aren't really standard, they have been in flux since the first attempt and probably always will be if progress is to be made.
-
VS 2008, or VS2010I'm using both VS 2008 and VS 2010 for different projects so I can compare the differences and I have to say that I have not experienced the problems some folks are reporting here. I do not have add ons except for tortise svn and ankhsvn so perhaps that is the difference. My machine is a Quad Core Intel with 8 GB ram and I am running VS in Virtual Box machines with windows 7 ultimate for the OS and fully patched (both OS ad VS). As far as why you should choose. That depends on what you are developing. If you are doing WPF or Silverlight development, I would recommend VS2010 simply because the designers are much easier to work with and a great productivity boost. If you are doing Win Forms or ASP.NET development, it really doesn't matter much although there are some things you would find a bit different/easier depending on how set in your ways you are. Beyond that it comes down to cost. If you are not doing WPF/Silverlight and not planning to in the near future it would not be cost effective to upgrade if you already have the 2008 licenses. If you are starting from scratch, definitely go for 2010. After working with both versions side by side since the release of 2010, I really prefer VS 2010 but both versions are capable. I like some of the wizards and templates to get a project up and running quickly though YMMV. <<<>>>> I work in C# and vary rarely VB.NET when forced.
-
A real source file shredder?Additional thoughts, if you are talking about securely deleting source files from you development machine you also have to track any temporary file copies that your IDE makes and overwrite those drive locations as well. The problem there becomes that these temporary files would have to be tracked and erased from the start or you would have to have a good method of looking back through the file structure to see what is recoverable (like a file recovery tool does) and then overwrite them then. And I belive that Solid State Drives like thumb drives behave differently than standard spinning hard disk drives making the overwrite method not work as effectively but I can not find the reference to the article I read about that.
-
The Code Project Reputation Hotline - A sample Azure telephony application [modified]Definitely agree with you. I live in the US and have VOIP telephone but many if not most of my friends and family still use POTS telephone through the local telco. Granted most also have a cell phone but pay the cheaper rate that charges for long distance calls. The 20somethings that are buried in their iPhone and Facebook is a good size of the people on the planet but not the majority by a long shot. Some of us have been around a bit longer and still have reservations about new-fangled techie things. I personally love gadgets but have a foot in the past too.
-
Genericize access to variablesThis is not exactly what you were asking for but is an alternative using binding. This may be overkill for what you are trying to do but it would be more elegant. Bind your labels as you create them to an object of a class that implements INotifyChanged then when you change the property of the object each label will be updated without having to work loops. http://stackoverflow.com/questions/639894[^] Dave
-
How to auto-select a newly added row in the DataGrid? [modified]This may work for you assuming you are dynamically generating your sql and submitting through an ADO query object. Add a statement such as "Select Scope_Identity() From Table MyTable;" to the end of your dynamic sql. Then instead of submitting as ExecuteNonQuery(), run it as a regular query and the return value should be the row you added. ymmv
-
How to auto-select a newly added row in the DataGrid? [modified]I am making a couple of assumptions here that may or may not be accurate. 1. Your datastore is a SQL database 2. You have no identity column (primary key is one type of identity column). Without an identity column defined, SQL databases methods to return the last inserted record (@@identity or Scope_Identity()) will return NULL. Soooo you need another way to skin that cat. One way, and there could be many options would be to make a clone of your current datatable before refreshing the data from the database and then compare the records to find the new one. A way to do that would be something like:
datable1.merge(datatable2);
datatable3 = datatable2.GetChanges();Then you could find the row or rows from datatable3 in your table and make that or them your current selection. Hope this is helpful.
-
Cost of a tetanus shot in the USI put the citations together, and typed up a rather lenghty post with supporting information and decided that minds will not be changed and it would be a fruitless exchange. Believe what you will, or look at the facts. Either way, that you do not believe as I believe only proves that I do not believe as you believe and that is all it proves.
-
Cost of a tetanus shot in the USIf socialism is so much better, why does the world come to the US for help in all aspects of life. Any time there is a natural disaster 80% of the aid comes from the US. Any time a dictator invades his neighbors, the US sends 90% of the military force to help push them back. (not just Iraq but look back over the last 100 years) And why if socialized medicine is so great do people from all over Europe and Canada, and the rest of the world come to the US for specialized care. Socializing any aspect of life takes away the drive for improvement. What reward can I possibly get from spending my life working towards making something better when the government thinks what we have is good enough. vis a vis the world coming to the US for better care. Beyond that, as crazy as our tax code is people in the US pay less tax than most first world countries and typically by 20%. No our system is not perfect but socializing is probably not the answer. Improving Medicare/Medicaid would go much further for a short term fix then would buy time to consider the costs of a further reaching program. The problem with what the Obama administration is doing is they are trying to eat the whole elephant in one bite. That also means they don't really know what they are getting into for the long run and if it fails we are all worse off than where we stand today.
-
What was the "Next Big Thing" when you started programming?OS2 really did kill DOS .... kinda sorta. OS2 was initially a joint venture between IBM and Microsoft. Late in the game, the Microsoft devs disappeared and before you know it NT hit the market (amazing like OS2 with some improvements). And the rest is history.
-
Do we really need Java runtime?Take off every zig!!![^] hahahaha
-
Toyota Acceleration IssuesGeneral reaction today in an emergency is to first Tweet "OMG I'm about to have an accident!" on the ubiquitous Jesus phone. Then think about how to avoid the accident.
-
Toyota Acceleration IssuesMythbusters actually did an episode on shifting to Park or Reverse while driving at highway speeds and what was discovered was that automatic transmissions have a protective feature that locks out park and reverse while in forward motion at damaging speeds. Instead what happens if you shift to park or reverse while driving is the car goes into a state such as if you had depressed the clutch on a manual transmission vehicle and the vehicle will lose forward momentum. I cant remember if the engine shut off, but i know no damage was caused due to the shifting.
-
Weven Starts Quarterly ValidationI also had a problem with a WIN XP Pro install back a ways. Someones key generator happened upon my key before I had even purchased the OS. Quick call to MS Activation Support, emailed reciept of purchase and I had a fresh key. Inconvenient, yes. End of the world, not hardly. There is no indication that MS would use a Genuine Advantage type system to disable older version of the OS to make you buy a new one. It is much more effective to call it end of life and stop providing updates/fixes. And if you chose to continue using the older version, well you are on your own. I still know of a couple Win 95 boxes in use out there today. I guess I'm not paranoid about our government doing anything stupid. Our military takes an oath to protect our constitution from all enemies whether foreign or domestic. They do not swear fealty to any person but to the people! And if our government ever tried to supplant the constitution, I have no doubt that would be quelled very quickly. And if the feds want to watch my packets flying around on the country's infrastructure I don't care because I am not breaking any laws and so it is unlikely that my information would end up anywhere but on the bit heap. Even with the cheap storage we have these days, there is no way to store every bit of transmitted information in any way that could be reliably recalled. So if you avoid questionable activities you will be ignored by big brother even if they were able to pass monitoring laws. Sometimes I just can't sit back and listen to the BS complaints about MS and have to call people on it. If people were stealing millions of dollars from your pocket each year, you would try to find ways to stop it too. And forget the argument that they have enough money. They employ thousands of folks to create and support the products we obviously want, and that has to be paid for somehow. I believe whole heartedly in capitalism and do not expect to get something for nothing.
-
Weven Starts Quarterly ValidationHmmmmm.... If you properly own your copy of Weven, why would you care? <rant> I am not a MS fanboy but as programmers I think we are all out here to make money for what we do. If you do not charge for your services, please let me know I can send some work your way and improve my profit margins. :) And as for bugs..... I doubt any of us have written a piece of software as widely used as Windows nor with nearly the required functionallity. I mean, FTW we require MS to make the current versions of their OS backward compatible with all of the old fail software/hardware paradigms that have been replaced by 5 generations of newer standards just in case someone might still have one that they just can't upgrade. And you should all know that anything can be exploited given the desire. OSX and Linux in all its variations are buggy and exploitable as well, they are just not attacked as hard because they are not in widespread use (as compared to windows). If OSX had the 90% market share, we would be seeing apple making weekly security patches. Get a grip and if you really disaprove of MS trying to cut down on people stealing their work then uninstall their products and make the wholesale switch to Linux and open source. Can't switch to OSX cause Apple is just as bad in different application of the same issue. </rant>