Win
windows shell: some sleep-replacement
Ok, “wait” does not exist and “sleep” as well too.
Then there is the infamous ping-trick:
1 |
ping 127.0.0.1 -n 1 -w 1000 > NUL |
But the solution is:
1 |
timeout /nobreak /t 3 |
collection of hints for the easier use of cygwin
some better package-manager than via that set-up.exe: apt-cyg!
url: https://github.com/transcode-open/apt-cyg
=================================================
make shell-scripts runnable under Win (7):
add to the first line after “#!/bin/bash”
1 |
(set -o igncr) 2>/dev/null && set -o igncr; |
else you get the error message that “\r” is not a command … ha
=================================================
how to use proxy for firewalled use:
1 |
export http_proxy=http://username:password@host:port/ |
Maybe more will be added. All just small, but fixing tricky
create win7-usb-drive under Linux
Ok, first I squashed the only computer with a cd-burner. Installed Linux Mint 18.1. Everything perfect, went on to install VirtualBox and then Win7 as guest. Ran some checks while waiting. Noticed that in 2016 NO VIRTUALISATION solution SUPPORTS IEEE1394!
Ok, then just install Win7 again. Noticed I can’t find my burned install-DVD, had just an ISO.
# format usb-drive as NTFS
# download Unetbootbin as special version: allows to select NTFS- and other partitions
# select ISO, hook “show partitions”, select /dev/sdb or whatever it is
# plug out, plug in, start, select boot device, install … wait over 9000! hours.
Mixing SVN and Git
When you join a new team, you don’t enforce your view of best tools of trade – instead you adapt to the new environment. Even if that means that you have to switch from your favorite CVS (Git) to something you used last time in 2008 (Subversion) …
I am aware, that the Git-client is fully backward-compatible to SVN and also able to do the most common tasks. But for me it was the branching model, the stashes and also the GUI from SmartGit, which lead me to the idea: why not mix both version-controls in one directory?
steps:
- clone the repository via SVN (TortoiseSVN)
- run
$ git init
- add the following stuff to your
.gitignore
:
1234567891011121314### own #### ignore subversion subdirectories for no conflicts.svn# temporary files and stuff from Qt/target/tmp/*.vcxproj*.vcxproj.filtersmoc_*.cppui_*.h*_moc.cpp*_res.cpp### from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore ##### Ignore Visual Studio temporary files, build results, and files generated by popular Visual Studio add-ons.[..] - add the following exclusions to your
TortoiseSVN > Settings > General > Subversion > Global ignore-pattern
:
1.gitignore .git - stash, branch, stage as much as you want – use TortoiseSVN for the final commit, which should be published to the team
I use this set-up now for some weeks and it works. Saved me lots of hassles. Because I have not figured out (yet?) how to create local “mile-stones” as safety-backup with SVN.
CoTli: improved bot-version
edit 20160724: released version 0.4 of the bot. Clicks, collects and upgrades now the main-character (and every once in a while all other cursaders) – automatically! 🙂
Latest release as always on github.
Read more…
Crusaders of the lost idols
edit 20160718: Improved the bot & made it available on github. Check this: more info.
######################################
Q: so what do you do in your leisure time?
A: i play games
Q: wtf man, you are a grown up!
A: actually it is just an free-to-play idle-game
Q: this is even worse. you find satisfaction in collecting money and distributing upgrades and waiting for them to arrive in dribs and drabs?
A: actually i wrote a clicker-bot to gain 1 million-clicks-achivement xD
Synergy
I was using this tool already in 2005(!) and recently re-discovered it when I set up again a multi-monitor multi-system desktop at home. Synergy allows to share keyboard and mouse between different systems by defining virtual expansions at the edges of the ‘server’. Layout is configurable. It is even possible to share the input between different operating systems!
Use the nightly build-download-archive, because for the stable release they charge at least 10$ (since 2014 ).
- install at both systems
- define one as server
- enter the server-IP at the client
- configure a expansion-setup for the screens, done!
edit 20190319: url for the repo not working anymore, use https://sourceforge.net/projects/synergy-stable-builds/ (v1.8.8) instead. Worked on OSX <--> Win10.
Install an operating system-rage
I hesitated for a longer time to add rant-posts to this blog. Reason is: most of the time not the criticized fact is noted by the reader but the fact that someone complains.
From time to time you encounter some flaws or bugs or “design-choices” whre you start to think: this can’t be an accident. Or there are reasons I don’t understand. But this is nothing which could not be fixed.
Therefore todays rant: create/recover a working and sound operating system. I just refer to the major three ones: Windows, OSX and GNU/Linux.
- OSX: Boot, press CMD+R, select recover and add you favorite Wifi and wait: no problem. But since its a really enclosed environment in terms of hard- and software I did not expect something cumbersome/special. Since it is not wanted that you can change something inbetween, the needed user-interaction is quite limited. Works, ok.
- Linux: I always have a USB-stick with one of the latest Linux Minut (former times Ubuntu, DSL, Kubuntu or just some other distro) in my pocket. Reasons: I don’t trust foreign computers for sensible data (plug it in and use a live-system) AND safety (main system fails to boot? Oh, you still have some backup solution :D). So this is inserted, then select for booting this stick either via UEFI or BIOS. Boot, select in GRUB the real version, “Install Linux”, maybe addd Wifi/ethernet before, add additional user-data, maybe change partition so that your old home-partition is mounted correctly, reboot, unplug the stick, run maybe “sudo apt-get update && sudo apt-get upgrade” ONCE and be happy. Although this text is quite big this takes roundabout 60 to 90 minutes! Et voila: working system with all your previous data. Almost all devices have correct drivers and are usable. Continue with your work …
- Windows: buy a Win7 Ultimate-key (2 min), burn a 3 GiByte-image for the corresponding version on DVD, insert and reboot. Select to install, add all the needed credentials. 1 hour later it looks like you can reboot. Oh, 800×600 display resolution, no fucking device is recognized, therefore neither ethernet nor Wifi are usable to get additional drivers and updates, I can use the mouse and that is all. No usable tools for image viewing and editing, nothing. A bare system. Is this a joke? Microsoft, come on … when this happended to me in former times for older versions of Windows I thought this is how it should be. But why don’t you force the manufacturers to create small driver-libraries for their stuff so that at least basic, minimal support for all the hardware is given? Why is this possible for FOSS-projects but not for you with your big market-reach?!?
Back to topic: so I downloaded and installed the basic drivers and then armaggeddon happend: 179 important and 49 optional updates are offered. OK? why not, better safe than sorry. ONE fucking DAY later the whole cycle of installing, rebooting and re-doing the search for newer updates was still not finished. And I started with SP1, not the original Win 7-release. This is 2015, hello!
Ok, to cut it short: having to install Windows is still the worst what can happen. Sometimes it is needed, because some Wine and virtual machines are not covering everything.
Sometimes Windows is fundamental ..
Long time, no see updates. But I applied some changes to my life and also traveled a lot 😉
I also built a new PC. Yes. A desktop-PC. In 2015! I didn’t do this for years, but now the black cube is running (so fast and still cheap ..) and powered by Linux Mint 17.2 MATE.
It took just one day to find out, that there is still software which is neither available for Linux nor runnable via wine. Yes, you can install and start it, but then it will immediately crash. Nice.
So my first thought was the good old fashioned dual boot-idea with several partitions on the harddrive. But since the SSD-space is limited and I didn’t want to attach an additional (slow) HDD, I tried the following. And it worked! Almost out of the box. Therefore the post … it is nothing really complicated, but I am really surprised that everything went so smooth.
- install virtualbox via apt-get (used 5.0 version from Oracle – base was 4.3)
- torrent meanwhile a legal copy of Windows 7/64 Ultimate via WindRiver-Microsoft-distribution: used Transmission
- create a virtual machine (at least 20 GiByte … not 10 like I did ;)) as VDI; assign processors, memory and disable the network (‘The only safe computer is a computer turned off’ .. computer science-prof); assign the ISO as CD-drive
- boot Windows, select the 30 day-trial period; install Windows; shutdown
- assign a shared directory to the virtual machine; put the installer of the software there
- reboot VM; install the guest-tools there; install your needed software …
Additional hints:
- if the VM needs to be resized, then
- vboxmanage modifyhd ‘/home/tanteedith/VirtualBox VMs/win7ultimate/win7ultimate.vdi’ –resize 20480
- grab a gparted-ISO; assign as optical drive; reboot; resize the partition
- if you activated the fullscreen-mode and wonder how to return to the host: press “right CTRL + F”
Still: amazing. I spent 70 minutes or something. And it works!
No one said this will be easy: GT-i9506 with CM12 & no bloatware
I just wanted to replace the OEM-Samsung Lollipop with the latest CyanogenMod-version on my Samsung Galaxy S4 LTE (GT-i9506).
So the simple plan was to: root the device; replace the ROM with CM12; add the Gapps-package; reboot and be happy ..
.. in the end I tried so many different ways involving Linux Mint, OSX 10.9 and Windows 7 as host-system; flashing via adb, heimdall and Odin; different nightlies and kernels; several gapps-packages and seven hours lifetime .. but I learned a lot 😀
tl;dr:
- Win7: install Samsung driver; reboot, reboot, reboot
- root with CF-AutoRoot: guide // download – use “root checker” or some other app to verify the superuser-access before rebooting into download mode
- flash TWRP via Odin
- flash CM12-nightly: download
flash gapps: downloadflash minimal GApps: download (is without the useless crap)- wipe cache/dalvik
- reboot and setup everything from scratch (or with some backups … you created some, didn’t you? 😀 I used “Easy Backup & Restore” – worked perfectly. K-9 Mail can restore itself ..)
edit: 20150724 replaced Gapps with “GAPPS minimal”; restored all settings, SMS, contacts, …