Search found 158 matches

by Ventanator
Mon Jan 02, 2012 11:59 pm UTC
Forum: Hardware
Topic: File Transfer?
Replies: 3
Views: 1662

Re: File Transfer?

I've done the full install for everything I've seen to have anything to do with it..is there some configuration file that could have a hidden NO somewhere that I need to find?
by Ventanator
Mon Jan 02, 2012 1:19 am UTC
Forum: Hardware
Topic: File Transfer?
Replies: 3
Views: 1662

File Transfer?

I just got a new desktop as a bit of a Christmas present. It's set up to dual boot with Windows 7 and Ubuntu. I'm not the most technically knowledgeable, but I figured it wouldn't be hard to set up the ability to transfer files from it to my Macbook. I'm running into problems though. I have Samba se...
by Ventanator
Mon Sep 12, 2011 11:30 pm UTC
Forum: Computer Science
Topic: Big-O Complexity in Loops
Replies: 16
Views: 8409

Big-O Complexity in Loops

Big-O notations is probably one of the coolest things I've learned in computer science, other than how to make nifty little programs. I haven't done much of it yet, but I've already hit a bit of a conundrum. So let's start with this one: for i = 1 to n do for j = 1 to n do x = 2*y z = x-- According ...
by Ventanator
Wed Sep 07, 2011 11:43 pm UTC
Forum: Coding
Topic: What's the Best Way?
Replies: 9
Views: 1440

Re: What's the Best Way?

Also, you may want your first line in the function to say "if (date == 0) return false;" to eliminate any divide by zero errors. But you don't divide by date anywhere? You're dividing by date when finding both day and month. Also, Anonymously Famous, thanks! Trying to make stuff better th...
by Ventanator
Wed Sep 07, 2011 11:17 pm UTC
Forum: Coding
Topic: What's the Best Way?
Replies: 9
Views: 1440

Re: What's the Best Way?

Yeah! That's pretty much exactly what I needed. I hadn't even thought of doing mod :oops: I'm not quite following why it returns day > max though. Shouldn't it be day < max?
by Ventanator
Wed Sep 07, 2011 7:11 pm UTC
Forum: Coding
Topic: What's the Best Way?
Replies: 9
Views: 1440

Re: What's the Best Way?

C++

I'm not familiar with bit shifts...I'll google it right now, but an explanation would still be nice.
by Ventanator
Wed Sep 07, 2011 6:16 pm UTC
Forum: Coding
Topic: What's the Best Way?
Replies: 9
Views: 1440

What's the Best Way?

What's the best way to read and validate a date? I'm trying to do it where the input is either MMDD or MDD. I'm trying to have this put into a class constructor too. I'm working towards having the class (float amount, int T_type, int date[4]). I'm not sure what to do with the date there though, whic...
by Ventanator
Wed Apr 27, 2011 2:03 pm UTC
Forum: Computer Science
Topic: Making Machines Listen
Replies: 7
Views: 1624

Re: Making Machines Listen

Any computer has some inputs and outputs. Your computer has a keyboard, and a screen, among other things. In a vending machine, there's a little keypad, a little LED display, and some motors to dispense food and drink. In your program, I imagine that when you want to dispense a coke, you call a fun...
by Ventanator
Wed Apr 27, 2011 2:47 am UTC
Forum: Computer Science
Topic: Making Machines Listen
Replies: 7
Views: 1624

Making Machines Listen

I had an assignment recently that tasked me with designing a "vending machine". I had to go through make my program have the ability to do everything that a typical vending machine would do, without an actual vending machine. Instead of pressing a button with a coke on it, I had the user p...
by Ventanator
Wed Apr 27, 2011 2:38 am UTC
Forum: School
Topic: Blatant racism in class
Replies: 115
Views: 14728

Re: Blatant racism in class

It's hard to convince people that what they believe is incorrect. I come from rural USA, and I know exactly what you mean. Until I made it to a university, I thought that everyone was just as dull as they people I knew in high school. (Don't worry too much, they aren't. It will get better, but all y...
by Ventanator
Tue Feb 01, 2011 8:28 pm UTC
Forum: Coding
Topic: Makes Me Angry.
Replies: 6
Views: 1359

Makes Me Angry.

