Posts from ‘Tips&Tricks’

Feb
24

Ever wanted to add a bottom shadow effect to some elements, shapes or images in Photoshop in just a few easy steps? Well actually is quite easy to do something like this and you don’t have to be an expert.

The main design advantage that bottom shadow effects have is that it will give you the impression of deepness to your content and elements.

Here is the desired effect

ps-bottom-shadow-effect-1b

Step 1 – Open your image / document

Open your document or image in Photoshop and create a new Layer right after your main Layer. In this layer we will add the bottom shadow effect and because the new layer is positioned right after our main one it will display in the back without overlapping the main layer…

Continue Reading

Jan
25

Ergonomics Definition

In speranta ca marea majoritatea dintre voi petrec foarte mult timp in fata calculatorului si pentru ca multi nici nu stiu cum sa isi faca viata mai usoara din punct de vedere al sanatatii incercati in primul rand cand ajungeti la birou sau acasa in fata computer-ului din dotare sa va acordati cateva minute sa reflectati asupra conditiei voastre

Ma simt sau nu confortabil pe scaun in fata calculatorului?

Raspunsul trebuie sa fie simplu DA sau BA!

Aici intervine Ergonomia. Desi poate suna ciudat Ergonomia spatiului de munca este o stiinta care se ocupa cu design-ul jobului si echipamentului pentru a se potrivii cu muncitorul. Astfel ca de ce sa nu facem ceva in privinta acestui lucru reusind in acest sens sa ne imbunatatim viata si productivitatea in munca (cat de corporate suna, dar sa nu pierdem din vedere esenta).

Lista punctelor esentiale

Daca cautam putin pe net despre ergonomie si exemple gasim o gramada, unele mai detaliate altele mai simple, ce pierdem noi insa din vedere este faptul ca cele mai importante le putem face fara prea mult efort, astfel ca am agregat o lista cu cele mai importante si usor de facut aspecte in ceea ce priveste ergonomia noastra la locul de munca sau acasa…

Continue Reading

Jan
17
TextEscapingUnescaping

Text Escaping Unescaping

For a project I worked a few months ago I needed to escape special characters used to pass some information from one point to another. Of course I used at that point the great application built by Marc called Unicode2HTML but I needed more than that. I wanted to convert also to other formats like \uXXXX or Punycode so after searching the net for a tool like that I found a very nice library built by Satorux called strutil.js.

The library actually does exactly what I wanted, it converts a character to a bunch of formats that I can use. The service Satorux has build, using this library, can be found at Text Escaping and Unescaping in JavaScript.

I decided to port this online version to an application so we can use it in offline also. This was a good project because it concluded to be my first Adobe AIR project (hope more will come).

I won’t make a tutorial on how to build an AIR app in this article because there is no point you can search the net for this kind of things and you will find dozens of great tutorials. But what I want to share with you is the application itself and the simplicity of the AUTO UPDATER Framework Adobe AIR has…

Continue Reading

Jan
16

The text-shadow declaration allows you to create a text shadow; i.e. a slightly moved, slightly blurred copy of a text. Just like drop-shadow from Photoshop styles. Using this css property we can create a glow effect for our texts.

Some examples

This text should have a text-shadow.

This text, too, should have a text-shadow.

Syntax for text-shadow

p.test{
    text-shadow: #6374AB 20px -12px 2px;
}

So text-shadow accepts 4 values (3 for position and 1 for color):

Continue Reading

Dec
27
Evolution of Programmer

Evolution of Programmer

High School/Jr.High

10 PRINT "HELLO WORLD"
20 END

First year in College

program Hello(input, output)
begin
writeln('Hello World')
end.

Senior year in College

(defun hello
(print
(cons 'Hello (list 'World))))

Continue Reading

Dec
19
Wordpress Icon

Wordpress

I’m the Administrator on my WordPress site but my name doesn’t show up as an Author option when posting. This what happened to me one day, when I have checked all my posts.

Well occasionally, WordPress gets stoned and loses the Administrator’s name in the Author dropdown menu. I really do not know why and to be honest I never tried to figure out what is the reason for this bug.

The fix for this one is actually quite simple (although it could look like your are scratching your right ear with your left hand). Here is what  you need to do to fix this bug: …

Continue Reading

Nov
15

Incepand cu versiunea 11 Release 2 Oracle introduce un nou feature in RDBMS lor, Recursive Subquery Factoring. Prima aplicatie practica la care s-a gandit Anton Scheffer este cum sa rezolve SUDOKU :)

<pre>with x( s, ind ) as
( select sud, instr( sud, ' ' )
from ( select '53  7    6  195    98    6 8   6   34  8 3  17   2   6 6    28    419  5    8  79' sud from dual )
union all
select substr( s, 1, ind - 1 ) || z || substr( s, ind + 1 )
, instr( s, ' ', ind + 1 )
from x
, ( select to_char( rownum ) z
from dual
connect by rownum < = 9
) z
where ind > 0
and not exists ( select null
from ( select rownum lp
from dual
connect by rownum < = 9
)
where z = substr( s, trunc( ( ind - 1 ) / 9 ) * 9 + lp, 1 )
or    z = substr( s, mod( ind - 1, 9 ) - 8 + lp * 9, 1 )
or    z = substr( s, mod( trunc( ( ind - 1 ) / 3 ), 3 ) * 3
+ trunc( ( ind - 1 ) / 27 ) * 27 + lp
+ trunc( ( lp - 1 ) / 3 ) * 6
, 1 )
)
)
select s
from x
where ind = 0
/</pre>

Continue Reading

Jun
13

sudo apt-get install ubuntu-restricted-extras – doar aceasta linie de cod te scapa de multa bataie de cap si de cel putin 100 de posturi pe forum in legatura cu flash, mp3, java etc. etc. … am trecut prin asta si stiu cum este :D

sudo apt-get install gufw – firewall (IPTables), mereu am avut nevoie de porturi configurate sau de ceva mai usor pentru firewall

Si nu uitati inainte sa treceti la tweaking instalati toate patchurile de securitate… ;)