racl101 + maximum   18

numpy.random.randint — NumPy v1.14 Manual
useful method for getting either an array or a 2D matrix of randomly generated integers between two numbers.


Get a Numpy array of 100 numbers between 0 and 50

arr1 = np.random.randint(0,50, 100)

Now, suppose you want that same data in a 5 by 10 matrix. You can do this like so:

matrix_1 = arr1.reshape(5,10)
numpy  documentation  guide  reference  random  randint  method  generate  integers  between  minimum  maximum  rows  columns  shape  howto  example 
april 2018 by racl101
Raising the Maximum Number of File Descriptors (Open Files) on Ubuntu 14.04 Trusty
Really good tutorial showing how to increase the maximum number of open files (file handles) that can be opened on a Linux system, on Ubuntu 14.04 (but it works as well for Ubuntu 16.04). More importantly it shows any caveats as to why maybe changing the values might not take effect immediately as well as how to check your work by checking the maximum number of open files that a given process can have. Very applicable to Nginx when increasing the worker_rlimit_nofile setting is not enough.
blog  tutorial  howto  increase  maximum  open  file  limit  linux  ubuntu  ubuntu16.04  ubuntu14.04  example  check  process  worker_rlimit_nofile  nginx  ulimit 
november 2017 by racl101
Ubuntu 16 - how to increase maximum file open limit ( ulimit -n )
What's interesting here is that this tutorial points out that:


is the kernel limit to which limits in /etc/security/limits.conf can be increased. Other tutorials don't really mention it.
blog  tutorial  howto  example  guide  reference  ubuntu  ubuntu16.04  maximum  open  file  handle  limit  linux  server  ulimit  nginx  mysql 
november 2017 by racl101
ulimit - Ubuntu 16.04 Server MySql open_file_limit won't go higher than 65536 - Server Fault
Really good example to follow in case increasing max_connections and increasing limits in /etc/security/limits.conf doesn't work.
serverfault  stackexchange  howto  create  mysql  service  override  configuration  file  increase  maximum  open  limit  database  server  example  guide  reference  ubuntu  ubuntu16.04  linux 
november 2017 by racl101

related tags

32bit  64bit  Angularjs  aws  between  blog  Browser  bytes  characters  check  columns  config  configuration  connections  constant  convert  cookie  cookies  create  cyberciti  database  debian  digit  directive  documentation  domain  double  error  example  execution  explanation  exponential  file  files  fix  float  form  generate  guide  handle  handles  hard  howto  HTML  increase  ini  input  instance  integer  integers  limit  limits  linux  long  max  maximum  max_connections  max_execution_time  max_input_vars  memory  method  minimum  mysql  mysql5.7  nginx  nixcraft  notation  number  numeric  numpy  open  open_files_limit  operating  override  php  php.ini  PHP_INT_MAX  process  randint  random  rds  reference  rows  scientific  Script  server  serverfault  service  shape  signed  size  sizes  soft  stackexchange  stackoverflow  string  system  text  Time  timeout  tolearn  Tool  toread  totry  tounderstand  transform  troubleshoot  tutorial  type  types  ubuntu  ubuntu14.04  ubuntu16.04  ulimit  unsigned  upload  Validation  variables  wordpress  worker_rlimit_nofile 

Copy this bookmark: