|
Bubble Sort Algorithm for Absolute Beginners |
|
Feb 23, 2012 - 10:33 PM - by ManzZup
|
I thought of starting the whole algorithm series with the most popular Sorting algorithms. Sorting as you know is a way to order a list or a sequence or elements.
ex: Arranging set of marks to ascending order
Arranging names to alphabetical order
Why learn Sorting when sort() is readily available in many languages?
It's simply because that there are instances you will see that the default sort() will hugely fail although what you need the sorting is for a very tiny part of your algorithm. (lets say to format the output). And going beyond there are instances where your own algorithm makes much sense and efficiency than the default when it comes to custom Objects made by... [Read More]
|
|
5 Replies | 231 Views
|
xargs: A Powerful Command-Line Utility |
|
Feb 21, 2012 - 7:24 PM - by pradeep
|
xargs is an utility which is used to build & execute command-lines. xargs reads from the standard input (STDIN) space, tab, newline & end-of-file (EOF) delimited strings and executes the specified utility with the strings as argument(s). Most utilities/systems have a limit on the maximum no. of arguments that can be passed, so if you have a very long list of hundreds of arguments xargs can help, you might think why the hell would anyone want to pass so many arguments, then look at this scenario:
... [Read More]
|
|
0 Replies | 107 Views
|
Recovering Lost Hard Disk Data With ddrescue |
|
Feb 18, 2012 - 2:46 PM - by pradeep
|
It might happen that your hard disk died on you, or the DVD backup you had does not read correctly. Generally, CD & DVD media retain data correctly for a few years (or more, depending on the quality of the media), after which data loss starts slowly with read errors increasing from the outer tracks of the media towards the innermost track.
ddrescue is a GNU tool for data recovery, it copies data from a file/block devices (cd,dvd,hard disk,flash drive,etc.) to another attempting to recover from read errors, bad sectors, etc. and will provide you with all the data that could be salvaged. Also, ddrescue's algorithm is such that it'll read the 'good' areas of the media first and schedule the 'bad' areas for later which... [Read More]
|
|
1 Reply | 321 Views
|
Memory Injection And Cracking |
Feb 09, 2012 - 3:10 PM - by Scripting
|
In this article I'm going to show you how to change value of variable during run time. There are many tools around how to do this easily, but I will focus on the way doing it programatically, specifically using C language.
Tools I will use: Cheat Engine 6.0
Here is a simple code for login, I know it's weak and vulnerable, but for proof of concept and for the ease it's ok.
test.cpp
... [Read More]
|
|
4 Replies | 1,318 Views
|
Format String Vulnerabilities With printf Example |
|
Feb 06, 2012 - 5:42 PM - by Karpov2007
|
This time I want to speak on the 'printf' function. Everybody has heard of software vulnerabilities and that functions like 'printf' are outlaw. But it's one thing to know that you'd better not use these functions, and quite the other to understand why. In this article, I will describe two classic software vulnerabilities related to 'printf'. You won't become a hacker after that but perhaps you will have a fresh look at your code. You might create similar vulnerable functions in your project without knowing that.
STOP. Reader, please stop, don't pass by. You have seen the word "printf", I know. And you're sure that you will now be told a banal story that the function cannot check types of passed arguments. No!... [Read More]
|
|
4 Replies | 811 Views
|
» Article Archives |
| |
Title, Username, & Date |
Last Post |
Replies |
Views |
|
|
Bubble Sort in PHP
Feb 2nd, 2012 01:06 AM
|
|
1 |
555 |
|
Initialization Function Or Constructor - Which is Better?
Jan 30th, 2012 09:38 PM
|
|
0 |
531 |
|
Wordpress Security Tips & Plugins
Jan 30th, 2012 08:33 AM
|
|
1 |
575 |
|
Writing Linux Daemon Process In C
Jan 17th, 2012 01:39 AM
|
|
3 |
1,169 |
|
C++ Style TypeCasts
Jan 2nd, 2012 01:27 AM
|
|
0 |
1,131 |
|
Good Programming Practices - System Calls
Dec 31st, 2011 12:31 PM
|
|
2 |
1,028 |
|
|
Programming with Temporary files in Linux
Dec 30th, 2011 08:50 AM
|
|
0 |
773 |
|
|
C/C++ assert Function
Dec 30th, 2011 08:43 AM
|
|
0 |
871 |
|
getrlimit() and setrlimit() to Control System Resources on Linux
Dec 29th, 2011 08:27 AM
|
|
4 |
719 |
|
Understanding File Accessibility and File Locks with access() and fcntl() functions
Dec 27th, 2011 10:34 PM
|
|
0 |
733 |
|
Developing Linux utility - Part III Displaying Detail File Info
Dec 27th, 2011 06:54 AM
|
|
0 |
695 |
|
» Latest Forum Topics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|