Blender Fox


Krum - an action RPG made in Blender GE | BlenderNation

#

www.youtube.com/watch

The last time I mentioned Krum was over a year and a half ago. The game has progressed a lot since them!
Hey guys, I've made a new trailer video for my game KRUM.

It’s a cartoon-ish style, third-person, role-playing game. KRUM has medieval settings, with some fantasy elements…yeah well, actually it’s just a brutal melee game with advanced combat tactics.

And most important about it - the game it self is using Blender GE and Python 2.62. and all its assets and animations are made in Blender.

Krum - an action RPG made in Blender GE | BlenderNation.

Get Yesterday's date in MS DOS Batch file

#

A useful snippet of DOS Batch Scripting to get yesterday’s date (or any other historical date for that matter). Very useful to then use with other DOS commands like xcopy or forfiles.

Linux though, it’s a hell of a lot user, just add options to the find command

@echo off set yyyy= set $tok=1-3 for /f “tokens=1 delims=.:/-, " %%u in (‘date /t’) do set $d1=%%u if “%$d1:~0,1%” GTR “9” set $tok=2-4 for /f “tokens=%$tok% delims=.:/-, " %%u in (‘date /t’) do ( for /f “skip=1 tokens=2-4 delims=/-,().” %%x in (‘echo.^|date’) do ( set %%x=%%u set %%y=%%v set %%z=%%w set $d1= set $tok=)) if “%yyyy%"==”” set yyyy=%yy% if /I %yyyy% LSS 100 set /A yyyy=2000 + 1%yyyy% - 100 set CurDate=%mm%/%dd%/%yyyy% set dayCnt=%1 if “%dayCnt%"==”” set dayCnt=1 REM Substract your days here set /A dd=1%dd% - 100 - %dayCnt% set /A mm=1%mm% - 100 :CHKDAY if /I %dd% GTR 0 goto DONE set /A mm=%mm% - 1 if /I %mm% GTR 0 goto ADJUSTDAY set /A mm=12 set /A yyyy=%yyyy% - 1 :ADJUSTDAY if %mm%==1 goto SET31 if %mm%==2 goto LEAPCHK if %mm%==3 goto SET31 if %mm%==4 goto SET30 if %mm%==5 goto SET31 if %mm%==6 goto SET30 if %mm%==7 goto SET31 if %mm%==8 goto SET31 if %mm%==9 goto SET30 if %mm%==10 goto SET31 if %mm%==11 goto SET30 REM ** Month 12 falls through :SET31 set /A dd=31 + %dd% goto CHKDAY :SET30 set /A dd=30 + %dd% goto CHKDAY :LEAPCHK set /A tt=%yyyy% %% 4 if not %tt%==0 goto SET28 set /A tt=%yyyy% %% 100 if not %tt%==0 goto SET29 set /A tt=%yyyy% %% 400 if %tt%==0 goto SET29 :SET28 set /A dd=28 + %dd% goto CHKDAY :SET29 set /A dd=29 + %dd% goto CHKDAY :DONE if /I %mm% LSS 10 set mm=0%mm% if /I %dd% LSS 10 set dd=0%dd% REM Set IIS and AWS date variables set IISDT=%yyyy:~2,2%%mm%%dd% set AWSDT=%yyyy%-%mm%-%dd%

PowerCram: Get Yesterday’s date in MS DOS Batch file.

Custom URLs in Chromium (Edited)

#

