Kiosk pc – en pc-info-stander med printer

Jeg hjælper en kammerat med et projekt, hvor han pÃ¥ job skal bruge en infostander / kiosk-PC. Det er ret standard, men den skal kunne printe “selv”, – dvs. uden at der kommer printerdialogboks frem.

Her et linkdump til nyttig læsning i forbindelse med projektet:

  • Kiosk mode i Win: https://technet.microsoft.com/en-us/itpro/windows/manage/set-up-a-kiosk-for-windows-10-for-desktop-editions
  • Chrome som shell i Win: https://community.spiceworks.com/topic/499178-running-google-chrome-as-a-shell-instead-of-explorer-exe-how-to-make-it-re-open
  • Print:
    • http://stackoverflow.com/questions/2578052/printing-contents-of-another-page
    • http://stackoverflow.com/questions/9213660/html-javascript-one-click-print-no-dialogs
    • http://stackoverflow.com/questions/21073959/print-without-confirmation-on-google-chrome
    • https://mycartpos.zendesk.com/hc/en-us/articles/200868343-Enable-kiosk-printing-print-automatically-for-Google-Chrome-on-Windows
  • Firefox kiosk add-on: https://addons.mozilla.org/da/firefox/addon/mkiosk/
  • Firefox kiosk add-on 2: https://addons.mozilla.org/da/firefox/addon/r-kiosk/
  • Linux og Firefox kiosk: https://addons.mozilla.org/en-US/firefox/addon/webconverger/
  • Kiosk software:
    • http://www.sitekiosk.com/web/us/products/windows-kiosk-software-sitekiosk
    • http://www.kioware.com/comparison.aspx
    • http://netkiosk.co.uk/
  • On screen keyboard:
    • http://chessware.ch/virtual-keyboard/
  • Generel diskussion:
    • https://community.spiceworks.com/topic/486900-kiosk-software-for-public-facing-machines

(Men vil du bare samle emails pÃ¥ en tablet, sÃ¥ overvej: https://mailchimp.com/features/mailchimp-subscribe/ – eller en af de mange tablet kiosk apps, sÃ¥som Kioware.)

Javascript include – tricks

You can include a javascript like this:

function include(filename)
 {
var head = document.getElementsByTagName('head')[0];
 script = document.createElement('script');
 script.src = filename; 
script.type = 'text/javascript';
 head.appendChild(script)

}
Read more here: http://forums.digitalpoint.com/showthread.php?t=146094

Or even better:
You can easily read another JS-file inside the javascript using jquery:

$.getScript("my_lovely_script.js", function(){
    alert("Script loaded and executed.");    
  // here you can use anything you defined in the loaded script 
});

Read here: http://stackoverflow.com/questions/950087/include-javascript-file-inside-javascript-file

Resposivt design / responsive webdesign ressourceliste

In Danish:

 

Ang. responsive design

 UPDATE: Dejlig begynder-guide/tutorial til Responsive Design: http://webdesignerwall.com/tutorials/responsive-design-in-3-steps

Her er en tutorial til, hvordan responsivt design KAN laves:
http://webdesignerwall.com/tutorials/responsive-design-with-css3-media-queries

Her er en showcase af sites, der bruger det:
http://webdesignerwall.com/trends/inspiration-fluid-responsive-design

Det er eftersigende denne ene artikel, der startede HELE “bølgen”/trenden med responsive design:
http://www.alistapart.com/articles/responsive-web-design/

Her er nogle flere eksempler, hvor det benyttes:
http://labs.burntfeathers.com/?theme=village

Her er det IKKE decideret ”responsive design” men blot
slideshows i ”full screen”, hvilket jo nærmere er det, som kunden er ude i 8dog
ikke ligefrem som baggrund):
http://wpdressing.com/stunning-wordpress-portfolio-themes-to-display-fullscreen-image-slideshow-in-background/

Dansk kodeeksempel:
http://reiffs.dk/responsive-design/

Virker dog vist ikke med IE??

Gridsystem til resposive design:
http://goldengridsystem.com/

Flere ressourcer – inkl. link til bog:
http://spoiledmilk.dk/blog/responsive-design

Endnu flere ressourcer:
http://reiffs.dk/responsive-design-top-5/

Geo-location: redirect based on country/city/IP and stuff like that in WordPress

.. then check out these links:
http://www.ip2nation.com/ip2nation/Sample_Scripts
http://www.geobytes.com/geodirection.htm#AlternatePageName

And finally a real WordPress plugin:
http://geoposty.com/what-is-geoposty/

Also check this old post.

UPDATE 11th of July 2012:
This seems to be the best Geo-IP solution – free with javascript:
http://www.easyjquery.com/detect-get-clients-ip-address-country-using-javascript-php/

These have an API, but not too easy to use with javascript:
http://ipinfodb.com/ip_location_api_json.php

These too have a javascript, but with limitations (link or license)
http://www.maxmind.com/app/javascript
Explained here: http://www.superaffiliatetwins.com/free-geo-ip-javascript-campaigns/

Developing Facebook pages

blonde woman thinking with book on head

So you want to develop Facebook pages?

The best place to start is at the Facebook documentation!

In “the old days” you needed to learn how to use a special markup language called FBML (like HTML, but different 🙂 )
– which you can actually still use: http://developers.facebook.com/docs/reference/fbml/

But WAIT! Now you don’t really need to. You can do quite a lot with the Continue reading

How to track who reads your email newsletter

E2R DA16 206 Type KA common problem when programming newsletter software is how to track how many – or even who – opens / read the newsletter. Specifically how many reads it is very hard to know, but it IS possible to see how many opens your newsletter/mailinglist message – at least if you use images in your newsletter.

The trick is to track downloads of a certain image.

When ever this image is opened, the “counter” just adds 1 to the number of times the newsletter have been read/opened. Of course this requieres e.g. Outlook-users to accept that pictures should be shown, but then again if they don’t they probably don’t actually read the message and might as well not be included in the count.

If you setup a system that automates this so each reciever of the newsletter has his own “image”-code, you can even track who specifically read (opens that is) you newsletter.

The reciepe could be something like:
<img src=”http://mydomain.com/track.php?ID=newsletter-december-2009″ width=”0″ height=”0″ />
OR
<img alt=logo” src=”http://mydomain.com/track.php?ID=000001″ width=”500″ height=”100″ />
.. or a combination of the two.

If using the second model, where the image is actually visible, you need to make sure that the webserver sends an actual image when track.php is “asked”.

(Thanks to http://www.webmasterworld.com/forum10/5538.htm for leading me on to this to begin with.)