Coding with Titans

so breaking things happens constantly, but never on purpose

Enable Android Emulator on Windows 10 Hyper-V

During installation of Android Studio we usually end-up with Android Emulator using Intel HAXM. This is still pretty good virtualization platform. Unfortunately might lead to a clash, since only one virtualization technology could be used at a time. And if you continue using Docker for Windows or any other Hyper-V based virtual machine with Linux system, something will not work (depending, what was launched first). Fortunately Microsoft solved this problem with 1803 release for Windows 10. Read more →

Raspberry Pi 3 and QEMU

At first glance, it seemed to me to be a really easy task. Install QEMU for Windows, download latest Raspbian and run! Unfortunately after whole evening of tries I still fail to have it usable anyhow. Maybe it’s not totally not running, but still it’s pretty useless in terms of any further development of application without a device. Simply, at current state (as of 2018-02-18) of QEMU, it doesn’t support emulation of the USB controller, and since the whole network relays on it, there are huge connectivity issues (no network interface at all, so no SSH, no tools installation, no file transfers neither). Read more →

Wake-on-LAN from Raspberry Pi and Synology NAS

Some time ago I have written a post about, how to setup Windows 10 to wake it up remotely via network using magic packet. The question that remained unanswered is: how to actually send this packet to the PC to trigger it running. In the first example I will use Raspberry Pi with Rasbpian Stretch Lite installed: First make sure a tool etherwake is available. If not, this could be fixed with following command, otherwise skip this step: sudo apt-get install etherwake Then simply invoke it with proper arguments: sudo etherwake –i <ethernet-interface-name> <PC MAC-address> Some explanations: Read more →

HowTo: Split web.config file

Among all the features of ASP.NET framework, there is one I love the most: moving parts of the configuration (i.e. Web.config) into separate files! It’s just it, a little something, that makes life so much easier by: less effort while working with GiT (conflicts are subtle and with better context, changing braches mostly let you move also your local changes, or reset parts of it) quicker navigation, as they are files with my custom naming convention (via R# hit Ctrl+T and start typing the name using only first uppercase letters of the file to open it) custom sections can also be put in an another file. Read more →

HowTo: Setup SSIS project to build via TeamCity

It should be simple, it should be quick. And as usual it turned out to be hard, painful and forced me to install Visual Studio 2017 back on a build machine. I’ve cried a lot that hour. Now I am just waiting, what will fail next, once I see this comment in TC build logs, even though I logged-in and obtained permanent license. [13:05:08][Step 3/3] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script5352870621326270693.cmd [13:05:08][Step 3/3] in directory: C:\TeamCity\buildAgent\work\2906b7d01f979ef5[13:05:12][Step 3/3] [13:05:12][Step 3/3] Microsoft Visual Studio 2017 Version 15. Read more →

HowTo: Custom fields in ApplicationInsights

Recently, I have shown, how to enable Application Insights within own WCF server application (look here). It might similarly work in other kinds of apps, so we won’t bother with further demystification of this procedure. But as you might suspect (or already stepped on), you will quickly require more metadata transmitted than it is done by default. My scenario is pretty simple. The WCF server is installed multiple times, in multiple physical locations across the whole country. Read more →

Triki z GIT: zdalne repozytorium SVN

Kolejną ciekawostką, którą chciałbym omówić są zdalne repozytoria i dostęp do nich. O ile są to repozytoria tego samego typu (czyli np. Subversion połączone z Subversion – jako externals, czy Git pracujący z Gitem – jako submodules), to nie ma to większego znaczenia i obsługa jest bezproblemowa. Ciekawsze są oczywiście krzyżówki. Jeśli przyjrzymy się bliżej pracy w Git, który musi korzystać z zewnętrznego repozytorium Subversion, to już wcale nie musi wyglądać prosto. Read more →

Triki z SVN: Przyjaciel Pacz (patch)

Czasem zdarza się sytuacja, w której ktoś, kto ma dostęp tylko do odczytu do naszego repozytorium SVN, chciałby w nim coś jednak zapisać. Udało mu się (lub jej) rozwiązać jakąś usterkę czy problem, albo usprawnić działanie. Moglibyśmy w tym miejscu dodać uprawnienia do zapisu i byłoby po sprawie. Jednak czy na pewno? Zawsze jakieś “ale”! Z czegoś wynikał przecież fakt, że ów użytkownik nie posiadał pełni praw. Czy wspomniana zmiana ma w ogóle sens i czy w ogóle istnieje? Read more →

Triki z SVN: łatwy dostęp na Windows

Kontynuując post o samym tworzeniu repozytorium i dostępie do niego z poziomu terminala Linuxa, warto też wspomnieć, że tak samo łatwo skonfigurować go można na Windowsie. Otóż tunel ssh definiujemy w sekcji [tunnels] pliku (ścieżka dla Windows 7): C:\Users\<użytkownik>\AppData\Roaming\Subversion\config Wygląda on mniej więcej tak: ssh = "C:/Programy/Putty/plink.exe" –P <port SVN> –l <użytkownik> –i "C:/Users/<użytkownik>/.ssh/id_rsa" Wyjaśniając: Przy użyciu programu plink (wchodzącego w skład ‘paczki’ putty, którą trzeba pobrać i zainstalować wcześniej), utrzymywane będzie połączenie ssh do serwera. Read more →

Triki z SVN: Przenoszenie repozytorium na OpenWRT

Na szczęście autorzy Subversion przewidzieli, że potrzeba czasem przenieść repozytorium z jednej lokalizacji do drugiej z zachowaniem pełnej historii. Pobieramy i zapisyjemy w pliku ‘repo.dump’ istniejące rewizje poleceniem: svnadmin dump <ścieżka_do_źródłowego_repozytorium> > repo.dump Na ekranie zobaczymy postęp w formie: * Dumped revision 0. * Dumped revision 1. * Dumped revision 2. * Dumped revision 3. * Dumped revision 4. * Dumped revision 5. * Dumped revision 6. * Dumped revision 7. Read more →