Search found 1330 matches

by hotaru
Tue Mar 01, 2016 4:49 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2033424

Re: Coding: Fleeting Thoughts

well, you really should be specifying the encoding in the Content-Type header, and if you don't, you're not in any position to complain about anything the browser does.
by hotaru
Sun Feb 14, 2016 6:23 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2033424

Re: Coding: Fleeting Thoughts

Question: Why does this code fail? function listToArray(alist){ if(!alist){ return []; } else { var anarray = listToArray(alist.rest); return anarray.unshift(alist.value); } } The error that node throws up tells us that anarray doesn't have the unshift method. But surely anarray is an array and the...
by hotaru
Wed Feb 03, 2016 2:12 pm UTC
Forum: Hardware
Topic: Monitors and resolution.
Replies: 21
Views: 16335

Re: Monitors and resolution.

is 4K high enough resolution that antialiasing doesn't make any noticeable difference? if not, then it's not high enough.
by hotaru
Mon Jan 25, 2016 10:35 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2033424

Re: Coding: Fleeting Thoughts

Well, I'm only really annoyed I can't select 4 bytes, convert it to an int, and get a sane number output. what language are you trying to do it in? you can't just do this? uint32_t four_bytes_to_uint32(uint8_t bytes[4]) { return (bytes[0] << 24) + (bytes[1] << 16) + (bytes[2] << 8) + bytes[3]; } We...
by hotaru
Thu Jan 14, 2016 10:25 pm UTC
Forum: The Help Desk
Topic: Wifi mysteriously broadcasting while disabled
Replies: 6
Views: 4193

Re: Wifi mysteriously broadcasting while disabled

Wireshark is sniffing wifi signals only. I'm also connected wirelessly to the network. I don't see why I would be picking up ethernet signals. IP multicast is a technique for one-to-many and many-to-many real-time communication over an IP infrastructure in a network. It scales to a larger receiver ...
by hotaru
Sun Jan 10, 2016 8:16 pm UTC
Forum: Religious Wars
Topic: Is 1 prime?
Replies: 31
Views: 22897

Re: Is 1 prime?

if 1 is prime, there will be situations where you'll have to say "prime numbers except 1". if 1 is not prime, there will be situations where you'll have to say "prime numbers and 1". since, like everything else in mathematics, prime numbers are defined only because it's a conveni...
by hotaru
Thu Jan 07, 2016 7:14 pm UTC
Forum: Hardware
Topic: Monitors and resolution.
Replies: 21
Views: 16335

Re: Monitors and resolution.

Just be glad it's not a pair of these bad boys . (Yes, they make them so wide-screen now that they have to curve the monitor to keep the whole surface at a reasonable distance from the user.) actually if it was a more reasonable size (around 20", i'd think), you could stack two of them vertica...
by hotaru
Tue Dec 08, 2015 9:00 pm UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 38309

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

Tyndmyr wrote:Meh. There was a time when IE 6 constituted about 20% of users.

That was what, 2010? When Google dropped support for it?

and now firefox and IE (all versions) together is only about 20% of users...
by hotaru
Sun Dec 06, 2015 3:42 am UTC
Forum: The Help Desk
Topic: Windows Browser that runs from a read-only device?
Replies: 13
Views: 6187

Re: Windows Browser that runs from a read-only device?

Jorpho wrote:Yes, but is QEMU supposed to run from a read-only device?

qemu doesn't have any reason to write any files at all unless you tell it to use a writable disk image.
by hotaru
Sun Dec 06, 2015 12:34 am UTC
Forum: The Help Desk
Topic: Windows Browser that runs from a read-only device?
Replies: 13
Views: 6187

Re: Windows Browser that runs from a read-only device?

it really should be as simple as throwing qemu and the iso for whatever linux live cd or dvd you feel like using onto the usb stick, and maybe a script to launch qemu so you don't have to type out the command line to launch it every time. if the OS is built to run from a read-only cd or dvd, it shou...
by hotaru
Fri Dec 04, 2015 3:37 am UTC
Forum: Coding
Topic: IDEs and the death of the command line interface
Replies: 25
Views: 9375

