The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

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

    Join 1,854 other subscribers

Archive for 2017

Some git links that helped me

Posted by jpluimers on 2017/08/08

For my link archive:

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

If you ever wonder why you get no (or incomplete) RTTI from a control that you…

Posted by jpluimers on 2017/08/08

Thanks Stefan Glienke for posting this a while ago:

If you ever wonder why you get no (or incomplete) RTTI from a control that you inherited from a DevExpress one – then look into cxVer.inc where it has the following lines:

{$IFNDEF CXTEST}
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) FIELDS([]) PROPERTIES([])}
{$ENDIF}

+Martin Wienold was wondering (and so was I at first) why he could not properly resolve a form from the DI container that inherited from TdxRibbonForm despite writing a public method with [Inject] attribute on it but it was never called.

Warning: If you are using DevExpress or any other source code that does this (changing the $RTTI directive) and build these sources together with your application (in contrast to using precompiled dcus or even packages) on a version <XE6 then you might suffer from this issue: [WayBack] #79943: {$ RTTI} flag scope which causes RTTI to disappear even from units that did not have the $RTTI in them.

Source: If you ever wonder why you get no (or incomplete) RTTI from a control that you…

 –jeroen

Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Delphi 2009, Delphi 2010, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, QC, Software Development | Leave a Comment »

Photographer captures Miami Beach air show with Nikon 800mm and custom rig

Posted by jpluimers on 2017/08/07

Cool pictures and ditto rig via:

–jeroen

Posted in About, LifeHacker, Personal, Photography, Power User | Leave a Comment »

ssl/ssh multiplexer

Posted by jpluimers on 2017/08/07

sslh accepts connections on specified ports, and forwards them further based on tests performed on the first data packet sent by the remote client.

Probes for HTTP, SSL, SSH, OpenVPN, tinc, XMPP are implemented, and any other protocol that can be tested using a regular expression, can be recognised. A typical use case is to allow serving several services on port 443 (e.g. to connect to ssh from inside a corporate firewall, which almost never block port 443) while still serving HTTPS on that port.

Hence sslh acts as a protocol demultiplexer, or a switchboard. Its name comes from its original function to serve SSH and HTTPS on the same port.

sslh supports IPv6, privilege dropping, transparent proxying, and more.

Interesting…

–jeroen

Posted in *nix, https, Linux, OpenSSL, OpenVPN, Power User, Security | Leave a Comment »

sleep wake – Macbook Air – battery drains while sleeping (but not when shut down) – via: Ask Different

Posted by jpluimers on 2017/08/07

I had the same issue as in sleep wake – Macbook Air – battery drains while sleeping (but not when shut down) – Ask Different which suddenly introduced itself in April 2016 after I had been running El Capitan (OS X 10.11) for a while.

The Mac didn’t have PowerNap active as I verified using How Power Nap works on your Mac – Apple Support

At first it looked like an SMC reset worked as explained by Reset the System Management Controller (SMC) on your Mac – Apple Support and mentioned in Mac Air loses 90% of battery overnight when in … | Apple Support Communities.

The Mac is indeed running Chrome, but I don’t like to turn that off before sleeping.

Executing pmset -g would show hibernatemode 3.

So I opted for the hibernate option as mentioned in the first link:

sudo pmset -a hibernatemode 25

This will take a bit longer to restore the memory from hibernate state, but saves a lot of frustration.

–jeroen

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

Vier 3d-printers van ongeveer 300 euro – Conclusie – Round-up – Tweakers

Posted by jpluimers on 2017/08/05

Eerder dit jaar testen we 3d-printers die voor minder dan 1000 euro te koop zijn. Het kan echter nog goedkoper. Dit keer testen we vier 3d-printers die ongeveer 300 euro kosten.

Source:[WayBack]  Vier 3d-printers van ongeveer 300 euro – Conclusie – Round-up – Tweakers

Posted in 3D printing, Development, Hardware Development, Power User | Leave a Comment »

Remember when G+ search was useful? It again is.

Posted by jpluimers on 2017/08/04

