Better HN
topnewbestaskshowjobs
Log inSign up

vsync

175 karma · joined Aug 31, 2009 (17y ago) · 173 submissions

http://quadium.net/~vsync/
Submissions

comment 13y ago · link · parent

And yet "locate" is banned by default.

comment 13y ago · link · parent

Question: can you run Winamp in Wine?

comment 13y ago · link · parent

> When you are working day-in day-out with Java, Ruby, Python, Javascript, Mysql, Postgresql, GCC, Casandra, MongoDB, Memcached and dozens of other technologies, installing that stuff and having it work on OS X is amongst the most frustrating experiences I ever had, no matter if you're doing it by hand or with MacPorts or with Homebrew. All available options on OS X suck. I couldn't give a fuck about binaries of commercial software packages working, as long as I can't manage the toolchain I depend on daily.

As a non-Mac-user (and fellow ThinkPad user!) that occasionally gets roped in to that crazy land, I feel your pain. MacPorts seemed the most useful option before, simply because it seemed a direct port (heh) of the BSD ports system. Honestly the whole thing reminded me of trying to get stuff to work on Solaris 10-15 years ago.... if you can just get your compiler working it works great, just set up /my-usr over here and make sure nothing from the real system ends up in $PATH.

Lately I heard that MacPorts isn't cool any more so I didn't use it for my most recent Mac-oriented client project that needed some installs. I am a stubborn goat, but if I've learned one thing it's that when the trendy open source crowd on Mac wanders off, good luck getting anything to work, especially because Apple loves to change things. So I looked around and it seems Fink is a really nice option. So far everything went great. If you are familiar with Debian it's like that, and it carefully segregates everything into /sw, so just make sure /sw/{bin,sbin} are first in $PATH and you'll be good. I was recently reminded of Gentoo Prefix and wish I'd tried that out.

Now here is the thing that cracks me up. I am of all things a Gentoo partisan. My workstations? Gentoo. Servers for my business? Gentoo. Client systems? Gentoo. LAN server for a moderately technical friend? Gentoo. And I do get some gentle mockery from friends for how much of my CPU time is spent on compiling. Yet here are the Mac acolytes, with the most consistent hardware and OS platform one could ever hope for, and they always have a fetish for compiling things from source. Are they showing off that they know how to do "./configure && make && make install"? Well congratulations, you got my respect for that, now please make binary packages. I mean shit, the only reason I am into Gentoo is I got tired of that rigmarole and managing $CFLAGS manually on my precious Slackware boxen.

comment 13y ago · link · parent

Sad to say, school will force it out of 'em.

Sad to say, school is necessary to function in society.

comment 13y ago · link · parent

Oh, didn't realize you were asking about the UI specifically. I believe you would just set an environment variable of where you wanted the sound to go.

The part I liked was that you would start ESD and everything just worked.

comment 13y ago · link · parent

aaaaaaand then we'd be back to SeaMonkey.

Not that there's anything wrong with that.

comment 13y ago · link · parent

> improve the user interface (better theme)

Oh no.

No offense, but every time Firefox gets on an improvement kick, especially when it comes to interfaces, it seems to just be a euphemism for "removing functionality".

comment 13y ago · link · parent

Prism used to be kind of cool but Mozilla abandoned it. There also used to be more focus on being able to build arbitrary tools around Gecko but Mozilla abandoned them (except for specialized OSes?).

Gecko is my favorite layout engine and Mozilla makes my favorite browser environments. Firefox gets weirder and weirder sadly.

The multiproject browser environment thing sounds really cool. Multifox does some of that but its interface strikes me as a bit awkward.

Just so you know, Firefox does allow you to run multiple profiles simultaneously in different instances. I do this all the time. Just "firefox -a blark -P profile_name" (or -ProfileManager) and there you go. Don't know if it will work on OS X though.

It's also possible to preload plugins, config settings, and extensions so that you don't have to set them up each time. Let me know if you'd like some pointers. This was a big part of my work at a previous job.

comment 13y ago · link · parent

> > I can't remove the unwanted built-in menu options.

> Firebug allows you to do that.

Please please tell me how to do this. I want the "Web Developer" menu gone. I want Firebug as a first-class entry in the Tools menu again. And while you're at it, it would be really nice to have "View Source" and "View Page Info" in the View menu again.

Perhaps I'm a little bitter, considering I saw the DOM Inspector ripped out of Firefox, relegated to Firebug, kicked around, and now that Firebug is awesome, I see weird versions of a Firebug subset getting in the way. Why couldn't it be part of the browser, and why not just put Firebug in the browser if you want it back in?

comment 13y ago · link · parent

Luckily gluten is a protein.

comment 13y ago · link · parent

> "beautiful"... "beautiful"... "beautiful".

Really?

comment 13y ago · link · parent

> you can set up PulseAudio for LAN audio streaming with padevchooser (GUI). Could you do this with ESD?