Have you ever been coding something, and everything seems to go fine, but then there's one obscure sounding error. Well, I have. To be fair, I'm not exactly super experienced, but still. I've had my roommate and a few other people look over it, and they've got nothing either. It's a tad longer than ...
by Ventanator
Sun Dec 05, 2010 10:37 pm UTC
Forum: Coding
Topic: Storing Unknown Length of Numbers to an Array
Replies: 7
Views: 1446

Re: Storing Unknown Length of Numbers to an Array

It's C++, and I know that google should be able to help. I tried every google combination that I could think of, and didn't see anything that I understood. My roommate didn't know either, so I figured this would be my best bet..
by Ventanator
Sun Dec 05, 2010 6:31 pm UTC
Forum: Coding
Topic: Storing Unknown Length of Numbers to an Array
Replies: 7
Views: 1446

Re: Storing Unknown Length of Numbers to an Array

How would you find the length of the string though? If it is different every time?
by Ventanator
Sun Dec 05, 2010 4:50 pm UTC
Forum: Coding
Topic: Storing Unknown Length of Numbers to an Array
Replies: 7
Views: 1446

Storing Unknown Length of Numbers to an Array

How would you store an unknown length of of numbers to an array? Such as: The input is 123456789. I want it to be stored to array[] = (1,2,3,4,5,6,7,8,9). The input is 8675309. I want it to be stored to array[] = (8,6,7,5,3,0,9) I'm sure it's simple and I'm just not thinking clearly. The user would ...
by Ventanator
Wed Nov 17, 2010 6:38 pm UTC
Forum: Coding
Topic: Prime and Perfect Numbers
Replies: 14
Views: 1836

Re: Prime and Perfect Numbers

Ah, that makes like seventeen metric tons of sense. :oops:
by Ventanator
Wed Nov 17, 2010 6:09 pm UTC
Forum: Coding
Topic: Prime and Perfect Numbers
Replies: 14
Views: 1836

Re: Prime and Perfect Numbers

bool IsPerfect(int num) { int sum = 0; for(int i = 2; i < num; i++) if (n % i == 0) sum += i; if (sum == num) return true; else return false; } So, I may have went through it wrong, but I got the result of my sum being five. Where should I get my extra one from? As far as the void and bool stuff, t...
by Ventanator
Tue Nov 16, 2010 5:19 pm UTC
Forum: Coding
Topic: Prime and Perfect Numbers
Replies: 14
Views: 1836

Re: Prime and Perfect Numbers

Okay, I've got it (I'm 99% sure anyway, I haven't tested yet). IsPrime void IsPrime(int num) { for(int i = 2; i < num; i++) { if (n % i == 0) return false; } return true; } IsPerfect void IsPerfect(int num) { int sum = 0; for(int i = 2; i < num; i++) if (n % i == 0) sum += i; if (sum == num) return ...
by Ventanator
Tue Nov 16, 2010 12:57 pm UTC
Forum: Coding
Topic: Prime and Perfect Numbers
Replies: 14
Views: 1836

Re: Prime and Perfect Numbers

Ventanator: do you know how to check whether a number is a factor of another number? Putting aside for a moment all this prime number or perfect number stuff... would you be able to make a simple "bool isFactor (int number, int factor)" function? No, and that's what really bothers me. Som...
by Ventanator
Tue Nov 16, 2010 4:59 am UTC
Forum: Coding
Topic: Prime and Perfect Numbers
Replies: 14
Views: 1836

Prime and Perfect Numbers

I *really* feel like there should be something on here about this, but I really didn't see anything that fit it perfectly (although, I admittedly didn't look incredibly hard). Either way, here it is: I need to find all of the perfect numbers between 5 and 500. A perfect number is a number whose fact...
by Ventanator
Sun Oct 03, 2010 7:17 pm UTC
Forum: Coding
Topic: Writing to Files and Such
Replies: 5
Views: 1338

Re: Writing to Files and Such

Edit: You need to use getline(cin, string) to get a line of input up to but not including the \n character. (This will leave the \n character in the input stream, so you will need to discard the rest of the line by calling cin.ignore()) I've done the first part, but I don't really understand what y...
by Ventanator
Sun Oct 03, 2010 1:10 am UTC
Forum: Coding
Topic: Writing to Files and Such
Replies: 5
Views: 1338

