Black Bytes | RSS Feed http://www.blackbytes.info Ruby Programming Tutorials Mon, 17 Oct 2016 01:59:51 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.6 PHP: Top command-line options http://www.blackbytes.info/2014/06/php-top-command-line-options/ http://www.blackbytes.info/2014/06/php-top-command-line-options/#comments Mon, 23 Jun 2014 17:54:51 +0000 http://www.blackbytes.info/?p=1201 Here are some useful php command line options that you will love. Ever wanted to test a quick snippet of code without having to save it to a file and then run it? Well check this out! If you invoke php with the -a flag it will drop you into an interactive session. This is nothing […]

The post PHP: Top command-line options appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2014/06/php-top-command-line-options/feed/ 0
Dynamic Arrays in C – part 1 http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-1/ http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-1/#comments Sat, 02 Feb 2013 23:20:16 +0000 http://blackbytes.wordpress.com/?p=481 While working on my C programming skills I wrote a small program to simulate the functionality of dynamic arrays on other languages. That is arrays that grow as you add elements to them instead of having a fixed size. I decided that is has to be reusable and that you should be able to have […]

The post Dynamic Arrays in C – part 1 appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-1/feed/ 0
PHP Arrays http://www.blackbytes.info/2012/09/php-arrays/ http://www.blackbytes.info/2012/09/php-arrays/#comments Fri, 28 Sep 2012 17:23:15 +0000 http://blackbytes.wordpress.com/?p=434 This is an introduction to PHP arrays, so if you are new to the language or you just need a refresher you can get up to speed pretty fast. This is how we initialize an empty array and add some elements to it: [crayon-5805ecfc6d45b369147846/] Then we can see it’s contents using the print_r() function. You […]

The post PHP Arrays appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/09/php-arrays/feed/ 0
Java: Regular Expressions http://www.blackbytes.info/2012/08/java-regular-expressions/ http://www.blackbytes.info/2012/08/java-regular-expressions/#comments Sat, 11 Aug 2012 17:01:07 +0000 http://blackbytes.wordpress.com/?p=398 Regular expressions, regexp for short, allow us to build expressions for pattern matching. If you aren’t familiar with them you may want to check out some resources here. In Java you can leverage the power of regexp using the pattern and matcher classes, you can import java.util.regex.* to make them available to your program. Let’s […]

The post Java: Regular Expressions appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/08/java-regular-expressions/feed/ 0
Ruby tracing – A useful debugging tool http://www.blackbytes.info/2012/06/ruby-tracing/ http://www.blackbytes.info/2012/06/ruby-tracing/#comments Sat, 02 Jun 2012 18:11:56 +0000 http://blackbytes.wordpress.com/?p=351 Tracing is following all the steps taken by a program, specially function calls/methods, this can be a useful debugging tool when tracking down some problems with your application. In Ruby we have a tracing tool built-in, we can invoke it with ruby -rtracer script.rb but as you can see here it’s not easy to tell […]

The post Ruby tracing – A useful debugging tool appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/06/ruby-tracing/feed/ 1