Posts marked with "Posts" in posts
How to add Subins Like button to blogger/blogspot
BLOG URL‘>
... [READ MORE]
Updating site in App Fog on Linux / Uploading site files to App Fog Server
sudo apt-get install ruby
sudo apt-get install gem
sudo gem install af
... [READ MORE]
Subins Project Online – Thanks to App Fog
I took a leave because of fever. On that day I was browsing the internet and out of nowhere I saw a post about a site named AppFog. The post said that AppFog gives free hosting on their servers under their domain name. So quickly I went to AppFog and signed up. It was pretty easy. I created my site in the domain subins.hp.af.cm.
... [READ MORE]How to alert user that he is the ___th visitor of blogger/blogspot blog?
... [READ MORE]
Free Palestine
SQL Query in another SQL Query = SQL Subquery
SELECT * FROM `fdposts` WHERE user IN (SELECT friend FROM `fdfriends` WHERE user=’subins2000′)
The above code will select rows in table fdposts where user is the value of friend row in the table fdfriends.
As you can see it’s very simple. Here’s another example :
SELECT * FROM `posts` WHERE user IN (SELECT name FROM `members` WHERE user=’subins2000′)
... [READ MORE]
How to run/execute SQL Code
Go to localhost/phpmyadmin/server_sql.php.
Paste the SQL Code in the text box shown in the page and press GO button at the bottom right of the page.
If you want to run code in PHP file do as below.
Open your PHP file.
Add these lines in the file.
mysql_query("sql code here");
NOTE – Replace the red line with the SQL code.
How to increase your apt cache limit
E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing riece (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/archive.offensive-security.com_dists_pwnsauce_universe_binary-i386_Packages
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.
... [READ MORE]
sudo gedit /etc/apt/apt.conf.d/70debconf
Creating a custom 404 Not Found page in Apache Server.
You might have seen a 404 page on different sites such as Google,Yahoo etc… You can make this on your website too if you are using Apache Server. The default 404 page will be like this :
ErrorDocument 404 /pathtofile
... [READ MORE]