## Search found 90 matches

Mon Dec 21, 2015 7:02 am UTC
Forum: Coding
Topic: SQL Stuffs: Insert using Select cross Constants help
Replies: 6
Views: 3401

### Re: SQL Stuffs: Insert using Select cross Constants help

I'm learning so much about what I need to work on with my skills, in this case, specifying exactly what the problem is (and being aware when I'm describing something different than I want!) So actually, the 2nd columns numbers aren't ordered 1 to 100. They are some set of numbers, so I would end up ...
Sat Dec 19, 2015 7:49 pm UTC
Forum: Coding
Topic: SQL Stuffs: Insert using Select cross Constants help
Replies: 6
Views: 3401

### Re: SQL Stuffs: Insert using Select cross Constants help

so table1 has a bunch of IDs, say 1-10, and I want all the even numbers, for example.

I want to put them in table2 multiple times like this:

so I want the f

ID value
2 1
2 2
2 3
2 4
2 5
...
2 99
2100
4 1
4 2
4 3
...
10 99
10 100

so I end up with results of subquery x 100 lines in the table
Sat Dec 19, 2015 7:17 am UTC
Forum: Coding
Topic: SQL Stuffs: Insert using Select cross Constants help
Replies: 6
Views: 3401

### SQL Stuffs: Insert using Select cross Constants help

I want to do something like this: INSERT INTO table2 (ID, value) select distinct table1.ID, 1 from table1 where something = somethingelse; INSERT INTO table2 (ID, value) select distinct table1.ID, 2 from table1 where something = somethingelse; INSERT INTO table2 (ID, value) select distinct table1.ID...
Fri Apr 24, 2015 4:36 am UTC
Forum: General
Topic: Understanding Myers-Briggs
Replies: 9
Views: 4531

### Re: Understanding Myers-Briggs

Yeah, I agree it's just for fun.

I'd still like to know what it all means though.
Thu Apr 23, 2015 10:51 pm UTC
Forum: General
Topic: Understanding Myers-Briggs
Replies: 9
Views: 4531

### Understanding Myers-Briggs

I am INFx. When I read general descriptions, I feel like both INFJ and INFP fit me pretty well. I'm not sure I understand the differences between the last 3 categories. How are Sensing and Perceiving different? Or sensing and feeling? Or Judging and Intuition? It feels very muddy to me. (Or do I sen...
Thu Apr 23, 2015 8:26 pm UTC
Forum: The Help Desk
Topic: Laptop speakers don't work, clicking noise when accessed
Replies: 1
Views: 2632

### Laptop speakers don't work, clicking noise when accessed

Yay I need tech support! Lenovo Y40 When I access something with sound (a youtube video, for example), the sound does not work, and there is a clicking noise every second or so. The sound stops a few seconds after I close the video. It also stops if I uninstall the driver. It happens with both the &...
Thu Sep 04, 2014 8:20 pm UTC
Forum: Coding
Topic: Perl: Can you check if a string is a boolean expression?
Replies: 2
Views: 2360

### Re: Perl: Can you check if a string is a boolean expression?

A parser that reads files, and sometimes there are lines in the file that indicate to read the next few lines if it evaluates to true.
Thu Sep 04, 2014 7:36 pm UTC
Forum: Coding
Topic: Perl: Can you check if a string is a boolean expression?
Replies: 2
Views: 2360

### Perl: Can you check if a string is a boolean expression?

Follow up to something I asked a long time ago: http://forums.xkcd.com/viewtopic.php?f=11&t=106675 So eval works to evaluate boolean strings in Perl. is there an existing way to check if a string is a simple boolean expression (ie just strings and eqs and ==s and ||s and such) so I don't end up ...
Tue May 20, 2014 11:08 pm UTC
Forum: Coding
Topic: Perl: How to access a variable via a string
Replies: 5
Views: 2260

### Re: Perl: How to access a variable via a string

1st method didnt work, 2nd method is perfect. Thanks!
Tue May 20, 2014 10:44 pm UTC
Forum: Coding
Topic: Perl: How to access a variable via a string
Replies: 5
Views: 2260

### Re: Perl: How to access a variable via a string

I'll try these, thanks!

