Browse Category

Allgemein

How to change maximum upload header size

When you have e.g. troubles with GIT to push large commits using http or https and git gives this error:

error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 fatal: the remote end hung up unexpectedly 

If you server e.g. shows in the logs something like this:

10999#0: *1234 client intended to send too large chunked body: 134217891 bytes 

Then you need to increase your LimitRequestBody. For that just open the vhost config of your domain (assuming you are using plesk).

vi /etc/nginx/plesk.conf.d/ip_default/yourdomain.com.conf

Look for e.g.

client_max_body_size 128m;

and replace it by:

client_max_body_size 8096m;

Save and quit vi (:wq) and restart nginx.

service nginx restart

Keep in mind that you are modifying a generated file which will be regenerated by plesk when changing something in the Apache & nginx Settings. In theory you should be able to put the new value in
Additional nginx directives but due to a bug in Plesk you cannot (April 2019).

Getting Voice Match and Okay Google working again

Some time ago I’ve installed a custom ROM (Lineage OS 15.1) on my Samsung Galaxy A3 2017. After this I’ve installed a Open GApps package, I had to realize that my „Okay Google“ was gone. The option to turn it on „Voice Assist“ was just grayed out. Sadly there are exactly zero posts on the internet handling exactly this use case or simply did not work.

The solution is very simple though:

  • Voice match will be broken when you pick one of these variants
    • aroma (I doesn’t matter if you check Google Assistant)
    • pico
    • nano
    • micro (could not test but likely to not work)
  • Starting with the mini package Google Assistant will listen to you „Okay Google“ again 🙂

Microsoft Code Metrics Commandline

Because Microsoft does not like to provide this on their webpage, here are the command line instructions:

Microsoft (R) Code Metrics Command-Line Tool, Version 10.0
 Copyright (C) Microsoft Corporation. All rights reserved.

Help for command-line options:

/file: [Short form: /f:]
 Assembly file(s) to analyze.

/out: [Short form: /o:]
 Metrics results XML output file.

/directory: [Short form: /d:]
 Location to search for assembly dependencies.

/searchgac [Short form: /gac]
 Search the Global Assembly Cache for missing references.

/platform: [Short form: /plat:]
 Location of framework assemblies, such as mscorlib.dll.

/reference: [Short form: /ref:]
 Reference assemblies required for analysis.

/ignoreinvalidtargets [Short form: /iit]
 Silently ignore invalid target files.

/ignoregeneratedcode [Short form: /igc]
 Do not calculate metrics for generated code.

/successfile [Short form: /sf]
 Create .lastcodemetricsssucceeded file in output report directory if no errors occur during calculation.

/quiet [Short form: /q]
 Silence all console output other than error reporting.

/help [Short form: /?]
 Display this help message.

Ultrastar Studio for Ultrastar Deluxe

usdxstudioyoutubeA couple of days ago I’ve been hosting a karaoke event and rediscovered Ultrastar Deluxe. Since the last time I’ve used it, it has made a huge development. But still there was one thing which was bugging me: How do I get youtube music videos as fast as possible integrated in my Ultrastar Deluxe and ready for singing?

I couldn’t find any software which can do all these steps in a couple of clicks.

So what has to be done:

  1. download music and video from youtube.
  2. get the lyrics from Ultrastar Database (http://usdb.animux.de/)
  3. merge video, sound and lyrics and
  4. do a quick lip sync.

 

So I decided to write a small tool myself. ‚Cause I didn’t want to reinvent the wheel I’m using some 3rd party tools like youtube-dl which can parse and provide video links from youtube and the VLC player plugin for lip syncing the lyrics. The tool is written in C# and runs on Windows only.

usdxstudiolipsyncFeel free to download, use, extend or port it to other platforms. Get it here.

How to set up:

  1. Install VLC player and ensure to install the Vlc browser plugin (or go to Programs and Features and alter your VLC installation to add this plugin)
  2. Install my tool here

Just leave a comment if help is required or you want to say „thanks“.

 Download: USDxStudio.zip.

 

 

Global Game Jam 2014 – eneMe

enemeThis years topic of the global game jam has been „We don’t see things as they are, we see them as we are.“. This year I participated at the Cologne Game Lab. It has been a really well organized event there, thank you. At this jamming location roughly 120 people participated. This offered a lot of interesting ideas and made it hard to decide what idea is the best to try out. After some time of team building and discussing the idea was put to paper. My team has been founded and consisted of six people. Two artists, an environment artist, two coders and a game designer. Concluding we had a really good combination of people, each with a well fitting skill set for the project. On the last day we hat the luck to recruit a third coder, which integrated the sound very thoroughly. Thanks a ton team!

To the game we made: We created a game concept which takes the topic literally. You enter at the beginning of each turn an arena consisting of a mace. In the center of it is a button placed which unlocks an exit to reach. In each subsequent level an eneMe is added. This is an enemy unit which imitates your previous run. As soon as you touch one of those eneMes you lose. How many levels will you survive? Try it yourself now (Unity Webplayer)! Or download it to try it in fullscreen mode.

Want to get more information? Take a look at the official global game jam side.

Repair PVR disk used with Samsung TV

Hi there,

once again my Samsung TV (UE40D7090) crashed while recording a TV show. The Smart TV technology does not seem to be smart at all because all my recordings on the disk where gone. Now the TV just suggests to format the disk, but STOP! there is hope to get the recordings back.

Samsung uses a linux filesystem called Raiser FS  to record your TV shows, which can be fixed with some simple steps.

You just require any Ubuntu Live CD suited for your PC. Download  (http://www.ubuntu.com/download), burn it and follow the next steps.

  • Insert the Ubuntu Live CD to your optical drive, reboot the PC and run ubuntu in Live CD mode
  • When Ubuntu has started run the terminal from menu
  • Type the following line to install the required tools to fix the partition holding the records.
    sudo apt-get install -y xfsprogs gparted
  • GParted is a tool which can be used to displays the partitions of your installed disks. Now connect your PVR drive to your PC. Ubuntu will detect the drive but won’t be able to mount the PVR drive if it is damaged. Now start gparted with admin rights by calling:
    sudo gparted
  • Now determine the path of your broken PVR drive/partition. Its called something like „/dev/sdb2“ and note it somewhere.
  • Now close gparted and write the following to the  console (replace the last part by the noted path):
    sudo xfs_repair /dev/sdb2

    This will cause an error saying you should try to mount the device first because there is unwritten data. (This won’t be possible in most cases)

  • Now call the repair tool in forced mode which will delete your last TV recording but fix the partition.
    sudo xfs_repair -L /dev/sdb2
  • Now you should be able to select the partition in the file browser and view its content. Now you can unplug the device and reconnect it to your TV. The TV should detect your PVR disk again with all of your recordings (except the last one).

Hopefully some people having the same issues find this useful. If you have any questions just leave a comment.