The big G+ news this week was that they brought back search, years after they made the G+ search useless, so jokes like at [WayBackIkey Doherty – Google+ “Remember when G+ search was useful?” finally can be left behind us.

Now that they finally made it useful again, I’m happy with it.

A few example searches to get the hang of the URL syntax:

News sources:

  • [WayBackKristian Köhntopp – Google+: I would not have thought it possible, but after just several years of user feedback Google actually unfucked the search. It’s almost as awesome as their adblocker – absolutely essential, but too little, too late.
  • [WayBackJaana Nyström – Google+: WOOHOOOOOO! The Classic Google+ style search is back! Now one can again search their own posts, even hashtag search works better. Top post vs. latest function, too. ❤️
  • [WayBackRoderick Gadellaa – Google+: #thatsaplus
  • [WayBack] Anna Kiyantseva – Google+: …we’re rolling out a bevy of improvements to G+ Search — most visibly, you’ll find that typing into the search bar no longer interrupts your search attempts by taking you to Explore. That means that your results get to you that much faster!That’s not all…
    • A new, tabbed interface will make it easier for you to find the exact type of content that you’re looking for.
    • In the posts tab, you can filter based on the post author. Finally, you can look back at your many years of G+ posting without being distracted by everyone else’s Neko Atsume updates!
    • Popular Topics are now displayed in the search bar dropdown.As always, let us know what you think and we hope you enjoy!

–jeroen

Read the rest of this entry »

Posted in G+: GooglePlus, Google, Power User, SocialMedia | Leave a Comment »

T568A and T568B termination – TIA/EIA-568 – Wikipedia

Posted by jpluimers on 2017/08/04

Note to self: looking at the various patch cables, it looks like most manufacturers prefer T568B over T568A. Not sure why. I adopted T568B to avoid any confusion.

As I always forget the images on FTP/STP/UTP wiring in both connectors and outlets and forget which standard is T568A and T568B: T568A and T568B termination – TIA/EIA-568 – Wikipedia:

Pin T568A Pair T568B Pair 10BASE-T 100BASE-TX 1000BASE-T Signal ID Wire T568A Color T568B Color Pins on plug face (socket is reversed)
1 3 2 TX+ DA+ tip Pair 3 Tip
white/green stripe
Pair 2 Tip
white/orange stripe
Rj45plug-8p8c.png
2 3 2 TX- DA- ring Pair 3 Ring
green solid
Pair 2 Ring
orange solid
3 2 3 RX+ DB+ tip Pair 2 Tip
white/orange stripe
Pair 3 Tip
white/green stripe
4 1 1 DC+ ring Pair 1 Ring
blue solid
Pair 1 Ring
blue solid
5 1 1 DC- tip Pair 1 Tip
white/blue stripe
Pair 1 Tip
white/blue stripe
6 2 3 RX- DB- ring Pair 2 Ring
orange solid
Pair 3 Ring
green solid
7 4 4 DD+ tip Pair 4 Tip
white/brown stripe
Pair 4 Tip
white/brown stripe
8 4 4 DD- ring Pair 4 Ring
brown solid
Pair 4 Ring
brown solid

Note that the only difference between T568A and T568B is that pairs 2 and 3 (orange and green) are swapped.

For cross-over cables (used less and less because of Auto MDI-X which is standard in 10000BASE-T) this is slightly different Appendix B: Ethernet Crossover Cables – Configuring and Troubleshooting Ethernet 10/100/1000Mb Half/Full Duplex Auto-Negotiation – Cisco [WayBack]:

Four Twisted-Pair Crossover Cable Schematics for 10/100/1000 and 1000BASE-T GBIC Module Ports

3a.gif

3c.gif

There are some nice colour coded wiring diagrams at Tech Stuff – LAN Wiring and Pinouts [WayBack] for both straight wiring [WayBack] and crossed wiring [WayBack]:

All work fine for CAT5, CAT5E and CAT6.

–jeroen

Posted in Ethernet, Network-and-equipment, Power User | Leave a Comment »

Fix Apple TV No Sound Issue – AppleTV2

Posted by jpluimers on 2017/08/04

The first method I try for any Apple TV issue is to reset the device (Hold the Play & Menu button simultaneously on the remote for 6 seconds)

Source: [Wayback] Fix Apple TV No Sound Issue – AppleTV2

This usually works for me too and is easier/faster than fiddling with the solutions mentioned at Wayback: Apple TV: HDMI audio stops working – Apple Support (which now has moved to [WaybackGet help with audio, video, or power on Apple TV – Apple Support).

After releasing Play&Menu buttons, wait for the Apple TV to reboot itself and listen if your remote-buttons will give you audio-feedback from the Apple TV. If that works, then audio on multi-media works fine too.

This is way cheaper than putting additional hardware in the HDMI chain as described in [WaybackThe fix for AppleTV HDMI audio and video woes and HDMI problem solving | The Poor Audiophile

In my setup the [WaybackApple TV 3rd generation is hooked up to a [WaybackHarman Kardon BDS 580 receiver/blue-ray-player.

–jeroen

Posted in Apple, Apple TV, Audio, BDS580, Hardware, Harman Kardon, Home Audio/Video, iOS, Media, Power User | Leave a Comment »

Some more Continua CI links

Posted by jpluimers on 2017/08/03

For my link archive:

–jeroen

Posted in Uncategorized | Leave a Comment »