Re: IDEs and the death of the command line interface

Flumble wrote:Regarding autocompletion and highlighting: I've been using fish for some time, but is there another shell that has good/better completion or useful features?

zsh, tcsh, and windows powershell are all pretty good.
by hotaru
Tue Dec 01, 2015 10:37 pm UTC
Forum: Hardware
Topic: USB vs PCI Wireless Adapters
Replies: 3
Views: 7761

Re: USB vs PCI Wireless Adapters

the FCC limit is well below 1 watt, so the adapter should be able to get plenty of power either way. lower CPU load won't matter either on modern systems, where you almost always have 3 cores sitting idle, just waiting for something to do. if you only have a single CPU core it might matter, but even...
by hotaru
Wed Nov 25, 2015 9:58 pm UTC
Forum: Hardware
Topic: USB vs PCI Wireless Adapters
Replies: 3
Views: 7761

Re: USB vs PCI Wireless Adapters

the only real difference between a PCI wireless adapter and a USB wireless adapter is that one uses a PCI slot and the other uses a USB port. there should be no difference in signal reliability or range.* the only reason to favor a PCI adapter is if you have a shortage of USB ports and an empty PCI ...
by hotaru
Wed Nov 18, 2015 10:47 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2033424

Re: Coding: Fleeting Thoughts

ahammel wrote:Inside the electrons are quarks,

no, there aren't.
by hotaru
Wed Nov 18, 2015 1:50 am UTC
Forum: The Help Desk
Topic: Windows Browser that runs from a read-only device?
Replies: 13
Views: 6187

Re: Windows Browser that runs from a read-only device?

Jorpho wrote:I see. It still seems like major overkill.

Has someone already put together a qemu appliance for this particular use case?

http://willhaley.com/blog/simple-portab ... emu-vm-usb (the first Google result for "portable qemu") looks promising.
by hotaru
Tue Nov 17, 2015 10:17 pm UTC
Forum: The Help Desk
Topic: Windows Browser that runs from a read-only device?
Replies: 13
Views: 6187

Re: Windows Browser that runs from a read-only device?

Jorpho wrote:Are you saying qemu can run from a read-only device?

I'd also be concerned about whether it would need special networking privileges.

yes, it can run from a read-only device. if you use the default "user networking ", it doesn't require any special privileges.
by hotaru
Tue Nov 17, 2015 6:44 am UTC
Forum: The Help Desk
Topic: Windows Browser that runs from a read-only device?
Replies: 13
Views: 6187

Re: Windows Browser that runs from a read-only device?

one possibility would be to run a Linux live CD in qemu. it's a heavy-handed approach, but it should work.
by hotaru
Sun Nov 15, 2015 10:23 pm UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 38309

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

my point was that the browser does not change the brightness of your monitor. if a blank white screen blinds you, your monitor is too bright. if your monitor is too bright, then light text on a dark background is just as bad for your eyes as dark text on a light background. you should adjust your mo...
by hotaru
Sun Nov 15, 2015 8:06 pm UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 38309

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

if your monitor is blinding you, the solution is to turn down the brightness, rather than trying to avoid white backgrounds.
by hotaru
Thu Nov 05, 2015 9:21 pm UTC
Forum: Coding
Topic: CSS + checkboxes = lololol
Replies: 5
Views: 3877

Re: CSS + checkboxes = lololol

Xanthir wrote:ETA: Oh, and that bug is still going on somehow, Hotaru. That's hilarious and weird.

i'm pretty sure the fix hasn't made it into the stable or beta channels yet, since it was just fixed last month, almost 3 years after it was reported. :P
by hotaru
Tue Nov 03, 2015 4:01 pm UTC
Forum: Coding
Topic: CSS + checkboxes = lololol
Replies: 5
Views: 3877

