Categories
development linux network performance programming Uncategorized

darkstat

Installing darkstat per instructions from tecmint.com , I encountered a small hiccup. After the complete instructions, I need to run “darkstat -i wlan0” to start the service. The init.cfg configuration didn’t seem to be enough.

Categories
computer development programming

cluster maps using map box

https://jsfiddle.net/5ju06dp1/ is a link showing how to do a cluster map. It’s based on https://docs.mapbox.com/mapbox-gl-js/example/cluster/ . Putting it up since I may be coding using the sample.

Categories
development programming

Ctrl C loads the page

I encounter a problem where node js or the webpage appears to be hung. I never thought that the shell could be the problem. This problem happens randomly. After some googling, I found the answer at
https://github.com/nodejs/node-v0.x-archive/issues/8196

Simply uncheck “Quick edit mode” in the shell.

Categories
development programming

npm error during installation

I frequently encountered a error message similar to below


npm ERR! Linux 4.4.0-17134-Microsoft
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "i"
npm ERR! node v6.14.3
npm ERR! npm v3.10.10
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: express-handlebars@~0.5.0
npm ERR! notarget Valid install targets:
npm ERR! notarget 3.0.0, 2.0.1, 2.0.0, 1.2.2, 1.2.1, 1.2.0, 1.1.0, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 1.0.0-rc-2, 1.0.0-rc-1, 0.0.2, 0.0.1
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'meadowlarktravel'
npm ERR! notarget

npm ERR! Please include the following file with any support request:
npm ERR! /home/min/src/ethanb/web-development-with-node-and-express/ch04/npm-debug.log

All I had to do was up the version, in this case express-handlebars to at least version 1 instead of 0.5

Categories
computer development programming system

git clone via command line prompt

git clone git@github.com:passport/express-4.x-facebook-example.gitCloning into ‘express-4.x-facebook-example’…
Warning: Permanently added the RSA host key for IP address ‘13.250.177.223’ to the list of known hosts.
remote: Counting objects: 31, done.
remote: Total 31 (delta 0), reused 0 (delta 0), pack-reused 31
Receiving objects: 100% (31/31), 6.17 KiB | 1.54 MiB/s, done.
Resolving deltas: 100% (10/10), done.

I successfully run git clone from the command line prompt. However, faced many problems using cygwin. Noting this down for future reference.

Categories
fun programming

interesting bits

Funny stuff – http://wimp.com/airswimmers/

Philosphical – http://www.flickspire.com/m/HPP/LifeIsLikeCoffee

http://www.taonline.com/securityclearances/#SCREQ – Obtaining US Security clearance requires US citizenship.

http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html – Visualizing SQL Joins

Categories
development programming

php4 code on php5

Recently had to make some php4 code work on a php5 enabled apache. After debugging for what seemed like a long time, I finally found it.

I had to update

register_long_arrays = On

to turn on HTTP_GET_VARS

Categories
cheat-sheets programming

cheat sheets

Cheat Sheets I like:

Junit – http://www.scribd.com/doc/3470445/JUnit-Quick-Reference
C++ STL – http://medini.org/stl/stl.html
CVS – http://www.bravegnu.org/cvscheat/cvscheat.pdf