Writing to Files and Such

Okay, so I'm just playing around with some stuff I've learned in class up to this point. I decided to try and write a program that took up an employee's information and then allowed you to input hours and stuff. I actually made a pretty usable one (especially considering the small amount of time it ...
by Ventanator
Sun Sep 19, 2010 7:42 pm UTC
Forum: Coding
Topic: C++ Compiler For Mac (shoot me, please?)
Replies: 13
Views: 3877

Re: C++ Compiler For Mac (shoot me, please?)

I ended up figuring out what I mean. In Xcode, there are so many options for different types of projects that I got incredibly confused. After fiddling around a bit, it was actually as easy as many implied it should be. All I had to do was make a new Xcode project and go to the applications pane. Th...
by Ventanator
Wed Sep 15, 2010 4:11 am UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 556514

Re: The "IT DOESN'T WORK!" thread

312 centimeters is 122.834646... and your program is casting this fraction ('double') into an integer. Whenever you cast a double into an integer, it rounds down. So 122.83 should be rounded up to 123 inches (which happens to be 3yd, 1ft, 3in) but is instead rounded down to 122 (3yd, 1ft, 2in). I'v...
by Ventanator
Tue Sep 07, 2010 8:39 pm UTC
Forum: Coding
Topic: The "IT DOESN'T WORK!" thread
Replies: 1958
Views: 556514

Re: The "IT DOESN'T WORK!" thread

Everything runs fine, yeah. There has to be an error somewhere that I can spot though, because the output is wrong. According to my book, the input 312 should give the output 3 yards, 1 foot, and 3 inches. Mine gives 3 yards, 1 foot, and 2 inches. I'm sure it's in my rounding, but I don't know how a...
by Ventanator
Thu Aug 19, 2010 11:11 pm UTC
Forum: Coding
Topic: C++ Compiler For Mac (shoot me, please?)
Replies: 13
Views: 3877

C++ Compiler For Mac (shoot me, please?)

Yeah, I'm starting computer science this semester. We're doing a nice course on C++, and I'm going to be doing most of my work in the labs, but! it would be nice to be able to muck around a bit in my dorm room. Now, I've got xcode, which seems to be the internets choice, installed. I don't see how t...
by Ventanator
Wed Aug 11, 2010 5:43 pm UTC
Forum: School
Topic: A Plea for my Teacher
Replies: 2
Views: 1218

Re: A Plea for Extra Credit...

Just mention you and him in the same tweet? As in, "@mr_toft @aleph_two There's two, old chap."
by Ventanator
Tue Aug 03, 2010 12:51 am UTC
Forum: Food
Topic: The Liquor Thread
Replies: 1265
Views: 276101

Re: The Liquor Thread

Where can you buy liquor online? I live in a pretty remote area, so it takes almost an hour to drive to even the most backwoods of a store. Even once I'm there, if it isn't beer, they don't have it. I saw somewhere people mentioning buying it online, but a quick google doesn't reveal a ton of sites ...
by Ventanator
Thu Jul 22, 2010 12:37 am UTC
Forum: School
Topic: Things to Buy for College
Replies: 63
Views: 9738

Re: Things to Buy for College

