Search found 270 matches

by WanderingLinguist
Sat Sep 15, 2012 11:48 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1779674

Re: Coding: Fleeting Thoughts

Oho--I didn't think of the float-subtraction-check-absolute-value trick. That could definitely work--thanks! I'll have to set up a new equality operation or somesuch for that, but it should fix the problem very nicely. EDIT: Couldn't I set up a 'custom float class' in Python so that every time I tr...
by WanderingLinguist
Sat Sep 15, 2012 11:36 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1779674

Re: Coding: Fleeting Thoughts

I'm doing some basic coding work and I had a weird math question. I noticed when I did some of my float comparison operations (float1 == float2?), I got some unusual errors, so I looked it up and found out that float comparison is a tricky thing. My solution, then, was to round the floats I'm using...
by WanderingLinguist
Thu Sep 13, 2012 1:26 pm UTC
Forum: Coding
Topic: Programming a music player
Replies: 7
Views: 6960

Re: Programming a music player

It would help if you told us what platform this is for, and what programming languages you know. Edit: There are already lots of music players out there. Do you want to make a new one just for the experience, or is there some other reason? Your question is incredibly broad. Give us something to work...
by WanderingLinguist
Mon Sep 10, 2012 6:13 pm UTC
Forum: Computer Science
Topic: Difficulty with libraries
Replies: 5
Views: 3216

Re: Difficulty with libraries

