iMah replacement battery for Macbook Air (System Information dump)

Long story short – it works perfectly in my 2012 Macbook Air (Ivy Bridge).

This is a System Information dump.

Original battery:

Battery Information:

  Model Information:
  Serial Number:	D8623030D0XDKRNAN
  Manufacturer:	SMP
  Device Name:	bq20z451
  Pack Lot Code:	0
  PCB Lot Code:	0
  Firmware Version:	406
  Hardware Revision:	000a
  Cell Revision:	162
  Charge Information:
  Charge Remaining (mAh):	0
  Fully Charged:	No
  Charging:	Yes
  Full Charge Capacity (mAh):	3255
  Health Information:
  Cycle Count:	331
  Condition:	Service Battery
  Battery Installed:	Yes
  Amperage (mA):	187
  Voltage (mV):	7876

System Power Settings:

  AC Power:
  System Sleep Timer (Minutes):	0
  Disk Sleep Timer (Minutes):	0
  Display Sleep Timer (Minutes):	0
  Wake on AC Change:	No
  Wake on Clamshell Open:	Yes
  Wake on LAN:	Yes
  AutoPowerOff Delay:	14400
  AutoPowerOff Enabled:	1
  Current Power Source:	Yes
  DarkWakeBackgroundTasks:	1
  Display Sleep Uses Dim:	Yes
  Hibernate Mode:	3
  PrioritizeNetworkReachabilityOverSleep:	0
  Standby Delay:	4200
  Standby Enabled:	1
  Battery Power:
  System Sleep Timer (Minutes):	10
  Disk Sleep Timer (Minutes):	0
  Display Sleep Timer (Minutes):	5
  Wake on AC Change:	No
  Wake on Clamshell Open:	Yes
  AutoPowerOff Delay:	14400
  AutoPowerOff Enabled:	1
  DarkWakeBackgroundTasks:	0
  Display Sleep Uses Dim:	Yes
  Hibernate Mode:	3
  Reduce Brightness:	Yes
  Standby Delay:	4200
  Standby Enabled:	1

Hardware Configuration:

  UPS Installed:	No

AC Charger Information:

  Connected:	Yes
  ID:	0x0921
  Wattage (W):	60
  Family:	0x0085
  Serial Number:	0x00f02236
  Charging:	Yes

iMah battery:

Battery Information:

  Model Information:
  Serial Number:  W01107AW7D3BA
  Manufacturer: iMah
  Device Name:  A1405
  Pack Lot Code:  3230
  PCB Lot Code: 30db
  Firmware Version: ddae
  Hardware Revision:  dac2
  Cell Revision:  2b39
  Charge Information:
  Charge Remaining (mAh): 5124
  Fully Charged:  No
  Charging: No
  Full Charge Capacity (mAh): 7355
  Health Information:
  Cycle Count:  1
  Condition:  Normal
  Battery Installed:  Yes
  Amperage (mA):  -1753
  Voltage (mV): 7780

System Power Settings:

  AC Power:
  System Sleep Timer (Minutes): 0
  Disk Sleep Timer (Minutes): 0
  Display Sleep Timer (Minutes):  0
  Wake on AC Change:  No
  Wake on Clamshell Open: Yes
  Wake on LAN:  Yes
  AutoPowerOff Delay: 14400
  AutoPowerOff Enabled: 1
  DarkWakeBackgroundTasks:  1
  Display Sleep Uses Dim: Yes
  Hibernate Mode: 3
  PrioritizeNetworkReachabilityOverSleep: 0
  Standby Delay:  4200
  Standby Enabled:  1
  Battery Power:
  System Sleep Timer (Minutes): 10
  Disk Sleep Timer (Minutes): 0
  Display Sleep Timer (Minutes):  5
  Wake on AC Change:  No
  Wake on Clamshell Open: Yes
  AutoPowerOff Delay: 14400
  AutoPowerOff Enabled: 1
  Current Power Source: Yes
  DarkWakeBackgroundTasks:  0
  Display Sleep Uses Dim: Yes
  Hibernate Mode: 3
  Reduce Brightness:  Yes
  Standby Delay:  4200
  Standby Enabled:  1