While I don't want multiple if statements, I'm actually keeping a list of the modifiable variables in an array and looping through that with a single if statement, so it's not quite giving the user full control, haha.
Tue May 20, 2014 9:36 pm UTC
Forum: Coding
Topic: Perl: How to access a variable via a string
Replies: 5
Views: 2260

### Perl: How to access a variable via a string

Contriving up an example of what I want: Say I have 2 variables in perl: \$countera = 0; \$counterb = 0; and then the user types into the terminal "countera", and I want the counter he types to increase by 1. I dont want to use 2 if statements as that would not be scalable when I increase th...
Mon Mar 10, 2014 7:08 pm UTC
Forum: School
Topic: Does anyone feel like previous levels don't prepare you?
Replies: 19
Views: 15892

### Re: Does anyone feel like previous levels don't prepare you?

In grad school, the material for classes was way more difficult, but they were far less interested in our ability to memorize it. I feel the opposite! They expect you to remember things on the spot when asked! The high school you go do does seem to make a pretty big difference (and probably what co...
Mon Mar 10, 2014 3:54 am UTC
Forum: School
Topic: Does anyone feel like previous levels don't prepare you?
Replies: 19
Views: 15892

### Does anyone feel like previous levels don't prepare you?

Like the jump from high school to university was a big leap. My marks were better but it required a LOT more studying to do well and a lot less social life/time for extra curriculars. I was not prepared for the big difference at all. And then the jump from undergrad to grad school. I believed 60% wa...
Mon Mar 10, 2014 1:54 am UTC
Forum: Mathematics
Topic: Chi-Squared Tests (Pearson)
Replies: 3
Views: 2234

### Re: Chi-Squared Tests (Pearson)

I wasn't using a specific example but I can try to reword it so it is. Say plants can have 1 leaf or 2 leaves. This is 1 degree of freedom. I have 10 plants, I calculate the chi squared value, I get 2.5. Looking at a lookup table with alpha = 0.05, the critical value is 3.81. What does this value in...
Wed Feb 12, 2014 7:49 am UTC
Forum: Mathematics
Topic: Chi-Squared Tests (Pearson)
Replies: 3
Views: 2234

### Chi-Squared Tests (Pearson)

Okay, I don't have a strong background on this but I just don't understand the theory when I read up on it, it's a lot of blah blah. So you calculate an X2 value from your observed data. And you compare it to a chi squared value you get from calculating the integral (knowing k, degrees of freedom, a...
Thu Jan 30, 2014 8:32 pm UTC
Forum: Computer Science
Topic: Machine learning model vs heuristic?
Replies: 5
Views: 6004

### Re: Machine learning model vs heuristic?

I was under the impression that a machine learning method would train on known data (say the link of 100 factors to cancer), and comes up with some "model" that helps you predict for future data. I was told that it ends up being more complex than a simple heuristic (ie if height > 5' and w...
Tue Jan 28, 2014 4:24 am UTC
Forum: Computer Science
Topic: Machine learning model vs heuristic?
Replies: 5
Views: 6004

### Machine learning model vs heuristic?

Using machine learning, what is the difference between saying "I have used machine learning to build up a machine learning model" and "I have used machine learning to determine a heuristic (ie dividing the two sides is some boolean function, ex. x > 5)"?
Mon Nov 25, 2013 11:24 pm UTC
Forum: Mathematics
Topic: Testing if a set of data is from a distribution
Replies: 1
Views: 986

### Testing if a set of data is from a distribution

I've been looking at this, and wanted some clarification on the ideas. There are tests that, say, tests if a set of 1000 integer data is "from a normal distribution." Isn't it still possible that a picking numbers from a normal distribution yields shifted results? For example, it's not lik...
Tue Nov 19, 2013 6:53 am UTC
Forum: School
Topic: Giving Feedback on Presentations
Replies: 6
Views: 7244

### Re: Giving Feedback on Presentations

heading off to bed but just wanted to respond to one thing I don't think the presentations are flawless, I just don't notice the flaws. Other people in the room usually recite off laundry lists of problems. And if I'm busy listening to the presentation, I don't have the multitasking power to both un...
Sun Nov 17, 2013 9:00 pm UTC
Forum: School
Topic: Giving Feedback on Presentations
Replies: 6
Views: 7244

### Giving Feedback on Presentations

As a grad student now, I get invited to other students' practice talks so we can give them feedback before the real thing. However, I usually end up seeing nothing wrong with the presentation itself, so while other people in the room pick everything apart, I end up saying "I thought it was good...
Thu Nov 14, 2013 8:06 pm UTC
Forum: Coding
Topic: Perl: Evaluating Boolean Expression from Strings
Replies: 2
Views: 4073

### Re: Perl: Evaluating Boolean Expression from Strings

For some reason, I didn't grasp the fact that eval may work for boolean expressions. I'll try it. Thanks.
Thu Nov 14, 2013 6:02 pm UTC
Forum: Coding
Topic: Perl: Evaluating Boolean Expression from Strings
Replies: 2
Views: 4073

### Perl: Evaluating Boolean Expression from Strings

I want this for perl but I guess I am curious enough to ask if such a thing exists in other languages (like C or C++) too. Is there some preexisting function to test a boolean expression from a string? For example, normally if (6 > 4) would evaluation to true. But what if \$evaluation = "6 > 4&q...
Wed Nov 06, 2013 3:34 am UTC
Forum: School
Topic: Presentation Preparation Philosophy
Replies: 17
Views: 10514

### Re: Presentation Preparation Philosophy

Well it was an exhaggeration in the sense that if I had more than 2 sentences on a card, it would take me even longer to read through the card to see what I missed.
Tue Nov 05, 2013 11:39 pm UTC
Forum: School
Topic: Presentation Preparation Philosophy
Replies: 17
Views: 10514

### Re: Presentation Preparation Philosophy

Notecards are frustrating for me too! If I'm presenting, I don't have the time to read the 2 lines of text per card that I've written donw!
Thu Oct 31, 2013 8:01 pm UTC
Forum: School
Topic: Presentation Preparation Philosophy
Replies: 17
Views: 10514

### Presentation Preparation Philosophy

How do you properly prepare for a presentation? From my experience, at first, you practice because it is not polished and you can get criticism from people and such before the real thing. But there reaches a point when you practiced so much that you are no longer naturally flowing out thoughts and e...
Tue Oct 29, 2013 5:32 am UTC
Forum: Coding
Topic: How much space does an int-char-int take up?
Replies: 5
Views: 2867

### Re: How much space does an int-char-int take up?

I intentionally kept the question vague in terms of structures and such.

So to reiterate, it can be any depending on compiler settings, but usually, ints will be 4 byte aligned and chars will be byte aligned (am I using those terms correctly?) resulting in 12 bytes, usually.
Tue Oct 29, 2013 4:34 am UTC
Forum: Coding
Topic: How much space does an int-char-int take up?
Replies: 5
Views: 2867

### How much space does an int-char-int take up?

This is a simple question, that I forget the exact symantics of. It's good to refresh the basics, I guess. Assuming an int is 4 bytes and a char is 1 byte, If I have an int, followed by a char, followed by an int, how much space would it take up: 9 bytes (with an improperly aligned 2nd int) or 12 by...
Sat Oct 05, 2013 2:51 pm UTC
Forum: Science
Topic: How does light work/how do we see? [stupid question]
Replies: 5
Views: 1984

### How does light work/how do we see? [stupid question]

First of all, I know this will come across as the most stupid question. I never understood how light works/how we see things. In every textbook I've ever had that talked about this, they always show that picture with the eyeball and the light source and the ray shining from the light source to the e...
Thu Aug 15, 2013 6:45 pm UTC
Forum: School
Topic: How do people learn on their own?
Replies: 7
Views: 6048

### How do people learn on their own?

Sort of a frustration/jealousy rant, but I do want to know how to improve myself in this regard. To me it seems like without someone there to lecture you and answer questions during office hours it's impossible to understand things in the first place and make it stick. Mostly this question sprung up...
Tue Jul 23, 2013 10:13 pm UTC
Forum: Coding
Topic: What is a model?
Replies: 25
Views: 6699

### Re: What is a model?

Well, it's similar to the example I have about on the C language. I'm designing a language, and we have a "model", which to me, looks like a bunch of keywords which can create a certain subset of program types. We're deciding on new features to add, and he keeps saying how some implementat...
Tue Jul 23, 2013 4:52 pm UTC
Forum: Coding
Topic: What is a model?
Replies: 25
Views: 6699

### What is a model?

This is most definitely a very basic concept that I cannot grasp. Was talking to a prof, and couldn't grasp what he meant by a model. He said something along the lines "When features are added to a model, it has to fit in the model." I'm confused. If it doesn't fit, wouldn't you add it to ...
Wed Jun 19, 2013 5:12 pm UTC
Forum: Science
Topic: Quantum Computing Uses
Replies: 11
Views: 4553

### Re: Quantum Mechanics Uses

So the idea here is that we are sacrificing accuracy for speed? Quantum computing would be faster but less accurate, and by repeating this faster algorithm multiple times, we can be more sure of its results, hoping it has a faster O-bound in the long run?
Wed Jun 19, 2013 4:28 pm UTC
Forum: Science
Topic: Quantum Computing Uses
Replies: 11
Views: 4553

### Quantum Computing Uses

I've been somewhat exposed to it via classes and presentations, but I just don't think I have a grasp on what all this really means. They all seem to go too much into theory and mathiness into "qubits can be zeros and ones at the same time" or "looking at a result affects the system.&...
Tue May 07, 2013 10:14 pm UTC
Forum: The Help Desk
Replies: 0
Views: 2879

Trying to build opencv, getting linking errors, so tried to bring it down to a more basic level. Using windows 8 w/ cygwin, following this: http://maemo.org/maemo_training_material/maemo4.x/html/maemo_Getting_Started_Chinook/Chapter_03_Testing_the_installation.html I get up to this point in the tuto...
Thu Mar 21, 2013 10:06 pm UTC
Forum: Coding
Topic: Scripts for Websites
Replies: 4
Views: 8302

### Scripts for Websites

I'm familiar with stuff like bash shell scripting, but that works with stuff in the shell/filesystem.

How do you go about doing script stuff from websites? Say I want to poll XKCD for front page updates once a minute as it approaches midnight. How would I go about this?
Wed Mar 20, 2013 9:47 pm UTC
Forum: Coding
Topic: Segmentation faults from function calls
Replies: 2
Views: 6705

### Re: Segmentation faults from function calls

[smacks own head] Precisely the problem. Testcase was deeper than I thought it was. Every other testcase has 1 test. This testcase has 2, and the 2nd test uses N=0 (first one had N>0). Didn't notice the 2nd test, and assumed it was a function call problem. EDIT: and the way I simplified the problem ...
Wed Mar 20, 2013 9:22 pm UTC
Forum: Coding
Topic: Segmentation faults from function calls
Replies: 2
Views: 6705

### Segmentation faults from function calls

I was wondering how segmentation faults can be cause from function calls.

Without going into too much detail I have this setup:

for (int i = 0; i < n ; i++) {
call(array[i]);
}

That works.

If I remove the loop and use simply:

call(array[0]);

It causes a segfault.
Sun Mar 10, 2013 5:12 pm UTC
Forum: Hardware
Topic: Partition Camping vs Bank Conflict
Replies: 0
Views: 3359

### Partition Camping vs Bank Conflict

Are these concepts the same but for different parts of memory in a GPU? As far as I can tell, Bank Conflicts are when two threads access the same bank of shared memory, causing a conflict and serialization. Partition Camping is when two threads access the same partition on global memory causing it t...
Wed Feb 27, 2013 4:10 am UTC
Forum: Computer Science
Topic: Does a generic code generator exist?
Replies: 8
Views: 9814

### Re: Does a generic code generator exist?

Hey this csmith thing is really cool. This may be very useful once I figure out all the specifics of it. Thanks!
Tue Feb 26, 2013 6:26 pm UTC
Forum: Computer Science
Topic: Does a generic code generator exist?
Replies: 8
Views: 9814

### Does a generic code generator exist?

I'm wondering if something like this exists: Say I want a C++ program with a nested loop. So using this program, I specify that I want a nested loop. Then the program would spit out source code that would be a nested loop, the specifics of the loop do not matter if I did not specify (ie. for (i=0; i...