Posts

Just got bump this terminology, The "whaling attack"

So I got this recently a new terminology called as "Whaling Attack"? Whaling attack is similarly same as with other phishing attack but its target is going to the big fish, which is the CEO, CFO, or COO in the company or in a large organization. Its purpose is to lure and deceive the victim using an e-mail or other multi-media sources that could lead the victim to think that this data is a valid information and that he/she is required to respond at least to the destination source where the attacker innovate to make thing it's a legit destination, for example an e-mail address, SMS, or maybe through a social media, which is actually kinda stupid to think of, but still a valid source. In many whaling phishing attacks, the attacker's goal is to manipulate the victim into authorizing high-value wire transfers to the attacker. The term whaling stems from the size of the attacks, and the whales are thought to be picked based on their authority within the company. Du...

Use tracepath instead of traceroute

Just wanted to note myself of this one, $ tracepath 210.213.128.14 1: centos (10.0.1.19) 0.094ms pmtu 1500 1: maximum (10.0.1.1) 1.327ms 1: maximum (10.0.1.1) 1.866ms 2: dsl.49.145.0.1.pldt.net (49.145.0.1) 55.341ms 3: 122.2.135.37.pldt.net (122.2.135.37) 50.527ms 4: 210.213.135.17.static.pldt.net (210.213.135.17) 73.554ms 5: 210.213.128.62.static.pldt.net (210.213.128.62) 79.921ms 6: 210.213.129.33.static.pldt.net (210.213.129.33) 83.518ms 7: 210.213.128.45.static.pldt.net (210.213.128.45) 71.558ms 8: 210.213.131.93.static.pldt.net (210.213.131.93) 71.437ms asymm 9 9: 210.213.128.14.static.pldt.net (210.213.128.14) 211.873ms reached Resume: pmtu 1500 hops 9 back 247 tracepath can be run without the need of any super user privileges.

Is RAID 0 still beneficial or not?

Hmmm, I have no idea about this but if anyone might read about this, please check http://tweakers.net/reviews/515/1/raid-0-hype-or-blessing-raid-0-hype-or-blessing.html That article is so very old but if you have a raid-0 setup either with SSD's in a RAID 0 setup vs SSD itself, any benchmark result you have, please share.

OSX VPN send all traffic over VPN via route command

Base on this inputs from stackoverflow , sudo /sbin/route add -host pandora.com -interface ppp0 In this example, "pandora.com" is the host that should be routed via the VPN and "ppp0" is the name of the VPN network interface (ifconfig shows you the list of network interfaces).

Useful utilities in Linux

Anyhow, this is just a list of useful utilities which I'm going to always keep updated... strace http://www.thegeekstuff.com/2011/11/strace-examples/ http://en.wikipedia.org/wiki/Strace http://timetobleed.com/files/c-strace gdb http://www.ibm.com/developerworks/library/l-gdb/ http://www.yolinux.com/TUTORIALS/GDB-Commands.html http://www.cs.cmu.edu/~gilpin/tutorial/ hexdump http://ubuntuforums.org/showthread.php?t=1293523 http://mylinuxbook.com/hexdump/ http://256.com/gray/docs/misc/hexdump_manual_how_to.html chattr/lsattr http://www.cyberciti.biz/tips/linux-password-trick.html

Problem with YAML in Perl

I have no idea why this fix but I was installing MySQLSandbox with an error occurred but this link helps me solve it, http://www.linuxquestions.org/questions/linux-newbie-8/problem-in-upgrading-cpan-918683/ Anyhow, to be particular, this one helps me solve the problem $ su - # cpan # cpan> install Bundle::CPAN # cpan> reload cpan # cpan> exit

Setting global environment in Mac OS X

I just wanted to quote myself on setting the environment variable in Mac OS X. From, http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x This is stated as, 1) Open a terminal prompt 2) Type  sudo vi /etc/launchd.conf  (note: this file might not yet exist) 3) Put contents like the following into the file # Set environment variables here so they are available globally to all apps # (and Terminal), including those launched via Spotlight. # # After editing this file run the following command from the terminal to update # environment variables globally without needing to reboot. # NOTE: You will still need to restart the relevant application (including # Terminal) to pick up the changes! # grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl # # See http://www.digitaledgesw.com/node/31 # and http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/ # # Note that you must hardcode the paths below, don't u...

MySQL: Running MySQL in command line thru mysqld

Just wanted to take note of this. Instead of running your MySQL as a service, or thru mysqld_safe, the command line you can run can actually be like this.   / usr / local / mysql / bin / mysqld  --basedir = / usr / local / mysql  --datadir = / usr / local / mysql / data  --plugin-dir = / usr / local / mysql / lib / plugin  --user =mysql  --log-error = / usr / local / mysql / data / macmini.local.err  --pid-file = / usr / local / mysql / data / macmini.local.pid

vim problems with ^M (caret M), due to file format incompatibility

