Geralds Thought Shed

Gedanken zu .Net, C#, Java, Windows, Linux, Mobile-Life und mehr….

Numlock nach Booten

Verfasst von Gerald Huber am Samstag, 9. Mai 2009

Wenn jemand schon mal seinen Nummernblock unter Debian sofort aktiviert haben wollte, sollte hiermit zurecht kommen:

  • Generell für die Konsole gilt:
    • In der letzten Zeile von /etc/console-tools/config:

      LEDS=+num

    • alternativ: ein Skript erstellen:
      # /etc/init.d/setleds: set the state of keyboard LEDs (numlock ON)
      PATH="/sbin:/bin:/usr/sbin:/usr/bin"
      [ -e /usr/bin/setleds ] || exit 0

      echo -n „Setting Numlock=ON as default… „
      for TTY in /dev/tty[1-10]; do
      setleds -D +num < $TTY > /dev/null
      done
      echo „done.“

      exit 0

    • und einbinden: update-rc.d setleds start 20 2 .
  • Zitat von: http://linuxwiki.de/TastaturKonfiguration

  • X Window System

    Beim X Window System ist es nicht ganz so einfach. Zum Glück gibt es einen fertigen Code den Ihr mit dem Paket numlockx installieren könnt. Ist das Paket auf der Platte genügt es, den Befehl

    numlockx on

    in die Datei ~/.xinit.rc zu schreiben. Die Datei könnt Ihr notfalls auch gleich selbst anlegen.

    Zitat von: http://blog.chip.de/chip-linux-blog/kurztipp-numlock-auch-fuer-x-beim-booten-20080218

Veröffentlicht in Linux, OS | Verschlagwortet mit : , , | Kommentar schreiben »

Iceweasel – Printer Preview….

Verfasst von Gerald Huber am Donnerstag, 7. Mai 2009

Da ich gerade erst von KDE auf Gnome umgestiegen bin, bin ich sagen wir… auch zum ersten mal auf das sehr seltsame Verhalten von Iceweasel unter Debian (Lenny) gestoßen.
Folgendes ist mir auch aufgefallen und beinhaltet auch gleich die Lösung:

I assume it’s the same in other distributions, but under Debian in Iceweasel, print preview by default is lacking the option to scale content and view it in either landscape or portrait.

From digging around in the configuration I found the print.whileInPrintPreview value to be set to ‘false’. Changing this to ‘true’ enabled scaling and landscape/portrait mode.

I have no idea why this isn’t enabled by default, but I assume it will be at some point in a future version. The funny thing is, all of this is enabled by default in the Windows build and I’m not sure about OSX.

Und da gibt es auch eine weiteres Problem, welches ich auch bestätigen kann:

I also found that using a custom scale produces a bug that splits the window into two panes, each with cut-off text. Whenever I close print preview and re-open it, everything looks fine.

Eine sicherlich bessere und schneller Lösung für dieses „Split-Panel“-Problem ist es, mal eben die Landsape/Portrait bzw. Hochformat/Querformat zu betätigen.

Alle Zitate von: Mean Jollies Blog – Firefox’s print preview

Veröffentlicht in Firefox, Linux, OS | Kommentar schreiben »

Realtek ALC1200 Soundprobleme unter Linux (Debian)

Verfasst von Gerald Huber am Dienstag, 5. Mai 2009

Ich habe das Asus M3N78 Pro-Board in meinem Rechner und nutze die Onboard-Soundkarte ALC1200 von Realtek. Leider erkennt das aktuelle Debian Stable (Lenny) diese Soundkarte beim Bootvorgang nicht automatisch. Aber dank Linux und den init-Scripten ist das auch kein Problem.

