Search found 28 matches

by DarkKnight045
Fri May 13, 2011 8:23 pm UTC
Forum: Coding
Topic: Regex Help
Replies: 8
Views: 1250

Re: Regex Help

City\/State\/Country:\s*([^,]*), The trickiest part was dealing with the times where there would be multiple entries of those, fortunately they were all right next to each other so I was able to do: if( $line =~ /City\/State\/Country:\s*([^,]*),City\/State\/Country:\s*([^,]*),City\/State\/Country:\s...
by DarkKnight045
Thu May 12, 2011 7:04 pm UTC
Forum: Coding
Topic: Regex Help
Replies: 8
Views: 1250

Re: Regex Help

That's working beautifully, now I have a few other matters to resolve to clean the data.

I apologize, I pulled that sample from Excel, so the ',' were hidden, fortunately it was a simple change.

Thanks everyone!
by DarkKnight045
Wed May 11, 2011 8:35 pm UTC
Forum: Coding
Topic: Regex Help
Replies: 8
Views: 1250

Re: Regex Help

Here's the sample data: Description Column2 Column3 Column4 Column5 Column6 Column7 Column8 AMENDMENT NO. 1 TO ORIGINAL NDA NO. 6859 Type of Agreement: Mutual Disclosures City/State/Country: North Amityville; New York Termination Date: 3/31/2009 Model(s): H-53 Scope: COMPANY-Airframe Structu...
by DarkKnight045
Wed May 11, 2011 8:21 pm UTC
Forum: Coding
Topic: Regex Help
Replies: 8
Views: 1250

Regex Help

I believe this is the right forum for this sort of question. I have some data that I need to parse through that is in the format: {field name}:{Non-specific number of spaces}{Data which could be any character except a ,}, I can't seem to get a Regex that will allow me to capture only that data point...
by DarkKnight045
Fri Dec 17, 2010 3:47 pm UTC
Forum: Religious Wars
Topic: Best language for n00bs
Replies: 261
Views: 81572

Re: Best language for n00bs

I'm trying to work on a developing a basic web application. At work I've done ones like this a hundred times using Visual Studio.net with ASP as the front end and C# as the backend. At home I lack the luxury of such tools and don't want to battle IP debates if I develop a web app at work. I've been ...
by DarkKnight045
Thu Oct 30, 2008 3:34 pm UTC
Forum: Computer Science
Topic: Regular expressions (and a puzzling problem therefrom)
Replies: 10
Views: 5939

Re: Regular expressions (and a puzzling problem therefrom)

Sorry to be late in this thread but I have some questions:
1. Where is a good place to learn regular expressions? I've been trying but I find them to be so complex in syntax that I don't make any ground.

2. What would the RE be to match anything that ended in .mp3?
by DarkKnight045
Thu Sep 11, 2008 7:16 pm UTC
Forum: Serious Business
Topic: please can we all talk about abortions? that would be nice.
Replies: 920
Views: 112311

Re: please can we all talk about abortions? that would be nice.

I feel as though my analogy was taken way too far. I don't think that they are the same in magnitude, but rather the same in that because of either poor/no contraceptive or heinous misdeed (read: rape) you are getting an abortion. Much like surgery from say not doing physical therapy, or being in a ...
by DarkKnight045
Thu Sep 11, 2008 5:13 pm UTC
Forum: Serious Business
Topic: please can we all talk about abortions? that would be nice.
Replies: 920
Views: 112311

Re: please can we all talk about abortions? that would be nice.

Anecdotal evidence is not a basis for a solid argument. Not now, not ever. Even if you knew 1,000 people who had an opinion, that doesn't mean that its a catch all; and go so far as to assume that its univerally applicable. Personally I admire anyone who gets pregnant when they didn't want to, but d...
by DarkKnight045
Mon Jul 07, 2008 7:48 pm UTC
Forum: Serious Business
Topic: What is Existentialism?
Replies: 73
Views: 9739

Re: What is Existentialism?

I've recently come to the conclusion that I likened to Existentialism out a matter of convenience. There was no life change, there was no cathartic realization. I read about what Existentialism is about and concluded that it in fact already into what I believe. Not to say 100%, as I find that most p...
by DarkKnight045
Tue Jun 03, 2008 5:34 pm UTC
Forum: Coding
Topic: Reading Filenames and etc.
Replies: 13
Views: 1896

Re: Reading Filenames and etc.

Are there no Py libs for reading ID3/ID3v2 tags? Whenever you have that sort of question, you'll find it much faster to type it into Google than into this forum :) I'm not a Python user, I was merely suggesting it as a more sensible approach for the OP to research himself.... :roll: This is a fair ...
by DarkKnight045
Tue Jun 03, 2008 3:46 pm UTC
Forum: Computer Science
Topic: Continued study for Comp Sci AP: 2 questions (heaps/trees)
Replies: 7
Views: 2486

Re: Continued study for Comp Sci AP: 2 questions (heaps/trees)

http://en.wikipedia.org/wiki/Tree_traversal#Level_order_traversal If you follow this process you will see that with a binary search tree of : 26 / \ 20 37 / \ / 18 22 31 \ \ / 19 25 29 The question is termed as a binary search tree, and this traversal fits it perfectly. I'd say its the way to go. Th...
by DarkKnight045
Tue Jun 03, 2008 3:16 pm UTC
Forum: Hardware
Topic: I want to learn about microcontrollers
Replies: 9
Views: 3300

Re: I want to learn about microcontrollers

There are several components you will be dealing with here, first of which is you want a microprocessor that has an Analog - to - Digital converter. This will take your analog input from the pressure sensor, and convert it to a digital value that can be used later. Acquiring the data afterwards may ...
by DarkKnight045
Tue Jun 03, 2008 1:11 pm UTC
Forum: Coding
Topic: Reading Filenames and etc.
Replies: 13
Views: 1896

Re: Reading Filenames and etc.

Okay, I'm slowly getting this down, what I need now are some pointers as to how to adequately utilize the os.walk: The program would go as follows: Begin os.walk receive (first/next) file name: apply regular expression to separate artist and title place artist and title into arrays (this is optiona...
by DarkKnight045
Mon Jun 02, 2008 4:21 pm UTC
Forum: Coding
Topic: Reading Filenames and etc.
Replies: 13
Views: 1896

Re: Reading Filenames and etc.

Okay, I'm slowly getting this down, what I need now are some pointers as to how to adequately utilize the os.walk: The program would go as follows: Begin os.walk receive (first/next) file name: apply regular expression to separate artist and title place artist and title into arrays (this is optional...
by DarkKnight045
Wed May 28, 2008 12:31 pm UTC
Forum: Coding
Topic: Reading Filenames and etc.
Replies: 13
Views: 1896

Re: Reading Filenames and etc.

Actually I was being very literal with the format:

All files are in this format, I will use the song Crazy by Aerosmith as an example:

[Aerosmith]-Crazy.mp3

I will try the code posted and see what results I get.

Thanks for all the help so far! :D
by DarkKnight045
Tue May 27, 2008 4:27 pm UTC
Forum: Coding
Topic: Reading Filenames and etc.
Replies: 13
Views: 1896

Reading Filenames and etc.

Here's a basic rundown: I'd like to write a script that goes through a folder (this should be an input), reads each filename (that fits the below criteria) and puts the data into a SQL database (separated into the components of title and artist). All files that I want to be read go as follows: [<art...
by DarkKnight045
Fri May 23, 2008 1:57 pm UTC
Forum: Serious Business
Topic: Asexuality
Replies: 330
Views: 70704

Re: Asexuality

Celibate, because apart from having no urges, I feel strong disgust towards the subject of sex, as observing various forms of hedonistic degradation to which it oftentimes leads cannot create any other reaction in a thinking person. I don't think the point of this thread is "I'm smarter than y...
by DarkKnight045
Fri May 16, 2008 6:35 pm UTC
Forum: Serious Business
Topic: Marijuana
Replies: 172
Views: 23791

Re: Marijuana

Beyond this, my smoke tolerance is poor, catching a puff of cigarettes can drop me to my knees hacking, coughing, and nearly vomitting from the coughing. This is anecdotal, and I do not submit it as a knock against pot it simply serves to form the basis of my statement. Pot, if legalized, had best ...
by DarkKnight045
Fri May 16, 2008 6:31 pm UTC
Forum: Serious Business
Topic: please can we all talk about abortions? that would be nice.
Replies: 920
Views: 112311

Re: please can we all talk about abortions? that would be nice.

Sorry, doing what anyway? I'm not trying to sound accusatory; I genuinely didn't follow what you were saying there. Do you mean drawing the line anyway? If so, good luck convincing most people that they lack the understanding to know where the line is. Abortion specifically. And the fact that "...
by DarkKnight045
Fri May 16, 2008 6:27 pm UTC
Forum: General
Topic: Alignment
Replies: 215
Views: 23301

Re: Alignment

Image
Find your Celestial Choir

I wound up 76.7% Good
and 7.6% Lawful from the other test.
by DarkKnight045
Fri May 16, 2008 4:02 pm UTC
Forum: Serious Business
Topic: please can we all talk about abortions? that would be nice.
Replies: 920
Views: 112311

Re: please can we all talk about abortions? that would be nice.

Please try to avoid only posting regarding pregnancy through rape If there is any possible way to manage it, can we also try to avoid just repeating the same points that have already been made over and over and over again. By this I mean: A: Abortion is wrong because my religion says [n] B: Yeah, b...
by DarkKnight045
Fri May 16, 2008 3:56 pm UTC
Forum: Serious Business
Topic: Marijuana
Replies: 172
Views: 23791

Re: Marijuana

Truth be told I care little for the legalization of Marijuana, ecept in how impacts me directly. Note: I do not smoke pot/cigarettes/anything. The smell of pot is ranked up with cigarettes, it repulses me. I have noticed that people who do smoke pot seem to not notice the smell. I've rarely found an...
by DarkKnight045
Fri May 16, 2008 3:46 pm UTC
Forum: Serious Business
Topic: What is Existentialism?
Replies: 73
Views: 9739

Re: What is Existentialism?

I believe that I have reached a good midpoint in conformity/non-conformity spectrum. In general I do what makes me happy, I have been part of fads before, but typically it is by coincidence. Most often the fad comes and goes and I'm still on it even after its gone. Active non-conformity is arguably ...
by DarkKnight045
Tue Apr 22, 2008 5:39 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0413: "New Pet"
Replies: 251
Views: 54380

Re: "New Pet" Discussion

I would like to point out that based on the current design the webcam should be just fine, for the most part. Obviously falling down stairs is an issue, but if you study the design carefully, the webcam will simply remain where the top piece of the frame is located. Falling down stairs isn't somethi...
by DarkKnight045
Tue Feb 26, 2008 6:28 pm UTC
Forum: Serious Business
Topic: Apathetic Scientists Hurt Science
Replies: 302
Views: 22078

Re: Apathetic Scientists Hurt Science

It has always puzzled me that religious belief gets singled out, while so many other unfalsifiable convictions (the correct interpretation of the second amendment, for example) are well respected. This is largely due to at what level you are assaulting the persons world. When you argue an interpret...
by DarkKnight045
Tue Feb 26, 2008 5:49 pm UTC
Forum: Computer Science
Topic: Ubuntu Processes and Threads
Replies: 2
Views: 2523

Re: Ubuntu Processes and Threads

Thanks!

Much appreciated, this should help quite a bit!
by DarkKnight045
Tue Feb 26, 2008 4:52 pm UTC
Forum: General
Topic: INTRO THREAD THE THIRD
Replies: 10914
Views: 2113470

Re: INTRO THREAD THE THIRD

Hey there, my name is Scott, 22 and I'm finishing a B.S. in Computer Engineering this semester. I'm a consumate dabbler, I fiddle with linux, including Ubuntu(and derivatives), Knoppix, Puppy, and others as I get my hands on them. I try to build a working competency with them, but I'm certainly no p...
by DarkKnight045
Tue Feb 26, 2008 4:20 pm UTC
Forum: Computer Science
Topic: Ubuntu Processes and Threads
Replies: 2
Views: 2523

Ubuntu Processes and Threads

Okay, I'm looking for something of an assist here: I was wondering if anyone could assist me in understanding how Ubuntu, and by extension linux, handles processes and threading of those processes. Mostly on a conceptual level, though if you can point me to the sections of source code that detail th...

Go to advanced search