Details
Joined devRant on 3/2/2021
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@neriald If this comment:
> Some dude got divorced and lost house, logged into house remotely and set temperature to 90 and locked ex wife out.
From Demolishun is correct, then no, you can't just simply turn it of. And you still have the problem that Siri knows too much about you. -
@xcodesucks If the phone doesn't work, i can still use my apartment, make food, lock and unlock my door.
I can lock and unlock my car purely mechanically, FOB is completely optional.
The problem is that you increase the complexity and depend on forging resources to do basic tasks. That is not a smart idea. -
You have to be stupid to install Siri for things like controlling your light.
Here is how my very advanced tech to control the lights looks like: There is a device. When i push on it with a small force (or large force, doesn't matter), the light changes. If it was one before it is now off and if it was off before it is now one. It is absolute genius: I don't have to say anything, it is very simple to use and it has a MTBF of more than 10 years. It is also save from viruses, doesn't need any wireless transmission and its standby current is 0. -
But stupidity is normal? Not? Was there ever a time where it wasn't normal?
-
@Lensflare I have a much easier challenge for you: Write a program that outputs the busy beaver numbers from 0 to 100. Couldn't be that hard?
I mean, just start with:
BB0: 0
BB1: 1
BB2: 4
BB3: 6
BB4: 13
And then continue till BB100 -
@Lensflare For that it either has only a limited number of cells with a limited maximum, a limited number of steps or i would have to solve every mathematical problem (and there are an infinite amount of them).
Limited means: If it wants to access more cells, it has to wrap around (same with the value of a cell which can't be infinite). Or after N steps it is considered that it doesn't halt, even if it would after N+M steps. -
@hjk101 38 µBTC? Or 38 Microbitcoin?
-
@kobenz You know that >>>+[[-]>>[-]++>+>+++++++[<++++>>++<-]++>>+>+>+++++[>++>++++++<<-]+>>>,<++[[>[ ->>]<[>>]<<-]<[<]<+>>[>]>[<+>-[[<+>-]>]<[[[-]<]++<-[<+++++++++>[<->-]>>]>>]]<< ]<]<[[<]>[[>]>>[>>]+[<<]<[<]<+>>-]>[>]+[->>]<<<<[[<<]<[<]+<<[+>+<<-[>-->+<<-[> +<[>>+<<-]]]>[<+>-]<]++>>-->[>]>>[>>]]<<[>>+<[[<]<]>[[<<]<[<]+[-<+>>-[<<+>++>- [<->[<<+>>-]]]<[>+<-]>]>[>]>]>[>>]>>]<<[>>+>>+>>]<<[->>>>>>>>]<<[>.>>>>>>>]<<[ >->>>>>]<<[>,>>>]<<[>+>]<<[+<<]<] is a interpreter for brainfuck? (not written by me).
-
@kobenz I am too stupid to understand that.
Assuming it is brainfuck: There is no input. But the output depends on cell size, with a 8 bit cell the output is "Wiqqe" followed by some binary data i don't understand.
00000000: 5769 7171 6587 b1a8 8ca9 adb4 abb7 b5ac Wiqqe...........
00000010: b9b0 6b11 180f 0409 02fb f6ef e4eb e2cd ..k.............
00000020: fb02 fdf6 ....
Or: V2lxcWWHsaiMqa20q7e1rLmwaxEYDwQJAvv27+Tr4s37Av32
??? What does that mean? -
@kobenz Sorry, i don't understand that. Can you rephrase it with a different sentence?
-
@kobenz >>>+[[-]>>[-]++>+>+++++++[<++++>>++<-]++>>+>+>+++++[>++>++++++<<-]+>>>,<++[[>[ ->>]<[>>]<<-]<[<]<+>>[>]>[<+>-[[<+>-]>]<[[[-]<]++<-[<+++++++++>[<->-]>>]>>]]<< ]<]<[[<]>[[>]>>[>>]+[<<]<[<]<+>>-]>[>]+[->>]<<<<[[<<]<[<]+<<[+>+<<-[>-->+<<-[> +<[>>+<<-]]]>[<+>-]<]++>>-->[>]>>[>>]]<<[>>+<[[<]<]>[[<<]<[<]+[-<+>>-[<<+>++>- [<->[<<+>>-]]]<[>+<-]>]>[>]>]>[>>]>>]<<[>>+>>+>>]<<[->>>>>>>>]<<[>.>>>>>>>]<<[ >->>>>>]<<[>,>>>]<<[>+>]<<[+<<]<]
-
One does not exclude the other.
I understand how you can create and program a processor, how you write a program and how it is compiled to a machine language. I also understand very well how hardware can be accessed, how a kernel and virtual memory works, how to handle interrupts. And also how different Buses work and how Ethernet, IP, TCP and UDP works and a lot more.
But i still don't know how CSS works or how modern JavaScript bloat with a lot of dependencies really work (well, i did one project in JavaScript, never again). -
@lungdart My question was more about BTC vs $ rather than the different currencies $ can mean.
Anyway. It is a funny post, i didn't know that story before. -
Did you use jquery to achieve that? ( https://devrant.com/rants/438038/... )
-
@AlmondSauce Why, that makes no sense. I also don't use my native currency to express a amount in a foreign currency.
Lets assume that was on 2017-05-05, since the oldest posts i found mentioned this story was shortly after that. The price of this Bitcoin did go up a lot compared to currencies that use the term dollar:
79 SGD
81 CAD
82 USD
82 HKD
95 AUD
....
So, if you write that now, which amount should you use? Still $5? Or is it now $80? -
How can you send $5 to a Bitcoin wallet? I always assumed you can only send Bitcoin and maybe some Layer 2 crypto tokens (do Layer 2 crypto currencies exist on Bitcoin?)
-
@retoor Agree on the line count point.
How do you sort import then? I don't want them unsorted at all (i need a fast way to check if i already imported something). -
@We3D Look at my example above. You need exactly the same amount of lines even when you hide the { on the same line as the previous block, because then you need an additional line for the }
-
@CoreFusionX The compiler sees {} and that is what defines a block, correct. But we humans mainly use indentation. So why create a style where indentation and { } don't match?
-
@Lensflare The point is this: The compiler only sees the { and } and ignored indentation.We see indentation at first and mainly use indentation.
So the style should create code where the { } matches the indentation. -
@Lensflare No, it isn't just personal preference.
The compiler starts a block at { and ends a block at }. If your style doesn't reflect that it is objectively worse than a style that does reflect that.
Personal preferences are things like how many spaces or tabs you use per block, if you put spaces around = ... But where a block starts and ends has a clear objective answer and that a { has a corresponding } is also a fact (in most languages). -
@Lensflare "anything than this 😆"
Why? -
It is stupid to buy a suit that costs 2000 USD.
-
@Lensflare By all respect, but this is a horrible style.
The { and } don't line up. It is easy to forget a { or }. It is hard to see where a block starts and where it ends (without the indention. But the compiler looks for the { and } and not for the indentation.)
Draw a line from every starting { to the } If it splits the code nicely into blocks, the style is easier to read. If it goes through the code in a messy way, it is a bad style. -
2 spaces for { and 2 spaces more for the content.
See attached image. It makes the return statement to a single line statement, including { and } and it is still readable.
Show me a style that is easier/faster to read. -
@localpost I didn't know about it.
-
@kobenz Brainfuck makes at least sense for what is trying to do. JavaScript is supposed to be a practical language.
-
For anyone who doesn't understand this: JavaScript has a very obvious way to interpret this and generate a string: See here https://github.com/denysdovhan/...
To generate such strings see here:
https://bluewings.github.io/en/... -
> route ALL zoom traffic through china
The USA is worse in that regard. -
Debugging shaders can can be hard. I don't know much about WebGL, but a bit about OpenGL.
Use the vertex shader on the complete screen. i.e. remove all other faces and deal with 1 or 2 (2 triangles to complete a rectangle) faces only. Then you can play around by setting a pixel value based on something you want to debug to see which pixel has which debug output. If needed set the colour channel to either 1 or 0.