- Either bootcamp windows or setup a virtual machine. I personally prefer virtual box, because it can take easy snapshots and doesn't need rebooting, but it can't run everything smoothly (or so I've heard, never had trouble though). I won't be able to use school supplied computers for this? I think...
by Ventanator
Mon Jul 12, 2010 11:58 pm UTC
Forum: School
Topic: Computer Science Colleges
Replies: 4
Views: 1249

Re: Computer Science Colleges

Just around me (deep South), the ones I looked into where the University of Louisiana at Lafayette and the University of Southern Mississippi. The first has a really nice computer department, but I didn't really look into it a ton. I'll be attending USM in...well, like a month now. It's not exactly ...
by Ventanator
Fri Jul 09, 2010 10:40 pm UTC
Forum: School
Topic: Things to Buy for College
Replies: 63
Views: 9738

Re: Things to Buy for College

cv4 wrote:
Ventanator wrote:(side note: pretty sure my roommate will be cool - he knows what thinkgeek.com is anyway!)


I didn't realize the acknowledgement of thinkgeek was a precursor for being cool. lol.


Well now you know. Acknowledge accordingly.
by Ventanator
Fri Jul 09, 2010 11:40 am UTC
Forum: School
Topic: Things to Buy for College
Replies: 63
Views: 9738

Re: Things to Buy for College

Well, we have been in contact, but the plan ins't really definitive yet. I'm bringing two sets of shelves (one for books and one for towels and stuff in the bathroom) and a microwave. I've also got a mini-fridge, but one is provided (do you think I should really have two?). We're set for tv's, of co...
by Ventanator
Fri Jul 09, 2010 1:59 am UTC
Forum: School
Topic: Things to Buy for College
Replies: 63
Views: 9738

Re: Things to Buy for College

I am indeed using a mac, so yeah, please? Also, I'm living on campus in a brand new dorm room. I'll have one roommate, one provided fridge, a chest of drawers, a nightstand, a single bed, a walk in closet, and a bathroom. It's pretty nice, but it doesn't have a kitchenette. I really really like the ...
by Ventanator
Thu Jul 08, 2010 11:40 pm UTC
Forum: School
Topic: Things to Buy for College
Replies: 63
Views: 9738

Re: Things to Buy for College

Well, by college, I meant a four year university. And, I've already got highlighters. (puts sticky notes on list)
by Ventanator
Thu Jul 08, 2010 11:21 pm UTC
Forum: School
Topic: Things to Buy for College
Replies: 63
Views: 9738

Things to Buy for College

Well, as August rapidly approaches, I'm beginning to look at purchasing a few things for college. Seeing as I'm a clueless little freshmen with only their guides provided by the college (buy our sheets!) to guide my way, I am lost. I'm just wondering if any of you have suggestions on things that I'l...
by Ventanator
Thu Jun 24, 2010 12:47 am UTC
Forum: Coding
Topic: CSV Files in Python
Replies: 6
Views: 3271

Re: CSV Files in Python

That would indeed be the problem, but with the solution another arises. When I change the file format to csv, then it works. As long as there is only one row, that is. If there is a second row, I get this: Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> for row i...
by Ventanator
Thu Jun 24, 2010 12:28 am UTC
Forum: School
Topic: Scholarships
Replies: 18
Views: 3396

Re: Scholarships

The biggest tip is to apply early and apply often. I'll be going to college next year on a full ride, and I only applied to a single scholarship (and I did it as a joke). How? 99% of it was that I applied early to college and the FAFSA. The FAFSA is just a thing that looks at how much money you and ...
by Ventanator
Thu Jun 24, 2010 12:17 am UTC
Forum: Science
Topic: Time stopping
Replies: 32
Views: 3397

Re: Time stopping

Why not reverse your problem? It's still hard, but you will have a more local set of problems. So instead of freezing the universe, speed yourself up. You now only have to problem of speeding yourself up to a speed that could be likened to freezing the rest of the universe. As with your original qu...
by Ventanator
Thu Jun 24, 2010 12:10 am UTC
Forum: Coding
Topic: CSV Files in Python
Replies: 6
Views: 3271

CSV Files in Python

Okay, let's say I want to import a list of values from Excel and have them available to manipulate in python. A google search yields http://docs.python.org/library/csv.html and that seems like plenty enough for me to figure it out. Half an hour of playing around later, and I still don't have it and ...
by Ventanator
Sun May 02, 2010 11:44 pm UTC
Forum: School
Topic: No Tolerance Policy
Replies: 4
Views: 1671

Re: No Tolerance Policy

From your description, sounds like the other kid is at fault because he started it. If there were no other witness though, it might be hard to present a case. But I think the school policy is unjust and... because it's in Mississippi State... I'm not sure how willing the administrative figures are ...
by Ventanator
Sun May 02, 2010 6:17 pm UTC
Forum: School
Topic: No Tolerance Policy
Replies: 4
Views: 1671

No Tolerance Policy

My school has a no tolerance policy, meaning that many offenses are punished without caring for the situation. For instance, when you hear of a nine year old being suspended for bringing a pair of safety scissors to school, it was probably a no tolerance policy. I don't know if that was real, but I ...

Go to advanced search