haroldsnippert

Reduce data consumption windows laptop when abroad

Hi,

When being abroad, your windows laptop might consume consideral amounts of data, making you poor.

Especially when travelling around using a 3G or 4G hotspot , you might burn your data quickly since windows can’t tell where you are. It just spots a wireless lan and starts updating. Especially with windows 10 coming up, that might eat your data pretty quickly. Worst case, you’re getting poor….

The script below checks if your at home or at work. It then turns on windows update services.
If somewhere else, the windows update services are stopped and also disabled.

Run as administrator and/or schedule at logon or windows startup.
Change the ip addresses to your own network gateway
If no valid address found, windows update services are disabled!!
Add your own services to the appropriate lines.
Build in as many checks that you like by repeating the line starting with “for /f “delims=:”
Do check from a command line if the reply is mentioned.
Script is tested with english and dutch versions of windows 7 and windows 10 and works.

Have fun!

Regards,
Harold Snippert

#######################################

create file:
pingscript-turnonoff-windowsupdate.cmd

#######################################

rem script created by Harold Snippert november 1st 2015
rem
rem turns off data eating services like windows update, when not at home and when abroad
rem saves money
rem
rem schedule on windows machine at logon or run with admin privileges
rem first ping to gateway, if reply from gateway all is fine, turn on services
rem no ping? turn off data eating services like windows update
rem mind you, windows update services are turned off by default by this script
rem no warranties…..
rem
rem 173.194.65.101 is IP for google.com, replace local ip addresses by google ip to test
rem

@echo off

echo send ping to ip that is listed in the line

rem this line is for english computers
for /f “delims=:” %%I in (‘ping -n 1 192.168.1.254’) do if “%%I”==”Reply from 192.168.1.254” (goto pingisgood)

rem this line is for dutch computers
for /f “delims=:” %%I in (‘ping -n 1 192.168.1.254’) do if “%%I”==”Antwoord van 192.168.1.254” (goto pingisgood)

rem add extra lines for multiple subnets
rem for /f “delims=:” %%I in (‘ping -n 1 173.194.65.101’) do if “%%I”==”Reply from 173.194.65.101” (goto pingisgood)

:pingisnotgood
echo no reply from local network, we’re not at home, turn off services that eat your data.
sc config “wuauserv” start= disabled
net stop wuauserv

rem add your own services here

goto endpingscript

:pingisgood
echo yes, a reply from local network, we’re at home, turn on services
sc config “wuauserv” start= delayed-auto
net start wuauserv

rem add your own services here

goto endpingscript

:endpingscript

rem to debug output, remove remark below
rem pause

Access multiple Owncloud instances on 1 pc

This blog post is now obsolete since version 2 of the owncloud client now supports multiple accounts.
Thanks for all positive responses!!!!

#################################################

As for accessing multiple owncloud instances on one pc.

I am running 2 Owncloud clients next to each other succesfully on a Windows 7 system.
There are several ways to do that, the essence is running the software with different users.
Those user accounts allready have to exist, in this example i’m using User-A (my main user) and User-B (a separate owncloud user)

First method is by using the task scheduler

Create a task that runs owncloud.exe when you logon.
Select: “run whether the user is logged on or not” and select the user that has to run that task (in this case User-B).
As a trigger select “at log on” and select a specific user: “yourpc\User-A” (your main account)
As action, point to owncloud.exe (probably “C:\Program Files (x86)\ownCloud\owncloud.exe”)
When hitting OK, you’ll be asked to type the password for User-B
Now run the task. You’ll be asked to set serveradress, uername password and folder for owncloud data.
Do not use the same folder as your first owncloud instance.
That will seriously screw up your data.
After rebooting you’ll see 2 processes. Only 1 interacts with your desktop.
Data will now be exchanged with 2 different owncloud systems.

Second method is by using psexec

psexec:
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

Place the psexec.exe somewhere in a folder. Create a batchfile in the same folder “start-second-owncloud.cmd”
Put the line into the script that starts owncloud using psexec:
psexec -u -p -d -i “
in my example:
psexec -u User-B -p p@ssw0rd -d -i “C:\Program Files (x86)\ownCloud\owncloud.exe”
if you don’t wanna place a password in a script, which i can imagine, just leave out the password entry.
psexec -u -d -i “
you’ll be asked the password for User-B everytime you’ll be starting the script when you log on.

Start the script using task scheduler or just place a shortcut in your startmenu-startup folder.

Now when logging on you’ll see 2 owncloud icons in your tray.
Both can be managed seperately and interactively.
Do not point multiple instances to the same folder.
That’ll screw up your data.
You can copy data from 1 owncloud folder to another, no problem.

