I decided to write movies that i want to advice. Therefore, i opened a category named movies. I have just added a new post in it . Actually, i think, my english is not enough to write summary about movie, but i just want to write.
I wrote c code to read from a file char by char. Finally, it counts char number and print it. How to read file with C 1. Get file name to open. 2. Open file to read. 3. Get a char. 4. Print char. 5. Print total char in the file. #include void main () … Read more
Today, i opened a new user (account) and gave ssh access a user on my linode vps. Opened new group Created new user Changed user group Check user group is true Giving ssh access to user Restarting sshd Lets firstly add a user in Ubuntu sudo adduser USERNAME Create new group in Ubuntu sudo addgroup … Read more
some apt-get commands Here is quick cheat sheet you will find handy while using apt-get at shell prompt: Syntax Description Example(s) apt-get install {package} Install the new package. If package is installed then try to upgrade to latest version apt-get install zipapt-get install lsof samba mysql-client apt-get remove {package} Remove/Delete an installed package except configuration … Read more
if you are taking a warning such as; Notice: Use of undefined constant _HC_PKG_THEME – assumed ‘_HC_PKG_THEME’ in ~\phpcoin\config.php on line 141 Notice: Use of undefined constant DIR – assumed ‘DIR’ in ~\phpcoin\config.php on line 146 Notice: Use of undefined constant _HC_PKG_LANG – assumed ‘_HC_PKG_LANG’ in ~\phpcoin\config.php on line 153 find this in php.ini error_reporting … Read more
While i was trying to configure postfix, i learnt to sending e-mail in ssh. There are some script to do this and i choose sendEmail to install sendemail type: sudo apt-get intstall sendemail then you can type sendemail -f {from} -t (emailto} sendEmail -f ADDRESS [options] Required: -f ADDRESS from (sender) email address * At … Read more
I have to share this ! Let’s dance & drink : )) But first drink to dance. The Rocky Road To Dublin (Sherlock Holmes Movie)
I needed a function to get (learn) url with php. Here are the codes. <?php function curPageURL() { $pageURL = ‘http’; if ($_SERVER["HTTPS"] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER["SERVER_PORT"] != “80″) { $pageURL .= $_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?> To use this function write … Read more
