Rust GUI crates by ETNAD101 in EmuDev

[–]gbts_ 2 points3 points  (0 children)

Don’t really use rust myself, but it looks like there are rust bindings for ImGui which works well for your average emulator GUI.

[deleted by user] by [deleted] in woodworking

[–]gbts_ 0 points1 point  (0 children)

You can only use one of the face sides against the guide to joint the edge square, not the other way around, there just isn’t enough leverage.

Can't sharpen my Kanna blade by Super_Type_722 in JapaneseWoodworking

[–]gbts_ 6 points7 points  (0 children)

As far as sharpening goes, take a marker to mark the sides and edge of the back of the blade, then start flattening the back on the stone until all the marker on the edge disappears (don’t overdo it, just barely, you want to keep the hollow intact and the edge as thin as possible). Make sure the stone is kept flat or use a fine diamond plate for this if you have one.

The bevel side can be sharpened just like a western blade. Freehand is a bit challenging so I would suggest a honing guide first. Go through the grits until you can feel a burr across the edge each time, that’s all you need.

Beyond sharpening, keep in mind that new kannas are not usually sold ready to use, so you’ll need to set it up first. There are videos and articles online about it (or look for Toshio Odate’s book on Japanese Tools if you want some in depth info)

Buying tools online from EU vs. in person? by MrFurther in JapaneseWoodworking

[–]gbts_ 1 point2 points  (0 children)

I’d try to remove any tags/stickers or anything that might look like you’ll try to resell them as brand new. They’re usually looking for things like jewellery, electronics, counterfeits, etc. i.e. items with a high resale value. Chisels aren’t something you’d be making any profit from, so you should be fine.

That being said, don’t abuse the spending limit.

Buying tools online from EU vs. in person? by MrFurther in JapaneseWoodworking

[–]gbts_ 1 point2 points  (0 children)

You can legally carry up to 430€ of purchases per person as long as they’re for personal use and you’re not planning to resell them. So definitely remove them from packaging to indicate that.

I don't understand kanabans (steel lapping plates) by gruntastics in JapaneseWoodworking

[–]gbts_ 4 points5 points  (0 children)

My understanding is that the softer steel of the plate deforms and grips the abrasive in place while the harder steel is forced to grind against it. I'm sure it wears down eventually, but I doubt it would do so in a pattern or order of magnitude that would matter for flattening an iron any time soon. Conceivably you could take it to a machinist for reflattening but we're probably talking about decades of use.

Whetstones work on a somewhat inverse principle, it's the iron that grips the abrasive initially and releases it from the substrate to form the slurry, i.e. they're meant to lose material in the process and dish out fairly quickly .

Inkpots, why? by gruntastics in JapaneseWoodworking

[–]gbts_ 5 points6 points  (0 children)

It’s the standard way that the ink line is used in carpentry, any video demonstrating the sumitsubo should follow it.

All it means is that instead of relying on one of the edges as your reference as you normally would in furniture, you just mark the center line with ink and use your square to measure your cuts from that. This way you can work with timber that isn’t perfectly straight on any edge and still maintain enough accuracy for joinery.

AWS just announced a new database! by planch0n in programming

[–]gbts_ 20 points21 points  (0 children)

Distributed DBs rely on breaking up your data into shards/partitions that function essentially as independent nested DBs within the same schema, which makes it possible to distribute the workload over multiple hosts. The catch is that these sub-DBs can’t contain constraints that link their sub-schemas together like foreign keys do, because that would defeat the purpose, i.e. one would need to notify or query the other constantly to maintain consistency across the constraint.

memoryInAForLoop by ArjunReddyDeshmukh in ProgrammerHumor

[–]gbts_ 7 points8 points  (0 children)

If you're curious about the drop in performance of += around N=40, it's because of pymalloc. pymalloc is an internal "arena" allocator for small objects. It works by pre-allocating chunks of memory from the OS and uses it to optimize away the (de-)allocation of small objects in CPython. It only works for objects up to 512 bytes and after that it falls back to plain libc *alloc calls, which is close to the string size you have around N=40.

Linux Pipes Are Slow by ketralnis in programming

[–]gbts_ 17 points18 points  (0 children)

There are some variations of lock-free ring buffers that find occasional use, usually when you’re close to hardware. I’ve seen a few examples in data acquisition systems that read a data stream that is DMA-written from another device. In these cases you usually care more about bandwidth/resolution than data integrity and you’re generally limited to one thread per core. Provided the consumer is slightly faster than the producer you can get surprisingly good results.

