tips-and-tricks

How do I block Google adsense linking to files on my server?

Today I noticed that a few Google advertisements in an adsence block on one of my pages were trying to display a file called "/pagead/badge/checkout_999999.gif" from my server. I did a bit of investigating and found out that the companies behind these adverts use Google Checkout and "checkout_999999.gif" is supposed to be a tiny shopping...

How to bypass MDS-CS in BlackBerry?

I have sample tcp server running @ localhost:5050. Connecting to it from BlackBerry is via MDS-CS simulator,and it caches the data with max of 8192. From the Blackberry forums, i understood that, there is a way to bypass it directly to the server. Can anybody help me on this IDE : BlackBerry JDE 4.7.0 Platform : Vista Server : T...

How to install Visual Studio 2008 and MS SQL Server 2008 in Ubuntu ?

Hi guys, I would like to install Visual Studio 2008 and MS SQL Server 2008 on Ubuntu OS which I have in my PC, however, I don't know how. May I have some tips please? Thanks. ...

Are there any "undocumented features" in Silverlight?

I was wondering if there are any features in Silverlight 2 or 3 that aren't documented or are hidden very deep in the framework? Stuff that can be very helpful in some cases, but can be a pain to find. Are there any "hidden" gems? I'm thinking about stuff you normaly don't find in tutorials and in demos. For example, finding information...

Tips for becoming a better programmer...

Possible Duplicate: How to become a better programmer? Hello everyone, I will first give a somewhat brief background before I ask my question to put it in context... My first career was as an Electrician in the Navy for 8 years then followed by another 9 years of work as a robotic technician. During my stint as a robotics tec...

Building a Email sending application in C#

I got the assignment to unify and simplyfy the companies Email sendouts from their site, with the possibility to edit the emails them selves. So Im scetching on a C# Window Form application with WYSIWYG-editor to manage all the emails. The email is stored in SQL-DB But im in dire need of some tips and pointers on the logic of some of th...

SQL-Like Selects in Imperative Languages

I'm doing some coding at work in C++, and a lot of the things that I work on involve analyzing sets of data. Very often I need to select some elements from a STL container, and very frequently I wrote code like this: using std::vector; vector< int > numbers; for ( int i = -10; i <= 10; ++i ) { numbers.push_back( i ); } vector< int ...

What's your best tip on marketing your programming blog?

I've just started freelancing and with it I have created a blog which I will write about open source projects I'm involved in, tutorials etc. Why I started the blog market myself as a freelance developer. So I'm sitting down now and thinking about ways to market yourself. Here's what I have come up with: Join forces with other blogg...

Top tips for multithreading (Windows platform)

What are the tips you would offer to somebody who is developing a multithreaded application? The only ones I can think of are: Where it is avoidable, do not have multiple threads writing to the same data structure. Where this cannot be avoided, have critical sections so that the latecoming thread will wait until is complete. Avoid hav...

Javascript: Optimizing details for Critical/Highly Processed Javascript code

Hi, I've been looking through a lot of Javascript Optimizing and most of them talk about string concatenation and a few other big ones found here, but I figured there had to be more details that you can optimize for when speed is critical and the processing of those pieces of code is very high. Say you run this code for some reason: (u...

Hidden features of WPF and XAML?

Here is a large number of hidden features discussed for variety of languages. Now I am curious about some hidden features of XAML and WPF? One I have found is the header click event of a ListView <ListView x:Name='lv' Height="150" GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler"> The GridViewColumnHeader...

XCode Intellisense Question

I've always seem to work around this lack of knowledge but I thought I would ask the community. I hope this question will make sense. In XCode, when I call a function that has several parameter the intellisense pops up. When I hit TAB the first time, it takes me directly to the first parameter. How do I get to the next parameter easi...

What is the most under-valued part of .NET?

The .NET framework is massive. I've used it for years and I've still not used most of it. I'd like to expand my knowledge of the Framework's backwaters but just reading thought it seems daunting. So I thought I'd tap up the Stack Overflow community first. What part have you found to be the most surprisingly useful? What's your favouri...

What's the most practical way to have "functions in a dictionary" in Java?

Hello folks, When programming with C/C++ or Python I sometimes used to have a dictionary with references to functions according to the specified keys. However, I don't really know how to have the same -- or at the very least similar -- behavior in Java allowing me dynamic key-function (or method, in Java slang) association. Also, I did...

Color Reference: Where do you get your ideas?

I am the only dev in a very small IT shop and as such I have no one to turn to when it comes to the look of my applications. I am left to my own devices as to what looks good with what and what matches what. This got me wondering, where do other programmers get their color ideas? Am I the only programmer who likes all of his apps i...

Eclipse PDT "tips" ?

Hi ! (Yes, this is a quite opened and general and subjective question -- it's by design, cause I want tips you think are great !) I'm using Eclipse PDT 2.1 to work in PHP, either for small and/or big projects -- I've been doing so for quite some times, now, actually (since before 1.0 stable, if I remember well)... I was wondering if a...

Common mistakes for CSS-designers to avoid?

What are some of the most common mistakes made by CSS-Designers? ...

How to prepare my code for publishing?

I've been working on a project for a while, producing a small pile of code to do a specific task as a part of a larger framework. Now the time has come to publicly include this code in the framework. What do you suggest to do with the code before pushing it to the publicly available repository? How can I prepare it in a way to have the l...

3D Game Development tips (especially game architecture)

tl;dr version: What is the best advice (that you learned by experience and not from books) that you can give me, with regards to 3D game architecture? (as in, how to design and connect the components of a 3D game) When it comes to programming, there is only so much you can learn from books. It seems to me, many of the things learned a...

Project ideas for discrete mathematics course using MATLAB?

A professor asked me to help making a specification for a college project. By the time the students should know the basics of programming. The professor is a mathematician and has little experience in other programming languages, so it should really be in MATLAB. I would like some projects ideas. The project should last about 1 to 2 ...