Springe zum Inhalt

2

Nachdem ich hier sowieso einen Raspberry Pi (RPi) rumliegen hatte, wollte ich nun auch in die Heimautomatisierung einsteigen. Für den Moment sollen damit die Heizungsthermostate und ein paar Lichtspielereien gesteuert werden. Die bisher zusammengekaufte Ausstattung richtete sich mehrheitlich danach wo grade das beste Schnäppchen lauerte.… Weiterlesen

I just stumbled upon multiple "low space / not enough storage" error messages on my Galaxy S2. I never thought there would be such a simple solution: Just delete all the log files in the device memory. How ? Easy !… Weiterlesen

I recently needed to move one of my projects from one svn repository to another. Thanks to the new svnrdump tool introduced in svn 1.7 this can be done very comfortable on any machine. The first step is to dump you actual repository or any folder in it.… Weiterlesen

Neulich wollte ich mal austesten wie das mit dem Medienstreaming vom heimischen Windows 7 PC auf mein neues Galaxy Tab 10.1 funktioniert. Dabei habe ich auch gleich mal festgestellt, dass der Tegra Prozessor im Tab was die Videowiedergabe angeht sehr schwach auf der Brust ist.… Weiterlesen

The most common method found in the internet for keeping the display on is the one using a WakeLock: PowerManager.WakeLock mWakeLock; PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "HomeActivity"); mWakeLock.acquire(); // ... do your business ... mWakeLock.release(); However, there are much simpler ways: In your activity, call getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);… Weiterlesen

Create the activity via the manifest editor like this: Double click on AndroidManifest.xml in the package explorer. Click on the "Application" tab of the manifest editor Click on "Add.." under the "Application Nodes" heading (bottom left of the screen) Choose Activity from the list in the dialog that pops up (if you have the option, you want to create a new top-level element) Click on the "Name*" link under the "Attributes for" header (bottom right of the window) to create a class for the new activity.… Weiterlesen

Here's is a small guide about how to use Qt 4.7.3 with Visual Studio 2010 and static linking. With this approach you can generate a single exe without dependencies to any Qt dlls or msvcr100.dll Prerequisites: Install Visual Studio 2010 Install Visual Studio 2010 SP1 Download Qt Source: http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.3.zip… Weiterlesen

This error appears if you mix lib/obj files some which are built as release and some which are built as debug. Check your library dependencies. Often lib/obj files for debug purposes end with an 'd'. error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' Just for the curiosity: _ITERATOR_DEBUG_LEVEL = 0 (in release mode) _ITERATOR_DEBUG_LEVEL = 1 (in release mode if _SECURE_SCL is defined) _ITERATOR_DEBUG_LEVEL = 2 (in debug mode)… Weiterlesen

Bei Umzügen von Websites von einen Server auf einen Anderen müssen im Normalfall jede Menge Daten von a nach b kopiert werden. Dabei ist FTP das Mittel der Wahl. Unter Linux stößt man mit dem CLI Tool ftp da leider schnell an Grenzen.… Weiterlesen

Für ein aktuelles Projekt arbeitete ich an einem COM-Server von dem einige Funktionen ein SAFEARRAY aus structs zurückgeben sollten. In der COM-Welt spricht man da von User-Defined Data Types (UDT). Die Beispiele aus der MSDN sind dabei ganz hilfreich. Für die Verwendung von SafeArrayCreateEx braucht man dabei einen Verweis auf eine IRecordInfo-Schnittstelle.… Weiterlesen