This Blog consist of internet technologies focusing on web world i.e web technologies.
Thursday, January 5, 2012
Friday, October 14, 2011
Mysql: show all grants
------------------------
-- Mysql Procedure to show all grants
CREATE PROCEDURE `showAllGrants`()
BEGIN
DECLARE done INT DEFAULT 0;END
DECLARE mUser CHAR(16);
DECLARE hostName CHAR(60);
DECLARE cur1 CURSOR FOR SELECT user, host FROM mysql.user;
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1;
OPEN cur1;
REPEATCLOSE cur1;
FETCH cur1 INTO mUser, hostName;
IF NOT done THENUNTIL done END REPEAT;
SET @sql := CONCAT('SHOW GRANTS FOR ', QUOTE(mUser), '@', QUOTE(hostName));END IF;
PREPARE grntStmt FROM @sql;
EXECUTE grntStmt;
DROP PREPARE grntStmt;
USAGE:
--------
CALL showAllGrants();
Monday, August 2, 2010
How GOOGLE Works
http://www.portfolio.com/images/site/editorial/Flash/google/google.swf
Wednesday, July 28, 2010
How to get Domain/IP related information
$ mtr domainname
-- MTR is computer software which combines the functionality of the traceroute and ping programs in a single network diagnostic tool.MTR probes routers on the route path by limiting the number of hops individual packets may traverse, and listening to responses of their expiry. It will regularly repeat this process, usually once per second, and keep track of the response times of the hops along the path.
$ host domainname
-- In computer networking, a network host, Internet host, host, or Internet node is a computer connected to the Internet - or more generically - to any type of data network. A network host can host information resources as well as application software for providing network services. Internet hosts can generally be divided into server and client computers which generally communicate in the client-server model.
$ traceroute/tracepath domainname
-- Traceroute/Tracepath is a computer network tool used to show the route taken by packets across an IP network.
$ ping domainname/IP
-- Ping is a computer network admin utility used to test whether a particular host is reachable across an Internet Protocol (IP) network and to measure the round-trip time for packets sent from the local host to a destination computer, including the local host's own interfaces.
$ nslookup IP
-- This command is often used to perform a reverse lookup on an IP address. Provide the authoritive and non-authoritative answers.
$ dig domainname/IP
-- DNS lookup utility.
Websites: (Get more presentable information)
http://whois.domaintools.com/domainname
-- Domain Name to Look up, GET Domain Registrar and owner details, billing address details, nameserver, A record and current STATUS of website.
http://my-addr.com/trace/domainname
-- Trace (find path from current host) to some domain or hostname or an IP address.
http://my-addr.com/domain/domainname
-- DNS records lookup fetch information about domain (hostname), additionaly we show geo location (domain's country name, domain's region name, domain's city, provider (Internet Service Provider (ISP)).
http://my-addr.com/ip/66.98.145.18
-- IP address lookup tool includes country code, country name, region code and region name (geo location region), city, provider (organization,isp) and other geo information.
http://my-addr.com/request
-- Get to know request and SERVER variables.
http://my-addr.com/ip
-- Know about Your IP and proxy headers.
Add Rupee Font in Fedora 10
Download the font :
From here:
http://www.woofiles.com/dl-201362-SNrji0t3-RupeeForadian.ttf
or
http://blog.foradian.com/rupee-font-version-20
Open konqueror and type fonts:/ in address bar and paste ttf file in folder named "Personel"
Open the leafpad (editor) to write, set font option to Rupee Foradian and type "` you will get new rupee symbol.
i.e.
Tuesday, July 27, 2010
Follow Me @ Twitter
Visit: http://twitter.com/amolkulkarni82
Friday, July 16, 2010
ERGONOMIC GUIDELINES FOR USER-INTERFACE DESIGN
The following points are guidelines to good software interface design, not an absolute set of rules to be blindly followed. These guidelines apply to the content of screens. In addition to following these guidelines, effective software also necessitates using techniques, such as 'storyboarding', to ensure that the flow of information from screen to screen is logical, follows user expectations, and follows task requirements.
- Consistency ("Principle of least astonishment")
- certain aspects of an interface should behave in consistent ways at all times for all screens
- terminology should be consistent between screens
- icons should be consistent between screens
- colors should be consistent between screens of similar function
- Simplicity
- break complex tasks into simpler tasks
- break long sequences into separate steps
- keep tasks easy by using icons, words etc.
- use icons/objects that are familiar to the user
- Human Memory Limitations
- organize information into a small number of "chunks"
- try to create short linear sequences of tasks
- don't flash important information onto the screen for brief time periods
- organize data fields to match user expectations, or to organize user input (e.g. autoformatting phone numbers)
- provide cues/navigation aids for the user to know where they are in the software or at what stage they are in an operation
- provide reminders, or warnings as appropriate
- provide ongoing feedback on what is and/or just has happened
- let users recognize rather than recall information
- minimize working memory loads by limiting the length of sequences and quantity of information - avoid icon mania!
- Cognitive Directness
- minimize mental transformations of information (e.g. using 'control+shift+esc+8' to indent a paragraph)
- use meaningful icons/letters
- use appropriate visual cues, such as direction arrows
- use 'real-world' metaphors whenever possible (e.g. desktop metaphor, folder metaphor, trash can metaphor etc.)
- Feedback
- provide informative feedback at the appropriate points
- provide appropriate articulatory feedback - feedback that confirms the physical operation you just did (e.g. typed 'help' and 'help' appear on the screen). This includes all forms of feedback, such as auditory feedback (e.g. system beeps, mouse click, key clicks etc.)
- provide appropriate semantic feedback - feedback that confirms the intention of an action (e.g. highlighting an item being chosen from a list)
- provide appropriate status indicators to show the user the progress with a lengthy operation (e.g. the copy bar when copying files, an hour glass icon when a process is being executed etc.)
- System messages
- provide user-centered wording in messages (e.g. "there was a problem in copying the file to your disk" rather than "execution error 159")
- avoid ambiguous messages (e.g. hit 'any' key to continue - there is no 'any' key and there's no need to hit a key, reword to say 'press the return key to continue)
- avoid using threatening or alarming messages (e.g. fatal error, run aborted, kill job, catastrophic error)
- use specific, constructive words in error messages (e.g. avoid general messages such as 'invalid entry' and use specifics such as 'please enter your name')
- make the system 'take the blame' for errors (e.g. "illegal command" versus "unrecognized command")
- Anthropomorphization
- don't anthropomorphize (i.e. don't attribute human characteristics to objects) - avoid the "Have a nice day" messages from your computer
- Modality
- use modes cautiously - a mode is an interface state where what the user does has different actions than in other states (e.g. changing the shape of the cursor can indicate whether the user is in an editing mode or a browsing mode)
- minimize preemptive modes, especially irreversible preemptive modes - a preemptive mode is one where the user must complete one task before proceeding to the next. In a preemptive mode other software functions are inaccessible (e.g. file save dialog boxes)
- make user actions easily reversible - use 'undo' commands, but use these sparingly
- allow escape routes from operations
- Attention
- use attention grabbing techniques cautiously (e.g. avoid overusing 'blinks' on web pages, flashing messages, 'you have mail', bold colors etc.)
- don't use more than 4 different font sizes per screen
- use serif or sans serif fonts appropriately as the visual task situation demands
- don't use all uppercase letters - use and uppercase/lowercase mix
- don't overuse audio or video
- use colors appropriately and make use of expectations (e.g. don't have an OK button colored red! use green for OK, yellow for 'caution, and red for 'danger' or 'stop')
- don't use more than 4 different colors on a screen
- don't use blue for text (hard to read), blue is a good background color
- don't put red text on a blue background
- use high contrast color combinations
- use colors consistently
- use only 2 levels of intensity on a single screen
- Use underlining, bold, inverse video or other markers sparingly
- on text screens don't use more than 3 fonts on a single screen
- Display issues
- maintain display inertia - make sure the screen changes little from one screen to the next within a functional task situation
- organize screen complexity
- eliminate unnecessary information
- use concise, unambiguous wording for instructions and messages
- use easy to recognize icons
- use a balanced screen layout - don't put too much information at the top of the screen - try to balance information in each screen quadrant
- use plenty of 'white space' around text blocks - use at least 50% white space for text screens
- group information logically
- structure the information rather than just presenting a narrative format (comprehension can be 40% faster for a structured format)
- Individual differences
- accommodate individual differences in user experience (from the novice to the computer literate)
- accommodate user preferences by allowing some degree of customization of screen layout, appearance, icons etc.
- allow alternative forms for commands (e.g. key combinations through menu selections)
(these guidelines are based on those contained in Hix, D. & Hartson, H.R. (1993) Developing User Interfaces: Ensuring usability through product and process, NY, Wiley. Chap. 2).
Web page design
Download speed is a critical aspect of web page design. Remember that when you check your pages locally in your browser you aren't experiencing normal web delays! Regardless of your modem speed, pages will only download at the fastest rate of the slowest link in the 'chain' from a server to the browser. The following tips will help to speed downloads and aid comprehension of your web page materials:
- avoid using 'blinks' unless these are absolutely necessary - blinks are distracting, use fonts, sizes, colors to attract attention
- keep backgrounds simple and muted
- minimize audio and video use, this really slows download time
- use animated files (e.g. animated .GIFs) sparingly
- use thumbnail .GIFs linked to larger .GIFs
- specify .GIF size (HEIGHT, WIDTH) - this speeds download times
- use 'ALTs' for .GIFs where only the .GIF provides the link - this provides linked text information to those only browsing in text mode
- use image maps sparingly - they are slow and can be annoying - using an invisible table can often give similar results with much faster downloads
- use frames sparingly and consistently - use absolute widths for frames, scroll bars, avoid menus for small numbers of items, also check that users don't get stuck in a frame
- avoid 'construction signs' - web pages are meant to be dynamic and therefore should be changed/updated regularly - they are always under construction - try to tell users when content was last changed and what changes were made
- minimize use of Java, Javascript, Applets (e.g. ticker tape status bars) - they are cute but often provide little useful information content and slow downloads
- remember that 50% of users have monitors 15" or less and at 640 x 480 resolution, so use a maximum window width of 620 pixels or flexible window widths and test your pages in your browser at low screen resolutions and limited colors (256 or less)
- provide contact information at the home page location in your site
(above guidelines based on those found at http://www.glover.com/ss/ssmain.html)
Additional Interface Design Information
- Cross-platform User-Interface Design Guidelines, Common Front Group, Cornell University.
- Cornell University's Interactive Multimedia Group.
- The Apple Human Interface Guidelines book (an online book about how people interact with computers.)
- The Apple Human Interface Guidelines for the web book.
- A list of links from Apple about interface design.
- A Human Interface bibliography from Apple.
- IBM's Human-Computer Interaction resources.
- Digital Human Factors and Ergonomics Resources
- Interface Hall of Fame
- Interface Hall of Shame
- Ask Tog (Computer Interface Design Information)
- Section 508 web site accessibility
- Summary checklist of section 508 requirements
- Designing Accessible Web Sites
Thursday, July 8, 2010
Special Characters in HTML And Their Names
To make special characters and accented letters show up on your pages, use a special set of codes called character entities, which you insert into your HTML code and which your browser will display as the corresponding symbols or characters you want.
The most common character entities have been collected by the International Organization for Standardization and compiled in the ISO Latin Alphabet No. 1 table, which includes special characters, letters with diacritical marks (accents, umlauts, etc.), and scientific and currency symbols. The Latin-1 table contains 255 characters.
ISO Entities
| Name Code | Number Code | Glyph | Description |
| ‘ |
| ‘ | left single quote |
| ’ |
| ’ | right single quote |
| ‚ |
| ‚ | single low-9 quote |
| “ |
| “ | left double quote |
| ” |
| ” | right double quote |
| „ |
| „ | double low-9 quote |
| † |
| † | dagger |
| ‡ |
| ‡ | double dagger |
| ‰ |
| ‰ | per mill sign |
| ‹ |
| ‹ | single left-pointing angle quote |
| › |
| › | single right-pointing angle quote |
| ♠ |
| ♠ | black spade suit |
| ♣ |
| ♣ | black club suit |
| ♥ |
| ♥ | black heart suit |
| ♦ |
| ♦ | black diamond suit |
| ‾ |
| ‾ | overline, = spacing overscore |
| ← |
| ← | leftward arrow |
| ↑ |
| ↑ | upward arrow |
| → |
| → | rightward arrow |
| ↓ |
| ↓ | downward arrow |
| ™ |
| ™ | trademark sign |
| Name Code | Number Code | Glyph | Description |
|
| - |
| unused |
|
|
|
| horizontal tab |
|
|
|
| line feed |
|
|
| unused | |
|
|
|
| space |
|
| ! | ! | exclamation mark |
| " | " | “ | double quotation mark |
|
| # | # | number sign |
|
| $ | $ | dollar sign |
|
| % | % | percent sign |
| & | & | & | ampersand |
|
| ' | ‘ | apostrophe |
|
| ( | ( | left parenthesis |
|
| ) | ) | right parenthesis |
|
| * | * | asterisk |
|
| + | + | plus sign |
|
| , | , | comma |
|
| - | - | hyphen |
|
| . | . | period |
| Name Code | Number Code | Glyph | Description |
| ⁄ | / | / | slash |
|
| 0-9 |
| digits 0-9 |
|
| : | : | colon |
|
| ; | ; | semicolon |
| < | < | < | less-than sign |
|
| = | = | equals sign |
| > | > | > | greater-than sign |
|
| ? | ? | question mark |
|
| @ | @ | at sign |
|
| A-Z |
| uppercase letters A-Z |
|
| [ | [ | left square bracket |
|
| \ | \ | backslash |
|
| ] | ] | right square bracket |
|
| ] | ] | caret |
|
| _ | _ | horizontal bar (underscore) |
|
| ` | ` | grave accent |
|
| a-z |
| lowercase letters a-z |
|
| { | { | left curly brace |
|
| | | | | vertical bar |
| Name Code | Number Code | Glyph | Description |
|
| } | } | right curly brace |
|
| ~ | ~ | tilde |
|
| -• |
| unused |
| – | – | – | en dash |
| — | — | — | em dash |
|
| ˜-Ÿ |
| unused |
|
|
| nonbreaking space | |
| ¡ | ¡ | ¡ | inverted exclamation |
| ¢ | ¢ | ¢ | cent sign |
| £ | £ | £ | pound sterling |
| ¤ | ¤ | ¤ | general currency sign |
| ¥ | ¥ | ¥ | yen sign |
| ¦ or &brkbar; | ¦ | ¦ | broken vertical bar |
| § | § | § | section sign |
| ¨ or ¨ | ¨ | ¨ | umlaut |
| © | © | © | copyright |
| ª | ª | ª | feminine ordinal |
| « | « | « | left angle quote |
| ¬ | ¬ | ¬ | not sign |
| | | | soft hyphen |
| ® | ® | ® | registered trademark |
| ¯ or &hibar; | ¯ | ¯ | macron accent |
| Name Code | Number Code | Glyph | Description |
| ° | ° | ° | degree sign |
| ± | ± | ± | plus or minus |
| ² | ² | ² | superscript two |
| ³ | ³ | ³ | superscript three |
| ´ | ´ | ´ | acute accent |
| µ | µ | µ | micro sign |
| ¶ | ¶ | ¶ | paragraph sign |
| · | · | · | middle dot |
| ¸ | ¸ | ¸ | cedilla |
| ¹ | ¹ | ¹ | superscript one |
| º | º | º | masculine ordinal |
| » | » | » | right angle quote |
| ¼ | ¼ | ¼ | one-fourth |
| ½ | ½ | ½ | one-half |
| ¾ | ¾ | ¾ | three-fourths |
| ¿ | ¿ | ¿ | inverted question mark |
| À | À | À | uppercase A, grave accent |
| Á | Á | Á | uppercase A, acute accent |
| Â | Â | Â | uppercase A, circumflex accent |
| Name Code | Number Code | Glyph | Description |
| Ã | Ã | Ã | uppercase A, tilde |
| Ä | Ä | Ä | uppercase A, umlaut |
| Å | Å | Å | uppercase A, ring |
| Æ | Æ | Æ | uppercase AE |
| Ç | Ç | Ç | uppercase C, cedilla |
| È | È | È | uppercase E, grave accent |
| É | É | É | uppercase E, acute accent |
| Ê | Ê | Ê | uppercase E, circumflex accent |
| Ë | Ë | Ë | uppercase E, umlaut |
| Ì | Ì | Ì | uppercase I, grave accent |
| Í | Í | Í | uppercase I, acute accent |
| Î | Î | Î | uppercase I, circumflex accent |
| Ï | Ï | Ï | uppercase I, umlaut |
| Ð | Ð | Ð | uppercase Eth, Icelandic |
| Ñ | Ñ | Ñ | uppercase N, tilde |
| Ò | Ò | Ò | uppercase O, grave accent |
| Ó | Ó | Ó | uppercase O, acute accent |
| Ô | Ô | Ô | uppercase O, circumflex accent |
| Õ | Õ | Õ | uppercase O, tilde |
| Name Code | Number Code | Glyph | Description |
| Ö | Ö | Ö | uppercase O, umlaut |
| × | × | × | multiplication sign |
| Ø | Ø | Ø | uppercase O, slash |
| Ù | Ù | Ù | uppercase U, grave accent |
| Ú | Ú | Ú | uppercase U, acute accent |
| Û | Û | Û | uppercase U, circumflex accent |
| Ü | Ü | Ü | uppercase U, umlaut |
| Ý | Ý | Ý | uppercase Y, acute accent |
| Þ | Þ | Þ | uppercase THORN, Icelandic |
| ß | ß | ß | lowercase sharps, German |
| à | à | à | lowercase a, grave accent |
| á | á | á | lowercase a, acute accent |
| â | â | â | lowercase a, circumflex accent |
| ã | ã | ã | lowercase a, tilde |
| ä | ä | ä | lowercase a, umlaut |
| å | å | å | lowercase a, ring |
| æ | æ | æ | lowercase ae |
| ç | ç | ç | lowercase c, cedilla |
| è | è | è | lowercase e, grave accent |
| Name Code | Number Code | Glyph | Description |
| é | é | é | lowercase e, acute accent |
| ê | ê | ê | lowercase e, circumflex accent |
| ë | ë | ë | lowercase e, umlaut |
| ì | ì | ì | lowercase i, grave accent |
| í | í | í | lowercase i, acute accent |
| î | î | î | lowercase i, circumflex accent |
| ï | ï | ï | lowercase i, umlaut |
| ð | ð | ð | lowercase eth, Icelandic |
| ñ | ñ | ñ | lowercase n, tilde |
| ò | ò | ò | lowercase o, grave accent |
| ó | ó | ó | lowercase o, acute accent |
| ô | ô | ô | lowercase o, circumflex accent |
| õ | õ | õ | lowercase o, tilde |
| ö | ö | ö | lowercase o, umlaut |
| ÷ | ÷ | ÷ | division sign |
| ø | ø | ø | lowercase o, slash |
| ù | ù | ù | lowercase u, grave accent |
| ú | ú | ú | lowercase u, acute accent |
| û | û | û | lowercase u, circumflex accent |
| Name Code | Number Code | Glyph | Description |
| ü | ü | ü | lowercase u, umlaut |
| ý | ý | ý | lowercase y, acute accent |
| þ | þ | þ | lowercase thorn, Icelandic |
| ÿ | ÿ | ÿ | lowercase y, umlaut |
Thursday, April 22, 2010
Monday, March 8, 2010
Thursday, February 18, 2010
JQuery Tips and Optimization
JQuery Tips For Developers
- Load the framework from Google Code
- Use data method and avoid storing data inside the DOM. Some developers have a habit of storing data in the HTML attributes
- Use Cheat Sheets
- Compress Javascript files
- Use Firebug
- Use ID as Selector whenever possible
- Use Tags Before Classes
- Cache jQuery Objects
- Bind certain jQuery functions to $(window).load event
- Use Chaining to limit selectors, make the code more simple and elegant
The complete article can be found in Tripwire Magazine.
Tuesday, February 24, 2009
Firefox/Mozilla Keyboard Shortcuts
This is a list of keyboard shortcuts in Mozilla Firefox. If you have enabled Emacs-style text editing shortcuts in GNOME, they will also work in Firefox. When an Emacs text editing shortcut conflicts with the default shortcuts (as occurs with CtrlCmd+K), the Emacs shortcut will take preference if focus is inside a textbox (which would include the location bar and search bar). In such cases you should use the alternate keyboard shortcut if one is listed below.
| Command | Shortcut |
| Navigation | |
| Back | AltOpt+Left Arrow BackspaceAltOpt+Left Arrow CtrlCmd+[CtrlCmd+[ CtrlCmd+Left Arrow Delete |
| Forward | AltOpt+Right Arrow Shift+BackspaceAltOpt+Right Arrow CtrlCmd+]CtrlCmd+] CtrlCmd+Right Arrow Shift+Delete |
| Home | AltOpt+Home |
| Open File | CtrlCmd+O |
| Reload | F5 Ctrl Cmd+R |
| Reload (override cache) | CtrlCmd+F5 CtrlCmd+Shift+R |
| Stop | CtrlCmd+. Esc |
| Current Page | |
| Go to Bottom of Page | End |
| Go to Top of Page | Home |
| Move to Next Frame | F6 |
| Move to Previous Frame | Shift+F6 |
| Page Info | CtrlCmd+I |
| Page Source | CtrlCmd+U |
| CtrlCmd+P | |
| Save Page As | CtrlCmd+S |
| Text Size: Decrease | CtrlCmd+- |
| Text Size: Increase | CtrlCmd++ |
| Text Size: Restore | CtrlCmd+0 |
| Editing | |
| Copy | CtrlCmd+C |
| Cut | CtrlCmd+X |
| Delete | Delete |
| Paste | CtrlCmd+V |
| Redo | CtrlCmd+YCtrlCmd+Shift+Z |
| Select All | CtrlCmd+A |
| Undo | CtrlCmd+Z |
| Search | |
| Find | CtrlCmd+F |
| Find Again | F3 CtrlCmd+G |
| Find As You Type Link | ' |
| Find As You Type Text | / |
Open search results in new tab | Alt+Enter |
| Find Previous | Shift+F3 |
| Web Search | CtrlCmd+K CtrlCmd+E CtrlCmd +J |
| Windows & Tabs | |
| Close Tab | CtrlCmd+W Ctrl+F4 |
| Close Window | CtrlCmd+Shift+W AltOpt+F4 |
| Move Tab Left (when tab is focused) | CtrlCmd+Left Arrow CtrlCmd+Up Arrow |
| Move Tab Right (when tab is focused) | CtrlCmd+Right Arrow CtrlCmd+Down Arrow |
| Move Tab to Beginning (when tab is focused) | Ctrl Cmd+Home |
| Move Tab to End (when tab is focused) | CtrlCmd+End |
| New Tab | CtrlCmd+T |
| New Window | CtrlCmd+N |
| Next Tab | Ctrl+Tab CtrlCmd+AltOpt+Right Arrow Ctrl+Page Down |
| Open Address in New Tab (from Location Bar or Search Bar) | AltOpt+EnterReturn |
| Previous Tab | Ctrl+Shift+Tab CtrlCmd+AltOpt+Left Arrow Ctrl+Page Up |
| Undo Close Tab | CtrlCmd+Shift+T |
| Select Tab (1 to 8) | CtrlCmdAltOpt+(1 to 8) |
| Select Last Tab | CtrlCmdAltOpt+9 |
| Tools | |
| Bookmark All Tabs | CtrlCmd+Shift+D |
| Bookmark This Page | CtrlCmd+D |
| Bookmarks | CtrlCmd+B CtrlCmd+I |
| Caret Browsing | F7 |
| Downloads | CtrlCmd+JCtrlCmd+Y |
| History | CtrlCmd+H CtrlCmd+Shift+H |
| Clear Private Data | CtrlCmd+Shift+Del |
| Miscellaneous | |
| Complete .com Address | CtrlCmd+EnterReturn |
| Complete .net Address | Shift+EnterReturn |
| Complete .org Address | CtrlCmd+Shift+EnterReturn |
| Delete Selected Autocomplete Entry | DelShift+Del |
| Full Screen | F11 |
| Select Location Bar | AltOpt+D F6 CtrlCmd+L |
| Select or Manage Search Engines (when Search Bar is focused) | AltOpt+Up Arrow AltOpt+Down Arrow F4 |
Thursday, February 5, 2009
9 JavaScript Tips You May Not Know
9 JavaScript Tips You May Not Know
Excellent javascript tips every javascript developer should know. Very well explained and a very pleasing website.JavaScript is a fully-featured Object-Oriented programming language, on the surface, it shares syntactical similarities with Java and C, but the mentality is quite different, at its core, JavaScript is more similar to functional languages. Inside is a list of JavaScript tips, some offer techniques to simulate features found in C-like languages (such as assertions or static variables), others are meant to improve performance and explore some of the more obscure parts of the web scripting language.
1. Arrays as Multipurpose Data Structures
2. String Concatenation vs. Array.join
3. Binding Methods To Objects
4. Sorting With a Custom Comparison Function
5. Assertion
6. Static Local Variables
7. null, undefined, and delete
8. Deep Nesting of Objects
9. Using FireBug
Make Firefox Faster.
* Mozilla uses more memory space.
* It becomes slow when i open more tabs
* Page cannot be found error makes the whole browser hang
* It crashes sometimes and restore session is the only resort to regain
The above complaints are very common about mozilla. But still i like mozilla :)
But there are some hidden truths regarding mozilla’s configuration. The Basic or Default configuration of mozilla is for Dial-up-connection.
You can go on with your default mozilla if you are using a dial-up connection. If you have a Broadband Internet Connection, you can make your mozilla more powerful than usual.
Do the following things:
- Open a new tab in your mozilla.
- Type about:config in your address bar and press Enter
This is the configuration page for mozilla. Dont edit all the fields .
For reducing memory usage of firefox do this:
Right click on the resulting window, New > Boolean
It prompt for “Enter the preference name”
Type config.trim_on_minimize and press ok. Select true value after that
For adding more speed for browsing and downloading:
On the about:config page , find the string network.http.pipelining (you can use the filter given for easy searching)
Change its value from false to true (Just double click on the line, it will toggle the true/ false values, or right click and click toggle)
Also change network.http.proxy.pipelining value true.
Now you have to change network.http.pipelining.maxrequests value . (Double click or right click and modify)
By default it will be 5 . Set its value from 10 to 30 depending on your internet connection speed.
Final Step: Right click on that window (about:config) and Click New > Integer and type: nglayout.initialpaint.delay and set its value to 0 (zero)
Done, restart your mozilla. Now you will get faster mozilla, faster internet. Happy Browsing.
If you want to know more regarding mozilla configuration, see this link: http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries
Interesting Tip:
like http:// or ftp:// prompts you saw about: prompt. about:blank is a very familiar prompt right ? So another prompt here ; it is chrome://
Type: chrome://browser/content/browser.xul in your browsers address bar to see your mozilla browser inside itself.
If you're using a broadband connection you'll load pages MUCH faster now!Interesting !!!
Wednesday, September 10, 2008
Make AdSense For Revenue
AdSense Tip #1: Find your keywords
Make a research the best keywords.
AdSense Tip #2: Improve your keywords
Make sure your keyword density between 3% to 10 %.
AdSense Tip #3: Keep your website focused on a theme
Do not mix you content.Focus on your main theme and content.
AdSense Tip #4: Write a new page every day
Always update your site or blog. If you can,updated daily.
AdSense Tip #5: Choose the right AdSense formatÂ
Choose the best ads format for your site.Top ads format that suggest by google is:
- 336×280 large rectangle
- 300×250 medium rectangle
- 160×600 wide skyscraper
AdSense Tip #6: Color tips
AdSense Tip #7: Position tips
AdSense Tip #8: Increase the number of ads
Maximized the usage of your ads.
AdSense Tip #9: Use images
Use images to combine with your ads.
AdSense Tip #10: Blend
Trace - Debug ( Profiling ) PHP script by xdebug & kcachegrind
Step 1 : Install XDebug
xdebug is an open source debugger available for PHP. xdebug can be used to display more information in error traces. It can also be used to collect detailed code coverage & profiling information.
Installation
You need to install following packages to prepare environment for installation of pecl module xdebug.
sudo apt-get -y install php-pear php5-dev build-essentialNow we install xdebug using pecl.
sudo pecl install xdebugAbove command will download, compile & install xdebug on your system.
Configuration
Open usr/local/lib/php.ini and append following line.
zend_extension=/usr/lib/php5/20060613/xdebug.soBe careful about that number part in the path as it could be different for you. Now restart apache by issuing following command.
sudo apache2ctl restartNow try to view the output of your phpinfo() function. If you find xdebug word in that then it means you have successfully installed xdebug.
Stacktrace
xdebug.collect_params accepts values from 1 to 4. Where 1 refers to less verbosity & 4 refers to maximum verbosity while displaying stack traces. The easiest way of setting this option is using function ini_set in PHP.
ini_set("xdebug.collect_params", ) Get to know more stack trace options of xdebug.
var_dump
Once after installing xdebug when ever you call var_dump you are actually calling xdebug version of var_dump instead of built in one. By default xdebug version of var_dump gives you friendly info on the variables you are trying to inspect.
See more options on controlling display of var_dump information.
Debugging
xdebug uses DBGp protocol to communicate with external debuggers. Vim already has a plugin to do that. So you can debug php scripts from within vim.
Download php debugger plugin for vim.
Step 2: Enable Profiling
You need to add following line to /usr/local/lib/php.ini to enable profiling of php scripts.
xdebug.profiler_enable=1Now restart the apache server by issuing following command.sudo apache2ctl restartWhen ever you access a php page through apache, xdebug will create a file something like cachegrind.out.15093. xdebug by default uses /tmp directory to dump files which contain profiling information. You can change this target directory by using xdebug option xdebug.profiler_output_dir and you can change result file name by using the option xdebug.profiler_output_name.
See more xdebug profiling options.
Some times you don't want to profile all requests. xdebug provides a selective mechanism to trigger profiling of specific requests. In order to enable this option you have to add following configuration option to php.ini.xdebug.profiler_enable_trigger=On
Now you can trigger profiling of specific requests by adding XDEBUG_PROFILE to the query part of the GET request.
Analyzing Profiling results
We need to use kcachegrind to analyse profile file results. We can install kcachegrind by issuing following command.
sudo apt-get -y install kcachegrindNow open your profle result file in kcachegrind and you can visuall inspect which part of your script is eating cpu resources. Callmap & Callgrap provide easy to understand visualizations to find bottlenecks in your script.
Monday, August 4, 2008
SQL Joins by venn diagram
If you have tried to understand how joins work and constantly get confused about what join to use, you just need to keep a simple picture in mind ( I like pictures). I will be explaining joins by referencing a Venn diagram. Have no fear - I won’t get into any of the set theory/math involved. This is just a basic overview to give you an idea the data a particular join will return to you. This is not a technical discussion - just concepts.
We will start with just an empty diagram:
The T1 circle represents all the records in table 1. The T2 circle represents all the records in table 2. Notice how there is a bit of overlap of the 2 circles in the middle. Simple right?
I will use red to signify the records that will be returned by a particular join.
INNER JOIN
An inner join only returns those records that have “matches” in both tables. So for every record returned in T1 - you will also get the record linked by the foreign key in T2. In programming logic - think in terms of AND.
OUTER JOIN
An outer join is the inverse of the inner join. It only returns those records not in T1 and T2. “Give me the records that DON’T have a match.” In programming logic - think in terms of NOT AND.
LEFT JOIN
A left join returns all the records in the “left” table (T1) whether they have a match in the right table or not.
If, however, they do have a match in the right table - give me the “matching” data from the right table as well. If not - fill in the holes with null.
It should be noted that the same thing is possible with a right join - most people just use a left one.
LEFT OUTER JOIN
A left outer join combines the ideas behind a left join and an outer join. Basically - if you use a left outer join you will get the records in the left table that DO NOT have a match in the right table.
Again it is noted that the same thing is possible with a right outer join - most people just use a left one.
Theta JOIN
A theta join is the Cartesian product of the 2 tables and not normally what people are looking for - but what they sometimes get by mistake. How many of us have written a join similar to this only to get way more then we were ever expecting.
SELECT t1.*, t2.*
FROM table1 t1, table2 t2
WHERE t1.id = 5;
So there you have the basic concepts of joins. Next time you need to use a join and have no clue what to do to get the data you need from the database, draw a picture. It may help you figure out what join to use. Least it helps me.
Thursday, July 31, 2008
Define: HTTP_LOAD in details
How to install in OS X
1. Download from http://www.acme.com/software/http_load/
2. Open terminal, cd to the directory where the archive is and unzip
$ tar -zxvf http_load-12mar2006.tar.gz
3. Move to that directory
$ cd http_load-12mar2006
4. Run
$ make
5. Run
$ make install
Once installed, using http_load for quick benchmarking is really quite straightforward. You call the program,
tell it how many requests to make concurrently, and how long to run (either in number of seconds, or total fetches),
and finally pass in a file full of URLs to request.
Testing
http_load requires at least 3 parameters:
* One start specifier, either -parallel or -rate
-parallel tells http_load to make the specified number of concurrent requests.
-rate tells http_load to start the specified number of new connections each second. If you use the -rate start
specifier, you can specify a -jitter flag parameter that tells http_load to vary the rate randomly by about 10%.
* One end specifier, either -fetches or -seconds
-fetches tells http_load to quit when the specified number of fetches have been completed.
-seconds tells http_load to quit after the specified number of seconds have elapsed.
* A file containing a list of URLs to fetch
The urls parameter specifies a text file containing a list of URLs, one per line. The requested URLs are
chosen randomly from this file.
You’re ready! Open up a text editor and write down the website’s url you want to test (your own preferably),
then cd to the directory where the .txt is and run
To see how many requests your server can take care of over a 100 fetches
Run:
$ http_load -parallel 5 -fetches 100 name_of_file.txt
which means open 5 concurrent connections and fetch the webpage 100 times.
You’ll get something like this:
100 fetches, 5 max parallel, 1.34237e+07 bytes, in 15.842 seconds
134237 mean bytes/connection
6.31234 fetches/sec, 847351 bytes/sec
msecs/connect: 28.9069 mean, 75.011 max, 14.865 min
msecs/first-response: 435.84 mean, 2484.28 max, 96.082 min
93 bad byte counts
HTTP response codes:
code 200 — 100
I highlighted the important bits. At the moment the webserver is capable of handling 6 requests per second and
has a mean average initial latency of 435 milliseconds.
The numbers you’ll want to look at in more detail are “fetches/sec” and “msecs/first-response”.
These are critical in terms of really understanding what your site is doing.
It’s important to note the difference between “benchmarking” and “profiling”. What we’re doing here with http_load
is the former: we’re getting a feel for a specific page’s overall performance. We know that it serves X pages per
second, and generally takes about Y milliseconds to response. What we don’t know yet is why either of these is the
case. You’ll have to dig in more detail into your PHP code and server configuration to determine what to tweak to
bring up your site’s performance to an acceptable level. http_load doesn’t, and can’t, do that for you.
Http_load tells you how your webapp is currently performing allowing you to test it under different conditions,
basically it’s a benchmarking tool juts like httperf. The next step is optimization. Have a look at
the 1st part of Getting Rich with PHP 5 (what a crappy title) by rasmus lerdorf for tools you can use to profile
your code and some tips on optimization. In the example shown he goes from 17 reqs/sec to 1100 reqs/sec .
-------------------------------------------------------------------------------------------------------
$ http_load --h
usage: http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]
-parallel N | -rate N [-jitter]
-fetches N | -seconds N
url_file
One start specifier, either -parallel or -rate, is required.
One end specifier, either -fetches or -seconds, is required.
--------------------------------------------------------------------------------------------------------
$ man http_load
NAME
http_load - multiprocessing http test client
SYNOPSIS
http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]
[-cipher str] ( -parallel N | -rate N [-jitter] ) ( -fetches N | -seconds N ) url_file
DESCRIPTION
http_load runs multiple http fetches in parallel, to test the throughput of a web server. However unlike
most such test clients, it runs in a single process, so it doesn’t bog down the client machine. It can be
configured to do https fetches as well.
The -checksum flag tells http_load to do checksums on the files fetched, to make sure they came across ok.
The checksums are computed the first time each URL gets fetched, and then recomputed and compared on each
subsequent fetch. Without the -checksum flag only the byte count is checked.
The -throttle flag tells http_load to throttle its consumption of data to 33.6Kbps, to simulate access by
modem users.
The -proxy flag lets you run http_load through a web proxy.
The -verbose flag tells http_load to put out progress reports every minute on stderr.
The -timeout flag specifies how long to wait on idle connections before giving up. The default is 60 seconds.
The -sip flag lets you specify a file containing numeric IP addresses (not hostnames), one per line.
These get used randomly as the *source* address of connections. They must be real routable addresses
on your machine, created with ifconfig, in order for this to work. The advantage of using this
option is you can make one client machine look like a whole bank of machines, as far as the server knows.
The -cipher flag is only available if you have SSL support compiled in. It specifies a cipher set to use.
By default, http_load will negotiate the highest security that the server has available, which is
often higher (and slower) than typical browsers will negotiate. An example of a cipher set might be
"RC4-MD5" - this will run considerably faster than the default. In addition to specifying a raw cipher
string, there are three built-in cipher sets accessible by keywords:
* fastsec - fast security - RC4-MD5
* highsec - high security - DES-CBC3-SHA
* paranoid - ultra high security - AES256-SHA
Of course, not all servers are guaranteed to implement these combinations.
One start specifier, either -parallel or -rate, is required. -parallel tells http_load to keep that
many parallel fetches going simultaneously. -rate tells http_load to start that many new connections each
second. If you use the -rate start specifier, you can also give the -jitter flag, telling http_load to
vary the rate randomly by about 10%.
One end specifier, either -fetches or -seconds, is required. -fetches tells http_load to quit when that
many fetches have been completed. -seconds tells http_load to quit after that many seconds have elapsed.
The url_file is just a list of URLs, one per line. The URLs that get fetched are chosen randomly from this
file.
All flags may be abbreviated to a single letter.
Note that while the end specifier is obeyed precisely, the start specifier is only approximate. If you
use the -rate flag, http_load will make its best effort to start connections at that rate, but may not
succeed. And if you use the -parallel flag, http_load will attempt to keep that many simultaneous connections
going, but may fail to keep up if the server is very fast.
--------------------------------------------------------------------------------------------------------------------
* Note that when you provide a file with a list of URLs make sure that you don't have empty lines in it.
If you do -- the utility won't work complaining:
./http_load: unknown protocol -
* Basic errors
- byte count wrong
- timeout
- parallel may be at most 1021
Solutions:
To remove "byte count wrong" error
install patch and run, to download click here
http://www.lighttpd.net/assets/2007/3/5/http_load-12mar2006-timeout.diff
and to install here is a command
patch -p 1 < http_load-12mar2006-timeout.diff
----------------------------------------------------------------------------------------------------------------
Overviewed by other blogs/forums:
1) http_load does not replicate heavy load; it replicates a DOS attack.
2) It generates N requests every second without waiting for the previous N requests to complete. Actually, it never waits for requests to complete. It kills them so the http server has no where to send data.
3) However this is just HTTP load.. if you have JS running and making database calls after page load I don't think this will help your testing methods.
---------------------------------------------------------------------------------------------------------------Note :- It's my personnel experience, so if any suggestion or new test cases you have please drop me in comments.
Thursday, July 24, 2008
ALTER TABLE, SELECT AND INNODB
How long would you expect this alter to take? Hours? Days?
Even with 7200 RPM-slow disks the alter should of finished in less then 1/2 hour.
I ran across an alter that was running for 4 days-on 512MB datasize. The reason why it ran so long is because there was a SELECT that was running preventing mySQL from performing "rename table", the last leg of the ALTER TABLE process.
Killing that SELECT released the shared lock allowing the alter to finish.
Do not KILL THE ALTER when stuck in this SHARED LOCK STATE; Do NOT then remove the temporary tablespace file "#sql-320f_106f99a2.*".
What will happen if you do remove the #sql* file by hand?
Well for one INNODB will crash the mysql instance saying it could not find the temporary table space. It failed to open it. Then on recovery the original table gets unlinked from the filesystem and you just lost all data for that tablespace.
Why?
Here are roughly the order of events for an alter:
Lock all writes from said table
Make a temporary table #sql - file
Copy all data from the old file to the new file
Do a quick consistency check between the two files
unlink the old file
rename the temp file into the old file name
Each step operates on the data dictionary pointers for the two tables. Issuing a filesystem rm command for the step right before unlink, will cause INNODB to crash and on recovery unlink the old file and of course fail on the rename.
Wednesday, July 16, 2008
Basic SVN Commands
How to get help with svn?
svn help
This will make svn list all the available functions, to get the function reference, let say checkout
svn help checkout
The same thing goes to other svn related commands, such as svnadmin
svnadmin help
How to create a svn repository?
First of all what is repository? It is a core file for svn, or you can call it a centralized svn backup database.
After created it, it is just a directory with its files.
IMPORTANT! Do NOT try to modify or add something into the repository, unless you know what are you doing.
To create a svn repo, let say I wanna create a repo to store all my programming codes, I do this
svnadmin create /home/mysurface/repo/programming_repo
Remember try to use absolute path for everything, sometimes the relative path is not going to work.
How to import my existing directories into the new repo?
svn import /home/mysurface/programming file:///home/mysurface/repo/programming_repo -m "Initial import"
-m stand for log message, the first revision was created with log as “Initial import”. You need to specified URL for the repo,
URL is the standard argument for svn. Therefore for local file, you need to specified with file://
How to see what is inside the repo?
svn list file:///home/mysurface/repo/programming_repo
Another way of listing all the files and folder in the tree view, I use svnlook
svnlook tree programming_repo
The difference between svn list and svnlook tree is one expect URL another one do not.
How to checkout files from svn repo?
This is the most critical part of svn and also the most common part of svn command line. A lots of open source development
projects provided the way for user to check out their latest code through the internet.
You need to check out in order to commit the changes to svn repo later. Refers back to the previous post, where I import entire
directory /home/mysurface/programming to programming_repo. I am going to checkout to the same folder. If you are skeptical of
doing this, you may want to backup the directory first.
mv programming programming-bk
Now checkout to programming, mkdir is not needed, as svn will create the directory for you if it is doesn’t exist.
svn co file:///home/mysurface/repo/programming_repo programming
co is the shortform of checkout.
Okay, lets just compare both folder with diff and store the result into a file comp.diff
diff programming programming-bk > comp.diff
Diff will list the folder in common, and also the differences. Check comp.diff, as it tracks the additional folder .svn
that only exist in programming/. Again, do NOT modified or delete this folder.
Are you convinced to remove your programming-bk/ ? Make sure you keep the repo safe and you can check out the same data
anytime, at any place.
You can even checkout only a specific file or specific folder from your repo. e.g.
svn co file:///home/mysurface/repo/programming_repo/c/curses/matrix.cc
This will only check out a file at current directory.
Single file can’t be checkout like directories, but you can extract them from repository by svn export
svn export file:///home/mysurface/repo/programming_repo/c/curses/matrix.cc
How to track the changes before commit to repo?
First of all, you track what files had changed,
svn status
It will list files which have changed, with some attributes besides the filename. Common attributes are M, ?, A … M is modified,
A is newly added (how to add refers later section), ? indicate the file is added into local directory but not added into repo.
Secondly, you want to track the differences between the previous revision and the working one. Lets assume color.c has changed,
svn diff color.c
I really don’t like svn diff ’s result. Fortunately, I found a simple bash script what makes vimdiff as the compare tool.
I name it as svndiff and place it at /usr/bin, change the mode to executable.
chmod +x /usr/bin/svndiff
Now, I can simply do this,
svndiff color.c
To close the vimdiff, type :qa
How to commit the changes?
You can commit with -m to place your log message if it is short. But if it is long, I suggest you to make use of your default
editor. I am a vim user, therefore I add a line into my ~/.bashrc
EDITOR=vim
Now I can commit with this:
svn ci
ci is the shortform of commit. Write the log message and close save vim :x, I am done. The same way as checkout, you can choose
to commit one file or any folder.
How to add or delete file to or from repo?
The file won’t be committed if you don’t add it into repo. Therefore you need to add it manually if you want it to goes into
your repo. Let say you wanna add a new file color2.cc
svn add color2.cc
Delete does the same way, if you only delete file at your working directory, it won’t reflects the changes to our repo.
How to check the logs for each revision?
The simplest way is doing just,
svn log
It will list all logs, start from latest revision. That is really irritating! You can limit it to 3 latest revision log by
doing this
svn log --limit 3
If you wanna check for specific revision, specified with -r,
svn log -r 3
I find something awkward, let say I have done svn delete at revision 3 (latest), and revision 2 is the changes of the deleted
file at revision 3. When I do svn log, by right it should show all 3 logs, but It only shows for revision 1. It means the svn
log will only shows the log if the file is exist, bare in mind.
How to update the working directory into the latest revision?
svn update
Update to specific revision?
svn update -r 3
I think thats all for normal use of svn commands, further reading at http://svnbook.red-bean.com/.
/home/amol/.mozilla/firefox/2vq5fzb2.default/Cache/Lets get it started….
How to get help with svn?
svn help
This will make svn list all the available functions, to get the function reference, let say checkout
svn help checkout
The same thing goes to other svn related commands, such as svnadmin
svnadmin help
How to create a svn repository?
First of all what is repository? It is a core file for svn, or you can call it a centralized svn backup database.
After created it, it is just a directory with its files.
IMPORTANT! Do NOT try to modify or add something into the repository, unless you know what are you doing.
To create a svn repo, let say I wanna create a repo to store all my programming codes, I do this
svnadmin create /home/mysurface/repo/programming_repo
Remember try to use absolute path for everything, sometimes the relative path is not going to work.
How to import my existing directories into the new repo?
svn import /home/mysurface/programming file:///home/mysurface/repo/programming_repo -m "Initial import"
-m stand for log message, the first revision was created with log as “Initial import”. You need to specified URL for the repo,
URL is the standard argument for svn. Therefore for local file, you need to specified with file://
How to see what is inside the repo?
svn list file:///home/mysurface/repo/programming_repo
Another way of listing all the files and folder in the tree view, I use svnlook
svnlook tree programming_repo
The difference between svn list and svnlook tree is one expect URL another one do not.
How to checkout files from svn repo?
This is the most critical part of svn and also the most common part of svn command line. A lots of open source development
projects provided the way for user to check out their latest code through the internet.
You need to check out in order to commit the changes to svn repo later. Refers back to the previous post, where I import entire
directory /home/mysurface/programming to programming_repo. I am going to checkout to the same folder. If you are skeptical of
doing this, you may want to backup the directory first.
mv programming programming-bk
Now checkout to programming, mkdir is not needed, as svn will create the directory for you if it is doesn’t exist.
svn co file:///home/mysurface/repo/programming_repo programming
co is the shortform of checkout.
Okay, lets just compare both folder with diff and store the result into a file comp.diff
diff programming programming-bk > comp.diff
Diff will list the folder in common, and also the differences. Check comp.diff, as it tracks the additional folder .svn
that only exist in programming/. Again, do NOT modified or delete this folder.
Are you convinced to remove your programming-bk/ ? Make sure you keep the repo safe and you can check out the same data
anytime, at any place.
You can even checkout only a specific file or specific folder from your repo. e.g.
svn co file:///home/mysurface/repo/programming_repo/c/curses/matrix.cc
This will only check out a file at current directory.
Single file can’t be checkout like directories, but you can extract them from repository by svn export
svn export file:///home/mysurface/repo/programming_repo/c/curses/matrix.cc
How to track the changes before commit to repo?
First of all, you track what files had changed,
svn status
It will list files which have changed, with some attributes besides the filename. Common attributes are M, ?, A … M is modified,
A is newly added (how to add refers later section), ? indicate the file is added into local directory but not added into repo.
Secondly, you want to track the differences between the previous revision and the working one. Lets assume color.c has changed,
svn diff color.c
I really don’t like svn diff ’s result. Fortunately, I found a simple bash script what makes vimdiff as the compare tool.
The script was written by Erik C. Thauvin, you can get it from here.
I name it as svndiff and place it at /usr/bin, change the mode to executable.
chmod +x /usr/bin/svndiff
Now, I can simply do this,
svndiff color.c
To close the vimdiff, type :qa
How to commit the changes?
You can commit with -m to place your log message if it is short. But if it is long, I suggest you to make use of your default
editor. I am a vim user, therefore I add a line into my ~/.bashrc
EDITOR=vim
Now I can commit with this:
svn ci
ci is the shortform of commit. Write the log message and close save vim :x, I am done. The same way as checkout, you can choose
to commit one file or any folder.
How to add or delete file to or from repo?
The file won’t be committed if you don’t add it into repo. Therefore you need to add it manually if you want it to goes into
your repo. Let say you wanna add a new file color2.cc
svn add color2.cc
Delete does the same way, if you only delete file at your working directory, it won’t reflects the changes to our repo.
How to check the logs for each revision?
The simplest way is doing just,
svn log
It will list all logs, start from latest revision. That is really irritating! You can limit it to 3 latest revision log by
doing this
svn log --limit 3
If you wanna check for specific revision, specified with -r,
svn log -r 3
I find something awkward, let say I have done svn delete at revision 3 (latest), and revision 2 is the changes of the deleted
file at revision 3. When I do svn log, by right it should show all 3 logs, but It only shows for revision 1. It means the svn
log will only shows the log if the file is exist, bare in mind.
How to update the working directory into the latest revision?
svn update
Update to specific revision?
svn update -r 3