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 4,262 other subscribers

Archive for October 28th, 2021

DELL fans use a different pin-layout than normal fans, so watch out before connecting them!

Posted by jpluimers on 2021/10/28

Some links on IBM X-series and DELL versus standard fan pin lay-outs (one day I will try to merge them into a better overview story):

  • [Wayback] 3 pin and 4 pin Fan Wire Diagrams | Cooler Master FAQ

    3 pin Fan Connections
    *cable coloring varies from fan to fan

    User-added image

    Pin Name Color Color Color Color
    1 Ground Black Black Gray Black
    2 +12v Red Black Gray Yellow
    3 Tach/Signal/Sense Yellow Black Gray Green

    4 pin Fan Connections
    *cable coloring varies from fan to fan

    User-added image

    Pin Name Color Color Color Color
    1 Ground Black Black Gray Black
    2 +12v Red Black Gray Yellow
    3 Tach/Signal/Sense Yellow Black Gray Green
    4 Control/PWM Blue Black Gray Blue
  • [Wayback] IBM X-series system fan connectors: sysxfanconn.png

  • [Archive.is] Solved: 780, CPU fan pin out – Dell Community
    Dell sometimes swaps the wires around so that you will fry a dell fan on standard and the other way round.
    It has 5 pins but only 4 wires are used.
    Dell does not publish this. And some dells use standard wiring.
    I believe this is correct.
    YMMV
    4PINS.png4pin PWM on 3 pin
    Dell MB
    Pin Number
    Function
    Dell wire color
    Std Fan
    Pin Number
    Std Fan wire color
    Description
    1
    Sens (TACH)
    White/Yellow
    3
    Green
    Sens (TACH)
    2
    +12v
    Red
    2
    Yellow
    +12v
    3
    Gnd
    Black
    1
    Black
    Gnd
    4
    PWM
    Blue
    4
    Blue
    PWM
    5
    Key
    unused
     
    DELLFANWIRES.pngDELL FAN WIRES AND COLORS

    [Archive.is] Solved: Fan pin out order – Dell Community

    The order is what is required for your specific model.
    I have seen no difference in the colors only the order of the pins.
    Note the Difference in this adapter.
    DELLFAN5.JPG
    So if your fan is NON standard you may need to remove the pins and re order them to be correct.  The fans are not any different only the wire order.
    Dell started making all the wires black so you cannot tell.  its not documented and its not the same on all dells all models all years.
    dell fans.jpgDELL VS INTEL FAN COLORSFANDAPTER.jpgDELL To Standard 4 pin adapterdellfanny2.jpgNote The KEYWAYdellfanny.jpgAnother ay to look at it
  • [Archive.is] Proprietary fan header issues – Dell Community
    Dell uses standard fans and the wires are swapped around in such a way that if you plug a standard fan onto the dell header you will fry the fan and the motherboard.
    None of this is documented.
    SOME models use standard wiring.
    Some Models use all black wires so you cannot tell.
    Dell Fan Wire  Black Red White or Yellow
    Dell 3 wire fan
    Dell 4 wire fan
    Dell 5 wire fan
    If you use adapter or re wire the standard fan to the way Dell does it there wont be any issues.
    Dell sometimes swaps the wires around so that you will fry a dell fan on standard and the other way round.
    It has 5 pins but only 4 wires are used.
    Dell does not publish this. And some dells now use standard wiring.
    I believe this is correct.
    YMMV
    4PINS.png4pin PWM on 3 pin
    Dell MB
    Pin Number
    Function
    Dell wire color
    Std Fan
    Pin Number
    Std Fan wire color
    Description
    1
    Sens (TACH)
    White/Yellow
    3
    Green
    Sens (TACH)
    2
    +12v
    Red
    2
    Yellow
    +12v
    3
    Gnd
    Black
    1
    Black
    Gnd
    4
    PWM
    Blue
    4
    Blue
    PWM
    5
    Key
    unused
     
    DELLFANWIRES.pngDELL FAN WIRES AND COLORS
    Dell does not use standard wiring or Pinouts on their fan headers.
    Dell fan wires are deliberately swapped round.
    PWM and Tach and 12v and Ground.
    For 3 wire they reverse 12v and tach. 
    Black Red White not
    Black White Red
    DELL3PIN.JPGDELL 3 PIN
    This can lead to self destruction for a dell fan on standard motherboard or the other way round.
    STANDARD.jpg
    This is the CPU FAN for Example.
    Dell MB
    Pin Number
    Function
    Dell wire color

    Pin #
    INTEL Fan wire color
    Description
    1
    Sens (TACH)
    White/Yellow
    3
    Green
    Sens (TACH)
    2
    +12v
    Red
    2
    Yellow
    +12v
    3
    Gnd
    Black
    1
    Black
    Gnd
    4
    PWM
    Blue
    4
    Blue
    PWM
    5
    Key
    unused
     
     
      
    DELLFANS.pngDELL FAN WIRING

