Search found 263 matches

by WanderingLinguist
Tue Feb 27, 2018 10:30 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1960: "Code Golf"
Replies: 25
Views: 2876

Re: 1960: "Code Golf"

The first language I wrote production code in used ⇐ for assignment. That was back before the days of Unicode; the editor (dare I call it an IDE?) used a special code page. Other special characters used in the language were ≤ ≥ ≠ (rather than <= >= and !=) and the tricolon ⁝ as a delimiter (to allow...
by WanderingLinguist
Fri Oct 21, 2016 12:27 pm UTC
Forum: Coding
Topic: Where to find interview-style coding problems?
Replies: 8
Views: 4209

Re: Where to find interview-style coding problems?

I can talk from a hiring perspective, but my approach may be a bit unconventional, so take it with a grain of salt. I've never asked a coding question during an interview. The project I head up is a fairly widely used app with a large user base. It's also quite complex, and getting the architecture ...
by WanderingLinguist
Sat Nov 14, 2015 11:57 pm UTC
Forum: Coding
Topic: Context-switching/"soft threads" in scripting languages?
Replies: 10
Views: 3252

Re: Context-switching/"soft threads" in scripting languages?

Note that the naive context-switch / coroutine approach won't scale to a large number of objects as it requires a whole stack (~2 MB virtual memory on Linux) per object. To do this properly in C you would have to build a state machine yourself. The op isn't talking about C. Continuations/generator ...
by WanderingLinguist
Fri Nov 13, 2015 11:49 pm UTC
Forum: Coding
Topic: Context-switching/"soft threads" in scripting languages?
Replies: 10
Views: 3252

Re: Context-switching/"soft threads" in scripting languages?

standard procedural languages just don't support arbitrarily pausing and resuming execution within a function without bringing the whole program (or at least the current thread) to a halt. They totally do! Python, C#, and Javascript can all do this. It's used extensively in the Unity game engine to...
by WanderingLinguist
Mon Nov 02, 2015 5:01 am UTC
Forum: Coding
Topic: Batch renaming files
Replies: 7
Views: 3625

Re: Batch renaming files

On Mac, I generally just use the batch rename feature built in to Finder. But sometimes that feature isn't quite robust enough for the kind of renaming I want to do. And sometimes I need to do renaming on other platforms (Windows, Linux, etc.) It's kind of hacky, but a good general solution that I'v...
by WanderingLinguist
Fri Aug 21, 2015 12:21 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1685183

Re: Coding: Fleeting Thoughts

On a similar note, yesterday while trying to track down a crash in an app I work on, I ended up digging around in the Android source code and found this:

Code: Select all

// TODO clean exit
throw new RuntimeException("Need group");
by WanderingLinguist
Sat Aug 15, 2015 1:57 am UTC
Forum: Hardware
Topic: Crazy monitor situation.
Replies: 1
Views: 4169

Re: Crazy monitor situation.

I'm not a monitor expert, but perhaps whatever component sends the EDID got fried. I'm not sure what OS you're using, but maybe there's a way to get a driver that can ignore EDID and let you arbitrarily set a resolution? Or maybe see if you can get the monitor serviced? I've been living outside of t...
by WanderingLinguist
Wed Aug 05, 2015 12:30 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 7136

Re: What phone should I get?

If I knew more about this issue, I'd be pissed off at the terminology screw up too. Thanks for the correction. The mistake is everywhere, even in major publications. To be fair, Stagefright is kind of an unfortunate name choice: it does sound like something that would be malware. So I can understan...
by WanderingLinguist
Tue Aug 04, 2015 4:46 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 7136

Re: What phone should I get?

http://www.zdnet.com/article/stagefright-just-how-scary-is-it-for-android-users/ Stagefright can hack your phone with an MMS... that is so carefully crafted that your phone never realized you even got the text message to begin with. Once hacked, Android Rootkits can be installed and access your ema...
by WanderingLinguist
Mon Aug 03, 2015 3:03 am UTC
Forum: The Help Desk
Topic: What's your virus/security procedure?
Replies: 33
Views: 8773

Re: What's your virus/security procedure?

I feel like you're still misunderstanding Izawwlgood's question. The question wasn't whether the unconnected laptop could be infected, but whether that would actually be a problem (in terms of personal data or botnet vulnerability or the like) if the only transfer *off* the laptop was via USB to an...
by WanderingLinguist
Mon Aug 03, 2015 1:15 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 7136

Re: What phone should I get?

Well, for Android, if you care about updates (and you should!) any of the Nexus phones are a good choice (some might argue the only choice, because Google pushes the updates to them directly; for all other phones you are at the mercy of the OEM for updates). If you have a specialized need (for examp...
by WanderingLinguist
Fri Jul 31, 2015 10:08 pm UTC
Forum: The Help Desk
Topic: What's your virus/security procedure?
Replies: 33
Views: 8773

Re: What's your virus/security procedure?

Your unconnected laptop can be assumed to be as secure as the least secure machine you transfer USB sticks to and from. So if that machine is not infected with anything, your laptop cannot be infected with anything. Technically speaking, I suppose it could be less secure than that. For example, sup...
by WanderingLinguist
Thu Jul 30, 2015 4:50 am UTC
Forum: The Help Desk
Topic: What's your virus/security procedure?
Replies: 33
Views: 8773

Re: What's your virus/security procedure?

-_- Can you not see how unhelpful and jerk-y that is? I can understand offering an opinion alongside the requested information... I honestly wasn't trying to be a jerk. I really don't think there's a way to do what you want to do. Back in the day, I'd have said "just don't open any suspicious ...
by WanderingLinguist
Wed Jul 29, 2015 6:36 am UTC
Forum: The Help Desk
Topic: What's your virus/security procedure?
Replies: 33
Views: 8773

Re: What's your virus/security procedure?

To be honest, my security procedure for XP is not running XP. Seriously, XP is very old and support has officially ended; there will be no more security updates (haven't been any for a year now). So connecting an XP system to the internet is pretty much at-your-own-risk. As time goes by and more un-...
by WanderingLinguist
Fri Jul 24, 2015 6:13 am UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 28545

Re: Firefox vs. Chrome: Is it time for me to throw in the to

Sure, but can I do things like add a keyword to "http://svn-server/trac/changeset/%s" so I can type "r 12345" in the browser and jump straight to a revision in version control? Or other such things that aren't specially-designated "search engines"? I just tried it, and...
by WanderingLinguist
Fri Jul 24, 2015 5:54 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1685183

Re: Coding: Fleeting Thoughts

I mean something like "yield return" in C#. Well, C++ is getting them shortly, and Java not having something that both C# and C++ has usually results in a least a hacked together solution. ;) Well, Java has a few hacked together solutions, but they all work by modifying the bytecode. That...
by WanderingLinguist
Fri Jul 24, 2015 5:30 am UTC
Forum: Coding
Topic: Avoiding duplicate code
Replies: 20
Views: 4626

Re: Avoiding duplicate code

If you're talking about Objective-C, can I assume you're targeting either iOS or OS X? In that case, Objective-C++ is an option, and it's well supported (Apple uses it in sample code in cases just like this). You don't have to make the whole project Objective-C++, you could do it just for this compo...
by WanderingLinguist
Thu Jul 23, 2015 11:45 am UTC
Forum: The Help Desk
Topic: Definitions clarification — monolithic kernel/microkernel
Replies: 4
Views: 3291

Re: Definitions clarification — monolithic kernel/microkerne

Although I understand that mach was designed to be usable as a microkernel, you are right that the version of mach used in OS X and iOS is not a microkernel. As a side note, since you mention the memory usage of kernel_task: One has to be a bit careful when looking at how much memory a given process...
by WanderingLinguist
Thu Jul 23, 2015 8:14 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1685183

Re: Coding: Fleeting Thoughts

I really wish Java had continuations. I know there are some libraries that do it by messing with the bytecode, but it seems they only work with JVM. If there were continuations that could be used on DVM/ART, it would make asynchronous task management on Android so much easier. I mean something like ...
by WanderingLinguist
Wed Jul 22, 2015 8:02 am UTC
Forum: The Help Desk
Topic: Definitions clarification — monolithic kernel/microkernel
Replies: 4
Views: 3291

Re: Definitions clarification — monolithic kernel/microkerne

I don't think you can assign a specific technical meaning to the word "task" in general, other than "something a computer does" or "some work to be done" because it varies a lot depending on the context in which its used. In some cases, I've seen "task" used t...
by WanderingLinguist
Fri Jun 26, 2015 12:28 am UTC
Forum: Science
Topic: PhD study of this forum
Replies: 28
Views: 14994

Re: PhD study of this forum

I'm generally more active in Coding and Computer Science, but for what it's worth, opt-in. Will also gladly answer questions; feel free to PM me.
by WanderingLinguist
Thu Jun 25, 2015 11:54 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9848
Views: 1685183

Re: Coding: Fleeting Thoughts

Also, is 'Signal' a bad name for the thing I'm describing (an object that exists primarily to pass equality tests under certain circumstances)? Maybe the more general term you're looking for is "Predicate"? Maybe more specifically something like "MessageMatcher" or "Message...
by WanderingLinguist
Thu Jun 25, 2015 11:25 am UTC
Forum: Computer Science
Topic: Android Programming.
Replies: 2
Views: 4344

Re: Android Programming.

I can't write it for you, but I (or someone else on the forum) might at least be able to give you some pointers. You say you know very little about Android programming. Does that mean you do know some? Or does it mean you don't know it at all? If you know some, how much do you know? Can you build an...
by WanderingLinguist
Thu Jun 25, 2015 3:20 am UTC
Forum: The Help Desk
Topic: Text Processing Help Request
Replies: 13
Views: 5031

Re: Text Processing Help Request

So, I have a PC, but am unfamiliar with gnuwin32. Or all these commands. Ignore all them, then. Unix commands aren't helpful (nor is telling you to install a unix utils package). Here's what you need to do: 1. Install a decent text editor. I'm very partial to Sublime Text; it'll do everything you n...
by WanderingLinguist
Sat Jun 13, 2015 2:56 pm UTC
Forum: Computer Science
Topic: How is physical access not a factor in 2-factor?
Replies: 13
Views: 6725

Re: How is physical access not a factor in 2-factor?

@Tub: Interesting that the weakness of a lab key is to some degree similar to a weakness of Apple Pay on a phone with Touch ID. The weakness is: Touch ID just verifies that the person using Apple Pay is the same person who set up the phone. It doesn't verify that that person is the valid cardholder...
by WanderingLinguist
Mon Jun 01, 2015 7:35 am UTC
Forum: Computer Science
Topic: Old programming language and databases
Replies: 4
Views: 4104

Re: Old programming language and databases

Depending on how reliable you need it to be, and whether you don't mind about a solution that's a bit funky, one way would be to run the program in a DOS emulator in a host operating system that supports the database software directly. You could have the program write database requests as numbered t...
by WanderingLinguist
Mon Jun 01, 2015 7:26 am UTC
Forum: Coding
Topic: Tipps for Android app server communication?
Replies: 15
Views: 3177

Re: Tipps for Android app server communication?

Just use HTTPS / HSTS - the problem you're solving has been handled via application layer protocols. (The user logs in to your service to obtain a token, but that is all done via HTTP within a secure connection). The direction of this conversation should be moving closer to where Thesh went. HTTPS ...
by WanderingLinguist
Tue May 26, 2015 12:16 am UTC
Forum: The Help Desk
Topic: Spreadsheet help
Replies: 26
Views: 6702

Re: Spreadsheet help

What's in the $J2-$R2 if the condition is false? Do you need to keep the existing data there, or can it be blank if there's no match? If it can be blank, you could just do it with a conditional formula. Put it in $J2 and then just select all the cells and fill them with the same formula. Something l...
by WanderingLinguist
Fri May 22, 2015 4:02 am UTC
Forum: Language/Linguistics
Topic: Blah, blah, blah...
Replies: 20
Views: 8026

Re: Blah, blah, blah...

In Korean, the 2nd case would be "어쩌고저쩌고" (eojjeogojeojjeogo). I don't know one for the 1st case in Korean; mostly I've just heard people say "아이구, 말이 너무 많아" (you talk too much). But that's not really the same thing.
by WanderingLinguist
Thu May 21, 2015 8:48 am UTC
Forum: Computer Science
Topic: Fleeting Thoughts (CS Edition)
Replies: 99
Views: 62096

Re: Fleeting Thoughts (CS Edition)

I wonder if the reason there are relatively few people studying CS or programming (relative to the need for skilled professionals in these fields) is because it's so hard to get set up to make the code actually do stuff on your own computer? I haven't had a problem with that, but then again, I have...
by WanderingLinguist
Thu May 14, 2015 12:20 am UTC
Forum: Coding
Topic: Array of variable length arrays in C
Replies: 11
Views: 3043

Re: Array of variable length arrays in C

if ncols never changes once it's set, why not put the declaration after ncols is set? I don't think that works at global scope. If it was C++, it would be easier. I don't know of any clean way to accomplish this in C. I guess you could have accessor functions to get/set an array element? (This also...
by WanderingLinguist
Wed May 13, 2015 3:35 am UTC
Forum: Religious Wars
Topic: Tablets - iPad vs. MS Surface vs. Asus Transformer Prime
Replies: 26
Views: 35007

Re: Tablets - iPad vs. MS Surface vs. Asus Transformer Prime

Handwriting from Google is fairly new, but the Galaxy Note line of devices have had handwriting support for a while longer. I've got a Note Pro 12.2, but I haven't used handwriting recognition enough to comment on how accurate it is; my main use is sketching rather than text input. It seems decent w...
by WanderingLinguist
Wed May 06, 2015 3:12 am UTC
Forum: General
Topic: Is What-If dead?
Replies: 13
Views: 4263

Re: Is What-If dead?

Neil_Boekend wrote:It's not dead, it's resting.


It's pining for the fjords.
by WanderingLinguist
Mon Apr 27, 2015 12:12 am UTC
Forum: Movies and TV Shows
Topic: Avengers!
Replies: 279
Views: 56686

Re: Avengers!

I have to agree; the first Avengers was much more enjoyable, but I still quite liked Age of Ultron. That said, I'm somewhat biased as a few of the scenes were shot near my workplace, and one flyover scene was near the wedding hall where I got married (it's possible the wedding hall actually shows up...
by WanderingLinguist
Wed Apr 22, 2015 4:58 am UTC
Forum: News & Articles
Topic: The worst contract in the world
Replies: 80
Views: 17696

Re: The worst contract in the world

The sales pitches I hear are along the lines of "If your child gets whole life insurance when they're 5, look how cheap it is compared to your ripe old age!!". The child needs to maintain their life insurance policy when they get older, but it is extremely cheap since the insurance compan...
by WanderingLinguist
Mon Apr 20, 2015 5:37 am UTC
Forum: The Help Desk
Topic: Tracing an IP address .......
Replies: 2
Views: 2980

Re: Tracing an IP address .......

I doubt there's any way to do that without contacting the administrator of the site. Even assuming they have kept those records, however, there's no guarantee that two posts from the same IP address are the same person. These days, IP addresses are re-used, so unless the two posts were made within m...
by WanderingLinguist
Fri Apr 17, 2015 4:25 am UTC
Forum: Individual XKCD Comic Threads
Topic: 1513: "Code Quality"
Replies: 81
Views: 15536

Re: 1513: "Code Quality"

Ugh, I don't know how I feel about this one. The implication that being self-taught leads to messy code bothers me. Maybe you can guess that I'm self-taught. But in all my years of programming, and working with many other engineers, I have yet to see a significant correlation between code quality an...
by WanderingLinguist
Tue Apr 14, 2015 11:19 pm UTC
Forum: Religious Wars
Topic: Free-for-all free font brawl [now with pictures!]
Replies: 18
Views: 10467

Re: Free-for-all free font brawl [now with pictures!]

Problem is, the SVG doesn't do font hinting (at least not the same way as TrueType), and screenshots are all gonna look strange due to differences in subpixel layout between monitors. Yeah, those are details, but with fonts, details matter. Personally, I quite like Menlo. A bit hard to compare it w...
by WanderingLinguist
Tue Apr 14, 2015 6:45 am UTC
Forum: Religious Wars
Topic: Free-for-all free font brawl [now with pictures!]
Replies: 18
Views: 10467

Re: Free-for-all free font brawl [now with pictures!]

Problem is, the SVG doesn't do font hinting (at least not the same way as TrueType), and screenshots are all gonna look strange due to differences in subpixel layout between monitors. Yeah, those are details, but with fonts, details matter. Personally, I quite like Menlo. A bit hard to compare it wi...
by WanderingLinguist
Tue Apr 14, 2015 6:12 am UTC
Forum: Religious Wars
Topic: Subject/Object/Verb ordering in code
Replies: 23
Views: 8270

Re: Subject/Object/Verb ordering in code

What I would *really* like, is to have a language which “tags” the parameters Swift, Objective-C, C#, and Python all do that. Probably a few other languages, too. (And you can fake it in Javascript). (edit: you can even sort of do it in C, if your compiler supports C99. See here .) I use Objective-...

Go to advanced search