The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

Archive for the ‘LifeHacker’ Category

Generating a million sequential numbers on the fly in a Firebird query – some solutions and speed measurements

Posted by jpluimers on 2018/07/19

The testing was done with Firebird 2.5.x x86 on Windows 7 x64.

Where other relational database platforms have plenty of opportunities to generate sequences (see for instance the below links on Oracle and SQL Server), with Firebird you can use a WITH RECURSIVE query construct that normally is being used to manage tree structures ([WayBackPkLab – Firebird: Tree data mangement with recursive CTE).

However, that uses query stack which has a depth limit of 1024 levels. When you reach the limit, Firebird gives you an error like this:

with 
  recursive 
  sequence(n) as (        
    -- When you select more than 1024 values, this error occurs:
    -- Error while fetching data:  Too many concurrent executions of the same request    
    select 0 -- start
    from rdb$database
    union all
    select sequence.n + 1
    from sequence
    where sequence.n < 1023 -- finish
  )
select sequence.n 
from sequence
--where sequence.n in (24, 38) 
order by sequence.n

It however is a pretty quick and CU bound solution: on my system ([WayBackAMD A8-7600 @ 3.1 Ghz), it runs 1000 records within ~0.1 seconds.

In such a short time, it’s hard to see how the speed is bound, so I wanted to go for some orders of magnitude more. In ~0.1 seconds, the processor executes about 0.3 * 10^9 cycles generating 1000 numbers which is ~ 300-thousand cycles per number. That sounds like a lot of cycles for so few numbers. Would this become a better ratio for more numbers?

Read the rest of this entry »

Posted in Database Development, Development, Firebird, IKEA hacks, OracleDB, SQL, SQL Server | Leave a Comment »

Ian’s Shoelace Site – Shoelace Knots – How To Tie Your Shoes

Posted by jpluimers on 2018/07/13

I never knew there were so many ways of lacing your shoes: [WayBackIan’s Shoelace Site – Shoelace Knots – How To Tie Your Shoes

Finally research has shown how they can get loose soo fast: [WayBackScientists unravel mystery of the loose shoelace | Science | The Guardian

via: [WayBack] Unravelling [yes, pun intended] the mysteries of the unknotting shoelace. – Lars Fosdal – Google+

–jeroen

 

Interesting app (knots 3d) and comments at https://plus.google.com/+JeroenPluimers/posts/Nv7teC8CUqY

Posted in LifeHacker, Power User | Leave a Comment »

Mac: when “Save time with right-click sharing from your Google Drive folder” fails…

Posted by jpluimers on 2018/07/09

A few years ago, Google Drive introduced this:

For those looking to share files more quickly, listen up. You can now share with others directly from the Google Drive folder on your Mac or PC. To share a file while inside your Google Drive folder, simply right click the file, select “Google Drive” and then click “Share.” This new feature is rolling out over the next few days.

Source: [WayBackSave time with right-click sharing from your Google Drive folder…

However, sometimes it fails. And the menu has changed as well.

By now the menu looks like this:

  • “View with Google Drive”
  • “Share using Google Drive”

If those do not appear, then:

Try to stop, then start Google Drive.

If that fails:

Read the rest of this entry »

Posted in Google, GoogleDrive, LifeHacker, Power User | Leave a Comment »

Tail it: 4 new affordable GPS trackers with global range by Morten Sæthre — Kickstarter

Posted by jpluimers on 2018/07/08

A few more days: [Archive.is] Tail it GPS

Via:

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

An overview to find your way in the Logitech Webcams model forrest

Posted by jpluimers on 2018/06/22

If you are like me, you cannot find your way in the Logitech webcam model woods. This article likely helps: [WayBackAll Top Logitech Webcams Compared (Including the 4k PRO/Brio) – Pipe Blog

Logitech launched 7 consumer/business webcams since the initial C920. This table compares them all in terms of resolution, mic, etc. PDF version available.

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

xkcd: Is It Worth the Time?

Posted by jpluimers on 2018/06/22

Thanks +Stefan Glienke for pointing me at [WayBackxkcd: Is It Worth the Time?

Background information: [WayBack1205: Is It Worth the Time? – explain xkcd

–jeroen

via: via: [WayBackJust installed … and again I have to …

Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

Lidl W5 oils are identical to Pennasol types

Posted by jpluimers on 2018/06/18

For my link archive: [WayBackW5motorolja på Lidl

Ihr Fax vom 21.10.2009

Sehr geehrter Herr Stanusic,

gern bestätigen wir Ihnen, dass entsprechend der folgenden Aufstellung die Produkte identisch sind.

PENNASOL Multigrade Super HD 15W40 = W5 CARCARE Engine Oil 15W40
PENNASOL Super Light 10W40 = W5 Ecotech Engine Oil 10W40
PENNASOL Super Pace 5W40 = W5 Supertech Engine Oil 5W40
Mit freundlichen Grüßen

Mineralöl-Raffinerie Dollbergen GmbH

i.V. Hartmann i.A. Fricke

On the label:

Read the rest of this entry »

Posted in cars, E46 320i touring, LifeHacker, Power User | Leave a Comment »

Practical Color Theory for People Who Code

Posted by jpluimers on 2018/06/18

Recommented reading and playing: [Archive.isPractical Color Theory for People Who Code which is not just about the colour wheel, but also about:

  • desaturation
  • mixing
  • contrast for tints and shades

Oh: don’t forge the “Party Mode” (:

–jeroen

PS:

 

Posted in Color (science), Color (software development), Development, LifeHacker, Power User, science, Software Development, UI Design | Leave a Comment »

These bone-conduction glasses are on sale for less than USD 70…

Posted by jpluimers on 2018/06/15

From a while back, but intrigued me as I wasn’t aware that bon conduction devices had become so affordable.

[WayBack] These bone-conduction glasses are on sale for $69 Would you wear them? They can be fitted with sunglasses or prescription lenses, and you can use the… – Mike Elgan – Google+

My ~60 dBA Unilateral hearing loss – Wikipedia of my left ear is only through the air: my bone conduction hearing loss – though still significant – is far less.

Since my right ear is very good, a regular hearing aid is of no use: the human brain effectively shuts down the left ear when the quality difference between the two ears is too large.

For listening to music or phone conversations however, conduction based hearing might allow me to get a bit more of a stereo sound.

Time to find out which ones work for me and which don’t, so here are a few links that describe (lists of) potential devices:

  • [WayBack] Are bone conduction headphones good enough yet? – The Verge
  • Bone conduction headphones are the best and only true open ear headphones. They allow users to take calls or listen to music while still being completely aware of their surroundings. They’re an awesome alternative to traditional headphones.[WayBack] Best Bone Conduction Headphones of 2018: A Complete Guide –Everyday Hearing
  • The first and most important thing you should know is that bone conduction headphones are nowhere near traditional headphones (no matter if they are on-ear, over-ear, in-ear) when it comes to sound quality. Even those really expensive bone conduction headphones (AfterShokz Trekz Titanium and Trekz Air) are not as good as some average traditional headphones. So, if you are looking for high-fidelity sound, you are in the wrong place. Traditional headphones offer much better sound quality with much cleaner and punchier bass than bone conduction headphones. Bass response is probably the worst thing about bone conduction headphones.On the positive side, bone conduction headphones leave your ears open and allow them to breathe. If you can’t stand having your ears covered or having something inside your ear canal, bone conduction headphones might be the solution you’ve been looking for (the earpieces of bone conduction headphones usually rest on the temporal or lower jaw bones (mandibles), right in front of your ears).

    Because of this open-ear design, bone conduction headphones make you more aware of your surroundings. You will be able to hear all that’s going on around you while listening to music, and if that’s something you prefer, bone conduction headphones are the best choice.

    [WayBack] 9 Best Bone Conduction Headphones In 2018 – AudioReputation.com

–jeroen

Pictures from the Verge and Everyday Hearing

Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

SD cards solutions to add 256 gigabyte to your non USB-C Retina MacBook

Posted by jpluimers on 2018/06/12

I was asked what I used to extend my Retina Macbook storage. Mine still has an SD-card slot so the sit flush solutions below work fine.

I could have used USB-3 to micro-SD card adapters that sit flush.

There are no USB-C to micro-SD adapters that sit flush, so they do not work for more modern Retina MacBook devices.

Via: [WayBack] Haha wow. Apple announced new Macbook Pro’s just little over 6 months after they did the last models. And now you do get all the stuff you wanted back then… – Jeroen Wiert Pluimers – Google+ (except 32 gigabyte RAM, that’s for later).

Either [WayBackTranscend 256GB JetDrive Lite 360 Storage Expansion Card for 15-Inch MacBook Pro with Retina Display (TS256GJDL360)

Or the adapter [WayBack] BASEQI aluminum microSD Adapter for MacBook Pro 15″ Retina (Late 2013 onwards) and one of:

–jeroen

Read the rest of this entry »

Posted in Apple, LifeHacker, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »