Profile cover photo
Profile photo
Elazar Leibovich
261 followers
261 followers
About
Elazar Leibovich's posts

In the regular tweeter app, I can turn "mobile notifications" on for a certain user. And I'll get notifications on my phone each time the user tweets.

How can I get the same thing with Flamingo?

(posting again, because my previous post was probably too vague).

I can see "regular" notifications in Flamingo, but I cannot see tweets from users I activated "mobile notifications" on in Flamingo.

How can I see them?

Post has attachment
Implementation of Java's nested exceptions in go, while I never missed that at start, when the code starts getting complex, having those is very valuable

(by +roger peppe )

http://rogpeppe.neocities.org/error-loving-talk/index.html#37

Post has attachment
Raymond Chen is jesting about, assuming 2 complement signed integer, and all operations are modulu INT_MAX+1:

    int x; -~x =
    -(INT_MAX-x) mod INT_MAX+1
    = x - INT_MAX mod INT_MAX+1
    = x - INT_MAX + INT_MAX+1 mod INT_MAX+1
    = x + 1 mod INT_MAX+1

He says Microsoft have added a tadpole operator to C++, where -~x is (x+1), and ~-x is (x-1).

People in the comments actually believe it, and complain of Microsoft, and of C++ complexity.

http://blogs.msdn.com/b/oldnewthing/archive/2015/05/25/10616865.aspx

Post has attachment
New attempt to add support for perf kvm -g. This kernel module would sample 64-bit linux guest stack, according to ELF file/Kallsyms symbol.

I'll be happy to hear what do anyone think about the code (the module is tiny, ~300 LOC), or to hear better ideas how to do that.

https://github.com/elazarl/gueststack#readme

Unstable hack: parsing x86-64 assembly to get a non-exported variable from the kernel: https://github.com/elazarl/gueststack/blob/master/module.c#L118

Post has attachment
The Go tools is a treasure trove:

Specifically, the digraph+callgraph package. It allows you to query the call graph of your Go package with pointer analysis.

So that, you can see all functions that dynamically calls foo, or all reachable functions from bar. It can detect all possible types to reach foo(x interface{}) in practice.

I was looking for such a tool for C++/Java. But making it would be a couple of man years just to parse the language.

What people often don't get, is the fact that Go is simpler language, less safe than other languages, with less features, and more error prone, makes it simpler to add superb tooling, which are much much more helpful than another language feature.

https://godoc.org/golang.org/x/tools/cmd

Is there a clang C/C++ sanitation options that does the following:

Every time a negative number is implicitly casted to unsigned, a fairy dies a runtime error is thrown? 99.9% you didn't really mean to do that, and in the 0.1% cases you did mean, you were probably wrong.

Post has attachment
If anyone wants to see me speaking at the Reversim conference - I'll appreciate your vote:

http://summit2015.reversim.com/proposal/Yd4L9eX8h75nof6Cg

(Avi Kivity's talk would be probably very interesting and very original work. I'm just rehearsing known advice. http://summit2015.reversim.com/proposal/m3ANMw3wZr6MipbTA )

Post has attachment
+OSv Congrats on redis support. How did you support multiple threads in redis? IIRC, the architecture of redis requires multiple processes to utilize SMP[0]. Did you just run multiple redis instances, each in a different thread in different memory areas?

[0] http://redis.io/topics/benchmarks "Redis is a single-threaded server. It is not designed to benefit from multiple CPU cores. People are supposed to launch several Redis instances to scale out on several cores if needed."

Post has shared content
Brilliant. Fuzzing tool, that instruments assembly instructions, and generates input to change the branch the software takes, creates a legal JPEG out of "hello" seed.
Wait while more posts are being loaded