Better HN
topnewbestaskshowjobs
Log inSign up

achal

115 karma · joined Jun 17, 2012 (14y ago) · 47 submissions

achalddave@live.com
Submissions

1.

OpenLM: a simple, efficient and customizable LLM training library(laion.ai ↗)

2 points · by achal · 3y ago · discuss

comment 6y ago · link · parent

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!

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

> '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.

comment 12y ago · link · parent

You may have been on your initial commit; in that case, you need to use rm --cached instead of reset to undo a git add.

comment 12y ago · link · parent

In case anyone else thinks they're insane, the two are the same. The second one should have been

    func main()
    {
    }

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

Berkeley's also trying to expose more things via an API: https://developer.berkeley.edu/ (it was primitive last time I tried it, but still a nice initiative to prevent the scraping that most sites have to resort to right now)

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

Thanks, the fact that it was so simple to make it do random things is great. Very fun.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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)

comment 13y ago · link · parent

If you pin the tab, Firefox and Chrome should glow the favicon on title change.

comment 13y ago · link · parent

Screenshot if your browser crashes/blows up: http://i.imgur.com/nWnqA.png

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

:( No love for the Audio API? http://www.w3.org/TR/webaudio/

(Admittedly, it's only supported in Webkit at the time)

comment 14y ago · link · parent

It's using it on Chrome for me.

comment 14y ago · link · parent

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-...

comment 14y ago · link · parent

Unfortunately, you can't style those in Firefox.

comment 14y ago · link · parent

Not OP, but I use this: https://github.com/achalddave/Vimdows-Navigation , which I updated from someone's post here http://www.autohotkey.com/community/viewtopic.php?t=44762

Someone else has also recommended https://github.com/MarcWeber/autohotkey_viper , which seems to be more feature filled than the others, but I haven't tried it out.

comment 14y ago · link · parent

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

comment 14y ago · link · parent

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

comment 14y ago · link · parent

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).

comment 14y ago · link · parent

I think chmod775 was talking about actual readability, not the language. To be fair (Firefox 17, W7), it isn't perfect: http://imgur.com/WKoE8

(and it's not just because of the language--I modified the text to some English: http://imgur.com/8uss8)

12