Search Results

Search: Posts Made By: disaster
Forum: Programming 04-21-2011
2,967
Posted By disaster
I posted bs here, please delete ^^
I posted bs here, please delete ^^
Forum: Linux 04-18-2011
2,817
Posted By disaster
Looking for a very leightweight Live-CD Distro
Hey,

weird story, dunno if this is actually possible, but here's what happened: My dad's PC (Windows) is completely full of trash, the hard drive is completely full. After the last Windows update...
Forum: Programming 04-12-2011
2,925
Posted By disaster
The dd function you posted would actually copy...
The dd function you posted would actually copy three times a junk of 1024 bytes, ie. 3K bytes in total.
But I understand your question in such a way that you want to read 3 bytes in at once and do...
Forum: Programming 04-12-2011
5,695
Posted By disaster
I'd go with C or C++. The reason is because they...
I'd go with C or C++. The reason is because they have all the pointer stuff going on, which is not available in Java. Once you figured out how this works and have some experience there, migrating to...
Forum: Programming 04-06-2011
1,393
Posted By disaster
#include<iostream> using namespace std; int...
#include<iostream>
using namespace std;
int *a,size,heapsize;
void maxheap(int *a,int j)
{
int l,r,largest,temp;
l=2*j;
r=(2*j)+1;
for(j=0;j<size;++j)
{
...
Forum: Programming 04-05-2011
2,004
Posted By disaster
Well, looks like I learned more than I intended...
Well, looks like I learned more than I intended to... didn't know that this was possible for binaries either... Anyways: If you take away the read flag, this way won't work anymore:
[chris@myhost...
Forum: Programming 04-05-2011
2,004
Posted By disaster
Timed action after fork() in parent process
Assume you have such a piece of (more or less pseudo-)code:


if(fork() == 0) {// childprocess
chmod(someProgram, 00777);
exec(someProgram);
} else { // assume it never fails and this...
Forum: Programming 04-05-2011
5,595
Posted By disaster
Linked List Basics...
Linked List Basics (http://cslibrary.stanford.edu/103/)

Did I post that link already? Oh snap, then you probably read it... You you didn't... wow, what a surprise...
Forum: Programming 04-04-2011
2,645
Posted By disaster
They are not getting NULL as return value. That...
They are not getting NULL as return value. That NULL is still the initial NULL from main. The reason is that you only pass a pointers to the function. These pointers will be copied to the function...
Forum: Programming 04-01-2011
5,343
Posted By disaster
I can basically see 2 options here: You either...
I can basically see 2 options here: You either continue how you are going to kind of ignore Corona and will maybe get a code that will work (that you probably won't understand truly), maybe a got...
Forum: Programming 03-31-2011
5,343
Posted By disaster
Linked List Basics...
Linked List Basics (http://cslibrary.stanford.edu/103/)

This should be a really detailed explanation of linked lists, code is written in C as well
Forum: Programming 03-31-2011
5,343
Posted By disaster
To be honest, I did not understand your last...
To be honest, I did not understand your last sentence.

Anyways it does not make much difference whether you want a new entry to be the first one (after the head) or the last one. It is all just...
Forum: Programming 03-31-2011
3,569
Posted By disaster
Also another application is the use of heaps -...
Also another application is the use of heaps - usually binary trees with a specific order: All elements to left are smaller than the node, the elements on the right are bigger.

This is good if you...
Forum: Cybersecurity 03-31-2011
3,710
Posted By disaster
Ok thank you, you helped my quite a bit :)
Ok thank you, you helped my quite a bit :)
Forum: Programming 03-31-2011
5,343
Posted By disaster
I think the problem is, that you only work on the...
I think the problem is, that you only work on the malloc'ed memory locally within the function.
You give add_client a pointer of type client. This is given by call by value, i.e. assigning the...
Forum: Programming 03-30-2011
1,497
Posted By disaster
You would compile client.c on the client machine...
You would compile client.c on the client machine and server.c on the server (or at least run it there)
Forum: Programming 03-30-2011
5,789
Posted By disaster
You need just one. Your socket_fd is usually not...
You need just one. Your socket_fd is usually not the socket with which the client and server communicate. It is rather just the point where the client connects to first and then waits for the server...
Forum: Cybersecurity 03-29-2011
3,710
Posted By disaster
Well, "standard" programs are available (chmod,...
Well, "standard" programs are available (chmod, chroot etc. for security reasons not), and also I managed to prevent scripting languages like perl from execution (i.e. only signed code is executed) ...
Forum: Cybersecurity 03-28-2011
3,710
Posted By disaster
I think the encryption/decryption can be cracked....
I think the encryption/decryption can be cracked.
But what I just read (just a quick google) as a signature algorithm with a secure hash algorithm (e.g. SHA2) it is still safe
Forum: Cybersecurity 03-28-2011
3,710
Posted By disaster
Of course you are right. But this is right now...
Of course you are right. But this is right now still a rather theoretical question I'm dealing with, where I like to split it up in different parts. One part (the one which I don't have an idea to...
Forum: Cybersecurity 03-28-2011
3,710
Posted By disaster
Thanks for the answer, but you misunderstood me. ...
Thanks for the answer, but you misunderstood me.
I assumed that all form of bringing executable code in the system is not possible (which is done via signature checking in the kernel), except the sh...
Forum: Cybersecurity 03-28-2011
3,710
Posted By disaster
Attacking Potential of sh-scripts
Hey,

I actually do have a question which seems rather easy for those you know more about this topic, since I am pretty new to bashscripting and don't know where it's limits are I have to ask you...
Forum: Programming 03-28-2011
1,939
Posted By disaster
In filldeck, you assign the color by ...
In filldeck, you assign the color by
wDeck[i].color = color[i % 2];

This means, that it will always alternate between black - red - black - red - etc... after every card! I am not sure which...
3,465
Posted By disaster
First of all, you make a common mistake...
First of all, you make a common mistake (http://en.wikipedia.org/wiki/C_file_input/output#EOF_pitfall): getchar() returns an int and not a char. This may cause errors in the != EOF condition
Ok, so...
3,465
Posted By disaster
What's all the code you posted at 2.? Is it...
What's all the code you posted at 2.? Is it yours? Or is it given as "library" functions? I'm asking b/c there are 2 vowel/checking functions.

It would also be great if you can tell us where your...
Showing results 1 to 25 of 45

 
All times are GMT -4. The time now is 05:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy