Silicon Valley investing slump continues, fewer startups get funded

Experts say activity isn’t likely to rebound in the near future to the highs hit in 2015, but that’s not necessarily. – Hacker News

World’s Countries, States and Cities database

There are many Database providers which are charging us for providing the Databases of various types. One of them is very important and useful database is for world’s all countries,State and Cities. Every time when we plan to create a website then we stuck on one point that is how…

Read More

SolveIt – Detect the Domain Name

You will be provided with a fragment of HTML code. Your task is to identify unique potential domain names from the links or URLs which are present in that code fragment. For example, if the link http://www.phpdrill.com is present in the markup, you should detect the domain: phpdrill.com. If second-level…

Read More

SolveIt – K-subsequences ( Given a large list of n positive integers, count the number of k-subsequences.)

A k-subsequence is defined as follows: It is a subsequence of consecutive elements. The sum of its elements, s, is evenly divisible by k (i.e.: s % k = 0). Complete a function called kSub with two parameters: an integer, k, and an array of integers, nums, of size n.…

Read More

SolveIt – Find out Maximum Difference in an Array

The maximum difference for a pair of elements in some array a is defined as the largest difference between any a[i] and a[j] where i < j and a[i] < a[j]. Create a Function maxDifference to find the maximum difference from array a. Output Format Your maxDifference function should return…

Read More

PHP Tips and Tricks to make your code simple and faster

There are plenty of tips and tricks that you can use to make your code better, and a few of them are covered below. These tips may help you to make your PHP programming better in various ways. PHP Shorthand If/Else Using Ternary Operators (?:) An important part of programming is…

Read More

What is Node.js ? How it Works ? for Beginners

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world. Its an open source, cross platform runtime environment for developing server-side…

Read More

Simple and better ways to optimize MySQL query

MySQL  is very popular choice for database management systems. Which uses the SQL querying language to input and query data. Although SQL queries are simple commands that are very easy to learn and use, but not all queries and MySQL database functions operate with the same efficiency. This becomes very…

Read More

Translates a given mRNA string to a peptide-chain in PHP

We can make a simple tool to translate the mRNA (5′-3′) string to a peptide chain by using PHP. Following class is meant to translate a given mRNA string (from 5′ to 3′) to a peptide-chain (Chain of amino acids). <?php class BioTranscription { function BioTranscription() { $this->amino_acids = array(‘Asp’…

Read More

Array vs Object when returning data

Prefer Using Objects when returning large amount of data When returning large data, it can be obvious to use Arrays. But Arrays make poor object-to-object data transfer mechanisms in object-oriented programming. Objects are main focus of  Object-oriented programming and it should be. This means that each array should be converted…

Read More

SEO and the relevance determination of keywords / terms in the search engines

Lately I am working intensively with the topic search engine optimization and the algorithms of search engines. Clear there are perceived 1 million SEO blogs and SEO service provider, which would tell me all this for a lot of money. But several magazines and refinements enable me as a Web…

Read More

PHP external URL read with CURL and Proxy

The retrieve and read an external URL is easy with PHP. For this purpose, you need only the extension CURL, which is almost always enabled by default. Even if the server is behind a proxy that is not a problem. You can Agent strings and so transmit certain data even…

Read More

Angular 2 reached beta status – Angular 2 bends with the beta release slowly but surely an on the home straight

The team behind the JavaScript framework Angular 2 has reached a major milestone. With the release of the first beta of Angular 2 Google flexes now a on the home stretch and presented at the same time some large projects that have been already migrated internally to Angular 2. Nearly…

Read More

Clear Name Required: Facebook tool checks Fake profiles and pseudonyms

Who has good reasons, may keep his false name on Facebook. Thus especially the access for minorities and political persecution is to be saved. For this, however, intimate information must be provided. Fake profile to be easily exposed by the test method. The security measures grow so fair cooperation is…

Read More

Embed Photo Sphere in website

I have written in my blog ever thought about the possibility to include 360 ​​° images with JavaScript in a web site. At that time the whole thing was based on the Web viewer by Joe Simpson. Meanwhile, Google has published its own method. For this purpose, Google has published…

Read More

Force HTTPS connection on your website using .htaccess to get better rank on Google

After Google has the encrypted SSL / TLS connection via HTTPS declared ranking factor, make more and more website operators to access an encrypted connection. When HTTPS is enabled, all requests over the encrypted connection should be sent off then. For a simple entry ranges in the .htaccess configuration file:…

Read More

Codeigniter : Adding Header and Footer automatically

A developer don’t really enjoy writing same line of code again and again. In Codeigniter we normally load same view templates in every controllers. e.g. $this->load->view(‘templates/header’); $this->load->view(‘body’); $this->load->view(‘templates/footer’); But it is possible to add templates header and footer automatically whenever we load any view to controller. For this we needs…

Read More

PHP’s references slows web applications

What sounds for many first totally wrong but seems to be true. I myself have to this day variables, where ever large arrays stored for floating passed as if I knew that the content is not altered. Just out of the idea that one thereby saving memory and can optimize…

Read More

Use Facebook Places under Firefox (without phone)

Almost by chance, I have just found out that you indeed can use without a GPS mobile Facebook Places to tell his friends, where you are just. Many are still skeptical about this feature and fear for their privacy – not entirely wrong, because by default allows Facebook that people…

Read More

Methods of Fetching contents of a URL in PHP

If you want to retrieve the contents of a URL. For example, you want to include part of one site in another site’s content. PHP provides function file_get_contents() to get the contents through GET method from URL. $page = file_get_contents(‘http://www.example.com/robots.txt’); Or you can use the cURL extension: $c = curl_init(‘http://www.example.com/robots.txt’);…

Read More

What are Streams and how it works in PHP Programming ?

Streams are the way that PHP handles access to and from files and network services. Whenever you use file wrappers – whenever you are accessing a file – PHP automatically creates a stream for you in the background. Streams are made up from a number of smaller components. Each stream…

Read More

What are File wrappers and how it works in PHP Programming ?

File wrappers are pieces of code that PHP uses to read from and write to different types of files. They are part of PHP’s Streams architecture. File wrappers allow you to use PHP’s built-in filesystem functions on things that aren’t normal files. When your PHP script needs to work with…

Read More

“Click to Run” your PHP script in linux

On most Linux systems, specifically those that support the freedesktop.org “Desktop Entry Specification” standard, you can create a clickable “launcher” icon by simply creating a text file. Most main-stream Linux distributions and their window managers follow at least the basics of this standard. To create a launcher for your PHP…

Read More

Profiling Codeigniter website to get database queries count and optimize website speed

Clients often complains that their website speed is slow. One of the most common reason was a large number of database queries that get executed for every single page, sometimes more than thousand queries for a single page. In this article, I will explain how to figure out whether the…

Read More

How to modify author base from URL in WordPress blog

Post authors in WordPress blog have a URL like http://example.com/author/authorname, where all their articles are listed. And many of us who think it doesn’t look good to have ‘author’ as author_base and want to change that URL format. The author_base of URL can be change by using some rewrite rules…

Read More