Ich habe mir nun folgendes gebaut:

  1. Als erstest sollte man mal überhaupt prüfen ob man einen Sound aus der Linux-Kiste bekommt. Hierzu als Root mittels ein paar Konsolenkommandos die Soundkarte manuell erkennen lassen:
    • rmmod snd_hda_intel
      Entfernt erst mal das zuständige Kernelmodule. Dieses sollte ja eigentlich nicht geladen sein. Aber besser wir überprüfen es mal.
    • modprobe snd_hda_intel
      Dieser Befehl lädt das Soundmodul, welches eigentlich unserer Linuxkiste beibringen sollte wie man unsere gelibeten mp3, etc abspielt.
    • War die Soundausgabe (z.B. durch Abspielen einer mp3 im mplayer) erfolgreich, können wir zum nächsten Schritt weitergehen.
  2. Hierzu schreiben wir uns ein kleines init-Script für den Bootvorgang, welches wir unter
    /etc/init.d/intelaudio_start
    ablegen. Das Script sieht dann folgendermaßen aus:

    #!/bin/sh
    modprob snd_hda_intel
    exit 0

  3. Ein weiteres Script (/etc/init.d/intelaudio_stop) soll beim Herunterfahren der Neustart wieder das Kernelmodul sauber entfernen:

    #!/bin/sh
    rmmod snd_hda_intel
    exit 0

  4. Als nächstes müssen wir nun diese beiden Script nur noch in den jeweiligen „Run Leveln“ starten. Zu den Run-Leveln finden wir im Debian-Anwenderhandbuch folgenden Hinweis:

    Runlevel:

    0

    halt, hält das System an, ohne es neu zu starten.

    2 bis 5

    Multiuser Modus, in diesen Runleveln wird üblicherweise gearbeitet. Ein unverändertes Debian System läuft im Normalbetrieb im Runlevel 2.

    6
    Dieser Runlevel dient zum Neustarten (Reboot) des Systems.

    Zitat von: 3.8 Systemstart und -stop bei Debian

  5. Durch das Programm "update-rc.d", das die Scripte aus /etc/init.d/ in die jeweiligen Runlevel-Verzeichnisse (/etc/rc0.d/ bis /etc/rcS.d/) verlinkt und ihnen einen Platz in der Ausführungsreihenfolge zuweist, erhalten wir unseren automatisiterten Start der Scripte zu den jeweiligen Run-Level-Zeitpunkten.
  6. Mit

    update-rc.d /etc/init.d/intelaudio_start start 49 2 .

    Wird das Boot-Script in den Run-Level 2 eingetragen, wobei es an 49 Platz der Bootsequenz gestartet wird. Die Leerzeichen und der Punkt am Ende sind wichtig!

  7. Gleiches gilt für unser Stop-Script

    :update-rc.d /etc/init.d/intelaudio_stop start 51 0 6 .

    Hier wird das Script „intelaudio_stop“ auf Platz 51 (in der Regel sollte man immer 100 minus Startstelle, also 100-49=Stoppplatz wählen) in den Runlevels 0 und 6 (Shutdown und Reboot) gestartet. Die Leerzeichen und der Punkt am Ende sind auch hier wichtig!

Das war’s auch schon….

Hoffe es hilft dem ein oder anderen…

Veröffentlicht in Linux, OS | Verschlagwortet mit : , , | 1 Kommentar »

Featured Articles: „Werbung die Emotionen weckt“

Verfasst von Gerald Huber am Freitag, 19. Dezember 2008

Ich hätte es nicht besser sagen können:

Damit Werbung bei potentiellen Kunden registriert wird, muss zu allererst die Aufmerksamkeit des Betrachters gewonnen werden. [...] Ein wichtiges Mittel um daher im Gedächtnis des Betrachters „hängen zu bleiben“, ist das Erreichen der emotionalen Ebene. Ein Schritt der unserer Meinung nach den folgenden Werbe-Kampagnen durchaus eindrucksvoll gelingt.

Zieht euch einfach den Blogeintrag „Werbung die Emotionen weckt“ auf dem Webstandard-Blog rein von dem auch der Kommentar kommt.