You may be suffering from terminology confusion. Generally, the term Python uses is "module". To load a module, you use import . Pyhton looks for the module in the module search path (see http://docs.python.org/release/1.5.1p1/tut/searchPath.html ) As you can see, it looks in the same dire...
by WanderingLinguist
Mon Sep 10, 2012 2:52 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1779674

Re: Coding: Fleeting Thoughts

Yep, there is lots of library (and hardware) support for the 4x4 matrix method. But there is no fundamental reason why it couldn't have been library support for some other equivalent route. The matrix route, in a sense, exposes implementation details that make it harder for people to grasp what is ...
by WanderingLinguist
Mon Sep 10, 2012 2:02 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9870
Views: 1779674

Re: Coding: Fleeting Thoughts

There is, of course, no reason this can't be done by using a matrix and vector pair in R 3 to represent an affine transformation. The effort is essentially the same. Well, it's a lot harder to build composite operations that way. In 3D graphics, it's quite common to want something like: rotate -> t...
by WanderingLinguist
Sun Sep 02, 2012 4:36 am UTC
Forum: The Help Desk
Topic: Laggy Flash
Replies: 14
Views: 2454

Re: Laggy Flash

I think only some Youtube videos have been converted to HTML5, such that it's a tossup whether what you want to see is HTML5 already. I'm pretty sure it's all available in HTML5 now, considering that the Youtube site works on iPhone (the actual site, not the Youtube app). I know Youtube has a huge ...
by WanderingLinguist
Sun Sep 02, 2012 2:34 am UTC
Forum: The Help Desk
Topic: Laggy Flash
Replies: 14
Views: 2454

Re: Laggy Flash

I think only some Youtube videos have been converted to HTML5, such that it's a tossup whether what you want to see is HTML5 already. I'm pretty sure it's all available in HTML5 now, considering that the Youtube site works on iPhone (the actual site, not the Youtube app). I know Youtube has a huge ...
by WanderingLinguist
Sat Sep 01, 2012 11:09 pm UTC
Forum: The Help Desk
Topic: Laggy Flash
Replies: 14
Views: 2454

Re: Laggy Flash

This won't solve the ROH problem, but for Youtube, I'm pretty sure there's a way to switch it to HTML5 video (no Flash). I don't remember where I found the setting (it was quite some time ago), but I don't get Flash any more when I go to Youtube. Try using Chrome, and setting it for HTML5 video inst...
by WanderingLinguist
Sat Aug 25, 2012 9:30 am UTC
Forum: Coding
Topic: give me a small project!
Replies: 16
Views: 5222

Re: give me a small project!

These do look like fun projects, and I'm particularly interested in this one. However, I noticed in the FB documentation, there doesn't seem to be an option for desktop applications. Do I just lie and say I'm writing for the web, or is there a specific reason for that? They don't have a specific de...
by WanderingLinguist
Sun Aug 19, 2012 10:43 am UTC
Forum: Coding
Topic: give me a small project!
Replies: 16
Views: 5222

Re: give me a small project!

edit: just checked facebook and the friends lists are displayed within some horrible javascript thing so this will be harder than it should be. Facebook has an API that returns that information in JSON. Quite easy to use. Edit: They have a developer site with the details https://developers.facebook...
by WanderingLinguist
Sat Aug 18, 2012 12:57 am UTC
Forum: Coding
Topic: Python list reference mapping
Replies: 4
Views: 3583

Re: Python list reference mapping

There's nothing built in, but you can make one: class mergelist: def __init__(self, *args): self.listlist=args def __getitem__(self,key): for list in self.listlist: if key < len(list): return list[key] key = key - len(list) raise IndexError def __setitem__(self,key,value): for list in self.listlist:...
by WanderingLinguist
Mon Aug 13, 2012 9:23 pm UTC
Forum: Computer Science
Topic: Regex probability
Replies: 34
Views: 40047

Re: Regex probability

Counting some regex patterns is easy. Its when we have the | operator that things get tricky, because we now need to find the common subsets between the two sides. Is there a way to count the number of common matches between regex patterns? What about: [ab]*[bc]* Or... [ab]*b*[bc]* My gut feeling i...
by WanderingLinguist
Sun Aug 12, 2012 11:15 pm UTC
Forum: Computer Science
Topic: Regex probability
Replies: 34
Views: 40047

Re: Regex probability

I'm by no means an expert on this, but it seems to me you would need to parse the regular expression and then execute it in a modified way that adds up possibilities at each location. It would depends on what kind of regular expression, and what kind of characters you're taking about. For example, i...
by WanderingLinguist
Sat Aug 11, 2012 2:22 am UTC
Forum: Coding
Topic: Searching with python
Replies: 8
Views: 2123

Re: Searching with python

Also, help(thingy) is usually easier to use than print(thingy.__doc__) , at least IMO. (It gives you a searchable pager -- use / to search.) You could also give ipython a try; I haven't made the switch yet, but looking around it seems like it has some neat features and, if memory serves, one of the...
by WanderingLinguist
Sat Aug 11, 2012 12:53 am UTC
Forum: Coding
Topic: Searching with python
Replies: 8
Views: 2123

Re: Searching with python

Just go to python.org (the official Python web site) and click Documentation in the left-hand sidebar. There's a section on the Python Standard Library. I suggest browsing it and being generally familiar with the stuff there. Tutorials will only get you so far. One of the things you'll find there is...
by WanderingLinguist
Sat Aug 11, 2012 12:33 am UTC
Forum: Coding
Topic: Searching with python
Replies: 8
Views: 2123

Re: Searching with python

Very easy... found = 0 for line in file("foo.xml"): found += line.count("abcd") print(found) Edit: A slightly shorter way... sum([x.count("abcd") for x in file("foo.xml")]) Or, if you don't mind reading the whole file into memory: file("foo.xml").rea...
by WanderingLinguist
Sun Jul 29, 2012 8:43 pm UTC
Forum: Religious Wars
Topic: Can you enlighten me about mouse acceleration ?
Replies: 12
Views: 16523

Re: Can you enlighten me about mouse acceleration ?

jokooon wrote:Ok I think we can move this thread to religious wars.


Well, it seems we're all sort of in agreement that "more options are better". But yeah, this is probably less of a computer-sciencey thing.

And now I kind of want to get a 2000dpi mouse and see how it handles ;-)
by WanderingLinguist
Sun Jul 29, 2012 11:30 am UTC
Forum: Religious Wars
Topic: Can you enlighten me about mouse acceleration ?
Replies: 12
Views: 16523

Re: Can you enlighten me about mouse acceleration ?

