This is hilarious... a filesystem nuked with javascript. I've seen it all.
Zmaster
@Zmaster
Best posts made by Zmaster
-
RE: NPM 5.7 recursively changing ownership of system directories when using sudo npm -g
-
RE: Performing a hard reset on a Surface
- How on earth did he get that information? Because when I tried to get support they didn’t even understand the difference between a process and a driver.
- Who the heck could possibly come up with such an arcane reset sequence?
-
Android rant
Just posting here a link to my rant on Android.
Curious if you think what I said is sensible or if I got it All WrongOh, as a bonus, after the line is something I had written some time ago, Discourse failed to get posted and I though was lost.
I'm dealing with Android, which is a real SPOS like I haven't seen for a long time and makes everything else look nice and shiny.
I'm not even bothered to write about it (edit: I eventually did, see above), but here's a nice representative line.Actually, let's see how we get there, for fun.
We have a MapView which represents a map (technically not part of Android, because yeah, whatever). We can't control it directly, we have to get a GoogleMap object (asynchronously) which actually lets us do stuff like add markers etc. Alright...
We've done some other operations with that object. Now we want to show a certain place instead of the default view, let's say we have the coordinates of Paris.So, quick go with intellisense... (italic is suggested completion)
map.moveCamera
Ah, that looks promising... the camera must set how we look at the map, makes sense. I assume there's an overload that takes a location?
map.moveCamera( CameraUpdate )
Uh... only 1 method signature... it takes an object of type CameraUpdate. Ok, I guess I can contruct it with a location and some options?
map.moveCamera(new CameraUpdate( not found
Mmm no... no constructor. Ok, probably one of those classes that provide static methods to create new instances. Maybe fromSomething?
map.moveCamera(CameraUpdate.from no matches
At this point I try a couple more things and I'm like... ok, let's check the samples, surely it's something similar and I just...
map.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 13));
What. The. Fuck.
A... FACTORY to create an object that defines that we want to move the map to a different location? -
Win10 is becoming the biggest spyware ever
So, I'm surprised no one has brought it up yet.
I've watched the Build keynote (one of) and after the "cloud all the things" stuff they talked about what's coming to Win10.2 particular "features" really stood out, negatively, for me.
Windows Timeline
In short, Windows will keep track of what you're doing over time, like editing a document, reading email, whatever, and at any point you can bring up a "timeline" view and reopen something you were working on before that same day. Or perhaps days before, can't remember, but sounds plausible.
This timeline is pushed to the cloud, so you can pickup you work from any of your devices.
You even get notifications like "would you like to resume reading that article on the BBC?".
This whole thing apparently needs some work from the developer though.Cloud assisted clipboard
It's exactly what you expect, allows you to copy on device 1 and paste on device 2.
From the demo there was even a history of what you had copied.Now, I'm not into conspiracies, but this is ridiculous.
They're literally going to collect realtime data of everything you're doing. Totally unacceptable in my opinion.The problem is that you're trusting them with this information and you can be sure as fuck they're going to use it. And even assuming that you can disable it, you're still trusting them for it to be actually so.
After Facebook, this is the jackpot for NSA.If only there was a good alternative, I'd jump the boat. Sadly I'm not into macOS and Linux, but it might be time to reevaluate the latter. Again.
-
XML, the Apple way
If you're familiar with development in the Apple ecosystem, you probably know about Plists and their weird XML format.
If not, click here for a quick explanation.
Plists are simply "property list"s which store a list of key-value properties. The value can be a boolean, string, but also a complex type like a dictionary, which itself contains more key-value properties.Initially Plists were stored in a text file format somewhat similar to JSON. Then, they've introduced an XML format and a binary format (the latter to optimize loading speed).
The XML format is something like this:
<dict> <name>value</name> </dict>
Nah, I'm kidding. We need to think different!
<dict> <key>name</key> <string>value</string> </dict>
Yes, one element is the key and the following one is the value. Brilliant.
Today I was trying to figure out an issue with a storyboard file and I tried to read the XML there...
Here's an extract of what it looks like (from a random file on github):<!-- stuff --> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Don't have a server yet? Choose one of the providers." textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uJf-zK-g43"> <rect key="frame" x="0.0" y="611" width="375" height="51"/> <constraints> <constraint firstAttribute="height" constant="51" id="h7p-oO-gAz"/> </constraints> <fontDescription key="fontDescription" type="system" pointSize="14"/> <color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> </label> <!-- stuff -->
So, now (sometimes) the key is an attribute.
What are they trying to do here? It looks like they want to keep a loose-format which doesn't follow a precise schema. -
RE: OWL Web Language
@raceprouk When learning Objective-C, I was quite surprised to discover how strings work there.
NSString is immutable and NSMutableString is mutable, however NSMutableString inherits from NSString.
So, given a reference to NSString, il could be either mutable or immutable. This means that when you receive a string (say, an object property or something else you need to keep) you must copy it to a new string and keep that one, because what you're given could be mutable and change later.So, by only using immutable strings, .NET solves what would be a problem.
-
RE: Internet of shit
Not IoT but still ridiculous...
https://www.kickstarter.com/projects/968338840/spooni-the-fan-operated-cooling-spoon -
RE: Good article on the root of Windows quality problems
TL;DR: Microsoft isn’t testing its stuff well enough. No shit.
Frankly, the article assumes too much stuff IMHO and seems to just say “they’re not unit-testing their code”.
Some things are easy to unit test, but race conditions, drivers, integration between different systems are a different story. I’m not saying unit testing is a bad idea, it just won’t get you 100% covered.Eventually, they will always need real people actually using the build. IMHO, if the software is buggy, they need more testing time, more testers, better testers, or all of that.
-
RE: Windoze 10 Fall 2018 Flopdate, now with even more nothingness
Well, I suppose this validates the decision I took a few months ago to jump the ship.
Frankly, improvements are all welcome. Win10 has some good improvements to the terminal, security, flat look that I liked and other minor things. Even the LF support on notepad is a minor convenience that you’ll probably only use a few times per year when you’re using a different PC that doesn’t have your favourite editor installed. It’s not major but it’s appreciated.
But FFS, you can’t have still DPI issues ON THE OS UI, even on your own hardware (Surface).
And get the whole thing to use consistently the same design language, don’t ship something that has 4 different context menu styles and the come out with “Hey folks! Here is our NEW NEW wanky design language!”.
Also don’t try to get something that can run everywhere from desktop to tablet to TV to VR. You can’t do it, it will end up being a lowest common denominator craptomise.
Stop this retarded Indiders shitfest, test your bloody software like you used to and and ship stable stuff.
Who cares about 3D paint?
Why do you think recording the user activity throughout the days and uploading it to your cloud (Timeline) is a good idea, or acceptable from a privacy point of view?If they could just focus their effort on what really matters, it could be the best Windows since XP.
I don’t care how much the revenue has grown under Nutella (stolen from the reddit thread), I don’t like him.
Latest posts made by Zmaster
-
RE: TRWTF is the entire JS ecosystem
@Cursorkeys not a web developer but a few years ago I found flexbox was widely supported and would do all the layouts I wanted, including simple centering. The CSS hacks are a thing of the past by now (unless legacy devices?)
-
RE: Windows RT isn't totally dead
@TimeBandit wait... have they retired Win10S already?
-
RE: Windoze 10 Fall 2018 Flopdate, now with even more nothingness
@TimeBandit You beat me by one minute :)
-
RE: Good article on the root of Windows quality problems
@WhatYouSay said in Good article on the root of Windows quality problems:
What could possibly go wrong with asking developers to QA their own code while accelerating project velocity? That’s how lean, agile startups work and they make billions!
I was hoping to find a link to the source for that statement in the article. I remember Yahoo did that at some point but I’ve never heard about MS going the same way.
-
RE: Good article on the root of Windows quality problems
TL;DR: Microsoft isn’t testing its stuff well enough. No shit.
Frankly, the article assumes too much stuff IMHO and seems to just say “they’re not unit-testing their code”.
Some things are easy to unit test, but race conditions, drivers, integration between different systems are a different story. I’m not saying unit testing is a bad idea, it just won’t get you 100% covered.Eventually, they will always need real people actually using the build. IMHO, if the software is buggy, they need more testing time, more testers, better testers, or all of that.
-
RE: Windoze 10 Fall 2018 Flopdate, now with even more nothingness
Well, I suppose this validates the decision I took a few months ago to jump the ship.
Frankly, improvements are all welcome. Win10 has some good improvements to the terminal, security, flat look that I liked and other minor things. Even the LF support on notepad is a minor convenience that you’ll probably only use a few times per year when you’re using a different PC that doesn’t have your favourite editor installed. It’s not major but it’s appreciated.
But FFS, you can’t have still DPI issues ON THE OS UI, even on your own hardware (Surface).
And get the whole thing to use consistently the same design language, don’t ship something that has 4 different context menu styles and the come out with “Hey folks! Here is our NEW NEW wanky design language!”.
Also don’t try to get something that can run everywhere from desktop to tablet to TV to VR. You can’t do it, it will end up being a lowest common denominator craptomise.
Stop this retarded Indiders shitfest, test your bloody software like you used to and and ship stable stuff.
Who cares about 3D paint?
Why do you think recording the user activity throughout the days and uploading it to your cloud (Timeline) is a good idea, or acceptable from a privacy point of view?If they could just focus their effort on what really matters, it could be the best Windows since XP.
I don’t care how much the revenue has grown under Nutella (stolen from the reddit thread), I don’t like him.
-
RE: Best anti-SQL-injection protection
@Zerosquare said in Best anti-SQL-injection protection:
Yeah, their site has that "clunky" feeling, and once you start using it you'll notice some usability issues. But their auto-check and PCB preview tool is really useful, and their PCB quality is great.
Yeah, the PCB configurator/preview is neat, I really like it. I’ve also recently used the PCB Assembly tool and it needs some more work but it’s off a good start.
Would be nice to know if there are other companies with similar tools. -
RE: "I used to work for Tesla…"
@Polygeekery said in "I used to work for Tesla…":
@Gribnit said in "I used to work for Tesla…":
@Polygeekery What, you don't know how to drain a battery? For a simple proof of concept, take the battery in your car. Then carefully grab hold of the black terminal with your right hand, then very carefully grab the red with your left hand.
You may need to recharge the battery afterwards.
Literally nothing would happen. Too much resistance and too little voltage.
But that person was suggesting you draw down a battery capable of putting out 100,000 watts of heat for an hour like it is nothing. You can't just simply draw them down. It is not a trivial task.
Yeah, if the battery was undamaged, you could simply discharge it in a similar amount of time it takes to charge it, but if it’s undamaged there would be no risk in the first place.
IMHO, the main problem is that the “battery” is actually made of several modules with many cells each. If this battery assembly gets damaged, you might end up with a broken connection opening the circuit. Or, one module might short out and loose capacity and if you try to discharge the whole battery then it probably won’t work out very well once that module if fully discharged.
I don’t know the details of that battery pack but I agree it’s not a simple matter. I suppose it can be done but slowly and if you’re unlucky you might need to open the thing to access the modules directly.
-
RE: Unable to Recover Data from 2018 MacBook Pro When Logic Board Fails
@Deadfast how does a “missing key” cause that VRM to overheat?