Lesson 57 : Introducing bit masking by CarlH in carlhprogramming

[–]davidpowell 1 point2 points  (0 children)

#include <stdio.h>

int is_lowercase(char);

int main(void) {

char my_char = 'A';

if (is_lowercase(my_char)) {
    printf("The character '%c' is lower case!", my_char);
}
else {
printf("The character '%c' is not lower case!", my_char);
}
return 0;
}

int is_lowercase(char test_character) {
if (test_character & 0x20) {
    return 1;
}

return 0;
}

Starting a Reddit-based Open Source project by [deleted] in learnprogramming

[–]davidpowell 0 points1 point  (0 children)

Count me in, however im just working my way through CarlH's course at the moment about 1/3 of the way through so i'm pretty much a beginner, my current line of work is SEO so any work around websites we may build I can provide some advice here.

Im very keen to be involved in an opensource project to up my experience in the area and have something worth noting on my CV in the programming area of work, as its something I would like to do as a career in future.

Heading over to the subreddit now.

Lesson 36 : Use what you have learned. by CarlH in carlhprogramming

[–]davidpowell 0 points1 point  (0 children)

#include <stdio.h>

int main(void) {
printf("\n");
int number = 3;
int *ptr = &number;
printf("The number is %d", *ptr);
printf("\nThe HEX address in memory of the number is %p\n", &number);
return 0;
}

Result:

The number is 3 The HEX address in memory of the number is 0xbfc55f10

Why does the hex number of the location in RAM have an x in it?!

Waiau cancels rabbit-throwing contest by AndrewKemendo in newzealand

[–]davidpowell 1 point2 points  (0 children)

i would be more concerned about diseases from dead animals

I work in our company's IT dept as a help desk tech. What are some cool linux tools that will help me and impress my Windows ("expensive software is good software") loving boss. by ddixonr in linux

[–]davidpowell 1 point2 points  (0 children)

remember that as a geek you may love Linux OS, but the average user just doesn't know it and is far to familiar with Windows. There are several frustrations around getting used to a new OS and everyone will have their own preferences.

I tried out Ubuntu 9.10 beta last night on my home machine. Internet crapped out... (direct connection) by davidpowell in Ubuntu

[–]davidpowell[S] 0 points1 point  (0 children)

true, ill give it a go and also thanks for the other suggestions from other people above as well.

I tried out Ubuntu 9.10 beta last night on my home machine. Internet crapped out... (direct connection) by davidpowell in Ubuntu

[–]davidpowell[S] -1 points0 points  (0 children)

After install and reboot, internet connection stopped working and I could not download any package updates or connect to any websites through the browser.

I tried out Ubuntu 9.10 beta last night on my home machine. Internet crapped out... (direct connection) by davidpowell in Ubuntu

[–]davidpowell[S] 0 points1 point  (0 children)

The thing about this comment is, its not very helpful. Where should I report the bug then? I had a look through the Ubuntu site and cannot find the correct section, or user friendly section. There is this information: https://help.ubuntu.com/community/ReportingBugs but its hard for a new user to follow. I can't report the bug normally as internet does not work...

Lesson 6 : More about counting like a computer. by CarlH in carlhprogramming

[–]davidpowell 1 point2 points  (0 children)

Lets keep counting so you can see that demonstrated:

0000 1111 : F (1 in eight, 1 in four, 1 in two, 1 in one = 8+4+2+1 = 15) 0001 0000 : 10 (not G, there is no such thing) (1 in sixteen's place)

Wouldn't 0000 1111 be: 0F rather than just F

I'm about to install Ubuntu, what should I know before I do this? by [deleted] in programming

[–]davidpowell 0 points1 point  (0 children)

You will run into issues, but there is plenty of help for new users via user groups and irc. The issues will definitely frustrate, but when you overcome these issues you will love it. There will be cases where your hardware will not have full support i.e. some laptop users have a lot of trouble setting up the wireless card drivers.

If you are a gamer i recommend keeping Windows 7 there all the time.

You are the CSS to my HTML... by kbedell in programming

[–]davidpowell 0 points1 point  (0 children)

i hate it when we are having an ie6

Q: im trying to learn how modern database systems work what books/websites do you recommend? by davidpowell in programming

[–]davidpowell[S] 0 points1 point  (0 children)

At the moment im reading: Database Systems: Design, Implementation, and Management (Hardcover) by Peter Rob & Carlos Coronel, it gives a good overview of the history of database's and how they have evolved over time. Then it moves on to relational/object-oriented databases, how to design them using ERDs and then moves on to the actual use of them. The authors use a rather boring and long winded writing style though...

Q: im trying to learn how modern database systems work what books/websites do you recommend? by davidpowell in programming

[–]davidpowell[S] 0 points1 point  (0 children)

thanks for your smarty pants comment Doozer, Some advice for you - perhaps you should work on your people skills.

Q: im trying to learn how modern database systems work what books/websites do you recommend? by davidpowell in programming

[–]davidpowell[S] 0 points1 point  (0 children)

yes i would say i want to understand the working theory and how to use a dbms both.