The problem with ^M or caret M that you see in files during editing or modifying is that incompatibility with vim 's default file format. Usually, if I have a file edited or created in Mac OS X, and when its edited via Linux, I got ^M plus the lines are displayed as one line which is freaking hard to edit. To fix this, just do edit the file, then reload the file in vim , :e ++ff=mac or :e ++ff=unix if it was created in Unix. This will render with a great view editor of your file from what you expected it should be. According to vim's Wiki, " unix LF only (each line ends with an LF character). dos CRLF (each line ends with two characters, CR then LF). mac CR only (each line ends with a CR character). CR is  carriage return  (return cursor to left margin), which is Ctrl-M or ^M or hex 0D "   You can read for more info for file format in this page  http://vim.wikia.com/wiki/File_format

Understanding Threads and Multithreading

In this blog, I just wanna accumulate all things that I need to note regarding threads. Threads are just a light-weight process. It's actually a process but it runs under a process, literally a subsets of a process, where in this process, threads can share resources like memory. Threads in this subject is distinct from multi-core systems, which deals with instructions that are sent in the hardware resources like instruction set pass from USB to processor, stuff like that, in which multi-core can empower an OS to implement multi-threading. So multi-core is more of dealing with central processing units to execute program instructions . Multithreading aims to increase utilization of a single ore by using thread-level as well as instruction-level parallelism. As the two (multithreading in cores and threads in OS) techniques are complementary, they are sometimes combined in systems with multiple multithreading CPUs and in CPUs with multiple multithreading cores. courtesy of Wi...

Programming Advice

I wanna take note on this blog  "The Best Programming Advice I Ever Got" with Andrei Alexandrescu  as I found this notably important as a programmer or developer. How about yours? What do you think a good programmer should have?

Programming Opinions - Great Blog to Read

I think this blog is cool to read 20 controversial programming opinions

Lossy Image Optimization

I have enjoyed this youtube video regarding lossy image optimization from Velocity. Hope you find this video helpful. O'Reilly Webcast: The Best of Velocity - Take it all off! Lossy Image Optimization

Coding standard in C

I got this file as such a noteworthy to read. JPL Institutional Coding Standard for the C Programming Language Hope you like it :-)

difference between Orthogonal and Isometric

I wanna note this myself so I can't forget this stuff. Orthogonal vs Isometric Via StackExchange.com or this link StackExchange Orthogonal vs Isometric Orthogonal vs Isometric via Yahoo Asnwers With regards to foreshortened, according to Wikipedia on Perspective , it means as, Foreshortened: the size of an object's dimensions along the line of sight are relatively shorter than dimensions across the line of sight

10 Reasons You're Not the Boss

I came across reading this article from Yahoo and wanted to save this as a note for myself. This is such a good article and notes to follow, IMHO.

On Multiple programming languages ?

Well, I just wanted to note from this blog  Keeping multiple programming languages straight . I found this very helpful to read, and thus he has also his notes with what he had done and contributed so far, in Open Source world. Keep on reading on his blog. It has lot to learn from what he have done so far.

MySQL: list all fields into a CSV result or set custom delimiter

So the topic here is how would you come up with listing all the fields of a table where it will output into a comma separated values? Say for example, you have a database named BILLING with a sample table name and fields below. __________________ |                 | |     CUSTOMERS         | |_________________| | name              | | address           | | username          | | password        | |_________________| and wanted to have a result of name, address, username, and password. You have to query the database supplied by default in MySQL using the DB name INFORMATION_SCHEMA and then filter the result with its table name and select only the COLUMNS field. So the query should look something like this, // set a value for the variable @table mysql > set @table='customers';...

Zend Framework: How to include directories with dash or hyphen

So before I can forgot it in Zend, I will post this as a notes and reference. When you want to include a directory with dash or hyphen (-) symbol, like for example, a helper. You can do it by using the code below.              protected function _initActionHelpers()     {            Zend_Controller_Action_HelperBroker::addPath(             APPLICATION_PATH . '/../library/dash-classes/Action/Helper/' ,             'DashClasses_Action_Helper'         );     } Where you have your helper stored in ../library/dash-classes/Action/Helper/Example.php Where your Example.php might look something as, class DashClasses_Action_Helper_Example  extends Zend_Controller_Action_Helper_Abstract {     function direct()     {         $session = new Zend_Session_Na...

Converting mp4 to AVI using ffmpeg

I got this commands until it works on mine. Currently, I am running on Mac OS X Lion so, in particular, I would say this works in my part using Mac OS X Lion. $> ffmpeg -i batman.begins.mp4 -vcodec libxvid -ab 192k -sameq -acodec libmp3lame -ar 48000 -ac 2 batman-begins.avi Specifically, my choices are are need to be converted to AVI so I can put it into my USB and play via our HD TV which seemed to consistently support using this encoding or conversion. -vcodec which I use libxvid codec for my video encoding -ab        192k which, I believe, using stereo would need this bit rate. -sameq   So I got the same quantization values -acodec  so I use libmp3lame -ar          is set to 48000 audio sampling frequency -ac          is set to 2 to have a dual stereo type of audio Hope this helps.