Software / Technology Tips

Clear Cache in Rails

On implementing basic sign in functionality we need to handle our session properly. Even after proper session management, in following case we can view users confidential profile information. ->login into app ->Move to profile page -> Tap on Logout ->Press back button of browser -> Getting my last visited page(profile Page) We need to clear…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Use of 'prawn' gem to generate PDF in Rails

Add this gem to the gemfile of your application and run the ‘bundle’ command. gem 'prawn' Create a PDF Mime::Type inside config/initializers/mime_types.rb. Mime::Type.register "application/pdf", :pdf I have created a respond block with HTML and PDF format inside my controller. Inside the format.pdf block, the send_data method is called. respond_to do |format| format.html format.pdf do pdf…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to merge your Javascript files in ASP.NET

When a user is loading a web page, for every object on the page (e.g: images, stylesheets, scripts) there is a corresponding HTTP request made to the server. These HTTP requests will delay the response time if the web page contains large number of objects. To reduce the delay, we have to get rid of…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to store C++ object pointers in Core foundation's ordered collections like CFMutableArrayRef, CFMutableDictionaryRef.

We create a new mutable array object using the function CFArrayCreateMutable which has following signature: CFMutableArrayRef CFArrayCreateMutable( CFAllocatorRef allocator, CFIndex capacity, const CFArrayCallBacks* callBacks);  Where the first parameter gives the type of allocator used to allocate memory for this array, second gives its capacity and third parameter is a pointer to CFArrayCallBacks structure which has…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How To Create A Browser Independent Input Field Placeholder

What is a placeholder? The placeholder is some text those are shown as filler text for input fields during page load. Once you put focus on the fields the text disappears and on focusing out, the filler text again gets back to the input field, if nothing has been entered. Do we have something to…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Upload image in rails3 without using any gem

For image uploading, rails3 having plugins and gems. But here we are going to discuss on how to upload and remove images through rails3 without using gems or plugins. Here I am going to discuss on how to upload image using rails3 application. There are many gems and plugins available for this. But here we…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

How to Connect to an Online MSD CRM 2011 using WCF Services

step 1:  Create a new Windows Form in Visual Studio 2010. step 2: Add two button controls , one for discover the organisations name and another for connect to organisation.Again, add a List box control to display the organisations name. step 3: Now Right click on References on the Windows Form project and select Add…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Giving alternate color to each row of ListBox in Windows phone 7

As is generally known there is no DataGrid available under the Silverlight for Windows Phone platform at the moment. And many times we come across a situation where we need to display data as in the DataGrid with rows having alternate colors. Here are the steps of the work around to get the desired result. First…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

AutocompleteExtender in Multiline Textbox with new line as delimiter character

In single line Textbox, Ajax Control Toolkit – AutocompleteExtender works fine. Once we use AutocompleteExtender in a Multiline Textbox and think of using new line as delimiter character, then it used to give some issue.  (In MultilineTextbox, suggestions to come ‘one time – in each line’ is a frequently required need.) The problems are like  – some time suggestions do not…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!

Introduction To Rails Scaffolding

What ? In this tip I am going to demonstrate how to create your first basic Rails application without writing a single line of Ruby code. How ? Rails has a beautiful concept called scaffolding,using which a novice programmer can also create his first Rails App. Just follow 5 basic steps and get your first…

read more
150 150 Burnignorance | Where Minds Meet And Sparks Fly!