Hardware Configuration:

  UPS Installed:  No

AC Charger Information:

  Connected:  No
  Charging: No

Chungking Express (1994) Review

I watched Chungking Express.

atstore
I’m in Germany, but the fundamentals of life are such they cannot be removed.

I see myself in the protagonists, and I see my ex in it too.

It seems like there is so much more to say, but there isn’t really.
playing
Everybody’s experienced it before. Everybody already knows why things play out the way they do.

All we can do is steep in our implicit mutual understanding.

brushingteeth
Ebert thinks it isn’t about the story, it’s about Wong Kar Wai playing Jean Luc Godard. Yes, it has a French plot, which is to say it goes nowhere. But to say that this movie is mainly a style exercise, with the plot just being there to fill things out, is ridiculous.

Everybody wants to tell their own story. We just want to express it in a cool way.

Why I Can’t Take Feminists Seriously

As I went jogging I happened upon the local art school. I was always curious what sort of art they taught in Berlin, so I went in and took a look.

drawingboundaries
Stay away from me! You pervert! You predator! You dangerous thing you!
scissors
Undocumented sex workers won’t get protected by the police; 8% of women report to the police, only 3% acknowledged: the police support sexual violence!
shame
You should be ashamed of yourself! You’re too close!
proximity
My goodness, I’m such a Predator.

As a guy who used to be terrfied of women I was attracted to, I find this ridiculous. I used to “respect their boundaries” a lot. Let me tell you how that worked out: NOTHING HAPPENED.

In fact, the girls I liked never even noticed me, precisely because I didn’t do jack shit.

I never wanted to be the one to make the first move. But I had to. Because women wouldn’t do it for me.

And these women, who obviously don’t know what it’s like to actually find a partner, are trying to shame men.

Are they going to make the first move then?

No.

Are they willing to risk getting rejected or embarrassed?

No.

They don’t even know what it’s like to put yourself out there and get waved away like a fly, because society dictates that men should make the first move. They just gather around reciting rape stats.

Why are only 3% of rape cases acknowledged? Maybe it’s because today’s women love making false rape claims?

Sure, now and then there’s a guy who doesn’t know what to do with his sex drive. Not everybody can be an expert. That’s when women should be graceful.

Don’t know what that means? It means deflect, don’t punch back. Reject immediately, yet kindly and with compassion.

For men are supposed to be strong, thus women should be loving and gracious. How else is one supposed to become the amazing Mr. Right that swoops her off her feet? Mr. Rights don’t grow on trees.

This was the only one I agreed with
This was the only one I agreed with

It seems school was out, but as I walked around I saw two women conversing under a tree. As I walked closer to them, I saw the way they looked at me, how they were pushing me away with their eyes.

You could tell from their skin that these women had been marinating in smoky bars for far too long, yet if you asked them their age they might not even have hit 40.

I have no idea how women of such spiritual and physical beauty could possibly get laid.

Perhaps male feminist supporters line up meekly, waiting to be admitted into the privileged realm of their sourpussies.

Perhaps most of them converted into lesbianism.

All I know is, there were no signs of any males at that art school. Guess they like it that way.

Lessons From Having My Bag Stolen

  1. You’re gonna feel like a chicken who’s lost its head. Keep calm and carry on. Immediately think of how to replace stuff.
  2. Wallet
    The wallet is not that important. You can lock and reorder every card within an hour or two, and you shouldn’t be walking around with more than 50EURs in cash anyway. The ID, however, can cost you time and money.
  3. Smartphone
    The smartphone is very important. Consider the amount of time it’ll take to earn the money required for a replacement, and setting it up with all your accounts (this takes me several hours). Also, your embarrassing naked photos are now public (not that I had any).
  4. Keys
    The keys are of utmost importance. You might have to jump through some hoops to copy the keys, and what would the landlord say? If there is any way to trace the keys to your place, there is now the possibility that someone can just walk in and walk out with something valuable.
    And if you didn’t give a friend a spare key, you just got locked out. That’s seriously inconvenient.
  5. Laptop
    I didn’t lose my laptop, but if I did, it would’ve been game over for me. It would be like losing the smartphone but 5 times worse, since I’m a programmer and setting everything up could take days.

