January 22, 2016
November 26, 2015
[SOLVED] Gulp. No path specified! Can not get relative
If you getting something like this on image optimization task
/xxx/node_modules/gulp/node_modules/vinyl-fs/node_modules/vinyl/index.js:153
if (!this.path) throw new Error('No path specified! Can not get relative.'
/xxx/node_modules/gulp/node_modules/vinyl-fs/node_modules/vinyl/index.js:153
if (!this.path) throw new Error('No path specified! Can not get relative.'
Check if you have files/folders with spaces
$ find . -type f -name '*.*' | grep " "
Rename the files/folders
try one more time
October 15, 2015
[SOLVED] "The state token is invalid or has expired. Please try again."
If you are getting the "The state token is invalid or has expired. Please try again." while building an Add-on for Google Drive Documents/Sheets with oAuth.
It is possible that your OAuth server just cuts off the part of the state token parameter.
In case of magento just increase the size of oauth callback_url columns from 255 to 512 chars.
ALTER TABLE oauth_consumer MODIFY callback_url VARCHAR(512);
ALTER TABLE oauth_consumer MODIFY rejected_callback_url VARCHAR(512);
ALTER TABLE oauth_token MODIFY callback_url VARCHAR(512);
Or via update script (something like that)
ALTER TABLE oauth_consumer MODIFY rejected_callback_url VARCHAR(512);
ALTER TABLE oauth_token MODIFY callback_url VARCHAR(512);
Or via update script (something like that)
$adapter = $installer->getConnection();
$tagsTableName = $installer->getTable('oauth/consumer'); $adapter->modifyColumn($tagsTableName, 'callback_url', 'VARCHAR(512)'); $adapter->modifyColumn($tagsTableName, 'callback_url', 'VARCHAR(512)'); $tagsTableName = $installer->getTable('oauth/token'); $adapter->modifyColumn($tagsTableName, 'callback_url', 'VARCHAR(512)'); $installer->endSetup();
Update: This issue has been fixed by me in magento 2
https://github.com/magento/magento2/pull/2124
Links:
- https://developers.google.com/apps-script/add-ons/
- https://developers.google.com/apps-script/reference/script/state-token-builder
August 10, 2015
June 13, 2015
Don't panic, it's not major fuck up. It's just minor hiccup ;)
Don't panic, it's not major fuck up. It's just minor hiccup ;) (c) me
May 3, 2015
T-Shirt: Meditating Android
Just made me a new t-Shirt ;) You can order it on zazzle now.
Inspired by +Anna Piechulla 's post https://plus.google.com/u/0/+AnnaPiechulla/posts/1VGJBx6isBN
Inspired by +Anna Piechulla 's post https://plus.google.com/u/0/+AnnaPiechulla/posts/1VGJBx6isBN
[SOLVED]U2F Google Authentification (Chrome) with Yubikey under Ubuntu
Just bought this shiny FIDO U2F Security Key and tried out it on my Ubuntu with GMail.
At first time it wont work because one should do following:
Download or create a copy of this file named: 70-u2f.rules into the Linux directory: /etc/udev/rules.d/
https://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules
now it's working ;)
Amazon: FIDO U2F Security Key
October 2, 2014
August 10, 2014
[SOLVED] Fixed: Lossy operations are not currently supported
kinda fixed
if you getting
just uninstall optipng
Source: http://subdigit.com/blog/project-bootstrapping/
if you getting
Warning: Running "imagemin:dist" (imagemin) task Warning: Command failed: ** Error: Lossy operations are not currently supported Use --force to continue.
just uninstall optipng
sudo apt-get remove optipng
Source: http://subdigit.com/blog/project-bootstrapping/
July 23, 2014
[SOLVED] Remove Untagged Images From Docker
Remove all stopped containers.
docker rm $(docker ps -a -q)
Remove all untagged images
July 12, 2014
[SOLVED]Google Cloud Print and the Raspberry Pi
# sudo apt-get update
# sudo apt-get install build-essential python-dev libcups2-dev
# install cups on raspberry http://www.howtogeek.com/169679/how-to-add-a-printer-to-your-raspberry-pi-or-other-linux-computer/
# sudo apt-get install python-setuptools
# sudo easy_install pip
# sudo pip install cloudprint pycups
# cloudprint
# sudo cp .cloudprintauth .cloudprintauth.sasl /root
# sudo nano /etc/init.d/gcloudprint
Paste
#! /bin/bash
# /etc/init.d/gcloudprint
# sudo chmod +x /etc/init.d/gcloudprint
# sudo update-rc.d gcloudprint default
Source: http://blog.onslow-web.co.uk/?p=71
# sudo apt-get install build-essential python-dev libcups2-dev
# install cups on raspberry http://www.howtogeek.com/169679/how-to-add-a-printer-to-your-raspberry-pi-or-other-linux-computer/
# sudo apt-get install python-setuptools
# sudo easy_install pip
# sudo pip install cloudprint pycups
# cloudprint
# sudo cp .cloudprintauth .cloudprintauth.sasl /root
# sudo nano /etc/init.d/gcloudprint
Paste
#! /bin/bash
# /etc/init.d/gcloudprint
### BEGIN INIT INFO
# Provides: cloudprint
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: System service to run cloud print connector
# Description: System service to run cloud print connector
### END INIT INFO
# Carry out start/stop/restart actions
case "$1" in
start)
echo "Starting cloud print connector"
sudo -u pi cloudprint >> /var/log/cloudprint.log &
;;
stop)
echo "Stopping cloud print connector"
killall cloudprint
;;
restart)
echo "Restart connector"
echo "Stopping cloud print connector"
killall cloudprint
echo "Starting cloud print connector"
sudo -u pi cloudprint >> /var/log/cloudprint.log &
;;
*)
echo "Usage: /etc/init.d/gcloudprint {start|stop|restart}"
exit 1
;;
esac
exit 0
# sudo chmod +x /etc/init.d/gcloudprint
# sudo update-rc.d gcloudprint default
Source: http://blog.onslow-web.co.uk/?p=71
May 9, 2014
[SOLVED] Reset unity on Ubuntu
I misconfiguret my unity on ubuntu. Can't move windows. No Title on windows.
This here helped
- dconf reset -f /org/compiz/
- setsid unity
your windows will flicker a bit
restart your ubuntu
Source: https://www.youtube.com/watch?v=QoCmnLCY558
April 30, 2014
[SOLVED] Install multiple versions of Firefox on Ubuntu
- Download desired firefox version here https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
- Extract it to e.g. /opt/firefox2/
Source: http://www.wikihow.com/Install-multiple-versions-of-Firefox-on-Ubuntu
April 13, 2014
My collection of cloud IDEs
My collection of cloud IDEs (incl. shameless referral links):
Am I missing one?
- https://codenvy.com/
- https://c9.io/
- https://www.nitrous.io/join/EJBYozfU2po
- https://koding.com/R/russenreaktor
Am I missing one?
April 3, 2014
[SOLVED] Install jenkins on debian
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -Then add the following entry in your /etc/apt/sources.list:
deb http://pkg.jenkins-ci.org/debian binary/Update your local package index, then finally install Jenkins:
sudo apt-get update sudo apt-get install jenkinsSource: http://pkg.jenkins-ci.org/debian/
February 27, 2014
February 26, 2014
January 12, 2014
November 24, 2013
[SOLVED]HMA VPN via OpenVPN on Ubuntu with Network Manager
- Install network-manager-openvpn-gnome
- Download the vpn-config.zip ( http://hidemyass.com/vpn-config/vpn-config.zip )
- Download the linux installer ( https://vpn.hidemyass.com/linux.zip )
- Create vpn folder (e.g. ~/vpn)
- Extract both zip files there
- Open network-manager (System->Preferences->Network Connections)
- Go to VPN tab
- Import the *.ovpn entry for the location you wish to connect
- Edit the entry and change the "Type" to Password with Certificates (TLS)
- The gateway and cert/keys should already be populated from the import
- Add your vpn username and password
- Apply
- Use the network icon in the panel to navigate to your VPN entry and connect
Source: http://wiki.hidemyass.com/Tutorials:HMA_VPN_via_OpenVPN_on_Ubuntu_with_Network_Manager
November 10, 2013
[SOLVED]Enable Hibernation in Ubuntu 13.10
sudo gedit /var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Copy and paste below lines into the file and save it.
[Re-enable hibernate by default in upower] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes [Re-enable hibernate by default in logind] Identity=unix-user:* Action=org.freedesktop.login1.hibernate ResultActive=yes
Source: http://ubuntuhandbook.org/index.php/2013/10/enable-hibernation-ubuntu-13-10/
Subscribe to:
Posts (Atom)