Veröffentlicht in Featured Articles, News from OutaSpace | Verschlagwortet mit : | Kommentar schreiben »

Meetup…. Komischer Dienst aber cooles Video

Verfasst von Gerald Huber am Dienstag, 16. Dezember 2008

Ich bin in meiner Recherche über soziale Dienste und Websites mit Bezug zu Communities und sozialen „Ereignissen“ auf den Dienst Meetup gestoßen.

Eigentlich finde ich den Dienst etwas komisch… aber die Anzahl der „gehosteten“ Meetings belegen eigentlich eine rege Benutzung des Services.

Aber wegen was ich dachte, ich sollte mal darüber bloggen, waren auch eher die Videos die Meetup „erklären“ sollen.

Sie sind direkt auf der Meetup-Seite  und dann die Videos „New to Meetup?“ zufinden… *looool*

Reblog this post [with Zemanta]

Veröffentlicht in News from OutaSpace | Kommentar schreiben »

Outlook mal ein wenig „sozialer“

Verfasst von Gerald Huber am Sonntag, 14. Dezember 2008

Einige Tage ist es schon her, dass ich über ein neuartiges MS Outlook Plug-in gestoßen bin. Doch leider hatte ich bis jetzt keine Zeit gefunden darüber zu bloggen. Es nennt sich XOBNI (also Inbox rückwärts).

Dieses Plugin analysiert die Inbox von Outlook und somit das „Netzwerk“ in welchem man sich befindet. Somit hat man schnell einen Überblick über sein eigenes „soziales Emailnetzwerk“. Es bietet neben einer Sende-/Empfangsstatistik (wann wurden Emails empfangen/verschickt) auch eine Anzeige des Ranges eines Kontaktes, bzw. ein „Ein-Blick-Statistik“ des Verhätnisses über eingehede und ausgehende Emails. Weiter sind Links zu den Kontakten für LinkedIn und Facebook, etc. vorhanden. Auch eine Verwaltung der Anhänge schafft einen schnellen Überblick. Weitere Infos gibt es unter diesem Link.

Also endlich wird Outlook sozialer….

Reblog this post [with Zemanta]

Veröffentlicht in Apps, Office 2007 | Verschlagwortet mit : , | Kommentar schreiben »

Free to download: Ein „Yellow“ C# Buch

Verfasst von Gerald Huber am Dienstag, 2. Dezember 2008

Rob Miles hat in seinem Blog „robmiles.com“ einen kostenlosen pdf-Download seines C#-Buches in der aktuellen 2008-Fassung angeboten.

Dieses Buch wird, so schreibt er in dem Blogeintrag „C# Yellow Book“, im Department of Computer Science in the University of Hull als Einstiegsbuch für das erste Jahr in der Programmierung verwendet.

Es ist nach meiner Meinung auf jeden Fall einen Blick und einen kleinen Download des 1,4MB großen PDFs wert.

Reblog this post [with Zemanta]

Veröffentlicht in .NET, News from OutaSpace, Programmierung | Verschlagwortet mit : , , | Kommentar schreiben »

Featured Articles: The „Participatory Urbanism“-Project

Verfasst von Gerald Huber am Montag, 1. Dezember 2008

Das Projekt „Participatory Urbanism“ gehört in die Projekt Reihe „Urban Atmospheres“ mehrere Gruppen von Forschern von Intel Research und der UC Berkeley.

Die Aufgabe des Projektes ist:

Urban Atmospheres’ Participatory Urbanism presents an important new shift in mobile device usage – from communication tool to “networked mobile personal measurement instrument”. We explore how these new “instruments” enable entirely new participatory urban lifestyles and create novel mobile device usage models.

In the spirit of Urban Computing, Participatory Urbanism is the open authoring, sharing, and remixing of new or existing urban technologies marked by, requiring, or involving participation, especially affording the opportunity for individual citizen participation, sharing, and voice. Participatory Urbanism builds upon a large body of related projects where citizens act as agents of change.