Re: CSS + checkboxes = lololol

here's another ridiculous thing in CSS, which actually uncovered a bug in google chrome: https://hotaru.thinkindifferent.net/calc.html
by hotaru
Sun Aug 02, 2015 2:10 am UTC
Forum: Hardware
Topic: What phone should I get?
Replies: 12
Views: 10593

Re: What phone should I get?

i don't really have any specific phone suggestions, but if you don't want to have to rely on the manufacturer or carrier for updates, you'll probably want one of the more popular android phones. cyanogenmod is a fairly popular android distribution that's independent of the manufacturers and carriers...
by hotaru
Tue Jul 28, 2015 8:56 am UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 38309

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

I'm still waiting –in vain– for Firefox to automatically learn search engines. Chrome(ium) has had this for a very long time now and it's utterly awesome that you have to search on a site (mostly wikis) only once , and from then on you can search through the site by tab completion. on a lot of site...
by hotaru
Mon Jul 27, 2015 3:23 am UTC
Forum: Religious Wars
Topic: Firefox vs. Chrome: Is it time for me to throw in the towel?
Replies: 42
Views: 38309

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

Honestly, I wish I could turn that off, space is ambiguous and tab does the same thing but better and unambiguously. It's ambiguous between, to use your example, "goo ball" meaning "search my default search for 'goo ball'" or "search the 'goo' keyword search for 'ball'"...
by hotaru
Fri Jul 03, 2015 2:33 pm UTC
Forum: Religious Wars
Topic: Plural of "Octopus"
Replies: 89
Views: 64352

Re: Plural of "Octopus"

SPACKlick wrote:I pronounced octopodes as an english word. If you want a the pronunciation oc TOE poe DES or ock TOE poe DEES then we can have a whole different fight about the linguistic wanderings of rare words.

how do you pronounce "indices"?
by hotaru
Fri Jul 03, 2015 2:05 pm UTC
Forum: Religious Wars
Topic: Plural of "Octopus"
Replies: 89
Views: 64352

Re: Plural of "Octopus"

SPACKlick wrote:When I asked if anyone used Octopodes I got the expected response. "Use octopodes as what? The plural for octopode? I might if I knew what an octopode was. Oh for octopus? Who does that?!"

it looks like you mispronounced "octopodes", which makes all your data invalid.
by hotaru
Wed Jun 24, 2015 5:51 pm UTC
Forum: The Help Desk
Topic: Text Processing Help Request
Replies: 13
Views: 5785

Re: Text Processing Help Request

Fine, editing a stream. Either way, sed does it just as well as grep, just without highlighting. What are the advantages in this case? the biggest advantage is that grep is a much simpler program than sed. grep's primary purpose is exactly what you're doing there (print lines matching a regex), whi...
by hotaru
Wed Jun 24, 2015 5:36 am UTC
Forum: The Help Desk
Topic: Text Processing Help Request
Replies: 13
Views: 5785

Re: Text Processing Help Request

Because I always prefer sed when modifying a file, and pretty much limit grep to searching. but you're not modifying a file there. you're searching for lines that match that regular expression and then printing them, which is exactly what grep does. also, if you do want to modify a file, i'm pretty...
by hotaru
Wed Jun 24, 2015 4:09 am UTC
Forum: The Help Desk
Topic: Text Processing Help Request
Replies: 13
Views: 5785

Re: Text Processing Help Request

Thesh wrote:Also, if you can use sed (if not on *nix/mac, you can get it through gnuwin32) and do something like:

Code: Select all

sed -n -r "/\*{3}.*\*{2}$/p" log.txt

why not grep instead of sed?

Code: Select all

grep -E '^(\*{3}).*\1$' log.txt
by hotaru
Tue Jun 23, 2015 6:33 am UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 65625

Re: Deliberately bad algorithms

