techniques

Most Important Python Idioms

This question is inspired by several back-and-forths I've had recently about techniques that are or are not optimal for python programming. I may know other languages, but I am still learning in python. A wonderfully helpful comment was just recently posted by MikeD on a suboptimal answer of mine here that mentioned the operator module a...

Where and how is the term used WRAPPER in programming, what does it help to do ?

I come across software developers using the term of creating Wrappers of other classes or APIs or even some codes, this is a term used by experienced Software Programmers So any idea what do they mean by it; e.g. a simple question; we got two types of array sorting techniques, lets create a wrapper for it The above one is a very simpl...

Text on a picture, but like this one. How ?

I've made a pure PHP script that uses GD library to put text on an image, text entered from a HTML form. The problem is that i can't give the user the possibility to position the text properly. I've found this good example http://lolkot.ru/lolmixer/#1369, it allows users to play with the text very easily with the mouse ! How is this po...

Need suggestions/ideas for easy-to-use but secure captchas

To start with, I am well aware of the security/usability trade-off associated with captchas and do not need any explanation on that. I know that reCAPTCHA is the state-of-the-art in captcha technology but we just do not want to use it for our site because of the difficulty faced by users to read distorted words. Our site is a study por...

Zlib compresion technique in asp.net

I am new to .net. I created one website.I want to implement Zlib compression technique for compressing data in each every page, so that i can access open my website quickly.But i don't know where I have to write code for that and how to implement it. Can yo send me the sample application code or zip file. ...

What advantages does method chaining have over plain imperative method calls?

Look at this example code, from a Telerik MVC grid: <% Html.Telerik().Grid(Model.InstallerList) .Name("InstallerGrid") .DataKeys(key => key.Add(c => c.InstallerID)) .Columns(column => { column.Template(action => {%> <%= Html.ActionLink("Edit", "Edit", new{ id = action.InstallerID}) %> ...

48 minute technique for entering and sustaining programmer flow

I have been working at entering and sustaining periods of flow while working, and while researching the concept I came across this site which addressed the idea of sustaining flow in short bursts. The technique specifies that one sets a timer for 48 minutes in which they focus purely on their work, and when the timer runs out they spend ...

mobile asp.net techniques

What are your techniques to using mobile with asp.net, I know how to detect mobile but I'm stumped trying to find a good way to show my pages on a mobile device. I'm thinking of just doing a Multi-View and showing the mobile view when they are mobile, however that would not work with our masterpage unless I do same, I'd rather just have...

HTML - Auto navigation with Named Anchors #

well we can have name anchors in our page like the following code <!---Some HTML Code--> <a href="#Mark_1">Mark 1</a> <a href="#Mark_2">Mark 2</a> <!---After some HTML Code--> <a name="Mark_1"> <!---After some HTML Code--> <a name="Mark_2"> by doing so we provide links that to scroll up and down a page and all but I have seen seve...

java get duration from database

table structure: sysdurationtimeday , sysdurationtimehour, sysdurationtimeminute 1, 12,10 3, 23,10 0, 0,10 i have these 3 fields from database, after getting these 3 values, what is the technique that i can use do cast to which Java Object? (maybe Calendar.class, TimeStamp.class) ? and use it to compared with record is spent less th...

Which programming blogs are your hidden gems

Possible Duplicate: What are the best programming and development related Blogs? What are the best-quality hidden gem software development blogs that: Don't swamp the reader with 50 posts a day, but deliver more in the order of 3-5 per week Have a high S/N ratio in the sense that they educate with long-form and in-depth art...

Debugging Multiprocess Programs

What would be the best way to debug multi-process code (i.e. processes where parent process spawns multiple child daemon processes). So far I have been doing - Make sure the program runs fine in single process mode. After that turn on logging mechanism & try to figure out what might be going on in the logs etc... Are there any bette...

My own blog - is it a good idead?

I have few years of software development experience in classic vb, asp to ASP.net and vb.net. And at this moment exploring F# and MVC, Windows phone 7 in my spare time because my company is unlikely going to use this technologies in near future it doesn't take long time to understand and become relatively knowledgeable in these new tec...

Online Authentication Techniques

What online authentication services are available. I know about Live ID OpenID Are there any other major players. I am particularity interested in authentication federation so that we can log in once and use on multiple sites (if this is even possible). ...

Forgot Password Patterns or techniques? ¿pattern names?

I friend of mine just posted on Buzz a question: When you hit "Forgot your password" in most of the pages, they will send you an email with a link (most of the time it will expire after sometime) to reset your pass. In most cases that link includes something like a UUID. Is there a name for this technique? Making an expir...

Best approach to maintain session vars across multiple domains

I am building a tool-bar like umbrella system to link four different sites together and need to log in once from any of the sites but then allow access to all the other sites. There is also a lot of data I need to maintain between sessions. What would be the best approach for this? I have already wondered about just storing session in th...

HTML Standards and deviating browsers

Good evening everyone. This is a story anyone developing web applications is surely aware of - You create a site, which is well coded and elegant in the browser of your choice - until you run it in a different browser, which a lot of the time required hacking and slashing to create a functioning site. I wish to enquire the techniques u...

C# Memory leak, tracking techinques and tools.

The app I am writing is suffering quite dramatically from a memory leak. Pretty much the entire object model is staying in memory when a user closes down a loaded project. The way I know this is because closing a project in my app barely effects the memory usage in the task manager and then opening a new project almost makes it double ...

Limiting Form Submissions by Time

This is not language specific. What are the best methods to limit how many times a person may submit a web form, not knowing any info about that person. Example: Voting for the all star game online, only allowed 1 per 24 hour cycle. Something where you don't have to "log in". My thoughts were: Use Captcha to keep bots at bay Drop a...

Is there a name for the testing technique I use?

In case of things that are hard to test using traditional xUnit-style methods, such as various converters, XSLT, etc. I often employ technique based on output comparison. The test program produces some output when it's run for the first time. I make sure it's correct and save it for the later use. On the following runs the program compar...