HN user

achal

115 karma

achalddave@live.com

Posts1
Comments43
View on HN

This is great! I'd love to see more wrappers like these for ffmpeg. Despite 5 years of using it, I can rarely run any ffmpeg commands without looking at StackOverflow. I wrote a similarly-inspired wrapper because of this as well, with a different subset of features, some of which rely on moviepy: https://github.com/achalddave/vid

Would be great if vdx learned more "common" ffmpeg features (creating a slideshow from a set of images, speeding up videos, simple drawing, etc.) while maintaining its simplicity!

My first reaction to this was that this was definitely less understandable, but I realized there were two pieces to this. One is banal - mapM_ and putStrLn are not near as simple as `for' and `print' (the latter have English meanings directly).

The second piece is interesting: Is something of the sort "<mapfn> <printfn> <list>" easier to explain to someone who's new to programming than "<foreach> <print>"? I've always thought the latter was easier to understand, but I'm curious which one someone who has no previous programming experience would grasp more immediately.

Best of Vim Tips 12 years ago

'a,'b

Between mark `a' and `b'

g/fred

If the line contains the pattern Fred, execute the following command (s/dick/joe/igc)

s/dick/joe/

Replace dick with joe

/igc

i: Case insensitive

g: Replace multiple occurrences on the same line

c: Ask for confirmation on each substitution

I may be wrong about some detail, but I believe that's it.

Ask HN: Idea Sunday 12 years ago

Is this true? I checked and I seemed to have lost my history from before 2012, and assumed I'd messed up somewhere in transitioning between computers. I couldn't find any info about Firefox doing this (arbitrarily deleting history from the past), but I'm almost sure it does.

Edit: This time I found it: https://wiki.mozilla.org/Firefox/Projects/Places_async_expir...

I find it rather annoying, however, that this isn't obvious. I like keeping all my history :( I'd rather I could at least keep the history somewhere, even if it didn't stay in Firefox's history view.

Looks really interesting. I love Pandora and having seen this I realize I really want Pandora for video. Would be great to have more Pandora like features -- specifically, videos recommended based on likes/dislikes of other videos, and being able to view videos without any past information. You could do this, for example, by showing popular videos for people who haven't logged in, and then customizing from there.

Same question. I was using Raphael.js earlier and had to switch to svg.js for SVG specific features, and it's quite a nice library, though perhaps not as developed as Raphael in terms of documentation.

The only possible conflicting goal I can imagine is that one of svg.js' goals is to be as small as possible (e.g. generating an <ellipse> instead of a <circle> to increase code reuse between the circle and ellipse shapes[1]).

[1] http://documentup.com/wout/svg.js#elements/circle

As far as I can tell, they currently don't.

  “How will you deal with context?”

  We are currently developing a principled method to identify 
  relevant phrases, for example to deal with the multitude of both 
  positive and negative uses of profanity. We expect to be scoring 
  phrases instead of words, where appropriate, in the near 
  future."
Also, they mention elsewhere that they use a bag of words classifier, so they can't really account for things like this easily.

From what I can tell, the actual issue in this case was that they simply summed the wrong thing, rather than ran into some floating point error.

Also, I haven't gone through the first paper, but that second link just seems to show how they generally conform to IEEE 754, except for three cases (div/0 errors instead of infinity, NaN errors immediately instead of allowing further computations, and [this one is a bit more important] they don't implement denormalized numbers). I'm not sure why that would mean Excel is terrible at floating point math.

Yes, it does (except you have to look for it in %programfiles(x86)%, and then it opens in a graphical window that doesn't take your .vimrc/.gvimrc into account)

It was sort of mentioned. Mozilla, Opera, and Microsoft all brought up that as being something they may be "pressured into" doing.

http://lists.w3.org/Archives/Public/www-style/2012Feb/0313.h...

"Discussed problem of WebKit monopoly on mobile and the consequent pressure for other engines to implement -webkit- properties."

For IE on WP7, Microsoft originally planned to support -webkit-text-size-adjust: http://blogs.msdn.com/b/iemobile/archive/2010/05/10/javascri... , but later decided not to.

I was able to gather the following links which may be interesting:

* IRC log of W3's meeting, where Mozilla, Opera, and Microsoft bring up the possibility of being forced to support -webkit prefixes: http://lists.w3.org/Archives/Public/www-style/2012Feb/0313.h...

* Article on Opera and -webkit prefix adoption: http://www.netmagazine.com/news/opera-confirms-webkit-prefix...

* Mozilla's analysis of -webkit usage on the web: https://bugzilla.mozilla.org/show_bug.cgi?id=708406 There's a lot of data there. Raw data is here: https://bug708406.bugzilla.mozilla.org/attachment.cgi?id=601... . Some processed data in a spreadsheet: https://bugzilla.mozilla.org/attachment.cgi?id=599084 . You may want to view others as well.

I haven't personally looked for sites that do this, but I use Firefox and have a Windows Phone, and in both cases I have found that I've ran into sites that were either Chrome only or simply looked terrible in my browser, not because of technical limitations, but because the developers had really only tested on Chrome. In some cases, I've ended up spoofing Chrome's UA in Firefox and found that sites still worked.

Semi related: Not sure how many people have played with PowerShell/COM, but it's fun to toy with. Haven't used it for anything too useful (yet) but for example, to delete all the comments in a Word document in a couple lines:

$a = New-Object -com Word.Application

$a.visible = $false

$a.Documents.Open("{absolute path}").DeleteAllComments()

Better examples: http://www.simple-talk.com/dotnet/.net-tools/com-automation-...

Firefox 3D view 14 years ago

Check `about:support` and see if webgl was disabled because of the driver version. That might be it.

Firefox 3D view 14 years ago

You cannot, unfortunately. I tried simply animating some elements with .animate, and it did not work.

Firefox 3D view 14 years ago

You have to open the inspector first (Ctrl+Shift+I or Firefox->Web Developer->Inspector), and then click the "3D" button on the bottom left (or bottom right if you're on some beta/nightlies).

> self-driving cars becoming a norm leads to more car-centered infrastructure over public transportation

Out of curiosity, why would this be? I can see that commuters who despise driving may switch to cars from public transport, but at least from personal experience, I don't see this as a major reason for people using public transport in the first place.

Is there another reason I'm missing? I'd imagine it would be more likely that self driving vehicles end up improving public transport (both in quality of service and popular usage).