And if you need two posts on a forum, hell if you need even one post, to explain how your single line of code works, your code is unreadable and should be rewritten. well, that's kind of the point of using "fix". with "fix", you just need to point people who don't get it to an e...
by hotaru
Mon Jun 22, 2015 10:53 pm UTC
Forum: The Help Desk
Topic: Windows 7 starting to run crappy.
Replies: 11
Views: 5406

Re: Windows 7 starting to run crappy.

windows 7 apparently used to be available from https://www.microsoft.com/en-us/software-recovery, but now it just gives an error... it looks like they only offer downloads of windows 8.1 now (http://windows.microsoft.com/en-us/windows-8/create-reset-refresh-media). once windows 10 comes out, you sho...
by hotaru
Mon Jun 22, 2015 10:44 pm UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 65625

Re: Deliberately bad algorithms

And if you need two posts on a forum, hell if you need even one post, to explain how your single line of code works, your code is unreadable and should be rewritten. well, that's kind of the point of using "fix". with "fix", you just need to point people who don't get it to an e...
by hotaru
Mon Jun 22, 2015 9:14 pm UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 65625

Re: Deliberately bad algorithms

loeb fs = x where x = fmap ($x) fs As long as you know what the ($x) means, it's pretty understandable. why not just write it as loeb fs = fmap ($loeb fs) fs ? once someone goes through the process of figuring out how that works, they're 99% of the way to understanding "fix". from there, ...
by hotaru
Sat Jun 20, 2015 11:32 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2033424

Re: Coding: Fleeting Thoughts

However, I thought I had heard that any C program will run on a C++ compiler also? nope. most programs will, but some won't, and some will compile and run and then break in strange ways. My notion was to learn enough C so that I could get the idea of how a complex system could be designed in C, wit...
by hotaru
Fri Jun 19, 2015 3:41 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2033424

Re: Coding: Fleeting Thoughts

ahammel wrote:I don't see how quote-delete-hello, world-quote-delete could possibly result in '"hello, world"'.

the delete key deletes the character after the cursor.
by hotaru
Sat Jun 13, 2015 9:26 pm UTC
Forum: Computer Science
Topic: How is physical access not a factor in 2-factor?
Replies: 13
Views: 7680

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

(Also, if we're talking about just the terms "1" vs "2" factor, I think "compromise Verizon" should probably count as a second factor. :-)) the issue is that the SMS probably goes through more than just Verizon, is not end-to-end encrypted, and can be easily suppressed...
by hotaru
Sun Jun 07, 2015 10:14 pm UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 65625

Re: Deliberately bad algorithms

One thing that has always bugged me about Haskell is the community's fetish for point free function definitions, resulting in the most unreadable mess of symbols since APL. This, loeb = fix (fmap . flip id =<<) is unreadable, and should never be used outside of a golf competition. This, loeb fs = x...
by hotaru
Sun Jun 07, 2015 3:18 am UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 65625

Re: Deliberately bad algorithms

speaking of things that GHC doesn't optimize much at all... loeb = fix (fmap . flip id =<<) What is this supposed to do? if you replace fmap with map and look at the type signature, it's usual use (as a "spreadsheet" function) should become apparent: loeb $ const 0 : const 1 : map (\n xs ...
by hotaru
Fri Jun 05, 2015 7:03 pm UTC
Forum: Coding
Topic: Help with What If-style Citations
Replies: 23
Views: 7778

Re: Help with What If-style Citations

Xanthir wrote:This is supported to *way* back. Dunno if it's IE6 or 7 that added :checked support, but something like that.

according to http://caniuse.com/#feat=css-sel3, it's IE 9 that added it.
by hotaru
Thu Jun 04, 2015 11:56 pm UTC
Forum: Computer Science
Topic: Deliberately bad algorithms
Replies: 120
Views: 65625

Re: Deliberately bad algorithms

benneh wrote:My tests indicate that GHC doesn't optimise it much at all, though.

speaking of things that GHC doesn't optimize much at all...

Code: Select all

loeb = fix (fmap . flip id =<<)

Go to advanced search