The first method mentioned above i use to run owncloud on servers regardless of people that are logged on, to synchronise local scripts.

I’m using the second option without the password option on my pc’s to connect to multiple owncloud servers.
Works like a charm.

Good luck!

Nextgen Shortcodes

Whenever we build a website using WordPress.org and the client request a gallery – we always use NextGEN.

I can’t fault them for the features it offers, its a fantastic bit of kit – but when it actually comes to the shortcodes to get it to display stuff – NextGEN fail big time.

So i google it every time, sometimes finding what i want – but most of the time having to piece it together from examples people have p=ut on forums.

Today, i found a blog that lists many of the Shortcodes – so i thought i’d repeat them so they are easier for people to find! – Thanks InfoPint!

List of Short Codes for NextGEN Gallery

Short codes are the piece of text which you add along with you text on your blog post or sidebars. Short codes can also be added inside the theme templates.

{ } replace by [ ]
For a slideshow : {slideshow id=x w=width h=height }
For an album : {album id=x template=extend} or { album id=x template=compact }
For a gallery : {nggallery id=x}
For a single picture : {singlepic id=x w=width h=height mode=web20|watermark float=left|right }
For an image browser : {imagebrowse r id=x }}
To show image sorted by tags : {nggtags gallery=mytag,wordpress,… }
To show tag albums : {nggtags album=mytag,wordpress,… }

Create Special Effects using Short Codes in the template files

Short codes can be called from any theme template files, using do_shortcode template tag from the template files. Here are some examples

<?php echo do_shortcode(’{ slideshow id=2 }); ?>

You can use this technique to create special flash headers with rotating images or create a showcase effect like here www.StyleHaute.com

Display Gallery view

http://nextgen-gallery.com/templates/galleryview/

[ nggallery id=1 template=galleryview images=0 ]

Useful Links for NextGEN Gallery

http://nextgen-gallery.com/custom-fields/

http://wordpress.org/support/topic/294912

http://dpotter.net/Technical/2008/05/nextgen-gallery-review-displaying-images/

http://www.visser.com.au/blog/list-of-wordpress-plugins-addons-for-nextgen-gallery/

http://speckyboy.com/2008/10/23/10-powerful-shoppingecommerce-plugin-solutions-for-wordpress/

http://www.webdesignerwall.com/tutorials/css-decorative-gallery/

 

article originally from:
http://www.websitewarranty.co.uk/wordpress-nextgen-gallery-shortcodes/

 

Facebook apps blocken

Facebook is leuk. Maar alle apps die hun notificaties spuien bederven de lol een beetje. Gelukkig is daar iets aan te doen. Je kunt namelijk gewoon meldingen van facebook apps blokkeren zonder de vrienden te blocken of te ontvrienden.

Naar je “news feed” pagina.
Dus inloggen op facebook en linksboven op het facebook logo klikken.

Back 2 basics – Coq au Vin

Na diverse stijlen en recepten te hebben geprobeerd wordt het nu tijd voor de klassiekers, om te beginnen met Coq au Vin. Niet supermoeilijk en heeeeeel lekker. Heb er in witte wijn gestoofde witte kool met gekookte aardappelen bijgedaan. Bak ook even een stokbroodje af om de pan mee uit te kunnen deppen 🙂

Uitbreiding serverpark A&RT

Afgelopen Maart heeft A&RT flinke uitbreiding gehad van het serverpark. Er is nu ruim 8TB redundant storage online voor remote backup. Ook zijn er 6 zware vmware hosts bijgeplaatst waarvan 3 stuks volledig 64bit waar we onder andere hosted Exhange 2007 op gaan aanbieden. A&RT beschikt nu over zowel linux als windows produktie platformen met mailservers van Hmailserver, Zimbra en MS Exchange 2007. Websites draaien op IIS en Apache, CMS systemen zijn op dit moment in ontwikkelingen en draaien met Etomite.
Alle servers zijn ondergebracht bij Xynta in hun datacenter bij Nedzone in Steenbergen.
Wilt u geen omkijken hebben naar uw backup door deze buiten uw pand te brengen en op die manier uw kostbare data beveiligd hebben tegen computercrashes, brand of diefstal? Neem dan contact met ons op voor een passende offerte.

Fijne film

Af en toe steekt er voor wat mij betreft een film er net ff bovenuit. Kreeg een dvd te leen van “Stranger than Fiction”. Zou ik normaliter geskipt hebben omdat ik het niet zo heb met Will Ferrell.
Wat een heerlijke film. Op zoek gaan naar wat je drijft in het leven en je eigen keuzes maken. Flink op je muil gaan maar uiteindelijk gave dingen meemaken. Mooi thema toch?

Stranger than Fiction