Considering that was pretty much the point of it, of course.

comment 13y ago · link · parent

Gluten is delicious.

comment 13y ago · link · parent

> That's not bad code, it's just WordPress

Contradiction.

comment 13y ago · link · parent

> Why aren't you answering your phone? Why haven't you responded to that email I sent you 5 minutes ago? Are you even at your computer right now? Hello???

That sounds like an incredibly frustrating work environment.

I mean for them, not for you.

comment 13y ago · link · parent

Wow, small world! Didn't I meet you before sometime? Maybe at a Fark party in Florida?

comment 13y ago · link · parent

http://en.wikipedia.org/wiki/Tracing_just-in-time_compilatio...

comment 13y ago · link · parent

It's 2013. Time to read up on the Berne Convention.

comment 13y ago · link · parent

> He was also a key contributor to Markdown

This is no time to speak ill of the dead.

comment 14y ago · link · parent

I read this article in the printed newspaper at a coffee shop today.

The "message" at the end of the article was a graphic of a finger over a pair of lips. Presumably from the description in the article it is Amtrak's "Quiet Car" logo.

No idea how or why it ended up the way it did online.

comment 14y ago · link · parent

I didn't look in enough detail on the Linux side to see if it always gives a zero page reference, or does/doesn't clear out a fresh page when it's referenced based on how it was allocated and by whom. I could see that saving time but I can easily see just nuking a whole page being faster than the work of tracking and checking.

From the glibc side I believe you are exactly correct.

comment 14y ago · link · parent

Because in the past you had to use servlets directly, or JSPs that you had to do a lot of work manually to separate business logic from the presentation layer.

Source: I worked at a Web startup circa 2000 where we did exactly that. I think people sometimes forget how far we've come.

comment 14y ago · link · parent

...feel free to let me know why it's a good idea. Reflexive downvotes don't let me understand the voter's point of view.

comment 14y ago · link · parent

I was trying to make the point that it's not an accident of history that the President isn't elected by popular vote, but for good reasons. The President isn't running just a big collection of people, he's running a union of states. The states send electors to choose the President, and each state take popular opinion into account by way of the popular vote.

This is good because it means that each state's interest is represented (though the fact that only swing states get the focus is something that should be addressed). I live in Rhode Island and I like that we get some consideration. Large low-population states are another consideration.

...and on posting my reply I see this was already addressed very well in an earlier reply to a parent comment: https://news.ycombinator.com/item?id=4737359

comment 14y ago · link · parent

> That hardly reflects the will of the people in the context of a /national/ election.

Federal.

comment 14y ago · link · parent

I've found things like Lombok and LambdaJ to be super helpful as far as verbosity.

One thing that does frustrate me is that the compiler enforces a target bytecode level at least as high as your source version. Meaning that even the simpler syntax for initializing generics isn't allowed even though it's pure syntactic sugar and has no impact on the generated bytecode.

comment 14y ago · link · parent

Which is why I love working in a Java EE application server like Geronimo where very smart people have gotten paid lots of money to do that boring grunt-work for me, and I can just spend my time building features and deploy a nice scalable system when I'm done.

comment 14y ago · link · parent

Yes, because it's a great idea to go globally changing things that are used across the virtual machine by the code of many more people than just you.

I must have blinked and missed whatever happened that made everyone think global variables are now all the rage.

comment 14y ago · link · parent

> Only if your libc implements calloc as malloc+memset would this be a problem. Does glibc do that?

I just checked (see my reply to the parent) and it doesn't.

> In fact the copy on write is probably also done on malloc as well. [...] I don't think any sane kernel will give you someone else's free()'d memory

You won't get someone else's freed memory but you're quite likely to get your own back and in that case it won't necessarily be zeroed.

comment 14y ago · link · parent

I wasn't sure why that would be the case. To me, the naïve answer would be that they wouldn't behave the same, as calloc is required to return cleared memory, meaning memset or similar. Saving time on allocation but clearing it on access would seem to require kernel-level access below that of the C library. So I took a look.

Interestingly, in glibc-2.15, the code for calloc (well, public_cALLOc) is longer than that for malloc. Most of that actually seems just to be doing magic to figure out when it actually needs to clear it. So in any cases where calloc is touching reused memory, it clears that itself. Otherwise, things end up at either mmapping MAP_ANONYMOUS or sbrking, which simply allocates pages that all get cleared on access (well, on write) anyway for security reasons.

Honestly I was surprised how much indirection and optimization there was. I knew that there were some clever things being done and they try to take advantage of processor features. But this stuff really does everything possible to avoid even a single unnecessary cycle. I'm impressed.

So in the general case, calloc might do some extra work. But where you're just callocing heaps and heaps (tee hee) it's not likely to. Strange, I could have sworn I just stumbled upon a case where someone claimed doing that was noticeably slower, but now I can't find it... was going to be very curious how that was the case. But after this romp I'm tired.

123456