HNHacker News
TopNewBestAskShowJobs

tonyplee

237 karma · joined December 14, 2011

submissionscomments
tonyplee··on The Mac.BackDoor.iWorm threat in detail
I have looking into tripwire before. It is old and complex. Git uses the hash of all files also and I am use to it.
tonyplee··on The Mac.BackDoor.iWorm threat in detail
That's why I trust git more than anything else, especially compare to the typical "Anti-virus" software.

git is written by Linus, open source, whole algorithm is based on file content change detection, base on hashes, etc.

If my server software is corrupted initially by XXX gov agency at the Debian website, well, I can't do anything about it. If someone did management to add any additional software to the server after I add all file contents to git and clone it to a different server, I have strong confident I can detect any changes happen in the system with ease.

Patio11, I have great respect for you works, blogs, etc. Assume you can hack/overwrite any piece of code in that server to anyway you want, what kind of changes can make so my git clone/backup system failed to detect your changes?

Even if you can hack the git executable to tell me nothing has changes, I think when I do a remote git pull with the original git binaries, I can see the modifications. Right?

tonyplee··on The Mac.BackDoor.iWorm threat in detail
You mean the zImage or vmLinux has been replace?

Would adding them to the git help detect this?

tonyplee··on The Mac.BackDoor.iWorm threat in detail
In Linux, one way I protected my webserver in the past was to just do:

   cd /; sudo git init; git add /etc /{bin,sbin,lib} /usr/{bin,sbin,lib,local} ...  ; sudo git commit 

   git clone / into another remote server, and I can git diff from time to time to see if anyone/code mod my system.   
   
   One very nice side effect of this system is that I got to know in details what files were modded and added when ever I did an "apt-get install ..." 

Questions for mac Guru:

   1.  Have anyone done this in Mac? 

   2.  Any pro/con on why, why not do this? 

   3.  Other than, /{bin,sbin,lib} /etc, /usr/{bin,sbin,lib}, 
       What other dirs should I add? 
       What's best way to handle /Applications/ (25GB ) ?


   4.  What other dirs can a worm,virus, hide in my Mac?




  Any good dtrace scripts to help monitor who/what is writing to those places?
tonyplee··on Y Combinator president upvotes Reddit with $50M investment
Is this mean YC is now a big time VC?
tonyplee··on Mozilla Brick
Agree, personally, I still prefer JQuery. Most of the components in here are implemented in JQ already. JQ has a lot more other components and is cross platforms on all the browsers.
tonyplee··on Mozilla Brick
I got the same impression of Mozilla locks up base on the title. :-)
tonyplee··on How Hong Kong Protesters Are Connecting, Without Cell or Wi-Fi Networks
In the internet age as in any other time in history, whoever controls the communication channels win.

For now IMO the winners are: Google, Facebook, Twitter, Apple(on the top but sliding down?), Amazon, US Gov, NSA, CIA, FBI, KGB, Russian Gov, Chinese Gov (win by block out others), Badu, Alibaba, WeChat, Line, SnapChat,

For now, the losers or losing players are : Yahoo, Nokia, Windows Phone, BlackBerry, Liberian Gov, Ukraine, Egypt(almost?), Most of Japanese Electronic firms.

tonyplee··on Spaxels: The Ars Electronica Quadcopter Swarm
I am a star trek fan. Love it!
tonyplee··on After 6 years of programming, I'm still a developer. What am I doing wrong?
What's wrong with being good developer, especially good developer? I have been doing this for 23 years and still love it. Moving from DOS/UNIX->Win32->8051->Embedded OS->vxWorks->Networking->Storaging->Video/Media/Embedded Linux->Android ASOP. Learning new things every months.

BTW, if you checkout the salary level at glassdoor.com, a good engineer/developer salary level is higher than most of the "PM", Director. A lot well run company knew this and respect this.

Personally, I was moved to Marketing/PM type of roles for a while, hated it. Too Much politic, a lot depending who you know, party with, etc.

Good engineers/developers got respect from what you know and how well you code, understanding of issues and formulate/architect a solution. Ok, I am a geek.

