Blog Archives

Wrapping the printf() statement onto multiple lines in C and some other useful samples.

This code sample shows how we are wrapping a printf() statement onto multiple lines using backslashes. #include “stdio.h” #define hello “Hello World.” int main(int argc, char* argv[]) { printf(“This is a very long sentence we are handing down\n”\ “Mr smith,

Tagged with: , , , , , ,
Posted in bejiitaswrath

Miscellaneous Perl programming information. How to use for loops and printing HTML properly.

Opening a folder and listing the contents, and not listing certain files. This is the Perl code I was using on my very old Tripod.com website. opendir(DNAME, “$folder”) || die “I cannot open the requested directory $folder \n $!”; @dirfiles2

Tagged with: , , , , , , , ,
Posted in bejiitaswrath

Useful old C code of mine. Might be useful for reference.

This is a nice little program I wrote ages ago. /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free

Tagged with: , , , , ,
Posted in bejiitaswrath

Miscellaneous programming tricks with C.

This is a very simple Hello World program in C. int main() { write(1, “Hello World\n”, 14); } Counting how long a text string is. #include #include #define MSG “Hello Doctor, let’s get back to the TARDIS!” int main() {

Tagged with: , , , , ,
Posted in bejiitaswrath

Linux kernel 3.3 released, including some Android code?

The Linux kernel 3.3 has been released and among other features that have been included, there is some code from Google Android included. This is an interesting development, this does not mean that you can run Angry Birds on a

Tagged with: , , , , , ,
Posted in bejiitaswrath

My PHP code for my Linux pages index.

This code is on my http://securitron.securitronlinux.com page. It shows a random image and a random webpage link. <?php $time = strftime(“%A %d %B %Y. %r – %Z”); srand(time(NULL)); $day = rand() % 6; $string = sprintf(“<font size=\”2pt\”><p>Welcome to my website.</p>\n”);

Tagged with: , , , ,
Posted in bejiitaswrath

Good Firefox 11.0 setup for safer web browsing.

Good Firefox 11.0 setup for safer web browsing. The Firefox web browser truly is a very good and safe browser for everyday use, but with the addition of some extensions, the browsing experience can be made even more secure. Firstly,

Tagged with: , , , , , , , ,
Posted in bejiitaswrath

Useful C++ snippet. A better way to read in a sentence with STDIN.

This is a very useful C++ code snippet for reading in a line of text into STDIN. Hopefully this will be useful to someone. #include <iostream> #include <string.h> #include <sstream> using namespace std; int goku(void) { cout << "Hello, Please

Tagged with: , , , , ,
Posted in Uncategorized
Plugin from the creators of Brindes :: More at Plulz Wordpress Plugins