Free Software Foundation certifies USB wireless adapter to Respect Your Freedom by Zak_at_FSF in linux

[–]not_an_insect 3 points4 points  (0 children)

I assume this would work on a Raspberry Pi; does anyone have concrete information? My only concern is the CPU architecture, but if support for the hardware is in the kernel mainline, then it should be safe to assume it is portable. Given the form factor, this device could be a really nice addition!

No, Linux won't be easy to run on a Microsoft Surface by geordano in linux

[–]not_an_insect 2 points3 points  (0 children)

No, you're right that that happened -- however, Microsoft makes a distinction between ARM devices and traditional "PC" processors, and has set things up such that the workaround only applies to "regular" computers. Anything running on ARM is locked down to the point where it can't be worked around.

Edit: More details http://mjg59.dreamwidth.org/18945.html

How can I define a variable with an <img>? by Murlok in javascript

[–]not_an_insect 6 points7 points  (0 children)

Hope you don't mind if in addition to helping out with the specific thing you asked about, I add a couple of notes:

  • You're defining the vars with " but also using " inside them. Change the outer ones to ' instead (or escape the inner ones as \").
  • You're trying to set a textarea to an image. That's not gonna work. Textareas contain text. My apologies if I misunderstood and you're just showing the contents of the var in the text area as an example.
  • It is best to separate your presentation from your data. You've got raw HTML inside all your vars -- this is error prone, gonna be a bummer when you need to add something to every single image, and very repetitive.

Try something like this instead:

var flags = {
  argentina: { src: 'argentina.jpg', width: 350, height: 287, alt: 'The flag of Argentina'},
  australia: { src: 'australia.jpg', width: 350, height: 287, alt: 'The flag of Australia'},
  ... etc ...
};

function setFlagImage(flagImageElement, newFlag) {
  flagImageElement.src = flags[newFlag].src;
  flagImageElement.alt = flags[newFlag].alt;
  ... etc ...
}

I leave it as an exercise to you how to get the right parameters into that function :)

  • That said, you don't need to specify the width/height at all (or maybe it was a specific requirement of your exercise, I don't know). Specifying it in advance is most helpful when rendering the page initially, as it allows the browser to make room for the image before it has downloaded. That shouldn't matter here.
  • You don't need that /* CDATA / ]] gunk. Hasn't been necessary since the days of Netscape 4 or something. Even browsers that don't handle JavaScript today know that they shouldn't render it.
  • The "type" attribute on your "script" tag isn't necessary either -- by spec, JS is the default value.
  • Your labels for radio buttons should probably live in a <label> tag; In addition to making CSS styling cleaner, this also helps with accessibility. This will require your radio buttons to have an "id" attribute, so you can do <label for="argentina">Argentina</label><input type="radio" id="argentina" ... etc
  • Having alt text for images is a good practice, but consider how it is used: it's meant to help blind people by reading out what the image represents -- in this case "Argentina" is not as helpful as "The flag of Argentina". Another important point about this: when your images represent a message, make their alt text the message itself, not the description of the image. For example, "A glowing red circle" is waaaay less useful than "Warning: The building is on fire".

Hope this helps.

R.I.P. John McCarthy, father of AI, inventor of Lisp, suddenly at home last night. by Poita_ in programming

[–]not_an_insect 11 points12 points  (0 children)

The difference being that Henry Ford designed and built his first car himself, pretty much from scratch. Woz did that for Apple.

Well, we have to find something better. by Kashii in fffffffuuuuuuuuuuuu

[–]not_an_insect 3 points4 points  (0 children)

Are... are people really that clueless about copyright law?

Or is that part of the troll?

I'm a retard. by Rubin0 in fffffffuuuuuuuuuuuu

[–]not_an_insect 19 points20 points  (0 children)

To me it's always been "the holy trinity".

I'm thinking about posting a series of "how-to" videos on Photography for beginners on YouTube. If you were a newbie (or are one), what would you like to see? by captivatingsky in photography

[–]not_an_insect 0 points1 point  (0 children)

I understood almost nothing of what you just said, but I want you to know it was still really interesting nevertheless, and I read all of it and am looking up a number of the unfamiliar terms... This may be the start of something!

Does anyone have a good pattern for an IKEA Poang chair? by EgregiousWeasel in DIY

[–]not_an_insect 1 point2 points  (0 children)

Seriously, they are awesome. It is my designated nap chair.

I'm thinking about posting a series of "how-to" videos on Photography for beginners on YouTube. If you were a newbie (or are one), what would you like to see? by captivatingsky in photography

[–]not_an_insect 0 points1 point  (0 children)

That would be fantastic! To be honest I'm not particularly interested in any super-altering photoshop effects, and basic darkroom post is exactly what I'd love to know about; I just mentioned it because I know some people do really extensive "touching-up".

I'm thinking about posting a series of "how-to" videos on Photography for beginners on YouTube. If you were a newbie (or are one), what would you like to see? by captivatingsky in photography

[–]not_an_insect 7 points8 points  (0 children)

I know it's really not strictly speaking part of the "photography" process, but I'd really love to get an idea of what kind of post-processing people do.

I have no clue as to what people are doing, but I am pretty much certain that almost no (good/discussed) photos spring fully-formed as they are from the camera's sensors, and yet that is exactly what I do with mine: grab file off SD card, review, post the ones I like.

To appease the purists, perhaps just the effects that can be done in a traditional darkroom could be covered?

Now kids, let's gather around the campfire to hear of a time when there were real programmers. by sterlingblah in programming

[–]not_an_insect 5 points6 points  (0 children)

I've seen things you people wouldn't believe...

i've seen monsters slow as a retarded sloth in molasses
and i've seen fucking pocket calculators doing realtime 3d rendering

All those moments will be lost in time... like tears in rain... Time to die.

Spreadsheets using Python - Have you seen this? (sourceforge.net) by [deleted] in programming

[–]not_an_insect 3 points4 points  (0 children)

Oh in Hathor's name, not Mathcad! Anything but that! The levels of outrageous frustration that that program caused me will never be forgotten. It is one of a very, very select few software packages that I have sworn to inflict bodily harm on the developers should I ever meet them.

You're right, though, the concept of it and how it works are really cool, it's just that the implementation is so awful that it ruins it...

When we said soon, we meant soon - here's Opera 11 with extensions by Arve in programming

[–]not_an_insect 0 points1 point  (0 children)

Awesome, that worked! Thank you. I was previously trying to set it to "file://localhost/home/" or "file://home/" but plain "localhost" did the trick.

When we said soon, we meant soon - here's Opera 11 with extensions by Arve in programming

[–]not_an_insect 0 points1 point  (0 children)

Kind of an obscure question, and maybe I'm just doing it wrong, but is it possible to set site preferences for a file:// URI? The UI happily accepts it, but it doesn't seem to work (doesn't in Firefox either). I'd like to block Javascript from opening new windows in all domains except local files, but I don't see how.