Categories
MacBook Air MacOS

MacOS 10.10 & DNS

(Questo non è un post ma un appunto per me stesso)

Se il client DNS di MacOS inizia a fare le bizze interrogando un DNS server (sperimentato tutte le volte su DNS Server Microsoft) allora è il caso di dargli una sveglia:


sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

Fonte: http://apple.stackexchange.com/questions/26616/dns-not-resolving-on-mac-os

Categories
Questo sito

Cookies

512px-Chocolate_Chip_Cookies_-_kimberlykv

Questo sito usa Google Analytics per acquisire informazioni importantissssssime sui visitatori.

Se non vuoi essere tracciato esci immediatamente da questo sito e non farci più ritorno!
L’autore di questo blog ritiene che la Cookies Law sia una cosa stupida ed inutile inventata da qualcuno che usa Internet Explorer per navigare regolarmente e che di computer non capisce molto.

 

Categories
Coding tips

Zucchero sintattico

In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express. It makes the language “sweeter” for human use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer.
Fonte: Syntactic Sugar su Wikipedia

Quando si riprende in mano del codice dopo anni che è stato scritto o quando si lavora in team è veramente importante che la sintassi usata sia la più “zuccherata” possibile.

Spesso nel mio lavoro perdo una quantità considerevole di tempo a cercare di capire cosa fa una porzione di codice perché non è stata commentata o perché il programmatore (molto spesso io stesso) ha cercato di scrivere meno linee possibili omettendo parentesi o inserendo due istruzioni sulla stessa riga.

La qualità del codice scritto dovrebbe essere anche valutata in base a quanto risulta semplice riprendere in mano il codice.

Cosa fare quindi?

Categories
Apple MacBook Air MacOS Sistemi Operativi

J5create JUA310 & OS X 10.10 Yosemite

Yosemite Mission ControlI couldn’t wait to upgrade my MacBook Air Mid2013 to OS X 10.10 and that was a little mistake because I didn’t check if all my devices had the drivers ready for Yosemite.

Everything went well except for my J5Create USB3 to VGA adaptor that allows me to enjoy a 3 screens setup: some parts of Yosemite’s UI (eg: Mission Control ) become so laggy I couldn’t use my computer.

Keeping the drivers up to date did not resolve the issue ( I am writing this post on 15th Jan 2015 ) so I had to find a workaround to maintain my 3 screens setup.

Here’s my workaround:

  1. I disabled the Window Trasparencyhttp://www.howtogeek.com/199201/how-to-disable-window-transparency-in-os-x-yosemite/
  2. I disabled the animation of Mission Controlhttp://osxdaily.com/2012/02/14/speed-up-misson-control-animations-mac-os-x/

Those are not a solution to the problem but at the moment my setup is usable and I am pretty much happy.

Upgrading to Yosemite anyway is worth for the new features.

Categories
Apple MacBook Air tecnologia

Apple Macbook Air 2013 w/ 2 external Monitors

2013 Macbook Air w/ 2 external monitors
2013 Macbook Air w/ 2 external monitors (sorry for the blurry picture)

Left monitor: ASUS VE228 connected with an Apple Mini DisplayPort to VGA Adapter to the Belkin Thunderbolt™ Express Dock

Right Monitor: ASUS VH228 connected with a J5create JUA310 USB 3.0 VGA Display Adapter to the Belkin Thunderbolt™ Express Dock

Schermata 2014-04-03 alle 08.50.37
This is the actual configuration as seen from the Mavericks’ Monitor proprieties

Known Issues:

  1. When the Belkin Dock is exposed to direct sun light my MBA sometimes has kernel panics caused by the heat.
  2. The VE228 doesn’t work correctly in the fullHD resolution but I am going to have it changed as soon as possibile.
  3. I guess the MBA is at its limit: Mission Control is a bit laggy over the three monitors but during my daily working routine I don’t experience any other issue.
  4. The cables! It is nice to have one single thunderbolt cable connected to my MBA but behind it it’s mess!

    Cables everywhere!
    Cables everywhere!