Jump to content

Check out our Community Blogs


Member Since 07 Oct 2007
Offline Last Active May 18 2019 05:29 PM

#629448 [SOLVED] Which programming language is the most suitable/easiest?

Posted by dargueta on 09 May 2012 - 09:17 AM

Visual Studio is probably your best bet for that then, as you can design forms pretty easily and set pictures and stuff. You can (legally) get a free version here.
  • 1

#626530 [SOLVED] Problems With Memory Leakage

Posted by dargueta on 12 April 2012 - 09:28 AM

Pf. Who uses Windows anymore? :-P But seriously:

Also, non-open-source OSes are difficult to deal with; being able to see the OS and associated (libc) source code makes things much easier. However, Valgrind is quite usable in conjunction with Wine, which means that it is possible to run Windows programs under Valgrind with some effort.

  • 1

#626444 Generic Pointer (void *) to a number

Posted by dargueta on 11 April 2012 - 08:35 PM

Oh, okay. Well, feel free to post back here once you have time. I can wait. :)
  • 1

#626402 [SOLVED] Problems With Memory Leakage

Posted by dargueta on 11 April 2012 - 03:20 PM

Valgrind works really well, but you have to compile your code with profiling flags turned on.
  • 1

#617992 Linux, Win32-Equivalents?

Posted by dargueta on 24 December 2011 - 01:16 AM

A few things:
1) WINE actually stands for WINE Is Not an Emulator. It's a compatibility layer, which is completely different. An emulator would require writing the entire system as a Linux program, which would be far more complicated than using a virtual machine.
2) The reason why WINE didn't work is probably because you didn't have all of the libraries your program required to run, or WINE wasn't aware of where they are.
3) Programming for Linux is easier in my opinion, even though I've spent more time programming for Windows. Since different distros all use the same Linux kernel, as long as you write portable code and use something like Qt or GTK+ you'll be fine. I make no guarantees between 32-/64-bit compatibility.

FYI, int 0x80 is actually not the best way to make system calls anymore, as interrupts are much slower than they used to be due to IDTs and stuff. Instead, you should use Intel's sysenter instruction.
  • 1

#613086 Making basic OS in Assembly

Posted by dargueta on 04 November 2011 - 05:18 PM

That is what I was referring to when I said 'bootloader'.

Right, but unless I misinterpreted what you said earlier, I thought you meant customizing GRUB to load the bootloader. You don't need GRUB. As far as creating an OS in assembly, I agree with mebob:

- Stick with PC's for now; they're a lot more well-documented, you're much more likely to find someone who knows how to help (i.e. us), and it's not as difficult to test. Plus I wouldn't risk ** up my phone if I were you. It's harder to do that to a PC.
- Stay in 16-bit mode if you do code for Intel processors, at least initially. You can use the BIOS routines and the instruction set is simpler.
  • -1

#612828 I want to write an OS (seriously)

Posted by dargueta on 01 November 2011 - 03:08 PM

Once you get going, definitely get Bochs to test your system. There's also OSFMount, which allows you to modify disk image files to use with your OS as if they were actual drives. Let me know if you have other questions, as this is my primary area of interest. :)

I'm assuming you're going to be using Windows for development. If you're using Linux, you don't need image-mounting software as you can do that using built-in utilities. Dunno about OSX.
  • -1

#607134 My app_start() function...

Posted by dargueta on 12 August 2011 - 03:51 PM

Body. The headers are in the environment variables, retrievable with getenv() in C. Make sure you set up the environment properly.
  • 1

#604858 session.save_path configuration in PHP

Posted by dargueta on 12 July 2011 - 06:53 PM

PHP: session_save_path - Manual
(See comments, first few posts.)
  • -1

#604042 Inline assembly using Turbo C

Posted by dargueta on 30 June 2011 - 04:14 PM


I wrote a 10-part tutorial series that uses 32-bit assembly and NASM. Might want to check that out. Given your abilities I think you can skim the first two or three, though they do have a lot of background info.
  • -1

#599223 Software house's name?

Posted by dargueta on 07 May 2011 - 09:25 AM

That was my first thought, but then I thought about the connotations and decided to go with gray. Go for it!
  • -1

#597574 [HELP] convert Perl script to Bash shell script

Posted by dargueta on 21 April 2011 - 09:53 AM

Welcome to CodeCall! As for your question - Here's a tutorial on how to program in bash's scripting language:

Advanced Bash-Scripting Guide

To write to a file, you can do something like this:

SHACHALLENGE1= somehow get the SHA-2 of CHALLENGE1

# Don't forget the $
echo -e "$SHACHALLENGE1\n$SHACHALLENGE2" > challenges.txt

For MD5 (though I really suggest you use SHA-2) you're going to have to invoke a program from the command line to do that for you. I'm dead sure bash doesn't have native support for that.
  • -1

#595299 Conversion

Posted by dargueta on 27 March 2011 - 12:09 AM


This should help you a bit.
  • 1

#593583 Variable number of arguments

Posted by dargueta on 09 March 2011 - 01:27 PM

You could:
1) Using BlainSch's idea, make a superclass of everything that doesn't do anything and use that for the vector
2) Use pointers to all classes passed instead of passing the classes themselves. Since pointers are primitives, you should be fine.
  • 1

#591769 What to learn first C++ or Java?

Posted by dargueta on 19 February 2011 - 12:06 AM

Go for Perl, C and then C++ or C# or Java (those three are identical IMO.)

Noooo. Perl is not a good first language to learn. It's got bizarre idiosyncrasies that, after two years of programming in it, I have yet to completely master without going to the CPAN website. I also speak on behalf of other experienced programmers I know that see Perl code and are like, "WTF is this?"
  • -1

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download