tips-and-tricks

Resources & tips for beginning with Silverlight

I recently found out that I will be part of a project that will use Silverlight. Since I will be doing interface design for this application I was wondering if I could get help with some tips & resources. So what are the tips that you wish you had gotten when you started with Silverlight? And what resources have you found valuable for ...

Windows macro recording tool?

I find it really useful to record temporary keyboard macros to help with day to day programming tasks. For example, sometimes I need to convert some data into one time use SQL INSERT statements, or re-format some ugly SQL (usually generated by SSMS) into something prettier. SQL Server Management Studio doesn't do macros, and the macro ...

python ? (conditional/ternary) operator for assignments

C and many other languages have a conditional (aka ternary) operator. This allows you to make very terse choices between two values based on the truth of a condition, which makes expressions, including assignments, very concise. I miss this because I find that my code has lots of conditional assignments that take four lines in Python: ...

brainstorming about speed on internet from the perspective of developer

for those of us who are developers, the main concern above all is speed, speed and speed. i have spend years developing a websites from those little ones to big stores, web applications and so on. but my main goal besides a lot of other things :) was speed, so what technologies currently available and what best practices should be used ...

Open a file at line with "filename:line" syntax

Very often, compilations errors are displayed with the file:line syntax. It would be nice to copy-paste this directly to open the file at the right ligne. Emacs already has some mode to handle this in buffers (compile-mode, iirc), but I would like to have this available from the shell command line, since I use the standard shell most ...

PHP ideas specialization for performance

What kind of ideas or tips and tricks do you have in order to boost PHP performance. Something like, I use: $str = 'my string'; if(isset($str[3]) Instead of: if(strlen($str) > 3) Which is a bit faster. Or storing values as keys instead of vars in array, makes searching if key exists much faster. Hence using isset($arr[$key]...

bash trick to copy files to a previously visited directory

here's the scenerio - you are in bash :~/dirA$cd /dirb :/dirb$cp filex __here_i_want_trick_to_reference_dirA example of a similar trick is "cd -", which puts you into the previously visited directory. I want this because, in reality, the paths I am dealing with are huge and I'm looking for a shortcut. furthermore, a trick which h...

Visual Studio 2010 Optimization & Tips?

I've noticed Visual Studio 2010 is a lot slower than my Visual Studio 2008 EDI, I've found several nice tips and optimization suggestions for VS2008, however I want to know if people have any tips for me and VS2010 ...

Entity Framework Tips, Tricks and Gotchas

Are there any ? ...

Visual Basic Tips and Tricks

Please share your VB tips and tricks such as Syntax, Optimization or General Development etc. ...

Tips for NetBeans to speed up development

i am looking for tips (eg. keyboard shortcuts/features/tips) that you use to speed up development in netbeans. i mainly develop in HTML, CSS, JS (jQuery) PHP so specific to those will be great ...

Tips for Aptana Studio 3 to speed up development

i am looking for tips (eg. keyboard shortcuts/features/tips) that you use to speed up development in Aptana Studio 3. i mainly develop in * HTML, CSS, JS (jQuery) * PHP so specific to those will be great ...

g++ duplicate symbol error when working with templates (noob question)

Hi, So I'm trying to pick C++, and to do so I decided to write a generic Group class using templates, that takes a Type and size as template parameters: in group.h: #ifndef __GROUP_H #define __GROUP_H #define MAX_SIZE 10 /********************************************************** * Define a Group class that handles a collection of m...

What is your favorite PHP programming trick?

what are your favorite PHP programming trick(s)? I myself like Resession (Session Manager) ...

Create hierarchical anonymous type

Is there any way to create anonymous type that references instances of itself? var root = new { Name = "Root", Parent = ??? }; var child = new { Name = "Child", Parent = root }; var childOfChild = new { Name = "Grand child", Parent = child }; For example, we can reference delegate from itself: Action run = null; run = () => run(); ...

Non Destructive WYSIWYG editor?

I am looking for a very user friendly WYSIWYG for text-areas, that leave the text-area intact, to allow normal JavaScript validation. I have tried tinymce and it is not easy to do that. I am currently using of the markdown wmd, but because it displays in the text-area, my target audience is clueless about how it works. Any tips or reso...

switching technologies : good or bad ?

Hi, I have had to work professionally on a few technologies/languages till today: C++, C#, directX, opengl and now ASP.net. I realize that I am MASTER of none but average-good at all of them. My question is that for a successful professional career, is it favorable to experience many different technologies or try and stick to one ? Wha...

organizing large pieces of code

I was wondering what methods of code organization stackoverflow users use. I have a sporadic thought process and as a result my code can start to look messy and over whelming. Any tips ? ...

How can I Make a dynamic website with Google App Engine

Recently I've been very interested with GWT and Google App Engine. Although I know little of the latter, I think I have a basic understanding of what is it. From what I've read (and using my novice computer science comprehension) I've come up with: Google App engine is a service that allows you to host your code on Google servers. Once...

Unwanted ftp surprises

Sometimes, when I upload files to ftp, and then download them, I face with some "unwanted tricks" inside gotten files. Initial file: <ul> <li><a href="#">Home</a></li> <li><a href="#">Works</a></li> <li><a href="#">About</a></li> <li><a href="#">Docs</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Forums</a></li> </ul> 2...