Archive for the ‘Programming’ Category
Wednesday, August 13th, 2008
Here is a simple script to get the exchange rates from www.bnro.ro/nbrfxrates.xml
#!/bin/bash
# clear the screen
clear
# display an info message
echo "+------------------------------+"
echo "| BNR exchange |"
echo "+------------------------------+"
# check for parameters
if [ $# -ne 1 ]
then
echo "Usage: $0 eur ...
Posted in Linux, Programming | 2 Comments »
Sunday, March 2nd, 2008
One of Internet Explorer versions 6 and 7 bugs, consists in repeating (duplicating) some characters from the end of some elements with the CSS atribute - float.
What's triggering this bug:
Using HTML comments inserted between the elemens with the float attribute.
Hidden elements using display: none
Solutions to prevent the duplication of the ...
Posted in CSS, HTML, Programming, Software | No Comments »
Thursday, November 15th, 2007
Here is a simple example of creating and running (executing) a shell script. This script will display the numbers from 1 to 10.
Creating the script:
With any text editor (Gedit for Gnome, Kate for KDE, nano):
#/bin/bash
for ((i = 1; i
Posted in Linux, Programming | 1 Comment »
Saturday, October 20th, 2007
The usage of diacritics in web pages requires Unicode encoding.
In the head section of the page (between <head> and </head>) you need to insert this line:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Here is a list with the corresponding HTML codes of the romanian diacritics :
ă > ă
Ă > Ă
î > ...
Posted in HTML, Programming | No Comments »