Tuesday, October 1, 2019

tuya-convert on virtualbox with rtl8192 or tp-link wn823n wireless

This will require a few steps to get the tuya-convert working with virtual box environment with this particular wireless adapter as the built in driver does not support the AP mode required.


  1. Download Kali 2018.4 install in virtualbox on a virtual drive
  2. add a usb device filter for your usb wifi stick
  3. reboot
  4. apt-get install git, build-essentials
  5. git clone https://github.com/clnhub/rtl8192eu-linux
  6. read the docs above
  7. install the latest linux kernel and headers
  8. apt-get install linux-image-5.2 for exmaple
  9. then..

sudo apt -y install linux-headers-generic build-essential dkms git
in the rl8192eu directory: 
./install_wifi.sh

  1. reboot
  2. git clone https://github.com/ct-Open-Source/tuya-convert
  3. read the docs
  4. in tuya-convert
  5. then you'll probably need to disable the rfkill
  6. rfkill unblock all
  7. and enable the wifi
  8. nmcli nm wifi on
  9. then ./start_flash.sh
  10. follow the remaining instructions... should be cooking



Sunday, July 6, 2014

Shepherd TV guide data for Australia

Originally was using Shepherd to build my own guide data, but since switched to using pre-canned data from a kind community user.


http://www.siliconhill.com.au/shepherd/

Use this in conjunction with tv_grab_file in TVHeadEnd / your choice of system to import the data.

This is great news, because Shepherd is a great program but it is slow and causes data spikes on the channel EPG sources who are constantly trying to obsfacate their data to prevent downloads like this.

Having a pre-canned source means less hits on these guide data and hopefully longer lasting sources.

My grab file in cron looks like this (runs nightly after the website is updated with latest info:

wget -O - http://www.siliconhill.com.au/shepherd/Brisbane/fta/output.xmltv.gz | gunzip -c  > /var/spool/shepherd/xmltv.xml
logger Updated TV Guide data

Then download tv_grab_file from github, rename to tv_grab_(country code) and place it in /usr/bin. Edit it to pull in data from the above file in my case (/var/spool/shepherd/xmltv.xml)

Any more info, comment below

SBS Brisbane on TVHeadEnd 3.4

Trying to get SBS on tvheadend 3.4 working?

Had a few drama's with this. When SBS changed from the UHF to VHF on 184500kHz, the guard interval & FEC rates changed from 1/16 & 2/3 to 1/8 & 3/4 to match the other networks.

However, if you update your 3.4 configuration and manually enter these details, it will pickup the station MUX & Channels, however it will not tune them, reporting "no input detected" when you select Map DVB channels from the adapter page.

You must upgrade to the latest unstable tvheadend for this to be fixed, I am unsure of the reason or which exact version it was fixed, however switching to the current unstable version from 3.4 will correct this issue. Select guard interval, hierarchy and FEC to all be AUTO and it will correctly pull in the MUX & Channels.

If you are also having issues getting C31, the Brisbane community channel, you will need to change the current 599.5MHz tune to 529500kHz in tvheadend for it to pick it up. As above, select your guard, hierarchy & FEC to be AUTO.

For all Australian DVB-T your other parameters are

QAM64
Bandwidth 7Mhz
Transmission 8k

Friday, May 30, 2014

Installing apps on android - can't click on install button

If you are trying to manually install an app / application on Android with and you cannot click on the install button, you probably have a application like twilight, darker, etc which tints the screen at night.

You will need to pause this application before you can click the install button.

The reason being that a malicious program might mask the install button with different text to trick you into installing an application. This is a security measure in the Android system.

Tuesday, May 6, 2014

Intel NUC + XBMC + TvHeadEnd + Shepherd (Australian TV Guide Data)

Recently made this setup and it's working brilliantly.

Setup is as follows:

  • Intel NUC Haswell i3
  • Sony playTV adaptor
  • XBMCBuntu 14.04
  • XBMC 13
  • Aeon Nox 4.Gotham
  • Shepherd for guide data
IR is through the built in NUC CIR receiver. 

Shepherd was set up to output guide data to a temporary file. I used tv_grab_file to then output this data back into shepherd. Hooking up shepherd direct in TVHeadEnd doesn't seem to work correctly, it output a ambiguous error message about the XML ending abruptly. 

XBMC is setup to use VAAPI for 1080i deinterlacing (set deinterlace to "auto" and deinterlace method to "auto"), scaler in settings->video is set to 20%.

If you need any more information comment below.

I have an update update TVHeadEnd, trying to get your SBS channels to work correctly.
http://systemsnotebook.blogspot.com/2014/07/sbs-brisbane-on-tvheadend-34.html

Also an update for Australians, using precanned guide data instead of Shepherd.
http://systemsnotebook.blogspot.com/2014/07/shepherd-tv-guide-data-for-australia.html

Sunday, September 29, 2013

disable acrobat pro update prompt in osx



This thing has been driving me insane

create file

/Library/Preferences/com.adobe.Acrobat.Pro.plist

add contents:





10

FeatureLockdown

bUpdater



Friday, September 27, 2013

php sphinxclient libsphinxclient compiling

Compiled your own Sphinx ? Trying to install php pecl extension for sphinx?

Done on debian squeeze 6

download src in /usr/src/sphinx
cd /usr/src/sphinx/api/libsphinxclient

./buildconf.sh
./configure --prefix=/usr/local/
make install

pecl install sphinx.



done.

How to install Sphinx search 64bit on debian

Getting error, cannot find mysql libraries? install mysql-devel? not helpful...


HOW TO:

install mysql packages (development)
apt-get install libmysql++-dev libmysqlclient15-dev checkinstall

download source
in root of source run configure:
./configure --enable-id64 --with-mysql=/usr/local

make
make install

done :)

