This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String folderNameDecoded = new String(folder_name.getBytes(Charset.forName("UTF-8")), Charset.forName("ISO-8859-1")); 4:59 PM | |
For textareas, you need to replace newline chars as follows: | |
response.getWriter().print(new FolderService().getFolderDocs(parent_id,project_id,business_id,false, 0).replaceAll("\n", "\\\\n")); | |
//struts.properties | |
struts.i18n.encoding=ISO-8859-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE VIEW VIEW_SECURITY_ALL AS | |
WITH allprojbus AS ( | |
SELECT project_id, business_id, updated_on FROM projBus pb | |
), alluserrights AS ( | |
SELECT * FROM userright | |
WHERE RIGHT_ID <> 'NONE' AND RIGHT_ID <> 'EXTER' | |
), rank1 AS ( --specific project and specific business | |
SELECT ur.sso_id, ur.project_id, ur.business_id, allpb.updated_on | |
FROM alluserrights ur | |
JOIN allprojbus allpb ON (ur.project_id = allpb.project_id AND ur.business_id = allpb.business_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title> http://jsfiddle.net/jensbits/bM7ck/3/ - jsFiddle demo by jensbits</title> | |
<script type='text/javascript' src='http://code.jquery.com/jquery-1.6.2.js'></script> | |
<link rel="stylesheet" type="text/css" href="/css/normalize.css"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step1: $vi /home/user1/scripts/my_script.sh | |
#!/bin/bash | |
# My first script | |
echo "Hello World!" | |
**Setting permissions** | |
Step2: $chmod 755 my_script (The "755" will give you read, write, and execute permission. | |
Everybody else will get only read and execute permission. If you want your script to be private (i.e., only you can read and execute), use "700" instead.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo -s | |
$ dpkg -l (gives list of all installed packages) | |
$ /etc/init-d/networking restart | |
$ service ssh restart | |
$ vi /etc/apt/sources.list.d/cdh3.list | |
(make sure u have "deb http://archive.cloudera.com/debian lucid-cdh3u5 contrib") | |
$pwd (print working directory) | |
$clear (clear CLI - command line interface) | |
$ls -a (list hidden and unhidden files) | |
$ls -al (combine both a and l flags after - symbol; l - prints all details) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Save time and Space with the excel .xlbs format | |
Do you have large excel files that take GB of space in your HD, they are impossible to send and take 2 minutes to open? | |
then wait no more.. save them in .xlbs format: | |
in excel, select file -> save as, and save them as .xlbs, it's the excel binary format, and it's fully compatible with office 2010... your files will be smaller, and they will take only 25% of the time to load... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devmgmt.msc | |
control printers | |
%temp% | |
msconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Try to attain no warning symbol in the code (Unused variables, non-required imports) | |
2) System.out.println statements | |
3) Indentation | |
4) Naming convention | |
5) Info vs Debug messages | |
6) Log only when required – goal is easy debugging | |
7) Exceptional handling chain | |
8) Front end Exceptional handling (similar to what google does) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table style="width:100%"> | |
<tr> | |
<td style="background-color:#22436B">22436B</td> | |
<td style="background-color:#3B73B9">3B73B9</td> | |
<td style="background-color:#89ABD5">89ABD5</td> | |
</tr> | |
<tr> | |
<td style="background-color:#056083">056083</td> | |
<td style="background-color:#08A5E1">08A5E1</td> | |
<td style="background-color:#6BC9ED">6BC9ED</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unicode Symbol Decimal html Description | |
U+00A1 ¡ ¡ ¡ Inverted Exclamation Mark | |
U+00A2 ¢ ¢ ¢ Cent sign | |
U+00A3 £ £ £ Pound sign | |
U+00A4 ¤ ¤ ¤ Currency sign | |
U+00A5 ¥ ¥ ¥ Yen sign | |
U+00A6 ¦ ¦ ¦ Broken bar | |
U+00A7 § § § Section sign | |
U+00A8 ¨ ¨ ¨ Diaeresis | |
U+00A9 © © © Copyright sign |