I’ve been tinkering with Second Life and Spotify on Linux, and discovered there’s a known bug in XDG whereby it complains when you try to access a custom protocol link (e.g. secondlife:// or spotify://) that is already registered within XDG. There’s a (rather cumbersome) way of getting around it, if you’re using Chromium (probably works with Chrome, but I haven’t tried it) First step, add a mime desktop entry - usually in ~/.local/share/application/. This entry must contain a MimeType entry, and a NoDisplay entry. Use the %u to pass the url. This desktop entry will NOT be visible on the menus, and is solely to “connect” to the application you want to invoke when the link is clicked. This example is using the Singularity viewer as an example.

[Desktop Entry]
 Name=Singularity
 Comment=Client for Online Virtual Worlds, such as Second Life
 Exec=~/.singularity-install/handle_secondlifeprotocol.sh %u
 Icon=~/.singularity-install/singularity_icon.png
 Terminal=false
 Type=Application
 Categories=Application;Network;
 StartupNotify=true
 X-Desktop-File-Install-Version=3.0
 MimeType=x-scheme-handler/x-secondlife-url
 NoDisplay=true

Next, inside the program you are calling, you may need to do some manipulation of the passed URL as it will come with escapes (e.g. %20 = space).  See later in the post for an example

Finally, make Chromium aware of this new handler, by editing the Chromium preferences, found in (for the Default user), in ~/.config/chromium/Default/Preferences. Chromium must be closed for this to work, or you will lose your changes. In the Preferences file, add this block of code:

"custom_handlers": {
 "enabled": true,
 "ignored_protocol_handlers": [ ],
 "registered_protocol_handlers": [ {
 "default": true,
 "protocol": "secondlife",
 "title": "Second Life",
 "url": "x-secondlife-url:%s"
 } ]
 },

Note the trailing comma, and the url must be prefixed with the mime type you declared in the desktop entry. Start up Chromium afterwards, then click the link. When you click on the link, Chromium gets the link, finds there is a custom handler (in Preferences file), passes it to the mime desktop link you created (which contains the mime type), finds the program to use from the desktop link, and passes the url to the program using the arguments you specified.

Here’s an example of what I mean by manipulating of the passed URL. This is the script from the Firestorm Viewer. Singularity uses a VERY similar script so the code should be nearly interchangeable. I have hacked this script (changes I have made are in bold) so that it works with SLURLs (Second Life URLs)  with both spaces, and prefixed with “app/region”

#!/bin/bash

URL="$1" NEWURL=$(echo $URL| perl -pe ’s/^x-secondlife-url://; tr/+/ /; s/%([a-fA-F0-9]{2,2})/chr(hex($1))/eg;') URL=echo $NEWURL | sed ’s/secondlife:////g' | sed ’s//app/region///g' if [ -z “$URL” ]; then #echo Usage: $0 secondlife://… echo “Usage: $0 [ secondlife:// | hop:// ] …” exit fi RUN_PATH=dirname “$0” || echo . #cd “${RUN_PATH}/.." cd “${RUN_PATH}" #exec ./firestorm -url '"${URL}"' if [ pidof do-not-directly-run-firestorm-bin ]; then exec dbus-send –type=method_call –dest=com.secondlife.ViewerAppAPIService /com/secondlife/ViewerAppAPI com.secondlife.ViewerAppAPI.GoSLURL string:$URL else exec ../firestorm -url $URL fi

C25K - Week 2 Day 2

#

I completed C25K Week 2 Day 2 (timed) (3.21 km), in 19:00, pace 05:55 min/km, with @RunDouble http://rndb.co/J52U

Nike+ Track

 

Uptime

#

I doubt there are many servers out there that can beat this uptime:

intel-server-uptime

森の木琴 - YouTube

#

A forest. In Japan. A wooden xylophone. Playing Jesu Joy of Man’s Desiring, using only a wooden ball… and gravity.

www.youtube.com/watch

Hips Don't Lie - Charity Single - Out of the Blue - Shakira - YouTube

#

Don’t laugh, but this acapella medley of Shakira’s songs is strangely catchy.

www.youtube.com/watch

ROM Reflash - Cyanogenmod 11 (Flemmard) - Part 3

#

I am not impressed. After flashing and restoring my applications, the phone seems extra sluggish and seems to have locked me out of recovery mode. When I tried to set my alarm for weekdays, I was fighting the phone to click the days of the week. I was pressing Monday, Tuesday, Wednesday, then the phone took several seconds before showing up the change, then unticking them, and ticking them back on again.

I reflashed my recovery from 4EXT, since I could still get into the main OS, and now I’m reflashing from my image back to my albinoman build. This Flemmard build is going on my “do not use” list.

ROM Reflash - Cyanogenmod 11 (Flemmard) - Part 2

#

I am not impressed. After flashing and restoring my applications, the phone seems extra sluggish and seems to have locked me out of recovery mode.

ROM Reflash - Cyanogenmod 11 (Flemmard)

#

Reflashing my phone again. Using Cyanogenmod again, this time, a different build. This build is V4.4.4 instead of V4.4.2 which is the one on the albinoman build. The build is also later than albinoman’s one, so might contain some fixes to problems encountered in V4.4.2.

Restoring my backups as I type this post.

Screenshot_2014-07-26-15-45-00

C25K - Week 2 Day 1

#

I completed C25K Week 2 Day 1 (timed) (3.12 km), in 19:00, pace 06:05 min/km, with @RunDouble http://rndb.co/Z4Xt

I carry so much tech with me on my runs, this is what the plugs in my bedroom look like after a run. Charging my Nike+ Fuelband, GPS SmartWatch, Jabra Bluetooth Headphones and my Fitbit One.

Nike+ Track

CameraZOOM-20140726131314472

 

Reflashing 3

#

So, I have been using the albinoman build of Cyanogenmod for a while now, and reflashing has fixed a few quirks, but I still get what appears to be a memory problem and the system interface restarts. So I’m going to later try reflashing a different build.

Video: Japanese bar uses sleeping drunks as billboards - Telegraph

#
Like many people around the world, hard-working Japanese people like to let their hair down at the weekend with a few drinks. Due to the low tolerance for alcohol among the population, many people enjoying a drink become so inebriated they fall asleep in public.

The Yaocho Bar Group has taken advantage of the thousands of “sleeping drunks” by turning them into human billboards warning against excessive drinking. Armed with white duck tape, printed headlines, logos and a call to action, a team from the Yaocho Bar Group targets sleeping people on some of the most crowded streets in Tokyo. Honour is held in high esteem in Japanese society, and the advertisers hope the billboards will shame people into drinking moderately

Video: Japanese bar uses sleeping drunks as billboards - Telegraph.

C25K - Week 1 Day 3

#

I completed C25K Week 1 Day 3 (timed) (3.51 km), in 18:22, pace 05:14 min/km, with @RunDouble http://rndb.co/P4Vu

Day 3 of the C25K. Same as Day 1 - 5 minutes warm up walk, then 8 intervals of walk-run at a 60s/90s split, and a 5 minute cool-down walk. Next workout is Week 2 Day 1 – 5 minutes warm up walk, then 6 intervals of walk-run at 90 secs run, then 120 secs walk, followed by 5 minutes cool-down walk.

Nike+ Track

C25K - Week 1 Day 2

#

I completed C25K Week 1 Day 2 (timed) (3.21 km), in 18:26, pace 05:45 min/km, with @RunDouble http://rndb.co/24Rf

Day 2 of the C25K. Same as Day 1 - 5 minutes warm up walk, then 8 intervals of walk-run at a 60s/90s split, and a 5 minute cool-down walk.

Nike+ Track

ROM Reflash - Cyanogenmod 11 (albinoman)

#

First flash is an unofficial version of Cyanogenmod 11. This is the version I currently have, but I’m doing a full reflash due to the problems I currently have, which I wonder if it is down to the fact I didn’t do a superwipe when switching between ROM variants.

Generally, you should wipe or superwipe your phone if you are moving from one ROM variant to another, and not wipe if you’re flashing an update to the currently installed ROM.

Screenshot_2014-07-19-19-30-11

Reflashing 2

#

My experience of Carbon ROM has been short and a mixture of good and bad. Good in that there were some very nice features, but bad, in that the whole ROM seemed to not be too responsive. Less of a problem with Carbon ROM compared to the last one I tried, but, still, definitely noticeable.

I’ve taken a quick look at XDA and found a couple of other ROMs available, so I’m going to download them and give each one a go. 4Ext really helps with the backups.

Reflashing

#

My HTC Sensation KitKat ROM has been very quirky, with some weird behaviour with some apps, most notably with Nike+ Running. I’ve decided to try flashing a different ROM. I tried UnoRom again, but that seemed sooo sluggish - it took a few seconds to even come out of sleep each time I wanted to unlock my phone. So this time, I’ve tried Carbon Rom. So far, so good, I’m restoring my Titanium Backups.

Screenshot_2014-07-19-11-31-04

A bolt from the... um... grey?

#

I bought a dashboard camera a few years ago, and have since upgraded to a better one. I’ve caught a few things during that time, but never thought I would catch this….

All of these photos took place in one second, and were taken driving down Whetstone High Road, North London. Photos were extracted using VLC and by slowing down the video to about 0.03x-0.06x speed then taking snapshots. I would have used mencoder or ffmpeg, but I’m not running Linux, and have no admin rights to install new programs on my box at work.

[gallery type=“slideshow” link=“file” ids=“3883,3884,3885,3886,3887,3888,3889”]

C25K - Week 1 Day 1

#

I completed C25K Week 1 Day 1 (timed) (4.01 km), in 18:26, pace 04:36 min/km, with @RunDouble http://rndb.co/t4We

What if Google was a guy?

#

Honesty

#

Much as I would have liked to have done this in the past with some really difficult managerial staff, the only time I would do this if I didn't care about getting a bad reference from my manager, or I wanted out of the job so bad, I didn't care if I was fired.

Dilbert comic strip for 07/17/2014 from the official Dilbert comic strips archive..

How to use the word FUCK

#

Warning, contains lots of f’ing. ;)

www.youtube.com/watch

Strange - 2

#

More strangeness with Nike+

Try to start a 5K run

Screenshot_2014-07-15-18-37-11

And then, during the run, I have set it 5K, have run 0.00K, but it somehow thinks I’ve completed my goal already. o.O

Screenshot_2014-07-15-18-37-31

BASH Shell: For Loop File Names With Spaces - nixCraft

#

I’ve been wondering how to do this. I didn’t realise I could do this in so many different ways. Simplest way, I think:

$ ls 2013.doc externalIP.txt Introduction to Compositing in Blender.txz externalIP.sh Ideas.odt Piano to Learn $ for a in ls *; do echo $a; done 2013.doc externalIP.sh externalIP.txt Ideas.odt Introduction to Compositing in Blender.txz Piano to Learn $ SAVEIFS=$IFS $ IFS=$(echo -en “\n\b”) $ for a in ls *; do echo $a; done 2013.doc externalIP.sh externalIP.txt Ideas.odt Introduction to Compositing in Blender.txz Piano to Learn $ IFS=$SAVEIFS $ for a in ls *; do echo $a; done 2013.doc externalIP.sh externalIP.txt Ideas.odt Introduction to Compositing in Blender.txz Piano to Learn $

BASH Shell: For Loop File Names With Spaces - nixCraft.