When I got my wallet back, I wasn’t jumping up and down for joy. Everything had been locked and re-ordered, and the cash being completely emptied was to be expected. Instead, I was hoping to match some fingerprints on it, but as it turns out getting fingerprints from leather is hard enough that the police don’t want to do it over petty theft.

I suspect that they treat burglaries only slightly above petty theft, too. Murders, now that might cook their cockles. Murderers and escaped convicts

The policeman who filed the police statement wasn’t particularly enthused either. In fact, he seemed positively miffed that he had been singled out to file my statement. For a little under 3000EUR a month, he had better things to do than office work (but I suppose it beats getting shot at for that salary). The Berlin police are the worst paid police force in all of Germany.

In conclusion: the wallet is, contrary to popular opinion, not that important! Lock your cards with the hotline (in Germany it’s 116-116) and forget about it. Go shopping for a new one, it’s fun.

Infrastructure-related belongings are much more important, and cost more time and energy (potentially money as well) to replace.

On the importance of mindset

Something has changed in me. I was able to calm down quickly, assess the situation, reframe it positively, and quickly shift into “okay, now what” mode. Getting my brain to do this was not easy. It has been a 2 year long struggle at least.

I admit, I read and was applying mindset before Mike Cernovich’s Gorilla Mindset. But I have to say, that book has definitely helped. Reading it is easy. Applying its lessons will take years. It is not easy to reprogram your mind, because there is nothing that can help you fight it but yourself.

Tell Your Brain to Shut The Fuck Up

You’re on your last set. Your muscles are screaming, sweat is dripping into your eyes, and your brain is telling you “you’re already lifting more than last week. You can call it quits here!”

Tell your brain to shut the fuck up. Shut. The. Fuck. Up.

You’re walking across the street. She’s got legs anybody would kill for. Your brain says, “she looks like she’s heading someplace, let’s not bother her”.

Tell your brain to shut the fuck up.

Don’t listen to the voice. You give in once, it’s a slippery road down to mediocrity.

You’re tired. The networking event has dragged on far too long. You can’t wait to go home and relax. “I already got 5 contacts, that’s pretty good ain’t it?”

Shut the fuck up. You know damn well how to make friends. Be interested, provide value. If you can’t be witty, you can at least damn well be chill.

Shut the fuck up. Just do it.

Why I switched from Android to iOS

My LG G5 got stolen by a beggar in a leather jacket (but that’s not why I switched).

g5-box-desk
Rest in peace, my beloved G5.

I keep the box on my desk to remind myself not to be so fucking stupid again.

The truth is, the camera wasn’t perfect. I dreamt of making it a mini-computer on the go, with a Bluetooth keyboard, Termux with so many packages installed, but then I realized:

I don’t want to see such little but important details being fucked up again.
I don’t trust that I’ll get Android updates in the future, and I don’t want to deal with custom ROMs anymore, because I don’t want my phone to be like a computer.

While I was back on my HTC, trying to run a recent version of Android (4.2) without crashing…

I saw my dad with his iPhone 4 running iOS 7. It’s slow, and the camera isn’t impressive. But the photos never had issues. The camera always takes a photo within 300ms, whether or not it is in focus. It is slow because of iOS 7, not because someone forgot to program TRIM support into the kernel (thank you Android!). And there’s still app support for iOS 7, so he can use it today.