Participatory Urbanism promotes new styles and methods for individual citizens to become proactive in their involvement with their city, neighborhood, and urban self reflexivity.

Our mobile devices are more than just personal communication tools . They are globally networked, speak the lingua franca of the city (SMS, Bluetooth, MMS), and are becoming the dominant urban processor. We need to shatter our understanding of them as phones and celebrate them in their new role as measurement instruments. Our desire is to provide our mobile devices with new “super-senses” and abilities by enabling a wide range of physical sensors to be easily attached and used by anyone, especially non-experts.

In ihrem Experiment in Accra, Ghana, brachten sie Luftqualitätmessgeräte an Taxis an. Aber eine Frage bleibt, was ist, wenn unsere Handys mit Sesoren für Luftqualität, Wassserqualität, UV-Internsität, etc. ausgestattet werden?

We [the researchers] claim that it will shatter our understanding of these devices as simply communication tools (a.k.a. phones) and celebrates them in their new role as measurement instruments. We envision a wide range of novel physical sensors attached to mobile devices, empowering everyday non-experts with new “super-senses” and abilities.

Integrating simple air quality sensors into networked mobile phones promotes everyday citizens to uncover, visualize, and collectively share real-time air quality measurements from their own everyday urban lifestyles.

This system shows individuals a pattern of their own behavior that may not be easy to discern without such a tool and application. The air quality that an individual encounters varies by time of day, route and mode of travel, and time of year. Individuals are also able to compare the levels of air pollution they are exposed to daily with that of their friends, family, or other citizens in not only their own metropolis but across global cities. We hope to promote continued use by bringing these environmental phenomena and patterns to the individual’s attention.

Using the N-SMARTS hardware from UC Berkeley we are designing hardware and software mobile systems to enable Participatory Urbanism.

Zitate von Participatory Urbanism

Veröffentlicht in Mobile, News from OutaSpace | Verschlagwortet mit : | Kommentar schreiben »

Featured Articles: Fighting Traffic Jams With Data – WSJ

Verfasst von Gerald Huber am Dienstag, 18. November 2008

Nun ist es knapp 1 1/2 Wochen her, dass ich in Darmstadt auf der iTEC08 war. Eine interessante Veranstaltung über alle möglichen IT-Themen.

Einer der Tracks beschäftigte sich mit dem Thema „E-Traffic“. Hier wurde neben einer Traffic-Management-Erforschung in UK, auch über das Hessische „Staufreies Hessen 2015“ berichtet.
Nun habe ich aber heute einen sehr interessanten Artikel zu Car-To-Car-Communication im Onlineportal des „The Wall Street Journal“ gefunden:

NOVEMBER 17, 2008
Fighting Traffic Jams With Data
Researchers Develop Ways for Cars to ‘Talk’ to Each Other and Send Warnings

Es heißt hier dass….

A symphony of light-emitting diodes, smartphones, global positioning systems and mobile sensors may soon work together to help drivers avoid traffic jams.

The aim is to address the growing problem of traffic congestion through improved communications between cars.

The CarTel project, run out of the Massachusetts Institute of Technology, is one attempt to free up the jam. Hari Balakrishnan, a professor in the department of electrical engineering and computer science, has developed a system to capture massive amounts of traffic data.

Mr. Balakrishnan has outfitted a fleet of limousines and taxis with mobile sensors that pick up real-time information on the location and speed of the vehicles as well as the condition of the roads. The data are fed back to a central computer that calculates the traffic patterns and can predict the optimal route.

Mr. Balakrishnan said he saves an average 10 minutes or more on his local commute by using the system, compared with a standard online-mapping service. The time saved increased depending on distance.

Mr. Balakrishnan hopes to expand the project. The taxi and limousine operator currently has 50 cars feeding him data. But a more comprehensive program would only work with more sources. He plans to distribute to smartphones programs that can perform similar functions, relying on regular commuters who can download the programs online or sources such as Apple Inc.’s App Store.