I also have an infinite number of mouse speeds available, by varying the speed of my hand. I don't see your point. Think of it speed-sensitive steering on a car, except backwards. When you're driving fast, you need to turn less, so having the steering wheel tighten up (i.e. give you finer-grained c...
by WanderingLinguist
Sat Jul 28, 2012 8:44 pm UTC
Forum: Religious Wars
Topic: Can you enlighten me about mouse acceleration ?
Replies: 12
Views: 16523

Re: Can you enlighten me about mouse acceleration ?

What you're saying makes sense, unless the acceleration is progressive, if it's progressive, I can't predict where the pointer is going to land, because my brain cannot really measure speed to precisely predict where the pointer is going to land. Obviously you need a new brain. When's the last time...
by WanderingLinguist
Sat Jul 21, 2012 11:33 pm UTC
Forum: Coding
Topic: Using Programming in Everyday Life
Replies: 24
Views: 13245

Re: Using Programming in Everyday Life

The particular task the OP mentions could be easily automated, I think. I'm a Mac user, so in my case, I'd just use Automator to record the action once, then edit the resulting code to make it repeat for every file in the folder. I haven't used Windows in a long time, but as I recall under some rath...
by WanderingLinguist
Sat Jul 21, 2012 11:15 pm UTC
Forum: General
Topic: How to get a job?
Replies: 19
Views: 6906

Re: How to get a job?

As has been said already, having a marketable skill set is the key. Beyond that, networking is huge; it's much easier to get a job if you have connections (as opposed to being just a random name and resume). If you can't afford college or vocational school, you can still work to develop your skill s...
by WanderingLinguist
Tue Jul 03, 2012 8:28 pm UTC
Forum: Language/Linguistics
Topic: Saying "rabbit" in other languages
Replies: 74
Views: 26766

Re: Saying "rabbit" in other languages

Someone already posted Korean, so instead, I give you the first verse of a song about rabbits: 산토끼 토끼야 어디를 가느냐 깡충깡충 뛰면서 어디를 가느냐 We had to learn this and sing it in Korean class. Actually, 산토끼 (san-to-kki) is a wild hare or jackrabbit (literally, "mountain rabbit"). Even when I understand s...
by WanderingLinguist
Sat Jun 16, 2012 11:18 pm UTC
Forum: Language/Linguistics
Topic: Would a "Mozart Effect" for languages work?
Replies: 8
Views: 5770

Re: Would a "Mozart Effect" for languages work?

As an infant, I was exposed to lots of different languages (as in, being present in the room with native speakers of over twelve languages for extended periods of time during my first year after birth). I don't know whether that had an effect on my language learning ability or not. I'd say there are...
by WanderingLinguist
Sun Jun 10, 2012 1:30 pm UTC
Forum: Coding
Topic: A neat idea, but unsure how to implement.
Replies: 4
Views: 2271

Re: A neat idea, but unsure how to implement.

A lot of this depends how complex the map is. Are we talking about a handful of trails, or hundreds of trails? If you have only three trails, for example, you can probably do something really simple with straight-up HTML and CSS (and maybe a little Javascript/jQuery, but you could probably do it wit...
by WanderingLinguist
Mon Jun 04, 2012 7:14 pm UTC
Forum: General
Topic: Questions For The World
Replies: 2216
Views: 409441

Re: Questions For The World

The Korean system you describe sounds like what we in America call eChecks. Basically, you give the company the routing number (which identifies the bank) and the account number. This is how I pay my monthly rent. This is also how PayPal usually works, though you can set PayPal to use your credit o...
by WanderingLinguist
Wed May 30, 2012 10:33 pm UTC
Forum: Language/Linguistics
Topic: Other Languages You've Studied
Replies: 488
Views: 90386

Re: Other Languages You've Studied

In order of proficiency (descending) - Korean (4 years, but I'm reasonably fluent and use it more often than English on a daily basis; I need it for work, and necessity is a good teacher) - Japanese (10+ years off-and-on, but I've rarely used it practically, so it's kinda shit. I can have extended c...
by WanderingLinguist
Wed May 30, 2012 10:14 pm UTC
Forum: Language/Linguistics
Topic: Terminology Web Search
Replies: 15
Views: 12831

Re: Terminology Web Search

Finally, the exact site I've been looking for(http://visual.merriam-webster.com/). It's nice, but I wish it were more complete. So many common terms are missing. For example, search for "desk" and it lists kinds of desks, but not terms for parts of desks (very few visual dictionaries seem...
by WanderingLinguist
Wed May 30, 2012 9:48 pm UTC
Forum: Language/Linguistics
Topic: Do native English speakers have an equivalent of Engrish?
Replies: 70
Views: 20869

Re: Do native English speakers have an equivalent of Engrish

I often have difficulty distinguishing between unvoiced-unaspirated consonants and unvoiced-aspirated consonants in the initial position in Korean words. For those who aren't familiar with it, Korean has characters such as ㅈ (usually transliterated as "j") that are voiced in the middle of ...
by WanderingLinguist
Tue May 22, 2012 5:28 pm UTC
Forum: Language/Linguistics
Topic: Limited income
Replies: 3
Views: 1761

Re: Limited income

Limited can also mean "small", which I would assume is the intended meaning in "limited income". According to oxforddictionaries.com limited means:

restricted in size, amount, or extent; few, small, or short:

Go to advanced search