I saw my friend with his iPhone 5, which came out the same year as my HTC One S. It runs the latest version of iOS, runs Google Maps faster than my phone, can even play Pokemon Go and run the number26 app (required to have a bank account with number26).

I bought an iPhone 5S for 260EURs. As of 2016, I estimate it has at least 3 more years of useful life left. The camera is still miles ahead of the Nexus 5X or 6P – it starts faster, burst mode is incredibly fast, and you don’t have to install another app for that. I only wish I had bought this phone in 2013.

The LG G5’s camera isn’t perfect

Now although the G5 can take great photos, and the wide angle is truly useful:
franzi-fluchtling

Franzi IKEA

I still found many things wrong with it:

  1. In darker situations, the noise reduction is way too strong, making the photo look like a watercolour (the wide angle needs more light than the main camera). This is what I’m talking about:
    20160517_212214 lowlight near home 1 20160517_212516 lowlight near home 2
    Videos are the worst. Here’s an uncompressed still from a video quality comparison I made:

    lgcam
    LG’s Camera app
    opencamera
    OpenCamera

    The noise reduction algorithm is the same (because they both use Qualcomm’s ISP), it’s just dialed down in OpenCamera. You can see the texture on the white wall now. The pillows look better. The texture on my dad’s underpants looks better. And despite what it looks like, my dad was not moving his arm in the first picture. Just look at the file sizes. The first is 820kB, the second is 1.8MB because it contains way more information.

  2. LG’s Camera app only lets you take photos at full-res 16MP. I can’t believe nobody noticed this. I don’t want 3-5MBs of watercolour! In fact I don’t want to spend 3-5MB on each photo, period! In the end I had to write a python script to do the resizing.
  3. It’s still slow to focus like a normal smartphone because it doesn’t have PDAF, or phase-detect autofocus. At this price range, it’s inexcusable. The Galaxy S7 is freaking fast. The iPhone 6 is second place. If my girlfriend makes a funny face, I don’t have 500ms to wait for the phone to focus.
  4. Burst mode does not work in Manual mode. Why? The Galaxy S7 can do this.
  5. The volume-down shortcut to quickly launch the camera is great – but LG uses the proximity sensor so it doesn’t launch if the G5 thinks it’s in your pocket, so you can’t ‘preload’ the camera in your pocket. There’s no need for this. The volume buttons are hard to accidentally press in your pocket anyway.
  6. I can’t change the volume button shortcuts!

Getting Django easy-select2 to include JQuery and friends

Select2 is how you get boring dropdown lists:
dropdown

to look like this:
select2

And django-easy-select2 is a little Django app that quickly turns that on for whatever widgets in your form you choose.

  1. Add easy_select2 to INSTALLED_APPS
  2. In your forms.py:
    from easy_select2.widgets import Select2, Select2Multiple
    When using the widget, don’t just use the class name, provide an instance, like Select2()

If only it were that easy. The documentation for easy-select2 forgot to mention:

  1. Include {{ form.media }} in the head section of your template

Otherwise jQuery and the other magic stuff that actually does the list hiding and searching/whatever doesn’t actually load in the browser.

Upcoming Book: Linux Tutorial for Normal People

linux-tutorial.tech

For the past month I’ve been hard at work writing a Linux tutorial. What, you say? Aren’t there enough Linux tutorials out there, the Linux Documentation Project, the installation guides etc? And wait, who are you to teach anything? And what, I have to pay for it?

Yes, there are many guides out there that can teach you about Linux for free. But none of them tell you why things are so, how they came to be this way, and what’s the rationale for doing things this way. The worst ones just tell you what to type at the terminal.

Not to mention, which of these would you sit down and read if you were bored? None of them, that’s what. You’d only read them if you wanted to install Linux.

So this pet project is my challenge – to take everything I know about computers and write about it in an interesting way.

I’ve already put the first few chapters up for free, so you can decide for yourself if you like the way I explain things. Later on I will release the ebook that explains networking and how to host your own site with WordPress, as well as how it all works internally.