HNHacker News
TopNewBestAskShowJobs

zwetan

322 karma · joined April 12, 2010

submissionscomments
zwetan··on NASA proposes new propulsion to cut Mars voyage to 3 days
"if it works"

between parenthesis, in the title ...

so I'm not a scientific but even if it works at the tech level, even if the deceleration problem is solved, even if not colliding with something along the way is solved

what about the impact of travelling at 1/3rd the speed of light on the human body ?

zwetan··on Glibc getaddrinfo stack-based buffer overflow
I'm interested in that too
zwetan··on Glibc getaddrinfo stack-based buffer overflow
With Redtamarin (based on AVM2), there is a native library which sole purpose is to give direct access to C and other syscalls.

For ex with getaddrinfo: https://gist.github.com/zwetan/0c047d36542cc6979652

I know because I did it on purpose, even if it managed code written in AS3 you don't want to reinvent getaddrinfo, you want to reuse it "as is" as much as possible.

zwetan··on How to Distribute Binaries for OS X Using Homebrew
>Cross-platform app distribution is a hard problem!

indeed, but couple of things

specific to Mac OS X: there are homebrew, macports, fink and probably more

distributing with homebrew to someone who already going with macports is problematic for example as it is advised to not have both installed.

One alternative is to distribute a pkg and so use PackageMaker to build one.

A pkg has the pros to be native to Apple, but the cons to not work for other systems like Windows and Linux.

So here another alternative: Debian packages (deb).

Wether with macports, homebrew or fink you can install the command line utility dpkg, and using dpkg-deb you can build deb supporting the darwin-amd64 arch.

For Windows, you can use the utility wpkg, http://windowspackager.org/ and with it you can build deb packages for win32 and win64 architectures.

Ultimately if you distribute command-line tools (not GUI app), you can use deb packages for Windows, Mac OS X and Linux Debian (Ubuntu etc.)

Here an example (one of my tools that I need to distrib/install on servers): https://github.com/Corsaair/as3shebang/releases/tag/1.0.0

Debian packages for everyone :)

Linux and Mac OS X install: dpkg -i as3shebang_1.0.0_amd64.deb

Windows install: wpkg -i as3shebang_1.0.0_win64.deb

You can see the build scripts at the root of the repo, they are pretty similar.

Also, once you have deb packages you can also convert them to rpm and other nix-like packages usinga tool like alien, see https://en.wikipedia.org/wiki/Alien_(software).

zwetan··on JavaCPP
quite an interesting subject: startup time :)

sure the garbage collector make a difference but the big difference imho is how the VM interpret the bytecode.

In the JVM, the long startup time is because the bytecode is fully loaded, verified, etc. then interpreted

If you compare with other VM, like the AVM2 (ActionScript Virtual Machine 2), there the bytecode is considered as a stream, even if your program is many hundred of MB, the interpreter kick in much earlier.

It is explained in a presentation at Standord University by Rick Reitmaier from Adobe Systems

see at 31:35, https://youtu.be/BjYRzwDEIyw?t=1894 , he talk about startup time.

In my own experience working with AVM2 on my OSS project Redtamarin https://github.com/Corsaair/redtamarin , this startup time was key.

Wether you run the AVM2 from a shell script, a standalone executable or even as CGI under Apache, the avmshell which run, load, verify, interpret the bytecode, startup in matter of milliseconds.

But it is a trade, you could say

JVM: slow startup time, faster execution

AVM2: fast startup time, slower execution

zwetan··on Tcl/tk vs. the web
well .. all this come as pretty smug with a tad of superiority complex.

Not surprised here, I'm French and saw that quite a lot from a crowd who think because they learned programming "the scientific way", anyone else is a hack or an amateur at best.

Man got so much disdain ...

"I had to deal with poorly coded rewrite of ..."

"Because of hype and stupid sysadmins ..."

"because in the 2000 good coders were hard to find"

"You cannot self teach it yourself."

"one man armies self taught and not software engineers"

"less expensive to hire self taught programmers than students that had loans to pay"

Do I understand all that right ?

best innovation on the web come from the porn industry ? self taught programming is bad, java engineers are bad, sysadmins are stupids and everyone should move to TCL/TK ?

some people really do have an enormous ego :)

zwetan··on The Twelve Days of Crisis – A Retrospective on Linode’s Holiday DDoS Attacks
our you can host your server where DDoS protection is included by default

OVH for example

https://www.ovh.com/us/news/articles/a1171.protection-anti-d...

zwetan··on Update on 1/28 service outage
The key word is infrastructure.

Github should not be the master, it should be a mirror of a company master that they host on their own server.

The main problem with that is some company do not want the cost of the infra + the cost of the sysadmin to set that up, etc.

The second problem is the build, even if you host your own repos, if all your dependencies are on github and you don't include them in the repo, then you are bust.

zwetan··on Update on 1/28 service outage
It's not, if you can not even run that first build then you actually have nothing to work on.

Also, not frozen dependencies means you are at the mercy on any dependencies changes breaking your build at any time.

