588 karma · joined Jul 7, 2013 (13y ago) · 348 submissions
https://www.twitter.com/srcmapy
comment 9y ago · link · parent
I used to work on OO database engine that handles billions of records.
I end up rewriting/overloading my own new/delete and redesign everything how data is load/store around it. Shorten the open/close document time from hours to seconds for large documents.
Basically, one can easily mmap billions of records directly into data structures accessible by C API easily in a few ms. One can dispose billions of records also in a few ms. I saw similar design patterns from the sqlite code base.
Language with memory safety (GC) design in mind won't allow anything like that as far as I know.
I love to see some D experts prove me wrong.
comment 9y ago · link · parent
I heard from "Security Now" podcast that there is a new law that require all government purchased IOT devices must be update-able to fix security issue.
Expand the law a bit:
Make all internet connected device makers (Include phone maker) liable for any loss of private consumer info, hack for 10 years from any internet connected devices release.
Anyone can file lawsuit against them easily or in class actions against the vendor if they don't provide security fixed/upgrade within 4-6 months of from being notify of the vulnerability.
Establish an ISO security standard for IOT (and all Phone): such as
1) Standardize SW/FW update requirement, method and audit. ssl, security hash, CA, etc.
2) Requires system to monitor and log all program/critical system components creation/execution/all internet connection and download for auditing by owner of device.
3) Require system vendors to have source code / tools chain / build system in place to rebuild and fix security issues.
Once the vendors are liable for hack. They will need Insurance. The Insurance Company can follow the ISO security standard to audit and estimate the potential cost.
comment 9y ago · link · parent
Last year I found a windows version of it online and found it still usable even in windows 10. Very unsafe I know - I did use ProcExploer+VirusTotal to check its binary signatures on 60+ scanner sites.
It still much better/faster than the native Win10 Cortana search.
Love know if there any open source clone of it?
comment 9y ago · link · parent
After the upgrade, before the reboot, setup the HW watch dog for 2-5 minutes. Setup the boot-old-kernel flags as default in the uboot/EFI/grub/or your system boot loader.
If the upgrade the successful (connect to back to the server) and function correctly, disable the "boot-old-kernel" flags in your bootloader.
As always, do a lot of testing and automate those tests. You will be surprise how often a simple boot/reset/power cycle can fail if you repeat it over and over again in a weekend.
comment 9y ago · link · parent
The report seems to show Intel 4C/8T is doing better than AMD 8C/16T with much bigger L2/L3 cache config.
Is 7700K really that good? Can anyone from AMD explain this?
Intel (Kaby Lake) Core i7 7700K (91W, $339) 4C/8T, 4.2 GHz, 1MB L2, 8MB L3 17.81
AMD (Zen) Ryzen 7 1800X (95W, $499) 8C/16T, 3.6 GHz, 4MB L2, 16MB L3 16.32
comment 9y ago · link · parent
Kind of fun thing for your kids to do on a long drive. That might be why the cartoon like interface.
Like Pokemon Go, the constant network traffic + GUI interaction makes it huge battery drain. I deleted the app from my phone.
Google map's traffic info is very good. I suspect Google paid that much likely because potentially FB, MSFT or Amazon "might" get it and use it is a beach head to enter the Mobile Map App market. If that's the case, it is a very good play on Waze's part to get the high valuation.
comment 9y ago · link · parent
"Secure Virtualized Encyrption (SEV). SEV in many ways resembles the SME, but in this case, it enables owners to encrypt virtual machines, isolating them from each other, hypervisors, and hosting software. "
Sounds like the keys are managed by VMs can isolated from hypervisors/hosting software.
comment 9y ago · link · parent
All successful projects in my career had full functional regression test coverage.
For those successful projects, I made following conclusions:
* My personal TDD process are:
* Script enable - always run every night, every weekends.
Output to html files to see overall green/red in < 1 second.
* When any existing test broke, fix/debug the tests are the highest priority before any more features development.
* The test reports from all the nightly and weekend test should always be green.
* Any red(s) will stop all features dev.
* There are 5 minutes function test scripts that require to run before every commit.
* Normally, I prefer commit in the morning after overnight test runs were all green.
* These were small project with team only 1-2 devs.
* Much easier to enforce the process. (Just need to convince I, me and myself.)
* I worked on big team projects with 100+ devs.
* I can test only my own part of code. For any big team, I can take the horses to the water but can't make anyone to drink it. The overall system SW quality was still bad.
* I Only do full functional tests - I don't do any small unit tests with mocks.
* For CDRW drive, there were 100+ test cases for
close, read, open, repeat,
close, read, write, loop, open, repeat,
for different CD format, disk, drive, etc
* For DNA sequencer machines, there were tests for
Motor controls, 3 axis robot,
CCD camera, laser control, script subsystem, comm sub sys, etc.
(This is old project, 20+ yrs ago)
Deployed in the field for 15+ years with version 1.0 Firmware.
Good for company bottom line - not sure for the SW guy's career. :-)
(Multi billions $$$ of revenue for the company, $500+M first year)
* For video decoder systems with 19FPGA + 10G network: (10+ years ago)
Streaming control, snmp, IGMP, all each has their own test scripts and
combine system level scripts for complex network, HA setup.
Deployed in Comcast for long time without any issue.
Only one issue reported was system has problem after 255 days of
non-stop running.
I did have test case for 10 ms counters (for SW bug happened for 25, 49 days)
I didn't create test case 100ms counters (for SW bug happened after 255 days).
Again, very good for company bottom line.
(Tens millions $$ of revenue for the startup)
But the company don't need me anymore after they shipped that product.comment 9y ago · link · parent
Security via network segmentation. IMO, NAT gateway is good place to lock down and put in network security appliance to track/block all the unwanted connections.
comment 9y ago · link · parent
Likely in China during that period of time, the high level struggle for power also happened in BeiJing. In China the reformers of the time didn't win.
comment 9y ago · link · parent
Varieties, cross pollination from different JS engine/teams make JS much stronger.
Flash, ActiveX, Silverlight, VBScript are all seem more mono-culture - Start to die as soon as the parent organizations/core dev team loss interest / move on to to next best thing.
Flash is a successful until CPU usage, security issues kill it. Just like strong mono-culture plant in a farm got wipe out certain deceases/virus.
comment 9y ago · link · parent
Memorize vi keystrokes is knowing the secret handshakes.
Able to Exit vim is finding the door to enlightenment.
If vi comes with an easy "back" button like all browsers, no-one will learn it. One needs to be trapped inside for a while to feel the power of the dark side.
comment 9y ago · link · parent
Love your work on DTrace.
Have you seen / configured a system that keep the FTRACE/DTRACE log data in memory during a crash/ reboot cycle for postmortem kernel crash type analysis?
If so, love the see any reference to how to setup something like that for typical x86 Linux.
Did that long time (10+years) ago on MIPS+vxwork/Linux with someother trace log type system. Miss that capability.....
Thanks
comment 9y ago · link · parent
Shouldn't the company who develop the Self-Driving tech be liable for any accidents/damages its tech might cause?
If so, great deal for consumers, but I doubt the developers of the Self-Driving Tech would agree pay for the insurance for everyone
comment 9y ago · link · parent
Tried built a few opensource apps with VS once a year for the past few years and found that I can't even compile a single Windows open source packages from github, sourceforge after weeks of trying.
The code might claim to be able to build with VS10, VS12. The dependency libraries will need completely different VS version of .xml, .proj, .sln build systems.
I challenge the PM of VS product try to build a few popular MS projs such as python, VLC, or anything in http://opensourcewindows.org/. Document the process of building the app and dependence library. Compare that to the process of try to build that same packages in Mac (with brew) or in Linux.
In Linux, for all the packages I like play with. "./configure && make" handle most of the the build in a few minutes. Even easier on Ubuntu with apt-get source/build commands. Very similar process in Mac.
Even linux kernel, I can build it easily with pretty much the same 1-2 commands for the past 20 years.
comment 9y ago · link · parent
Instead of just close/lock the door for my neighbor or call the cop, I use a bulldozer to level the house to the ground. (zero out the flash.)
In theory, the "vigilante" can offer his service to device manufacturer to help remotely clean/update the devices instead of just simply wiping them off the net.
comment 9y ago · link · parent
When phone vendors releases a phone, they can deposit the vendors custom binaries/source in google servers.
Google will maintain and release security updates for vendors for X number of years for Y amount of $$$/Year.
The phone vendors can snap a "Android Security Update Guarantee by Google until year ZZZZ" logo/label on the phone.
comment 9y ago · link · parent
Basically, it allows all the running .exe programs signatures be checked at once with 56+ virus checking websites and results shows up in the GUI of procexp.
No wasting of CPU cycles to scan every files in the system, typical < 3 seconds to check all the running programs - Light up green/red in GUI.
https://www.youtube.com/watch?v=RnPtuTbqzd4&t=3s
Love to see google do something similar to this in Android.
It is very trivial for Google to dev, deploy these kind of tools/REST API/website. If this is deploy in billions + Android phones, Google should be able to detected/collected/analyze new/potential malwares instantly.
Known good programs with valid signatures - do nothing.
Unknown programs sig - setup special container and monitors app behavior - collect the binaries if needed.
Also, I think google should be able to separate the Google control portions of AOSP from the 3rd party vendors systems drivers/utilities and allow them to be upgrade separately.
I used to work on porting the AOSP on cell/tablet SOC before. It is doable.