for some reason the configure cannot find the mysql libraries on it's own

Thursday, September 6, 2012

Synology: undefined reference to `__sync_fetch_and_add_4'

Seems a lot of people are finding themselves with this error. It's just a architecture mismatch.

See my post on ddrescue on how to compile with the correct architecture.

Tuesday, August 7, 2012

Volkswagen Passat Battery Drain RCD510

Just some general information that I gathered on upgrading 3C Passat Head Unit's to a RCD510/RNS510

VW Passats built before 2009 were not designed to take the RCD510 RNS510 RCD310 etc head units. The issue is the Passat 3C gateway 3c0 475 530 C firmware version 40.

When you plug the unit into your car, you will be able to here a clicking noise coming from the passenger side dash board, it is a relay switching on and off and is causing the battery to drain because your current gateway is not compatible with the head unit.

The easiest solution is to replace your can gateway with a revision N and above model.

There is not a lot of information on the Chinese RCD510 units that are easily found on eBay China. Model 5ND 035 195. These too will cause the battery issue. The only models that won't are very early revision RNS510's that have the old software, as soon as they are upgraded they will fail.

Please note that you should NOT use a gateway from another model car, because they cannot interact with the electronic column lock in the Passat which will throw an error.

If you know somebody with the right equipment, you can upgrade your gateway to version 048 which doesn't exhibit the issue. Do this with a VAS5051a and the latest VAG flash disk.

Last, you can do a "hack" fix, that essentially removes power to the head unit when you turn off the car, this requires some soldering in your fuse box. However if you do this, you will lose any settings every time you power off.



Leave a comment if you are in need of some more information, regarding this or anything golf/passat related.

Lens Correction Data for Hugin Canon EFS 18-55

Not sure where I got this from, but it has been usesful time and time again for correcting lens issues in Hugin



begin lens
group: canonEfsSLR
multiplier: 1.6
menu_lens: Canon EF-S 18-55mm f/3.5-5.6 IS
cal_abc: 18 0.019790 -0.062160 0.026920
cal_abc: 20 0.014900 -0.049280 0.022310
cal_abc: 23 0.004790 -0.015730 -0.001540
cal_abc: 24 0.004580 -0.015960 0.003120
cal_abc: 27 0.009520 -0.033940 0.028040
cal_abc: 29 -0.000860 0.003140 -0.007490
cal_abc: 32 0.001500 0.002710 -0.000900
cal_abc: 34 -0.005300 0.021650 -0.027590
cal_abc: 37 -0.003750 0.014320 -0.015210
cal_abc: 42 -0.000680 0.003890 -0.002440
cal_abc: 44 0.003570 -0.011600 0.016250
cal_abc: 47 -0.003060 0.012940 -0.011730
cal_abc: 49 -0.003380 0.013120 -0.011020
cal_abc: 55 -0.003110 0.012090 -0.009080
end

OSX VPN Add route on connection

On OSX, you can automatically add a route when the VPN is connected:

In the terminal:


sudo nano /etc/ppp/ip-up
Add the lines:



#!/bin/sh
/sbin/route add 10.0.1.0/24 -interface $1



WHERE, 
10.0.1.0/24
 is the subnet you want to route to. The $1 will automatically be populated with the correct interface name.

Add as many routes as required.

Save and exit


sudo chmod a+x /etc/ppp/ip-up



Connect to your VPN, and you route should be created.

Friday, May 11, 2012

JASPERREPORTS - Sum a variable once per group

Say you have a jasper report, the you have grouped twice,

You raw SQL data looks like

Description, Line_Group, Line_Total, Grand_Group_Total

And you want to get the total sum of Grand_Group_Total.

Create a variable with the following:

Calculation: Sum
Increment Type: Group
Increment Group: Line_Group

If this is nest again into another group, you can in the variable set

Reset Type: Group
Reset Group: Name of top level group.


Feel free to comment to get some more specific help

Wednesday, March 7, 2012

SimpleSAMLphp & Active Directory

For various reasons, the LDAP driver in simpleSAMLphp doesn't have referrals enabled, which causes an LDAP search to fail if your search base isn't the exact tree your users are in, i.e. searching 'dc=example,dc=com'

In the file:

/simplesamlphp/lib/SimpleSAML/Auth/LDAP.php


Add


@ldap_set_option($this->ldap, LDAP_OPT_REFERRALS,0); 


After the ldap_connect() line






If this has been helpful to anyone, let me know and I'll post some more SimpleSAMLphp tutorials

Tuesday, March 6, 2012

Vufind + Koha 3.4

Trying to integrate Koha 3.4 and Vufind?

I had an issue that the Koha driver bundled with vufind wouldn't pick up the ILS holding information.

Requires 1 fix,

In import/marc_local.properties

Add the line

id = 999c, first

That will correct the metadata lookup in the MARC field to correspond with the correct field from Koha MARC export.

Tuesday, July 12, 2011

Bluefin on Golf GTI MK V DSG

A quick review of the superchips bluefin for Golf GTI MKV

UPDATE: I tested to pit pm the 1/4 mile. Results are in this post.

The golf MK5 is a good car, quick enough, comfortable and well behaved. Easily driven as a daily driver with a fun streak when you want it. The only real issue I have had is it's "doughiness" driving in suburbia, where there is a lag between the accelerator and car response and the need to shift down gears at low speed. I investigated the installed of a "software upgrade" to increase the torque curve and hopefully bring it closer the the 1500rpm mark where the 60km/h speed limit lines up with 6th gear.
Summary: The bluefin upgrade makes a good car, great.

Installation

You buy the module, plug it into the connector under your dash. The on screen prompts you to turn on and off the ignition a few times, after which it'll start downloading your car's ECU software. This takes around 15-20 minutes.
Once that is done, you connect it to your PC with the software installed, and it'll communicate to the module and download the software to your PC and send it to superchips server in the UK, this is another 10 minutes.
It says that it'll take 8 hours to receive the new software, but mine came through immediately. Once you have the software, you reconnect the module to your pc and load the software, which will download the new software to the module.
Now your module has both your "Original" and "Upgrade" softwares.
You plug the module back into the car and after following the instructions a few times, the software will be uploaded to your car, another 15-20 minutes. Then some more instructions at which point it'll ask you to disconnect the device.
Upgrade complete!

First Impression

Definite increase in torque, my standard, "hurried" take off caused the traction control to interfere.
Drivability is the most significant improvement for me. Gone is the "lag" between the accelerator and the cars response. The best way to describe this is the "doughiness" is gone. It's very impressive, feels like a brand new car. Shifting feels a whole lot better and smoother, although at hard acceleration the 2->3rd shift can be a bit harsh.
General acceleration is more responsive, and it feels like you are being pushed back into the seat. The acceleration is strong right to the red line, it will now break traction going up the gear if you have enough throttle, even in "D" mode.
6th gear is far more drivable at lower speed, the "D" mode's insistence on getting to 6th gear as fast as possible is no longer a pain, as you have enough torque in that gear to speed up and down. On the highway it's defiantly better and resists shifting down gears for speeding up.
Noise wise, there is an increase in turbo whistle, it's not annoying and you can't hear it with the window up, but just cruising around suburban street, accelerating you will hear the turbo working.

Immediate Thoughts

According to the dealer, the software will take a few days to fully kick in, as the ECU needs to relearn the settings based on the modified parameters. But for now, the results are extremely satisfying. No longer does this car feel like it could be that little bit better. Responsiveness is well up, and as an added bonus it's a bit quicker and stronger at accelerating.
To be honest, the tuning (based on claims) is far less aggressive than some of the competitors, especially APR but to be honest, it is almost a third of the cost, and the benefits are substantial especially for a daily driver on Australian roads. Don't get me wrong though, there is definite performance increases that I am sure you would be happy with.
The added benefit with the bluefin module, is that you can upload your Original (as in the original software you downloaded in the first step), back to your car and no one is the wiser. APR software as far as I know, isn't user removable, something I'm not willing to accept.
For $700AU, this upgrade is a no-brainer. Couple that with the fact you can get a free/low cost upgrade from Superchips to Stage 2 if you ever fit a CAI and Exhaust system on it.
In the end, once you drive it after the upgrade, it's like you've just jumped into a turbocharged car again for the first time.
I will update this entry as time goes by. I am hoping in the future to upgrade to a Milltek turbo back exhaust and have the DSG reflashed, so I will report on those finding when they come.

Pros

More responsive, throughout the rev range, and gears
Faster shifting, smoother
Lag between downshift is gone, less need for downshifting in suburban traffic.
Stronger acceleration
Cheap ($700AU)
It's fun.

Cons

Tuning isn't as agressive as competitors claims ("claims")
Really, nothing to note.

Conclusion: Stop thinking about it and go get one, and enjoy your new car.

Monday, July 11, 2011

Golf GTI MK5 DSG BlueFin Quarter Mile

Superchips bluefin review.

Ran the GTI with the stage 1 superchips bluefin, dsg with a full tank of gas and probably about 50kg of extra weight in the back (couldn't be bothered to remove it)

Running 5 month old Michelin pilot sport 3's with about 10000km on them.

1. First run was 14.5 seconds in manual with launch control at 2000rpm
2. Second clocked 16.2 seconds in S mode auto with launch control at 2000rpm
3. Third clocked 14.03 seconds in manual with launch control at 2500 rpm
4. Fourth clocked 14.5 again with manual launch control at 3000rpm.

Had a stock VE SS commodore and a stock 6L HSV Maloo, both clocked 13.95 seconds.

Seems like the sweet spot is 2500rpm in launch control, otherwise at 3000 rpm the DSG seems to limit the torque and cause the front wheels to spin.

I'll try it again once I have the DSG reflashed with a new program and the exhaust and intake replaced and a updated bluefin flash for comparison.

Friday, June 10, 2011

Compiling Sphinx Search Server on OSX

Having trouble compiling a fresh sphinx search server on your OSX Leopard/Snow Leopard (10.5/10.6) host?

If you are gettings

conflicting declaration 'typedef unsigned int DWORD' etc etc

 

compile it like this

 

./configure --prefix=/opt/local --with-mysql=/opt/local/lib/mysql5 --without-unixodbc --enable-id64

 

The key here is to not compile the unixodbc support using flag "--without-unixodbc" as this is where the errors are coming from.

Thursday, June 2, 2011

DM-Crypt on Synology with Truecrypt 7

You may get an issue with Truecrypt on your synology about the ioctl and the device mapper (dm). Do "dmesg" when you try and use truecrypt to mount an image and see if it complains about a missing module.

The issue is because the synology default kernel lacks the required device mapper crypto module and the crypto modules XTS and LRW.

You can compile these using an ubuntu/linux host and the Synology cross-compile tools and sources. See my post on compiling a kernel module.

 

Alternatively, if you are on a synology 1511+ or similar (running a x86 processor - do "uname -a" to check), leave me a comment and i will email you the pre-compiled modules)

 

 

Monday, May 30, 2011

Truecrypt 7 on Synology

The following is a basic guide to getting truecrypt 7.0a to compile on a Synology 1511+, using the optware tools. You should be able to follow this guide for non-x86 devices by changing references to "-march=i686" to the architecture of your device.

 

Download the latest truecrypt 7 sources from truecrypt.org (this post is based on 7.0a)

NASM

Download NASM sources from the web

./configure --prefix=/opt/local CFLAGS="-march=i686" CC=gcc
make
make install

 

FUSE

Download Fuse 2.8.5 from the web

./configure --prefix=/opt/local
make
make install
in fuse-src/include
cp fuse.h fuse_com*.h fuse_opt.h ../../truecrypt-7.0a-source/
make install-pkgconfigDATA
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig

 

wxWidgets

Download wxWdigets 2.8.12 - Truecrypt won't compile using 2.9.x series!

 

PKCS Headers

In /tmp/pkcs
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h
export PKCS11_INC=/tmp/pkcs11

 

Build wxWidgets

In truecrypt-src directory

make NOGUI=1 WX_ROOT=/tmp/wxWidgets-2.8.12 wxbuild CFLAGS="-march=i686" CC=gcc

 

Build TrueCrypt

If you get something on the lines of

"TrueCrypt::CipherAES::IsHwSupportAvailable() const"

or "is_aes_hw_cpu_supported" make sure you have NOASM=1. It is for hardware AES anyway.

 

export LD_LIBRARY_PATH='/opt/lib:/opt/local/lib'
You will need to edit the Makefile and in the "Linux" section, add
CC_FLAGS += '-march=i686'
CC_XX_FLAGS += '-march=i686'

 

Else you will get complaints about _sync_fetch_and_add_4. (http://systemsnotebook.blogspot.com/2011/05/ddrescue-on-synology-optware.html)

 

Final step!

make NOGUI=1 WXSTATIC=1 ARCH=i686 CC=gcc AS=/opt/local/bin/nasm NOASM=1

 

Truecrypt compiled in Main/truecrypt

 

Copy this to your /opt/local/bin or where ever you place your executables.

 

I'll have a following post on using Truecrypt files.

When trying to mount an Truecrypt image it complained about a missing module. I have compiled the required modules in this post.