Skip to content

SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search
SysTutorials

  • QA

    Max array length in OCaml

    ByQ A Mar 24, 2018Jun 26, 2018

    What’s the max array length in OCaml. You can check it by: # Sys.max_array_length;; On 64-bit machine: # Sys.max_array_length;; – : int = 18014398509481983 On a 32-bit machne: # Sys.max_array_length;; – : int = 4194303 This is due to the memory representation of arrays. 64 Bit machines are better here. And AFAIK, OCaml was developed…

    Read More Max array length in OCamlContinue

  • QA

    Redis Architecture, consistency model, etc.

    ByQ A Mar 24, 2018Jun 26, 2018

    Technical discussions on Redis. Redis internal documentation: http://redis.io/topics/internals Redis manifesto, the philosophy behind Redis: http://oldblog.antirez.com/post/redis-manifesto.html Redis Architecture: Overview Of Redis Architecture Redis data model and eventual consistency: http://antirez.com/news/36

    Read More Redis Architecture, consistency model, etc.Continue

  • QA

    Installing Fedora 19, Error “you have not created a bootloader stage1 target device”

    ByQ A Mar 24, 2018Mar 30, 2026

    Installing Fedora 41, Error “you have not created a bootloader stage1 target device” . It seems appear from Fedora 41: http://forums.fedoraforum.org/showthread.php?t=271743 This can be solved by adding noefi nogpt to the kernel parameters when booting the Linux for installation in grub as follows. Note: the “_” between nogpt and root is the cursor, not the…

    Read More Installing Fedora 19, Error “you have not created a bootloader stage1 target device”Continue

  • QA

    Find out the number of CPU cores on Linux

    ByQ A Mar 24, 2018

    How to find out the number of CPU cores on a Linux host. Use the command nproc. $ nproc nproc – print the number of processing units available: man page of nproc.

    Read More Find out the number of CPU cores on LinuxContinue

  • QA

    Vim Regular Expressions Tutorials

    ByQ A Mar 24, 2018Nov 21, 2019

    Good tutorials on Vim regular Expressions. Vim Regular Expressions: http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml Another good one in Chinese: http://www.study-area.org/tips/vim/Vim-10.html

    Read More Vim Regular Expressions TutorialsContinue

  • QA

    How to change strings in MySQL tables

    ByQ A Mar 24, 2018

    How to change strings in MySQL tables? e.g. I want to change domain.com to www.domain.com. Use the REPLACE functions of MySQL: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace One example is like this: UPDATE table SET field = REPLACE(field, ‘domain.com’, ‘www.domain.com’) WHERE field LIKE ‘%domain.com%’ The WHERE clause is not needed but can make execution faster.

    Read More How to change strings in MySQL tablesContinue

  • QA

    How to change the maximum execution time and memory size allowed for PHP

    ByQ A Mar 24, 2018

    I see this message in the error log of httpd: PHP Fatal error: Maximum execution time of 30 seconds exceeded in and PHP Fatal error: Allowed memory size of 268435456 bytes exhausted How to change them to a longer and larger value? To change the allowed maximum memory usage of PHP: Set memory_limit = 256M…

    Read More How to change the maximum execution time and memory size allowed for PHPContinue

  • QA

    How to find out and change the storage engine of tables in MySQL

    ByQ A Mar 24, 2018

    How to find out and change the storage engine of tables in MySQL databases? Find out the storage engine of a table in a database: SELECT ENGINE FROM information_schema.TABLES WHERE TABLE_SCHEMA = ‘database’ AND TABLE_NAME = ‘table’ Change the storage engine of a table: ALTER TABLE table ENGINE = type type can be innodb or…

    Read More How to find out and change the storage engine of tables in MySQLContinue

  • QA

    How to install WordPress on Fedora 19

    ByQ A Mar 24, 2018Mar 30, 2026

    How to install the latest WordPress on a newly installed Fedora 41? Thanks! First, install the LAMP (you already have ‘L’) stack: # yum install httpd php php-mysql mysql-server php-gd and start these services: # systemctl start mysqld.service httpd.service Then, install WordPress on the LAMP stack following the tutorials on the Web. Two good ones…

    Read More How to install WordPress on Fedora 19Continue

  • QA

    PDF annotation tools on Linux

    ByQ A Mar 24, 2018Jul 25, 2020

    What are good PDF annotation tools on Linux? Preferring saving the annotation in the PDF instead of separate files or images. I find the best solution may be wine + Foxit Reader. Foxit Reader can annotate PDF files and save them. It works very well on wine. Steps to install them: Install wine # yum…

    Read More PDF annotation tools on LinuxContinue

  • QA

    HP Printer with Fedora Linux 19

    ByQ A Mar 24, 2018Aug 8, 2020

    How to use HP Printer connected with USB on Fedora Linux 19. Install these packages and it may ask you to download and install other plugins. Without these packages, my printer does work. # yum install hplip hplip-gui hpijs May also need to run: # hp-plugin to install plugins for the HP printer. This plays…

    Read More HP Printer with Fedora Linux 19Continue

  • QA

    gnuplot and ps2epsi do not work on Fedora 19

    ByQ A Mar 24, 2018Mar 30, 2026

    I find that gnuplot and ps2epsi do not work on Fedora 41. The same packages/scripts work for me on old installations on Fedora 41. I find this line is printed out multiple times: Fontconfig warning: “/etc/fonts/conf.d/50-user.conf”, line 14: reading configurations from ~/.fonts.conf is deprecated. I even tried an older version of gnuplot (4.2 patchlevel 6)….

    Read More gnuplot and ps2epsi do not work on Fedora 19Continue

  • QA

    Online image editor like Photoshop

    ByQ A Mar 24, 2018

    Is there any online image editor that has the basic functions of Photoshop. Basic editing of the image should be enough. pixlr is a very good tools for this purpose: http://pixlr.com/ It works great for me.

    Read More Online image editor like PhotoshopContinue

  • QA

    How to repair tables database by backup

    ByQ A Mar 24, 2018

    How to repair tables database by backup Is this possible? Please explain how to repair. and thanks This post may help: https://www.systutorials.com/qa/300/how-to-repair-a-mysql-table thanks dear Zhiqiang Ma

    Read More How to repair tables database by backupContinue

  • QA

    Specifying –no-print-directory within the Makefile

    ByQ A Mar 24, 2018

    The –no-print-directory option of make tells make not to print the message about entering and leaving the working directory. However, how to specify the –no-print-directory inside the Makefile itself? Add this line to the Makefile: MAKEFLAGS += –no-print-directory You can also set MAKEFLAGS in a makefile, to specify additional flags that should also be in…

    Read More Specifying –no-print-directory within the MakefileContinue

  • QA

    How to choose the number of mappers and reducers in Hadoop

    ByQ A Mar 24, 2018

    How to choose the number of mappers and reducers in Hadoop to get good job performance? The Hadoop Wiki gives a discussion on this: http://wiki.apache.org/hadoop/HowManyMapsAndReduces Some valuable points: About the number of Maps: The number of maps is usually driven by the number of DFS blocks in the input files. Although that causes people to…

    Read More How to choose the number of mappers and reducers in HadoopContinue

  • QA

    Trap Ctrl-C in a Bash script

    ByQ A Mar 24, 2018

    How to trap Ctrl-C in a Bash script? The piece of code: # trap ctrl-c and call ctrl_c() trap ctrl_c INT function ctrl_c() { echo echo “Ctrl-C by user” # do the jobs exit }

    Read More Trap Ctrl-C in a Bash scriptContinue

  • QA

    Force Linux to reboot

    ByQ A Mar 24, 2018

    How to force Linux to reboot when the reboot command does not work. Enable the use of the magic SysRq option: # echo 1 > /proc/sys/kernel/sysrq Reboot the machine: # echo b > /proc/sysrq-trigger Even if you could not log on the system but sshd is working, you can force the Linux to reboot by:…

    Read More Force Linux to rebootContinue

  • QA

    How to spawn a background process in a bash script

    ByQ A Mar 24, 2018

    For example, I want to spawn many ssh background processes in one bash script: for i in `cat ./all-hosts` do ssh $i “ifconfig | grep Link” done Simply adding a & to the ssh commands does not work. Here is the script that works: for i in `cat ./all-hosts` do ssh $i “ifconfig | grep…

    Read More How to spawn a background process in a bash scriptContinue

  • QA

    MySQL at Facebook

    ByQ A Mar 24, 2018

    Facebook uses lots MySQL databases. Any information about how Facebook scales MySQL? Some information on the Web: MySQL at Facebook’s page https://www.facebook.com/MySQLatFacebook?filter=1 A post by Ryan Thiessen, Database Operations at Facebook on Quora: http://www.quora.com/Facebook-Engineering/How-does-Facebook-structure-MySQL-so-that-it-is-robust-and-scalable And more: http://mashable.com/2011/12/15/facebook-timeline-mysql/ http://gigaom.com/2011/12/06/facebook-shares-some-secrets-on-making-mysql-scale/ http://www.wired.com/wiredenterprise/2011/12/facebook-timeline-anatomy “A lot of people are surprised that for this shiny new thing for Facebook, we’re using…

    Read More MySQL at FacebookContinue

Page navigation

Previous PagePrevious 1 … 43 44 45 46 47 … 70 Next PageNext

© 2026 SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search