-
Sometimes, a client-based refresh of the session is the only viable option.
Anyway, we must define this a “bad idea”, because you can end up stuffing even more problems on your architecture…
Now this is something that may or may not be useful to a lot of people, depending on you situation, you may want the user to elect to refresh their Session or not (like banks usually do); but this is for applications that may have a lot of idle time and users are annoyed with their Sessions dying... considering most users don't know what a Session is, but they know that the application stops working correctly.
via Automatically refresh your user’s Session behind the scenes using jQuery and Asp.Net.It uses jQuery and is incredibly simple, just a few lines of code, and no screen flicker or any annoyance to the user at all; ignorance is bliss. First I include the following in the code-behind in any page you need to keep refreshed (works on masterpages as well)[…]
Read More -
- Download this patch for the visual studio 2008 SP1
- Download the documentation file from this link http://code.jquery.com/jquery-1.4.1-vsdoc.js
- Take a rest near the Coffe machine and convert there your co-workers
-
I have used Google in the past 8 years (I know, I am a bit old). Then I was annoyed because of a bad behavior of Google with my AdSense account (shutdown without being able to talk back to someone for explanation).
Read More -
My Big Company asked me to develop a small-sized application using C# and WebForms. The Customer was a big Italian Bank, and it asked for that technology: I was chosen because of my Java seniority, but I was zero on .NET knowledgeThe “C# 4.0 In a Nutshell” was a real time-saver for my. The 1000-pages book written by Joseph&Ben Albahari will give you a complete look to the C# Technology.
Read More -
lambdaj
Jan 23, 2011 · 1 min read ·
How many times have you read or written the same two or three lines of code that frequently seem to go together, and even though they operate on different objects, feel like the same thing? And how often these repetitions involve some sort of collections iteration or more generically manipulation? These repetitions in the code is something that developers eventually learn to filter out and ignore when reading code, once they figure out where the interesting parts are placed. But even if the developers get used to it, it slows them down. Code like that is clearly written for computers to execute, not for developers to read.
Integrate lambdaj in your software architect toolkit (italian link)lambdaj is designed to easily manipulate collections. Its features are intended to filter, convert, index and aggregate the items of a collection without explicitly iterate on it.
Read More -
How to display an animation during page loading
Jan 12, 2011 · 1 min read ·
Old web site requires sometimes to show a big “Loading…” gif in the front of the page. It is not trivial to do it, especially if you have already plenty of jQuery forms developed, with complex form submission, and half the site in an ajax form.
Read More -
Closure in C#
Jan 6, 2011 · 2 min read ·
After the success of Closure in Java we like to show you a good example in C# too.
C# has a very strong support for Lambda functions, because it needs to support the LINQ language constructs.
So defining a closure is quite easy. Best, it is possible to define a “delegate” , which is a typed function: the compiler will help you to avoid errors because will match the lambda function against the delegate.
Read More -
API KEYs are sexy: if you have a web based business (like Google, Twitter, Facebook or Wordpress’Automattic) you should have a way to generate an API Key for web service integration.
Like Session keys, API keys should be sufficiently unpredictable to be psuedo-random. To be unpredictable, no user variables (or timestamps) are encoded into the key.
Read More -
Disclaimer: Hi guys, I will not start a Religion wars between Emacs and Vim. For a copule of reason:
- I have been an Emacs fan for about ten years, then I get a depression because of emacs-lisp complicated interface and slow emacs evolution
- I have worked on pymacs a bit, so I am somewhat a Emacs contributor
- I am still searching a good general purpose editor. On my day by day job, eclispe is my food.
- a editor working on slow connection
- a fast startup editor
- some time to be masochistic. Some guys smoke, others use vim. It perfectlys fit in your auto-destruction instinct.
I was happy with vim for this reason:
Read More -
About Diaspora, we read from Ars Technica (underline is our):
Diaspora emerged as a response to the privacy concerns raised by mainstream social networking services. The aim of Diaspora is to create an open source social network alternative with decentralized architecture, giving end users more control over their private information and how it is shared with other people. [...]
When the first Diaspora code was first published in September, independent reviewers found some serious technical defects, including a number of security weaknesses. […]
Read More -
For a good list of Jquery RSS reader, take a look to this discussion on stack overflow.
A good stuff is
zRSSFeed - RSS Feeds Reader for jQuery
This plugin will read RSS feeds from any website url using the Google Feeds API. It produces structured HTML with in-built CSS classes for styling. Simple and easy to use. -
Suds is a lightweight SOAP python client for consuming Web Services.
It is very nice to use, because of the debugging feature inside.
Give it a try:
https://fedorahosted.org/suds/
And for testing and playing with it, try out also DreamPie, a nice Python shell
-
Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. [...]Directory symbolic links are known as NTFS junctions in Windows. Unfortunately, Windows comes with no tools for creating junctions—you have to purchase the Win2K Resource Kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction
Read More
