Back on linux with ubuntu using Virtual Box Apr 30, 2011 Well for some experiments that involved git and curl I was coming across the windows problem I was trying to make my way using cygwin but after few stuck I always get stuck. Everyone’s recommended solution was using linux OS so I have download virtual box created a virtual machine and then installed ubuntu iso 10.10 32 bit. Now as I am trying to get some softwares like chrome and vim I got few errors in package manager saying something like waiting for jockey to end. ...
Upgraded my hosting for .net 4.0 Apr 30, 2011 I have been watching Mix11 videos about asp.net mvc3 and felt pretty excited to mingle with these latest bits but I didn’t wanted to limit myself to local environment I wanted to know what efforts are required if I am developing with latest stuff one limitation I had that my host always take ages to update server so I had support for .net3.5. I email them about this thing and in reply they told me either wait 6 months or pay $8. ...
C# Parent Child Reference Variable & Object Casting Apr 30, 2010 I have been clearing my concepts regarding inheritance and investigating if parent reference variable can point to child class object and vice versa. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 using System; using System. ...
CSS Diet Plan - first step to object oriented css Apr 30, 2010 I was wondering how to count the rules of my style sheets after little googling i discovered two ways one is through vim and second is through a command line tool called grep. If you are a vim user and your css file is loaded into vim in command mode enter following command :%s/font-size//gn Output will be the number of type font-size is used in your css file. For grep open your command line and enter cat style. ...
CSS Overflow benefit Apr 30, 2010 I read this article http://bit.ly/16pqBm and find out the power of overflow that is when you set it to a value it creates a new block formatting context in simple word that means non floated element’s content will not flow around the floated element instead will get narrower. PS. Width should not be mentioned for non floated content so it can get narrower.
Facebook Application Development using Asp.net Apr 30, 2010 Hi, I have been busy with facebook application development using IFrame and since I have asp.net background so instead of php I wanted to do this in asp.net their are few wrappers or sdk available for this like. After googling I have picked Facebook developer toolkit v3.01. After downloading the binaries I have created a asp.net web application project with 4.0 framework and simply added the reference of facebook.dll and facebook. ...
Get Running Jquery Version Apr 30, 2010 Few weeks back I came across a page that has multiple jquery versions referenced in it and I had no idea which jquery version is actually running. So after little bit of googling I find following solution. //Returns “1.3.1” $().jquery; //Returns “1.3.1” jQuery.fn.jquery;
BLL - Business layer with Linq Apr 30, 2009 Hello guys, This is my first Bll class that is using linq and returning objects to presentation layer. Main data component class is ItemsDT which contain another skeleton class “ItemGridView” for custom view of items data table. “ItemGridView” contains basically have the fields that i want to show in my presentation layer. Note that items datatable has many column which can be reterived by calling AllItems() method. If you just want to list all the methods into your table that is also included into your linq to sql file then you can set your method return type to list collection of the type that specified in dbml file (linq to sql). ...
C# Interfaces Apr 30, 2009 These parts are taken from msdn and some might be taken from other websites. An interface can inherit from one or more base interfaces. When a base type list contains a base class and interfaces, the base class must come first in the list. A class that implements an interface can explicitly implement members of that interface. An explicitly implemented member cannot be accessed through a class instance, but only through an instance of the interface. ...
Calling asp.net page methods with jquery Apr 30, 2009 Hi guyz, Today I am sharing how to call asp.net web page code behind methods from client side javascript in my case it will be jquery. Let us divide this into two parts the server side and client side on server side we have to write a function or page method. 1 2 3 4 5 [WebMethod] public static string AddStrings(string a, string b) { return string.Format("my friend answer is {0}", a + b); } Note that we mark our AddStrings function as WebMethod and its public and static this is the basic requirement for the funtion if you want to call it from javascript or jquery. ...