tonyplee··on Material Design for Bootstrap
How does someone detect "hover" on mobile platform?
tonyplee··on Hard Drive Reliability Update – Sep 2014
Unfortunately, there are so few choice now. :-(
tonyplee··on Electrolysis – run web content in a separate process from Firefox
Hmmm, I have 10 tabs now and Mac's "Activity Monitor" shows FF is using 571MB of RAM.

Not sure about the ~5MB/tab figure.... This is FF 32.0.

tonyplee··on Schoolchildren ordered indoors as air pollution cloaks Shanghai
80% of my classmates are in China. There are constant messages about PM level in Shanghai, Beijing in all my classmates' social networks in wechat, renren.

Not yet an outcry, definitively discussions, humors, etc.

tonyplee··on Google Acquires Seven Robot Companies, Wants Big Role in Robotics
We might have Motorola phone that's "Make in USA by GoogleBot" soon. Google probably can overtake Foxconn and it can scale up/out to build $90, $60, $40 Android phone.
tonyplee··on How do i bill for open source software?
kickstarter? There are a few projects at kickstarter like this type already.
tonyplee··on Elon Musk defiant in face of federal investigation of Tesla [video]
Does it need 25 tons of force or 3 inch hole to get the battery to catch fire?

If the battery container is blend out of shape a bit, would it potentially cause small short in part of the battery somehow? Would that start a fire for the rest of the battery.

If this is the case, wouldn't the probability of car catch fire might be higher?

An easy test might be take a few batteries and start shoot them with nail gun and see it get shorted/heatup/catch fire?

If it does catch fire, put a 5 mm sheet there and see how many nails and how big nails can get it to heat up / catch fire?

If any of the above tests can get the battery catch fire, I would be very concern if I am an Tesla owner.

tonyplee··on The engineer who fixed his own heart
Does the wrapping material dissolve after a while or last for the rest of one's life?
tonyplee··on LG Smart TVs log USB filenames and viewing info to LG servers
class action lawsuit?
tonyplee··on Google's Decline Really Bugs Me
Remember "Don't be evil".

The growing up of google felt like story line of Starwar.

Judi night grew up and felt the power of the dark side. :-)

Also remind me of another line: If you're young and you're not a Democrat, you don't have a heart. If you're old and you're a Republican, you don't have a brain.

Google has "mature" now. :-)

tonyplee··on Getting a bit creepy
I switched to firefox with noscript. Stop using chrome 90% of times. Turn off 3rd party cookie on default for all browsers. pointed doubleclick.net/com to 127.0.0.1 to /etc/hosts.

The web felt less creepy now.

tonyplee··on Why I switched from Ruby to Go
If it is not running in PDP11/Commondo64, I ain't using it.
tonyplee··on Why I switched from Ruby to Go
"Windows, Linux and OSX, pretty much all the major players of today" - any plan to support Android and iOS? Why and Why not?
tonyplee··on Two years of production Go at CloudFlare
+1
tonyplee··on Web.go – Web applications with Go
I am old - still remember GW basic, turbo pascal, visual basic, tcl, expect.

go hopefully can last as long as some of those languages - but with the speed google is canceling projects......

tonyplee··on Web.go – Web applications with Go
me too!

Still making living from good old C.

"go" is just one letter too many to remember. :-)

tonyplee··on Four years of Go
I knew in theory one can use mmap and unsafe pointer in go.

One main different between C and go is this:

   C can type cast any mmap pointer and de-reference it got the values (pointer, offset to other locations) extremely fast - < 0.01 micro-seconds (assuming page is swap in.)   BTW, I do track C line code execute time nano-seconds resolution all the time.  It is not difficult to do with RDTSC instruction.  It gave you timing resolution in term of CPU clock cycles - 1 2GHz CPU clock cycle = 500 picoseconds,   One can easily see the system paging and context switching info from those resolution. 

   In C code, that is only a few assembly instructions.   In go (or other GC type language) that one operations is translate to multiple C functions calls.   That's probably tens if not at lease hundred times different in pure CPU cycles. 
When one has to do this hundreds of millions times, that usually makes huge different in overall execution time. I personally know a lot of test cases that means minutes to finished certain operations v.s. days (+GBs of RAM).
tonyplee··on Four years of Go
Personally, I think there are other reasons.

I developed software system with hundreds of millions to a few billions data entries items in the core object store (C++) and need to very fast access time. There are needs to open/load/read those objects in database in very fast speed (< 0.01 seconds). When I profiled those operations in early version of the code, the biggest bottleneck is always the malloc/free when the system reached > 10 millions records.

To get around those limitation, I end up design the data structures / datastore that eliminated the malloc/free, new/delete and do my own memory manager to map all the info directly to the structure in the file via mmap and do my own sub allocations. With those, I can get everything in < 0.01 seconds constant access time regardless the size of the database. (from startup of the program to return the value to client.)

I think all modern day database or BIG DATA type system app depend on its own custom memory manager. My theory, a language that depend on garbage collection can not be used in those big data app design.

I love to be proven wrong by someone re-implement the mysql, (or even just sqlite) in "pure golang" (not sqlite driver in C) that can provide similar level of performance with golang's garbage collector compare to sqlite's C counter part.

The use case I care about is DB size of 0.1GB - 50 GB with hundreds of millions of records in the DB.

tonyplee··on From a Model S owner in Tennessee
Probably more likely the cardboard box is dragged under the car a few seconds, heat up and catch on fire.
tonyplee··on Google Security Team Member on NSA: "Fuck These Guys"
Just simple big government(s) v.s. big company - happened over and over again in history - remember how powerful Microsoft was in the end of the 90.

Governments don't like challenge to its power. They will find ways to control the Jedi Council.

← PreviousPage 5 of 7Next →