|
To get to the other side.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Auto-nuggeting.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Going through the learning material about Blazor and Razor components (they seem to both strongly relate to each other) coming up with .NET Core 3 (or later)...
Just was blown away by that (I am over-reacting a bit here):
Razor Components Class Libraries | Microsoft Docs
make my component library, includes it, use it, BOOM!
it even use the style.css in the component library without having to do anything!
none of those painful copy all image/stylesheet/whatever needed!
I have to say, this Blazor and Component thing is starting to grow on me.
I also like how easy and elegant it was to implement an (HTML) Tab control (previous tutorial item: Create and use Razor Components | Microsoft Docs )
Side note: I might do the thing again without Blazor.
Blazor is not officially released yet and it has a few tooling and debugging issue.
But Razor components are official right now and they are good.
And extremely close to Blazor component (save some project settings, it seems, or something of that order)
[Later That Night]....
Mmmm... Razor components are not that good. Blazor components are!
I will simply quote MSDN here
MSDN wrote:
Razor class libraries don't support static assets in ASP.NET Core Preview 3. Component libraries using the blazorlib template can include static files, such as images, JavaScript, and stylesheets. At build time, static files are embedded into the built assembly file (.dll), which allows consumption of the components without having to worry about how to include their resources. Any files included in the content directory are marked as an embedded resource.
modified 6-Apr-19 5:11am.
|
|
|
|
|
I've been helping someone with a Blazor project for a while now. Like anything browser based there are many thorns amongst the roses. It's certainly a vast improvement over Javascript, using C# instead for both client and server side of a project.
But there's no visual editor for UI development, and it's still CSS based, so it is very tedious to create nice screens and as with all CSS based systems it can be a house of cards where one day you change something and the whole thing falls apart for no apparent reason. And of course, being HTML/CSS under the hood, you still have all the limitations that brings with it.
It's quite easy to create components, though there are significant limitations on nesting them. It's easy to combine HTML based content with dynamically generated content.
Explorans limites defectum
|
|
|
|
|
Well yes, the rendering technology hasn't changed a bit. But the development experience is finally good! (well it's preview tech, debugging don't work very well...)
I can't see the UI (i.e. HTML, CSS, etc..) change any time soon though...
But hey making multiplatform desktop app is easier than ever!
(WPF, XamarinForm, Avalonia all use Xaml and have similar control hierarchy and layout controls)
|
|
|
|
|
... a Xiaomi Mi Router 3. Got it home. Plugged it directly into the laptop. Set my IP to 192.168.31.16, and the gateway to 192.168.31.3 as per the instructions. First screen - accept the licence agreement. No decline button, just accept. Read the licence agreement.
A few choice phrases pertaining to 'Xiaomi products and services':
... may analyse your phone contacts to search for your friends
... not oppose the basic principles determined in the Constitution of the People's Republic of China
... you irrevocably waive any and all ownership, legal and moral rights to your user content (user content is not defined anywhere in the agreement)
Basically, it seems to boil down to if you want to use this router, this piece of hardware, then you have to open a 'Mi Talk' account, which you can only do if you accept their ten-page agreement - whereupon they own you lock stock and barrel. I presume they also have the ability to monitor anything you send anywhere.
Needless to say, the router went back first thing this morning. Fortunately, in EU law there is a requirement that if a product is sold such that any licence agreement may not be read until opening/installing the product, then if the licence agreement is declined an immediate refund must be made on return of the product.
|
|
|
|
|
Nobody reads what they sign up for ... they never did.
When I was MD of a small hardware / software house we needed an NDA, so I grabbed one we had signed, and based ours on that with appropriate modifications. And feeling whimsical, I added penalty clauses: sacrifice of the signatories firstborn child, that sort of thing.
Not only did it get signed without any comment, it was used as a basis by others as it was offered to me for signing some years later by a potential customer ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: ...I added penalty clauses: sacrifice of the signatories firstborn child, that sort of thing.
Not only did it get signed without any comment, it was used as a basis by others as it was offered to me for signing some years later by a potential customer ...
and... you signed it?
the ones that get me are those security stickers (mostly on electronic goods) - once you cut that sticker it says you are responsible for the contents of the box.
but you can't check the contents of the box are hale without cutting the sticker to open it.
so what happens when you cut the sticker, open the box, and find the cat is already dead, how could you know?
too bad, it's your cat now. ( why did I just about the too two ronnies? )
Message Signature
(Click to edit ->)
|
|
|
|
|
Of course not!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Following your advocacy, I bought a bunch of AOMEI software. I am now going to go through their licence agreement with a fine-toothed comb. I always skim a licence agreement, just to see if there are any out of the ordinary clauses, but as AOMEI is also a Chinese firm, I feel it deserves further scrutiny regarding first borns etcetera.
|
|
|
|
|
Probably a Gov't requirement in China and they don't bother to change it for elsewhere. Like previously said, no one reads that stuff anyway (like they say to their wife and/or GF: "I agree").
I have created a router with VPN server on a Pi, including ad blocking. I have to figure out how to better harden it and then I will repeat that with faster hardware. More and more of that stuff available for sharing.
The time sink is making sure the open source stuff doesn't have any phone home stuff hidden in there. There are more tools for configuring the Linux firewall and SELinux these days.
Happy Hacking
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
A Pi is fast enough for that, but with only one ethernet port, I don't understand how a Pi can make a viable router. Even if you were to use a USB adapter, the Pi is STILL only USB2 compliant, which means you're needlessly throttling your throughput. Fully featured commodity routers are too cheap AND much better suited for this task than a Pi. Don't get me wrong, I love my Pis, but IMHO, they aren't the correct tool for router work.
Just my opinion of course...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I think I said I would port to faster hardware.
Still an interesting exercise.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Chris C-B wrote: A few choice phrases pertaining to 'Xiaomi products and services':
Wow. That is insane. I wonder how many government agencies are using that router.
Latest Article - Azure Function - Compute Pi Stress Test
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Want to bet the DNS IPs point to a Chinese site, and are coded into the firmware?
|
|
|
|
|
I wonder how the router would know that you don't violate any basic principles of the Constitution of the People's Republic of China?
modified 20-Oct-19 21:02pm.
|
|
|
|
|
I presume by reading everything that passes through the router. I fully expect that Chinese DNS IPs are hard coded into the firmware, so at the very least they would know what sites you are visiting.
|
|
|
|
|
remember when you buy anything with a Chinese name you are buying a piece of china...
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
More like they are getting a piece of you.
|
|
|
|
|
84. Copy right before serious offence (4)
|
|
|
|
|
|
|
Tort ? don't get the copy bit though
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|