With that, even if your first build run and go fetch those deps and can build at T1, it is not guaranteed at all that the build will work at T1+n.

There is a big difference between your team working from trunk and your team being dependent on other projects trunk.

zwetan··on Update on 1/28 service outage
Same here but I don't care all deps HAVE TO be in the repo, period.

In fact I go further than that, anything that a project depends on HAVE TO be "saved" somehow somewhere: use a special commercial tool ? save it, use some particular OS ? save the ISO, need a particular version of a compiler / SDK ? have an installer ready, etc.

But nowadays it seems dev program temporary stuff meant to last just few months.

zwetan··on GitHub Outage
exactly why I host all my repos on my own dedicated server with my own backup, and then mirror/sync to github

and also why I do include my dependencies in my projects

having a build tool fetching dependencies dynamically on github or whatever is not a convenience, it's a PITA

just sayin' even extremly reliable hosted services can fail, do own your repositories, going back to write some code ;)

zwetan··on Fledgling Languages List
Interesting list but "fledgling" is not only about language, it can be about where the language can run.

When Node.js started, JavaScript was already popular but I'm pretty sure node could have been considered "fledgling".

zwetan··on Toronto man found not guilty in Twitter harassment trial
so ?

not only you can block but you can also mute

block and mute someone on twitter and whatever the hashtag they use, or if they reply to you, even trough other persons

you will not see a single line of theirs

zwetan··on Thanks for Trumpet Winsock
more like LOD for Legion of Doom

https://en.wikipedia.org/wiki/Legion_of_Doom_(hacking)

https://en.wikipedia.org/wiki/Operation_Sundevil

zwetan··on Show HN: CMS.js – Fully Client-Side JavaScript Site Generator
numerous other robots don't

go there http://web.archive.org/web/20160119113309/http://cdmedia.git...

view source, that's what archive.org_bot is referencing eg. no content whatsoever

if/when this site die, when you will browse the link above, you will see a blank page

I would even say that on web.archive.org the effect is even more vicious, if you don't know any better, because you see the page archived you think it is indeed archived when in fact it's not

but don't despair, there are other way to have the exact same result for your SEO

tell me how it is different than rendering the whole page as Flash SWF file ?

GoogleBot can read/parse SWF and even understand when dynamic text/xml is loaded https://googlewebmastercentral.blogspot.fr/2008/06/improved-...

since 2008

zwetan··on Show HN: CMS.js – Fully Client-Side JavaScript Site Generator
yeah Google does but what about the 1000s other robots ?

sure Google is the bigger one and you have to be referenced on it, but there are also other indexes where you want to be referenced, and those are maybe not using robots as advanced as google.

So, as I said, for your normal robot crawler visiting the page, the page is empty, no content.

That Google have already solved the problem does not mean that everyone else did.

Why do you think prerender.io exists ? to solve that very same problem

From a SEO point of view, which was the question I was answering, it is ridiculous to serve a page without content to an indexing robot crawler.

-4 ? go all educate (F) yourself :)

I mean here a list of active robots crawler https://udger.com/resources/ua-list/crawlers

here an example of how people apply that in practice https://gist.github.com/Stanback/7028309

also last but not least, yeah GoogleBot parse/read JS, but do read their guidelines https://googlewebmastercentral.blogspot.fr/2014/10/updating-...

"Make sure your web design adheres to the principles of progressive enhancement"

serving a blank page, that you then fill with content using pushState is not what I call progressive enhancement

zwetan··on Six-Legged Giant Finds Secret Hideaway, Hides for 80 Years
I meant something automated like google translate in chrome ;)

but yeah I see your point, still you have the issue of no older archives existing

zwetan··on Dear open-source maintainers, a letter from GitLab
what's the cost of freedom and independence ?

I'm personally glad to have done things the hard way, sure it took some time to learn but learning sysadmin made me a better developer.

To me, setting up a repository, an issue tracker, a wiki etc. was more about learning about a process than learning "how to make it work on the server".

Process as "how to organise the production of writing software" and this is imho extremely important, I reuse what I learned all the time from web app to mobile app to server backend etc.

Simply put, I see a lot of people who fail to deal with software production simply because they just use the tool "a la mode" like Github, but are completely oblivious to the benefits of using semantic versioning, an issue tracker, a wiki for documentation, etc.

When you learn all that by yourself, you can compare different tools and have a feel for what's a "bare minimum", you just know how to manage/organise a project a make it work in production.

zwetan··on Dear open-source maintainers, a letter from GitLab
> A hobbyist should not need to host their own repo, they should be able to rely on their SaaS. I would love it if GitLab.com could be rock stable like GitHub

I completely disagree, here a little story

before 2005 I was hosting my own SVN repos, then came a community "we host your open source project for free" and I moved my sources there

and it closed, so I moved all my repos (they kept growing) to google code

my main reason to move to google code was "its' google they will never close down"

guess what? few years later, google code close down

at that point I decided NERVER EVER AGAIN, I moved all my repos to my own private dedicated server

now I do use Github but as a mirror, they can close down tomorrow I don't care (note: I don't wish them that)

