For smart Primates & ROBOTS (oh and ALIENS ).

Thursday, September 29, 2016

How to activate gzip or deflate in Nginx Server

Real Life Coding Stuff
How to activate gzip or deflate in Nginx Server If you have Nginx server and you deployed a site and seeing site is not producing data as gzip or deflate; it's means the gzip or deflate is not active in your nginx server. so how to activate it?  The server configuration...
Share:

Monday, August 15, 2016

SQLSTATE 42S02 Base table or view not found 1146 Table doesn't exist

SQLSTATE[42S02]: Base table or view not found: 1146 Table doesn't exist I have faced the very strange Mysql problem. I have the database name "DAVP" and having various tables. All the tables are existing with few of records. Now I have queried to select some rows from one of table and surprise query showing error that the table "sark_rec"...
Share:

Tuesday, June 28, 2016

Object must be of type String while sorting datagridview

Object must be of type String You are working with DataGridView with  several columns. You want to make sort of one column name "marks". then you will simply use below one line of code: dataGridView1.Sort(dataGridView1.Columns["marks"], ListSortDirection.Ascending);  But you may get error message as below: System.ArgumentException...
Share:

Software caused connection abort Failed to retrieve directory listing in FileZilla

Software caused connection abort Failed to retrieve directory listing in FileZilla FileZilla is a Good software for FTP and SFTP to upload and download files in web-server. sometime in a folder having lot of files for ex: >50000 at that time when you want to see those files simply you double click on that folder. but you surprised that...
Share:

How to use $_POST in better way

How to use $_POST in better way. Suppose there are 10 fields in a PHP webpage that's data are saving into database. In that 10 fields 2 fields are empty and when in values are empty you want store "N/A" values are saving into database.  Use below one line of code: $myval = isset( $_POST['myvar'] ) ? $_POST['myvar'] : 'N/A';  You can...
Share:

Tuesday, May 31, 2016

How to check if internet active in your computer

How to check if internet active in your computer When you write code in JavaScript sometime you code does not execute due to loss of internet connectivity.  so how you check if internet connection properly ON in your computer system. below is one line of JavaScript code that check your system internet connect On of OFF. Code is: var...
Share:

Tuesday, April 19, 2016

how to fix Configure the viewport

How to fix Configure the viewport Sometime when you increase score of your site in Google PageSpeed Insights for SEO purpose and optimize it's responsiveness you can face the issue Configure the viewport. It is simple to fix the Configure the viewport issue. use only this below meta tag. if you have already this similar meta tag with extra aruments...
Share:

Sunday, February 28, 2016

how to include js file in JavaScript code

How to include js file in JavaScript code Sometime you need to include js file in javaScript code. below is the code that will solve this problem. <script type="text/javascript">//<![CDATA[ document.write('<script src="url_path/js/js-file.js"><\/script>'); } //]]> </script&g...
Share:

delete multiple emails in Gmail basic HTML mode

Real Life Coding Stuff
How to delete multiple emails in Gmail basic HTML mode Sometime you have slow internet connect, so at that time you will not able to open gmail in standard mode. at that time you will open it in HTML mode. It is okay. now when you want to delete multiple emails(100...
Share:

Monday, February 08, 2016

XSS Exploits

Real Life Coding Stuff
XSS Exploits It is XSS, It is Web site hacking. It is cross site scripting (XSS).  The most usual form of Web site hacking . hackers force a site to perform certain actions like inject a client side scripting code (JavaScript) mixed with submitted content. so...
Share:

Saturday, February 06, 2016

update control value in C# Thread

How to update control value in C# Thread. Use below sample of code: Thread t1=new Thread(); String b=""; int all=0;  private void button5_Click(object sender, EventArgs e)  {                       t1 = new Thread(new ThreadStart(MyCodeRun));  t1.Start();  } void MyCodeRun() {  ...
Share:

Friday, February 05, 2016

JSON parse in PHP

JSON parse in PHP Suppose you want to parse listed below JSON data in PHP and you only needed to print objectId values. you can see here 3 records under merchants value "RPEZF3MRM39Z0" ----------------------------------------------------------------------- { "appId": "0QA16KMMVJAQR", "merchants": { "RPEZF3MRM39Z0": [{ "objectId": "O:S1MXC6FCY6GDW", ...
Share:

Wednesday, February 03, 2016

Video Cutter

Real Life Coding Stuff
Video Cutter A Windows based Video cutter application. compatible with Windows 7, Windows 8,Windows 10 for 32 and 64 bit. You do not stop or pause movie while cutting any part from video. just watch video while my application cut the part which you set. Video Cutter Cut...
Share:

Ads Inside Post

Powered by Blogger.

Archive