< 1 2 3 >   ∑:64  Sort:Date

How to generate an authentication code in PHP ?
Useful PHP Code Snippets for Developers - How to generate an authentication code in PHP ? <?php # This particular code will generate a random string # that is 25 charicters long 25 comes from the number # that is in the for loop $string = "abcdefghijklmnopqrstuvwxyz012 3456789";for($i=0;$i
2015-06-19, ∼1950🔥, 0💬

Install IPython Kernel in Conda Environment
How to install IPython Kernel in a Conda environment? IPython Kernel is a component of the IPython package. If you have IPython installed, IPython Kernel is ready to use. But you also install IPython Kernel as a standalone package in a Conda environment, so you can use it to server IPython clients. ...
2021-11-25, ∼1941🔥, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is static?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is static? To execute main method without creating object then the main method oshould be static so that JVM will call main method by using class name itself.
2015-07-01, ∼1896🔥, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Can we write static public void main(Str
main method is a standard method used by JVM to execute any java program(Java SE). - Can we write static public void main(String [] args)? Yes we can define main method like static public void main(String[] args){} Order of modifiers we can change. package instanceofjava; public MainDemo{ static pub...
2015-07-01, ∼1879🔥, 0💬

Validate email Address
Useful PHP Code Snippets for Developers - Validate email Address function is_valid_email($email, $test_mx = false) { if(eregi("^([_a-z0-9-]+)(\.[_a -z0-9-]+)*@([a-z0-9-]+)(\.[a-z 0-9-]+)*(\.[a-z]{2,4})$",$email)) if($test_mx) { list($username, $domain) = split("@", $email); return getmxrr($domain, $m...
2015-06-19, ∼1873🔥, 0💬

Unzip a Zip File
Useful PHP Code Snippets for Developers - Unzip a Zip File <?php function unzip($location,$newLocation){ if(exec("unzip $location",$arr)){ mkdir($newLocation); for($i = 1;$i //Use the code as following:
2015-06-19, ∼1866🔥, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why the arguments String[] args?
main method is a standard method used by JVM to execute any java program(Java SE). - Why the arguments String[] args? String array variable name args : by the naming conventions they named like that we can write any valid variable name.
2015-07-01, ∼1832🔥, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is public?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is public? To call by JVM from anywhere main method should be public. If JVM wants to call our method outside of our package then our class method should be public. package instanceofjava; public Mai...
2015-07-01, ∼1818🔥, 0💬

username, password and date validation with php
Useful PHP Code Snippets for Developers - username, password and date validation with php
2015-06-19, ∼1742🔥, 0💬

php json array problems
I am creating a json array in PHP like this (it's inside a class): $STH = $DBH->query("SELECT ID,title,content FROM table WHERE ID= '".$ID."' "); $querycount = $STH->rowCount(); if($querycount!=0): $STH->setFetchMode(PDO::FETCH_ OBJ);while( $row = $STH->fetch()) : $thread[$row->ID]['title'] = $row->...
2015-05-21, ∼1738🔥, 0💬

WordPress – Scheduling Posts for RSS
Useful PHP Code Snippets for Developers - WordPress – Scheduling Posts for RSS function publish_later_on_feed($where) { global $wpdb; if(is_feed()) { // timestamp in WP-format $now = gmdate('Y-m-d H:i:s'); // value for wait; + device $wait = '5'; // integer // http://dev.mysql.com/doc/refma n/5.0/...
2015-06-19, ∼1731🔥, 0💬

Start IPython Kernel and Jupyter Console Separately
How to Start IPython Kernel and Jupyter Console Separately? You can start an IPython Kernel and a Jupyter Console in a single command "jupyter console --kernel=kernel_spec". But you can also start an IPython Kernel separately and keep it running. Then start a Jupyter Console later to connect to the ...
2021-09-09, ∼1723🔥, 0💬

What Is JupyterHub
What Is JupyterHub? JupyterHub allows you to create a multi-user Hub that spawns, manages, and proxies multiple instances of the single-user Jupyter notebook server. JupyterHub can offer notebook servers to a class of students, a corporate data science workgroup, a scientific research project, or a ...
2021-12-23, ∼1717🔥, 0💬

How to get users’ IP Address with PHP
Useful PHP Code Snippets for Developers - How to get users’ IP Address with PHP function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_ IP']))//check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP'] ;} elseif (!empty($_SERVER['HTTP_X_FORWA RDED_FOR']))//to check ip is pass from proxy ...
2015-06-19, ∼1670🔥, 0💬

Setup Jupyter Server for Remote Access
How to Setup Jupyter Server for Remote Access? If you want your Jupyter Server to be accessed remotely, you need to change the Jupyter Server and the Firewall configurations as shown in this tutorial. 1. Find out the Jupyter server IP address. For example, 192.168.1.10: fyicenter$ nmcli eno1: connec...
2021-11-12, ∼1667🔥, 0💬

Turn on Password Protection on Jupyter Server
How to Turn on Password Protection on Jupyter Server? By default the Jupyter Server has no password protection. Any user can access the server, if he/she knows the server IP address and port number. You can follow this tutorial to turn on password protection on the Jupyter Server. 1. Run "jupyter no...
2022-02-04, ∼1659🔥, 0💬

url, email and ip validation with php
Useful PHP Code Snippets for Developers - url, email and ip validation with php
2015-06-19, ∼1651🔥, 0💬

Login to JupyterHub Web Interface
How to Login to JupyterHub Web Interface? If you are running JupyterHub with its default options, you can login the Web Interface at http://localhost:8000 with your server username and password. 1. Start JupyterHub in the Conda "base" environment. fyicenter$ conda activate (base) fyicenter$ jupyterh...
2021-09-09, ∼1594🔥, 0💬

MD5 Hash Function in PHP
How to calculate the MD5 hash of a string in PHP? You can use the following md5() function to calculate the MD5 hash of a string using the MD5 Message-Digest Algorithm. string md5 ( string $str [, bool $raw_output = false ] ) str - The input string. raw_output - If TRUE, then the md5 digest is inste...
2015-05-30, ∼1545🔥, 0💬

What Is IPython
What Is IPython? IPython is a comprehensive environment for interactive and exploratory computing with Python language. IPython has three main components: An enhanced interactive Python shell, represented by the "ipython" command. A decoupled two-process communication model, which allows for multipl...
2021-11-25, ∼1536🔥, 0💬

Installing and Running JupyterHub
Where to find tutorials on Installing and Running JupyterHub. Here is a list of tutorials to answer many frequently asked questions compiled by FYIcenter.com team on Installing and Running JupyterHub. Install JupyterHub in Conda Environment Login to JupyterHub Web Interface JupyterHub Spawn Failed: ...
2021-09-09, ∼1532🔥, 0💬

Public Jupyter Server with Python Engine
How to use the Public Jupyter Server with Python Engine? If you know Python and just want to try Jupyter and see how it works, you can use the Classic Jupyter Server offered to the public by jupyter.org as show in this tutorial. 1. Open https://jupyter.org in a Web browser. 2. Click "Try it in your ...
2021-12-23, ∼1514🔥, 0💬

Make IPython Kernel Available for Jupyter
How to make a IPython Kernel Available for Jupyter? If you have a new IPython Kernel installed in different Conda environment, than the Jupyter Conda environment, you can make new IPython Kernel available to the Jupyter server to use the different Conda environment. Here is how to do it. 1. Activate...
2022-06-17, ∼1510🔥, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method return type is void?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method return type is void? main method wont return anything to JVM so its return type is void.
2015-07-01, ∼1509🔥, 0💬

< 1 2 3 >   ∑:64  Sort:Date