Some people take their repositories very seriously, hobbyist or not, for me it's like backup you only see how important the infrastructure is when the shit hits the fan.

Things like Github, Gitlab, etc. are nice but it's merely a beautiful web UI on top of what is important: the repository.

My point is even if you are an hobbyist you should own and control your repository, if you can host it on a dedicated server, or at home on a spare box, whatever, do it, do own it (the infra), yes because a tarball archive of your repo and a JSON export of your issues is completely useless.

zwetan··on Show HN: CMS.js – Fully Client-Side JavaScript Site Generator
what text ?

there is no text, the page is empty, the linking is not the first priority at this point

a robot to be able to read the text would already need to run the js in the first place

but the concept is interesting let's do a CONTENT management system but be completely invisible to any search bots so our CONTENT never ever get referenced and searchable on the Internet

zwetan··on Show HN: CMS.js – Fully Client-Side JavaScript Site Generator
do a view source and take a guess, off course it will affect the SEO

but hey no problem it's JS, so to correct that SEO problem they will probably do a whole render of the page server-side with something like PhamtomJS and serve those "special" pages to bots

which I think is totally insane

zwetan··on Six-Legged Giant Finds Secret Hideaway, Hides for 80 Years
same

I need something like a web diff

zwetan··on Running costs for running a web app
it's when I see that kind of costs that I wonder if people have completely forgotten about sysadmin and dedicated servers ?

hey we don't know how to do those cryptics admin stuff on the command-line let buy services instead and atomise our monthly costs ...

I don't even talk about tons of open source solutions that would reduce even more the costs.

OK I'm probably biased here

zwetan··on How to Protect Your Infrastructure Against the Basic Attacker
wow Keyczar got it wrong ?

funny the whole purpose of this project was to have cryptography setup with the right options

Is there a video/audio of this preso somewhere ?

edit: found it

https://www.youtube.com/watch?v=jzY3m5Kv7Y8

zwetan··on How to Protect Your Infrastructure Against the Basic Attacker
I prefer to not limit SSH but use fail2ban instead to remove the noise.
zwetan··on The Joy of Getting Hacked
a bit surprised by the move to digital ocean as a magic silver bullet that solve all the problems

no, you just moved the problem "away" to "oh it's a virtual instance, so if anything goes wrong I can restore from backup"

I don't see how this protect from being hacked ?

if you run a server, not maintaining it is what make it hackable.

so yeah reading the digital ocean tutorials can be a good start, like reading the ubuntu server guide https://help.ubuntu.com/lts/serverguide/ , but it will never replace the time you invest in your server, eg. doing sysadmin.

It does not have to be hard it just have to be done and on a regular basis.

It's like a car, motorcycle, bicycle, etc. you need to spend the time to change the oil, check the tire pressure, and all those little things that are simple but necessary ... otherwise it get rotten with time.

zwetan··on Flash, HTML5 and Open Web Standards
if you can not beat it, kill it?

3 things

1) it's a platform: the flash platform

2) inside this platform you can find many runtimes: Flash player, Adobe AIR, Redtamarin ( https://github.com/Corsaair/redtamarin )

3) you program those runtimes with a programming language: ActionScript 3.0

as long as there are runtimes to run programs it not gonna die

enjoy ;)

zwetan··on Flash, HTML5 and Open Web Standards
OK, let's see those "dwindling features" of the last couple years

you have:

Workers for Android, Support Android x86, Support for iOS x64, Workers for iOS, Support iOS 9, Mac OS X 64bit

and soon (in beta): Windows 64bit, Support for Android TV

It's simple, every quarter since 2011, Adobe release a planed Flash player and AIR version update.

here the list: http://www.adobe.com/devnet/articles/flashplayer-air-feature...

and they don't even include everything (for ex: AIR v19 added support for iOS workers)

you can see more details in the release notes: https://helpx.adobe.com/flash-player/flash-player-releasenot...

if you read the v19 release notes https://helpx.adobe.com/flash-player/release-note/fp_19_air_...

just scroll down to the part that list "Released Versions" that's 15 runtimes and 4 SDK.

So "dwindling" you say ? nope, not even close to it, quite the opposite in fact.

zwetan··on Leaving the Mac App Store
As a user/consumer I consider the search or discovery of new apps on the MAS quite horrible, the features you mention are nice but IMHO they come "after you found the app".

IMHO an app dev is better off implementing the payment system and update than using MAS, for ex in my case there is no way I would wait 7 days to have an update out of the door (eg. I don't automate everything to get blocked on the last step).

zwetan··on Perfect – Server-Side Swift
> Bottom line: There isn't convenient, modern, fast, open-source method for cross-platform development.

There is ActionScript 3

even if you think that "flash is dead" in the browser, for mobile and Desktop you can use Adobe AIR

for server-side, command-line and shell scripts you use Redtamarin https://github.com/Corsaair/redtamarin

I'm the dev behind redtamarin but I welcome other projects like perfect.

Even if the tech and language are different, different pros and cons, a lot of ideas and features are shared.

← PreviousPage 5 of 7Next →