coding

How can I block further input in textarea using maxlength

I have a textarea that I want to block input on if the entered characters reaches a max-length. I currently have a Jquery script for the textbox that calculates the characters entered and want to add something that will block input in the textarea once 150 characters are entered. I have tried using max-length plugins in conjunction w...

What is the Coding Standard and Code?

I want to ask u to give me the Code written with all code standards and OO approach. I want code for Database connection in C#.Net with SQL Server. For Inserting, Searching, Deleting and Updating data in database. kindly help me with this. ...

Color code php inside of css in Dreamweaver

I'm creating a dynamic css stylesheet with php variables in it. I would like to have any code that appears inside the tags color coded as if it was a php file, while everything outside is css color coded. As it is now, everything is color coded for css and the file is .css (I'd like to keep the .css file extension). I'm using Dreamwea...

In ruby-on-rails, how to convert the '\X93' like string format to its original look?

s = "你好" s.encoding # => #<Encoding:UTF-8> yaml = s.to_yaml # => "--- \"\\xE4\\xBD\\xA0\\xE5\\xA5\\xBD\"\n" yaml.encoding # => #<Encoding:ASCII-8BIT> yaml.force_encoding 'utf-8' # => "--- \"\\xE4\\xBD\\xA0\\xE5\\xA5\\xBD\"\n" Then, how to make the 'to_yaml' generate original looking: "你好", I mean not something ...

ASP: request.form is not returning value?

I have following form, <form action="contact_us.asp" method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="firstname" type="text" id="firstname" size="30" /> <input name="lastname" type="text" id="lastname" size="30" /> <input type="submit" name="submit" id="submit" value="Submit" /> </form> But wh...

Objective C - Code sniffer

Hi all, I am looking for coding standard checker something like php_codesniffer (http://pear.php.net/manual/en/package.php.php-codesniffer.intro.php) for objective c. Thanks, Jose Antony ...

How to sign a blackberry application?

I got the signature keys from the blackberry web signer. All the keys in to one folder. I developed my blackberry application using eclipse plugin 1.0. First I am go to Blackberry->Install Signatures keys and select the .csi key files but there is nothing happened. So I double click the key values and register the keys. Register key...

Parse Error: Syntax Error unexpected T_DOUBLE_ARROW expection ')'

here's the error I keep getting: Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in .../Themes/default/Display.template.php on line 170 Here's the code: 'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(Â¥'' . ($context['is_...

C# coding interview preparation

Possible Duplicate: Looking for a few good C# interview problems. Hi All, I have done a good amount of reading in C# and have also practiced most of the data structures too. My source has been mostly msdn and few blogs. Interestingly, hardly anybody has asked me about data structures, optimization or their efficiency during a ...

How do you get full support of zen coding in NetBeans 6.9?

I'm using NetBeans 6.9 with the Zen Coding plugin. I was wondering if there is a way to get the selector support working in NetBeans. Currently typing this: ul#my-list>li*3>a Does not produce this: <ul id="my-list"> <li><a href=""></a></li> <li><a href=""></a></li> <li><a href=""></a></li> </ul> ...

Difference between Wndows server - Appfabric distributed cache client on windows server 2003 and Windows server 2008 Appfabric caching?

Difference between Wndows server - Appfabric distributed cache client on windows server 2003 and Windows server 2008 Appfabric caching?..how to do support in both windows server 2003 and 2008..?..what is coding to store object? ...

Coding in front of the client?

I was wondering what peoples opinions are (I have made this a community wiki) on coding in front of a client? I was in a meeting today with a client who was highlighting some bugs and requesting some changes and whilst other people where talking amongst themselves I decided to fix a couple of the bugs (Wording changes really). I showed...

VB6 TreeView Problem

How can I locked each nodes in my treeview object in vb6? please help me now. ...

Is digit (number) part of unicode?

Hi, I know unicode contains all characters from most world aphabets..but what about digits? Are they part of unicode or not? I was not able to find straight answer. Thanks ...

How to comment/uncomment in HTML code

Hello all Often while coding view templates in html, my habit of adding some helpful comments causes lots of time-consuming effort while testing. Consider this code... <!-- Here starts the sidebar --> <div id="sidebar"> .... </div> <!-- Here starts the main contents pane --> <div id="main-contents"> ... </div> <!-- Here starts the f...

ajax image as response in php

Hi, I want to display an image as a response to an ajax call using php.. Does anybody have the complete code for this?? Please help me out.. Thanks in advance.. ...

PHP session var strange value through AJAX

Hello guys, my code is a bit messy so I'll try to explain to you in words: I have this index.php page that shows a random file from my files table in my database. People have the opportunity to rate these files by clicking on notes that open "vote.php" through a small AJAX pop-up. Now here's the problem. On index.php I pull the ID fro...

try catch bad form?

hi there i think i sort of know the answer to this, but there are always many ways to do things (some of which are clearly wrong :) )... I have a little recursive function to find an employees manager's id. this is being used in a import script and it may be that the persons immediate manager has left (been disabled) so we need to find ...

What is the best monitor for coding?

I'm looking for a wide-screen monitor that can be easily moved up and down, with good colors and resolution. Can anyone recommend a specific model or brand that helps coding? I'm temporarily using a ViewSonic HDMI 1080p, are there better solutions out there that cost less than $350? ...

What coding challenges are there, and what is the prize?

Some time ago, I have heard about the Netflix challenge to find a better way to organize recommendations. Do you know about more "challenges" in computer science? What are the prizes? ...