1 Ağustos 2014 Cuma

Fruitful Regex Hints

Minimum 8 characters at least 1 Alphabet and 1 Number:

"^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$"
 
Minimum 8 characters at least 1 Alphabet, 1 Number and 1 Special Character:


"^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{8,}$"

Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet and 1 Number:
 
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$"



Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character:

"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,}"


Minimum 8 and Maximum 10 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character:
 
"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{8,10}"

31 Temmuz 2014 Perşembe

How to monitor the services in Ubuntu 14.10

To oversee ubuntu linux background daemons, following command is fruitful:
sudo initctl list

There is a detailed explanation for this init control tool in here 

30 Temmuz 2014 Çarşamba

Ruby Quick Reference

When hacking Ruby on Rails, Some strange code stick in my mind. Therefore, while searching good guide, I found this useful Ruby reference.

28 Temmuz 2014 Pazartesi

Ubuntu 14.10 MATE nm-applet appearing problem

When you install a new Ubuntu 14.10 MATE, you couldn't see network manager applet in your top panel. To be enable it, you should edit /etc/xdg/autostart/nm-applet.desktop
[Desktop Entry]
Name=Network
Comment=Manage your network connections
Icon=nm-device-wireless
Exec=nm-applet
Terminal=false
Type=Application
NoDisplay=true
NotShowIn=KDE;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=NetworkManager
X-GNOME-Bugzilla-Component=nm-applet
X-GNOME-UsesNotifications=true
#AutostartCondition=GNOME3 unless-session gnome <---Comment out

X-Ubuntu-Gettext-Domain=nm-applet

Furthermore, if you run below instructions in your terminal, you will enable nm-applet every log in.

mkdir -v ~/.config/autostart
cp /etc/xdg/autostart/nm-applet.desktop ~/.config/autostart


16 Temmuz 2014 Çarşamba

How to set/unset git proxy

To set proxy server with git:

http_proxy=http://$server_ip:$server_port/
git config --global http.proxy $http_proxy

To unset proxy server with git:

git config --global --unset $http_proxy

21 Temmuz 2013 Pazar

Ubuntu 13.04 launcher remove

I realize that I didn't write anything  here for a long time. I bought a new ultrabook. After installing ubuntu 13.04, I am really fed up with launcher. Therefore I decided to remove it. While I was wandering web sites, I came across a nice recommendation. And here you could see it. I think it is useful for people who want to remove launcher. For now, that's it...