The information will eventually be distributed online, through smartphones and global positioning systems. Such a project could realistically work on a massive scale because many cars, and even more cellphones, are equipped with GPS equipment.

Interessant ist hier aber auch die Benutzung von Infrarot zur direkten Kommunikation zwischen den Autos…

Data can be modulated to travel with the light. It works for cars on the road because they are inherently lined up with each other, giving them perfect line-of-sight communication paths.

If a car ahead encounters ice or a major pothole, the data can be transmitted to the car behind, giving a warning on the road conditions. Or the sudden stop of a car in front could trigger an automatic braking system in the car behind.

Aber es ist noch nicht einmal Zukunfstmusik, wie ja auch der Track der iTEC08 zeigte. In den USA, wird neben den uns bekannten TomTom Traffic-Informationen (die Daten kommen hier von Vodafone), schon mit großen medien Partner in Benutzung…

Drivers looking for a quick update now can use their cellphones to look at live traffic feeds. The free program is created by closely held 3rd Dimension Inc., which takes video from local transportation-department cameras and broadcasts them through a mobile program.

The company has media partners that distribute the service. In New York, the program is known as the NBC New York Traffic Cam. Traffic feeds are available in nine major cities, including New York, Los Angeles, Houston and Detroit, and are typically promoted and distributed by a media partner such as NBC, a unit of General Electric Co..

Users can check out the feed on their phone or get text-message alerts sent to them. 3rd Dimension has plans to expand its geo-tagging capabilities, sending targeted ads or public-service announcements based on where the driver and car are.

Wer den ganzen Artikel lesen möchte, findet in hier: Fighting Traffic Jams With Data – WSJ.com

Reblog this post [with Zemanta]

Veröffentlicht in Featured Articles, News from OutaSpace | Verschlagwortet mit : , | Kommentar schreiben »

Featured Articles: How Nike’s Social Network Sells to Runners

Verfasst von Gerald Huber am Montag, 17. November 2008

Gerade ist es jetzt mal rund 2-3 Wochen her, da hat meine Freundin auch so ein Ding geschenkt bekommen…

Ein interessanter Artikel….

Interessant ist hier, was gerade heiß diskutiert wird: Cross-Marketing  mit Social-Networks…

How Nike’s Social Network Sells to Runners
The Nike+ site is drawing hordes of runners, and its success may hold lessons for brand building on the Web

In the two years since it launched Nike+, a technology that tracks data of every run and connects runners around the world at a Web site, nikeplus.com, Nike has built a legion of fans.

Overall, the use of social networks worldwide has grown 38% in the past year, according to market researcher comScore. But a recent McKinsey survey found that many companies struggle with Web 2.0 technology and that only 21% of the nearly 2,000 executives who responded were satisfied with the software available to launch blogs or create Facebook applications.

Und hier wird es sehr interessant: Es gab, so wird behauptet, am Anfang nicht die Idee einer neuen Werbeplattform….

Nike’s online strategy differs from those of other companies. Most have tried to create virtual communities through a build-it-and-they-will-come approach centered on a brand or specific product. Originally, the Beaverton (Ore.) company envisioned Nike+ simply as a clever way to combine music and running, not as a prototype for a new kind of marketing. „It was never about how can we convert some percentage of users [to buy Nike shoes],“ says Stefan Olander, global director of Nike consumer connections

Aber nun steigt man voll ein….. mal sehen ob es klappt:

Nike now hopes to score with another group of jocks: basketballers. The company is beta-testing Ballers Network, a Facebook application that lets players organize real-world games and manage their teams online.

(Zitate von: „How Nike’s Social Network Sells to Runners“ – BusinessWeek)

Veröffentlicht in News from OutaSpace, Uncategorized | Verschlagwortet mit : | Kommentar schreiben »