–jeroen

Posted in Hardware, Power User | Leave a Comment »

On my list of things to try: Python with ESXi

Posted by jpluimers on 2021/10/28

After doing a lot of – historically grown – dash scripting for ESXi, I found out there is Python available on ESXi:

  • Python 3.5.10 on VMware ESXi 6.7.0 build-17700523 (VMware ESXi 6.7.0 Update 3)
  • Python 3.5.6 on VMware ESXi 6.5.0 build-13932383 (VMware ESXi 6.5.0 Update 3)
  • VMware 7: to be determined.

Yes I know that Python 3.5 is end-of-life (and 3.5.10 was the latest version), but it is a lot better than shell scripts.

So now some links for my list of things to try in order to use Python for scripting ESXi operations:

–jeroen

Posted in *nix, *nix-tools, ash/dash, ash/dash development, Development, Power User, Python, Scripting, Software Development | Leave a Comment »

One of the coolest Twitter bots commands: @AltTextCrew OCR please

Posted by jpluimers on 2021/10/28

Twitter account [Archive.is] @AltTextCrew is cool: it can OCR text from images, which is great for visually impaired people.

Just answer a tweet containing such an image and it replies with a series of tweets with the texts of that image.

@AltTextCrew OCR please

You can also have it check and analyse the links from a tweet, just reply this to that tweet:

@AltTextCrew analyze links

[Archive.is] @hbeckpdx is the driving force behind both @AltTextCrew and [Archive.is] @AltTxtReminder:

Edit 20220510: AltTxtReminder got open sourced!

Below are two examples of @AltTextCrew usage:

OCR

  • image: [Archive.is] databass 🏳️‍⚧️⚢ on Twitter: “@AltTextCrew OCR please… “

  • text: [Wayback] Thread by @AltTextCrew on Thread Reader App – Thread Reader App

    Text 1/5:
    CVE-2021-20022 Arbitrary file upload through post- authenticated “branding” feature Like many enterprise products with a web- based user interface, SonicWall Email Security includes a feature known as
    Text 2/5:
    “branding” which gives administrators the ability to customize and add certain assets to the interface, such as company logos. These branding assets are managed via packages, and new packages can be
    Text 3/5:
    created by uploading ZIP archives containing custom text, image files, and layout settings. A lack of file validation can enable an adversary to upload arbitrary files, including executable code, such
    Text 4/5:
    as web shells. Once uploaded, these branding package ZIP archives are normally expanded and saved to the <SonicWall ES install path>\data\branding directory. However, an adversary could place
    Text 5/5:
    malicious files in arbitrary locations, such as a web accessible Apache Tomcat directory, by crafting a ZIP

Link analysis

Explanation

I really want to know what programming languages, frameworks, libraries and APIs they use for this bot.

Edit 20211028:

It uses the Google Vision API, as Tesseract was too slow and inaccurate:

Edit 20211211:

Note that usually the text will be published in the alt tag of the images:

[Archive] Hannah Kolbeck 🏳️‍⚧️ on Twitter: “@jpluimers @AltTextCrew No, it always prefers to tweet images with alt text. Right now if the ocr result from the targeted tweet is too long to fit in 4 images worth it will fall back to posting a thread.” / Twitter

–jeroen

Read the rest of this entry »

Posted in OCR, Power User, SocialMedia, Twitter, TwitterBot | Leave a Comment »