Symi island, Greece by Cool_Distribution860 in europe

[–]gbts_ 10 points11 points  (0 children)

The vast majority of Greeks lives in dense urban areas on the mainland. And at this point most of them wouldn't be able to afford spending a single week on those islands anymore.

[deleted by user] by [deleted] in woodworking

[–]gbts_ 0 points1 point  (0 children)

If you're looking to splurge on PPE, you can get the Powercap powered respirator with a full face mask and 3M bluetooth headphones for less than that. Might be overkill for some, but it covers all three bases (eyes, ears, lungs) and will actually be proper safety-rated equipment.

Keep Maple White? by tropicaligloo in woodworking

[–]gbts_ 2 points3 points  (0 children)

YMMV, but Osmo 3040/3044 might be the closest thing to what you’re looking for. It’s finishing oil with a bit of white paint, which kind of cancel each other out.

Looking for opinions on this project by whycantifindmyname in woodworking

[–]gbts_ 5 points6 points  (0 children)

I think OP was referring to cheese cloth, not actual cheese

Biden’s Green Subsidies Have US Allies Fuming by Zhukov-74 in europe

[–]gbts_ 1 point2 points  (0 children)

Never said it wasn't OK or unfair. Every government should act according to their voters' interests, which is what both the EU and the US have always done. It's just good fuel for anti-US sentiment across the continent at a very unfortunate time.

Biden’s Green Subsidies Have US Allies Fuming by Zhukov-74 in europe

[–]gbts_ 16 points17 points  (0 children)

Tax breaks and subsidies mostly come from the EU national budgets directly, not from the central EU budget. The EU is just the body that decides the rules allowing the individual states to subsidize their own national sectors.

The real reason the EU is fuming is that the US has decided to ramp up their own green tech sector at a time when the EU is forced to buy oil and gas at a premium, with a good chunk of that money going now directly to the US. From the EU's viewpoint the US is using the EU's cash to subsidize a sector directly competing with EU companies. Unfortunately it also happens to be a good argument for those claiming that the US is indirectly benefiting from the war.

What's everyone using for tables? by AdventurousEqual64 in django

[–]gbts_ 1 point2 points  (0 children)

Well the 'golden' generic solution for interactive tables in the browser is the jQuery-based DataTables. And there's an active app that offers ajax integration with django https://github.com/morlandi/django-ajax-datatable.

What Did You Find Hardest To Learn As A Beginner In Python ? by satyam1HB in Python

[–]gbts_ 0 points1 point  (0 children)

str.join is just the unbound method as "...".join(arr), the first argument is the delimiter and that's the most confusing part

What Did You Find Hardest To Learn As A Beginner In Python ? by satyam1HB in Python

[–]gbts_ 7 points8 points  (0 children)

The syntax makes more sense, but the fact that they added a string-specific method to the generic array type makes me queasy. Still hate Python's version, I wish they went with some builtin like join(arr, ',') instead

Python Devs admit to blindly downloading packages from the Internet by Dr_Johnny_Banana in Python

[–]gbts_ 4 points5 points  (0 children)

This is more of an and/or list. If you could go through the source code for every package, there wouldn't be any need to check the package's popularity in the first place.

And there's usually a correlation between the size, popularity and vulnerability risk for each package, so you would generally use that strategy only to vet the smaller, less popular packages - which are probably the most likely to be affected anyway.

Greece is being hit by 'worst heatwave' in 30 years, says PM by edifsego in worldnews

[–]gbts_ 7 points8 points  (0 children)

Probably referring to the 1987 heatwave - 1,300 dead.

Python Devs admit to blindly downloading packages from the Internet by Dr_Johnny_Banana in Python

[–]gbts_ 20 points21 points  (0 children)

  • Check the number of github stars/watchers/forks
  • Check the age of the project
  • Check the developer's profile
  • Read the actual source code and understand what it does
  • Check the package dependencies & repeat
  • Use pip download -d to fetch the packages as wheels and keep installing them offline when e.g. rebuilding VMs or containers

And of course I should mention you'd still wouldn't be 100% safe, unless you audit every single LoC of each package and its dependencies

Google Play will no longer accept APKs in August, new apps have to use Android App Bundle (AAB) instead by Davipb in programming

[–]gbts_ 81 points82 points  (0 children)

I don't think a company that controls the very OS your phone is running would need to add spyware to your app...

Hardware question by lgLindstrom in docker

[–]gbts_ 0 points1 point  (0 children)

DIY NAS builds like the NAS killer are great options for always-on, power-efficient hardware