Once again, I realized that there is nothing better (at least currently) rather than HTC/Samsung and Android-based devices.
Anyway, want to see iPhone 6, 7, 8, 9, 10+?
Visit: www.future-iphone.com
comrade developer
A blog about development, development tools, IT industry and everything related.
Thursday, September 13, 2012
Thursday, September 6, 2012
Mac Book Air
Is the Mac Book Air (13") is so cool looking, works real fast and is a very light/thin device?
...direction: rtl
When you output a lot of text information in HTML pages you may need to truncate some words. A smart thing to do is to use CSS3 text-overflow property. For example: to get text truncated like "Here is a long te..." you would code:
HTML
CSS
Sometimes you may need to cut text from left side to get something like "...a long text information". This is easy to do using the "direction: rtl" CSS property. Add another class which will define alternate truncation side:
CSS
Usage for the above CSS class:
HTML
<span class="truncate">Here is a long text information.</span>
CSS
SPAN.truncate { width: 100px; overflow: hidden; white-space: nowrap; text-align: left; }
Sometimes you may need to cut text from left side to get something like "...a long text information". This is easy to do using the "direction: rtl" CSS property. Add another class which will define alternate truncation side:
CSS
SPAN.truncate.left { direction: rtl; }
Usage for the above CSS class:
<span class="truncate left">Here is a long text information.</span>
Fighting with old code
Some people prefer to use old outdated scripts even if there are good modern alternatives are available. Such code can be is very dangerous from security standpoint. Nevertheless, reasonable sense does not work for them. Today we had to fix issue with the MultiCart (http://www.iscripts.com/multicart/) script which uses session_register() function to work with sessions. The problem is that this function is not available in PHP 5.4.
Monday, August 27, 2012
Midnight Commander and other linux stuff on Mac OS
I recently started using Mac as my secondary laptop but after a few days of being a "mac user" I was really missing the mc (Midnight Commander) command-line utility. Here is a quick guide how to install it in Mac OS (tested under Mac OS version 10.8.1).
Saturday, August 25, 2012
Wednesday, August 22, 2012
World's Smallest Web Server
webACE is the smallest web server in the world. Isn't this awesome?
More info about webACE here: http://d116.com/ace/
Subscribe to:
Posts (Atom)
Popular Posts
-
I recently started using Mac as my secondary laptop but after a few days of being a "mac user" I was really missing the mc (Midnig...
-
At the end of the spring I have bought a new laptop, my previous one (Samsung Q…. not sure what the exact model was too slow for me). My c...
-
Once again, I realized that there is nothing better (at least currently) rather than HTC/Samsung and Android-based devices. Anyway, want...
-
webACE is the smallest web server in the world. Isn't this awesome? More info about webACE here: http://d116.com/ace/
-
This is obvious that the main purpose of any bug tracking system is to keep list of defects in software, app or a website. Any BT does this ...
-
When you output a lot of text information in HTML pages you may need to truncate some words. A smart thing to do is to use CSS3 text-overflo...
-
Is the Mac Book Air (13") is so cool looking, works real fast and is a very light/thin device?
-
Some people prefer to use old outdated scripts even if there are good modern alternatives are available. Such code can be is very dangerou...
-
BugZilla I am continuing to share my experience with bug tracking systems started here . The second BT in my list — BugZilla. This is a f...
-
You would agree that linux's terminal and window's cmd.exe are not comparable things, there are a lot of things which are not avail...