Norwegian Keymapping for console

Tonight on irc, ilovebrownies had a question about his/her Norwegian keymap - it wasn't working in the console.  I knew this could be a headache because I've dealt with it - I'm in Finland* but I've also dealt with UK keyboards, French keyboards, German keymaps...
Unfortunately we just could NOT get the Norwegian keymap to work.  Until, of course, 3 seconds after he/she logged off, whereupon, BOOM, it started working for me.
So I'm going to write up a guide - eventually - as a form of "here's the why and how so you can choose the way to make it work your way."  Suggestions as to where and 'other places of help' are welcome in that regard.
But as I've tried to write this 4 times already and just get far too longwinded, and it's getting very late, I will write that up later and for now, leave the immediate answer -
the "no" keymap doesn't put the ø on the key next to the p.  The other keymap DOES.  However, I had to load the Swedish/Finnish latin6 keymap before it.  I'm not sure why, and I'll look into why tommorrow.  Alternately, the Danish keymaps worked nicely with the alt-gr key.
(Mind you, ilovebrownies did not want to use the alt-gr key, but he/she wasn't OPPOSED to it, just it wasn't their first choice.)

what about loadkeys no?
As mentioned by several folks in this thread, it's the no keymap that (apparently) has issues, which is different from the no-latin1 keymap.  I don't think anyone has had an issue with the latin1 keymap, other than "not liking it."  (To be honest, I don't know what the difference _is_ and that is probably the main issue - myself and others don't really understand what the difference is supposed to be.  On top of that, "not liking no-latin1" is causing folks to _assume_ they'll like "no" and since it doesn't seem to do anything (i.e. it appears to be a "us" keymap, or "the kernel keymap" or similar) folks feel it's "broken."  i.e. "Missing characters."
If the .no (NOT no-latin1) keymap is a duplicate, should it be removed?  Or is it in some way actually filling a need, but it's confusing for the lot of us who have tried to use it?  (I'd figure the latter.  We just need to know what the heck it's doing.
(I also don't know where the Norwegian/Danish keys are supposed to be, I have .se/.fi keycaps, and use the us-international-deadkeys map myself, so I really shouldn't be testing this.  My eee pc has bizzarre keycaps of no/dk/se/fi, which in many cases all but cover the keycap, but having shown this to some .no typists they have suggested that those keycaps are "not even close to correct."  But I did open the thread... and I think the initial issue is still "open.")
For some reason I only got notifications on replies today.  Probably due to the recent upgrade of the forum software. Thus the recent flurry of activity...

Similar Messages

  • Norwegian language for spell checking in pages

    Where can i donload norwegian language for spell checking in pages ? and how to install it?
    Thanks for any answers...

    Try the links at
    http://m10lmac.blogspot.com/2011/06/norwegian-spell-check-and-dictionaryapp.html

  • Xserver-terminus-fonts pkgbuild. designed for console&xt

    These are very nice and clean, fixed width fonts designed for use under console and X.
    Description from the homepage:
    Terminus Font is designed for long (8 and more hours per day) work with computers. Version 4.09 contains 594 characters, covering code pages ISO8859-1/2/5/9/13/15/16, Windows-1250/1251/1252/1254/1257, IBM-437/852/855/866, KOI8-R/U/E/F, Bulgarian-MIK, Paratype-PT154/PT254, Macintosh-Ukrainian and Esperanto, and also the vt100 and xterm pseudographic characters.
    The sizes present are 8x14, 8x16, 10x20, 12x24, 14x28 and 16x32. The styles are normal and bold, plus EGA/VGA-bold for 8x14 and 8x16.
    The package can be split into 2 separate packages if you really need it (one for console and one for x-server). I don't need 2 packages :-)
    xserver-terminus-fonts PKGBUILD
    pkgname=xserver-terminus-fonts
    pkgver=4.09
    pkgrel=1
    pkgdesc="Clean fixed width fonts for console and x-server"
    url="http://www.is-vn.bg/hamster/jimmy-en.html"
    depends=('x-server' 'kbd')
    makedepends=('perl' 'mawk')
    install=xserver-terminus-fonts.install
    source=('http://www.is-vn.bg/hamster/terminus-font-4.09.tar.gz')
    md5sums=('21e832a4b4bfdd1f494eddea06ccfedf')
    build() {
    cd $startdir/src/terminus-font-4.09
    ./configure
    --prefix=/usr
    --psfdir=$startdir/pkg/usr/share/kbd/consolefonts
    --unidir=$startdir/pkg/usr/share/kbd/consoletrans
    --x11dir=$startdir/pkg/usr/X11R6/lib/X11/fonts/terminus
    make psf pcf
    make install-psf install-uni install-pcf
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/cp1250_to_uni.trans
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/cp1251_to_uni.trans
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/cp437_to_uni.trans
    rm -f $startdir/pkg/usr/share/kbd/consoletrans/koi8-r_to_uni.trans
    xserver-terminus-fonts.install
    # arg 1: the new package version
    post_install() {
    echo "Rebuilding font cache..."
    /usr/bin/fc-cache
    echo "...done."
    echo "Rebuilding font index..."
    cd /usr/X11R6/lib/X11/fonts/terminus
    /usr/X11R6/bin/mkfontscale
    /usr/X11R6/bin/mkfontdir
    rm -f /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    ln -s /usr/X11R6/lib/X11/fonts/encodings/encodings.dir
    /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    echo "...done."
    echo "------------------------------------"
    echo "Add (install) / delete (uninstall) the following"
    echo "font paths in your /etc/X11/xorg.conf or /etc/X11/XF86Config"
    echo ""
    echo "/usr/X11R6/lib/X11/fonts/terminus"
    echo ""
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    post_install $1
    # arg 1: the old package version
    pre_remove() {
    /bin/true
    # arg 1: the old package version
    post_remove() {
    post_install $1
    op=$1
    shift
    $op $*

    New version is out. I'm leaving the old pkgbuild above as backup.
    EDIT: Another update from 4.12 to 4.14 (small fixes only):
    xserver-terminus-fonts PKGBUILD
    pkgname=xserver-terminus-fonts
    pkgver=4.14
    pkgrel=1
    pkgdesc="Clean fixed width fonts for console and x-server"
    url="http://www.is-vn.bg/hamster/jimmy-en.html"
    depends=('x-server' 'kbd')
    makedepends=('perl' 'mawk')
    install=xserver-terminus-fonts.install
    source=(http://www.is-vn.bg/hamster/terminus-font-${pkgver}.tar.gz)
    md5sums=('2d96ec962b65498370fb8b8ea15294c8')
    build() {
    cd $startdir/src/terminus-font-${pkgver}
    ./configure
    --psfdir=/usr/share/kbd/consolefonts --unidir=/usr/share/kbd/consoletrans
    --x11dir=/usr/X11R6/lib/X11/fonts/terminus --acmdir=/usr/share/kbd/consoletrans
    --rawdir=/usr/share/terminus/pcvtfonts
    make psf pcf raw 12b txt
    make DESTDIR=$startdir/pkg install-psf install-pcf install-12b install-raw install-uni install-acm
    xserver-terminus-fonts.install
    # arg 1: the new package version
    post_install() {
    echo "Rebuilding font cache..."
    /usr/bin/fc-cache
    echo "...done."
    echo "Rebuilding font index..."
    cd /usr/X11R6/lib/X11/fonts/terminus
    /usr/X11R6/bin/mkfontscale
    /usr/X11R6/bin/mkfontdir
    rm -f /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    ln -s /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /usr/X11R6/lib/X11/fonts/terminus/encodings.dir
    echo "...done."
    echo "------------------------------------"
    echo "Add (install) / delete (uninstall) the following"
    echo "font paths to/from your /etc/X11/xorg.conf:"
    echo ""
    echo "/usr/X11R6/lib/X11/fonts/terminus"
    echo ""
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    post_install $1
    # arg 1: the old package version
    pre_remove() {
    /bin/true
    # arg 1: the old package version
    post_remove() {
    post_install $1
    op=$1
    shift
    $op $*

  • Changing port for console?

    Hi,
    is it possible to change WLS port for console application only on a standalone wls server?

    If i understand you right then .....i guess what you need is to have console on a differnt port than the http listen port ....for this you can use Administartion port.....in your console go to the domain tab and in that Enable Administaration port and then you can use this port for the administrative traffic.....so the new url for consle will be t3s://ipaddress:adminport/console..please test this in a test enviornment first......
    The other thing you were telling about is to change the context root for the console application ...you can do this in the same domain tab under configuration ...in the advanced tab you would see Console Context Path...just modify (sayfor eg: MyConsole) this and then you can use that value to bring up your console...http:ipaddress:port/MyConsole.....
    Both the above changes needs a restart of admin server......
    try in a test enviornment first.....
    Hope this answers your question .....
    Let us know if this works.......

  • I need an English/ Norwegian dictionary for my Mac can you help??

    I need an English/ Norwegian dictionary for my Mac.   can you help??
    I need this for translation both ways!!

    Firefox 4 requires MacOS X 10.5 or 10.6. Sorry about that. You can update to 3.6.17, but that is the end of the road for MacOS X 10.4.
    Actually, there's an unofficial release of Firefox code tweaked for 10.4 users with PowerPC processors. http://www.floodgap.com/software/tenfourfox/
    Before playing, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)

  • Hi, i've changed my password for console of zfs 7120, i've forgotten the password, how doing to recover the pawword or reset it. i've  rested the password of ilom but the issue is also here, great thanks.

    hi, i've changed my password for console of zfs 7120, i've forgotten the password, how doing to recover the pawword or reset it. i've  rested the password of ilo

    Hi.
    1.  In case  you have access to BUI 7120 as root but lost password to ILOM.
          Try change password on ZFS stroage via BUI interface.  Genaraly ZFS Appliance synchronize BUI and ILOM  passwords.
    2. In case You have ILOM password but lost password to BUI.
          Read doc "Sun Storage 7000 Unified Storage System: How to Recover from a Lost Root Password (Doc ID 1547912.1)" on support.oracle.com.
    3.  You lost all passwords.
          on support.oracle.com present doc:
          Sun Storage 7000 Unified Storage System: How to recover from lost ILOM password (Doc ID 1548188.1)
    But  it nothing usefull for genereal user.
    Array 7120 based on server: Sun Fire X4270 M2 you can try find information about clear ILOM password for this system.
    Regards.

  • Norwegian dictionary for pages, where can that be found?

    Looking for the norwegian language for spell checking in pages, cant find it. Any help?

    Bjorn,
    I'm sorry I don't know the answer to your question, perhaps someone on this forum will help. However you may have more luck by posting in the Pages forum located at:
    https://discussions.apple.com/community/iwork/pages
    Roger

  • What does it mean if the system "cannot find driver for console framebuffer"?

    I've just installed Solaris 7 on a SparcStation 20 with 256 MB RAM, 1 + 2 GB hard drives, 1xSuperSparcII. When I boot up it says "NOTICE:Cannot find driver for console framebuffer". I can't run the CDE, and I assume this is because there is no graphics driver. The graphics card (it's an add-on but by Sun) presumably needs a driver and I would have thought that this would have been included with the Solaris 7 CD. The whole thing worked fine when it was running Solaris 2.5.1 and now I've installed a new OS (initial as opposed to upgrade) it just don't work. Any ideas?

    The "output-device" parameter may not be set properly in Open Boot Prom(OBP) and hence during installation, the driver may not be installed. To fix this, try the following steps.
    1. Note down the current value for output-device. This value is to be restored later.
    printenv output-device
    2. Set the "output-device" parameter to "screen" in OBP
    setenv output-device screen
    3. Perform a reconfiguration boot using the command "boot -r"
    4. The error will not appear. Verify that /dev/fb refers to a device link.
    5. Go to ok prompt again and restore the output-device to its original value (as noted in step 1). The reason for doing this is that some resolution parameters would have been set earlier for your output-device.
    6. Reboot the system again. The error may appear again but since the device link is already created, the CDE will work.
    Please contact us if there are any issues.
    Thanks
    Srinivasan

  • Domain Authentication for console

    Hi
    we have software basec cisco ACS 4.1 and we have integrated with ADS server, here the problem is for telnet ssh domain credentials are working but where as for console it is not working it is not even taking the local login credetilas (If local logins username is same as Domain username then we are able to login to switch using local password).
    I observed below log is creating when i try to login through console. (failed attempts log)
    "Windows domain controller not found"
    Your comments & suggestions will be appreciated.

    Did you try logging to console using the same username/password the one you tried for telnet/ssh?
    Also help me with the following outputs:
    sh run | in user
    sh run | in aaa
    debug aaa common 255
    debug radius/tacacs
    Latest hits from the ACS > failed attempts (Just wanted to double check that we are getting the same hit).
    As you said if the local user name is created same as domain user name then it works. This indicates that even you try with local username password, the request is going to radius server proxied to external DB.
    HTH
    Regards,
    JK
    Plz rate helpful posts-

  • IP-settings and keymap for guest

    Hi,
    I have a few questions about the configuration of a guest.
    1: How should I set the IP-settings for the virtual NIC?
    I used a free IP on my network, as the gateway I used the same gateway as the server and as the netmask ofcourse also the same netmask as the server. I can ping to other computers on my network, so it's working fine. But I can't surf on the Internet with the guest. Do I have to change the nameserver?
    2: How can I change the keymap that is used on the guest?
    During the installation of OEL5U1 I chose to work with the keymap: be-latin1. When I open the file /etc/sysconfig/keyboard, I can verify that this is the keymap being used on the guest. But still, when I type, it's still qwerty instead of azerty and I can't find several characters. Is it possible I have to change the keyboard layout on the OVM Console, on the plugin?
    Thanks!

    1: How should I set the IP-settings for the virtual NIC?
    you may surf on internet using ip address directly? and do you need set http proxy in your environment?
    2: How can I change the keymap that is used on the guest?
    If you are using a keyboard with a layout other than US, the key mappings may not work properly in guest OS on the graphical console. (note:466564.1 Keyboard Mappings Does not Work Properly for Guest OS)

  • RJ-45 to USB Adapter for console connection?

    Hello,
    I would like to configure a Cisco 3600 Router with my laptop, however, I do not have the RJ-45 to DB-15 cable, nor do I have the DB-15 serial port on my laptop. I also do not have the required DB-15 to USB adapter that would be needed to assist me in connecting my computer to the router.
    Just curious (so I won't have to buy the cable and the adapter), is there an RJ-45 to USB cable that would allow me to connect directly from Cisco's 3600 Router console port directly to my laptop?
    Thank you,

    In the labs here at Cisco, and at the Cisco Networking Academy I work for, we use the light blue Cisco flat console cable (Male RJ-45 connection and a Female DB-9 Serial connection), and then a USB adapter to hook to our computers.
    The blue cables are very cheap online, as every lab that orders Cisco equipment has ZILLIONS of them.  The adapters are pretty inexpensive as well; just note not all are plug-and-play; some need specific drivers (usually easily found online).
    Recomended Google/E-bay/Amazon search criteria:  "Cisco Console Cable" and "Female DB-9 Serial to USB"

  • Norwegian dvorak in console

    Hi there
    I Have just installed ArchLinux, but I couldn't find the norwegian dvorak layout during the installation,
    so I continued with qwerty.
    Now I have Arch installed, which thinks I have qwerty, and a dvorak layout on my keyboard, but I
    dont't know either of the layouts without some looking at the keyboard.
    I am also a newbe at linux, but I have decided that arch is the distro for me.
    I am asking for help to change to norwegian dvorak, not just how, but how to do it with minimal typing
    at the keyboard before arch knows i have norwegian dvorak as my keyboard layout.
    any help will be well appreciated
    Stoffi

    Hei!
    Sjekk ut http://doomtech.net/wiki/index.php/Dvor … our_system
    Last edited by gnud (2007-12-11 00:16:39)

  • Use sql notification for console application C#

    I have developed ucma C# console application which sends IM  to users. 
    Now I want to send IM if any new entry is added in the table 
    So i want to use query notification .
    I have enabled service broker on my database .
    And I have added code for sqldepedency  in my code file.
    as follows.
    public static void Main(string[] args)
    UCMASampleInstantMessagingCall ucmaSampleInstantMessagingCall =
    new UCMASampleInstantMessagingCall();
    ucmaSampleInstantMessagingCall.connectionfunction();
    public void connectionfunction()
    string connectionString = @"Data Source=PIXEL-IHANNAH2\PPINSTANCE;User ID=sqlPPUser;Password=ppuser1;Initial Catalog=Ian;";
    SqlDependency.Stop(connectionString);
    SqlConnection sqlConnection = new SqlConnection(connectionString);
    string statement = "select * from dbo.tblTest";
    SqlCommand sqlCommand = new SqlCommand(statement, sqlConnection);
    // Create and bind the SqlDependency object to the command object.
    SqlDependency dependency = new SqlDependency(sqlCommand, null, 0);
    SqlDependency.Start(connectionString);
    dependency.OnChange += new OnChangeEventHandler(dependency_OnChange);
    private void dependency_OnChange(object sender, SqlNotificationEventArgs e)
    ucmaSampleInstantMessagingCall.run()
    private void Run() { // Initialize and startup the platform. Exception ex = null; try { // Create the UserEndpoint _helper = new UCMASampleHelper(); _userendpoint = _helper.CreateEstablishedUserEndpoint();
    Now I want to run this application in the background , so f any new entry is added it will notify my C# application and call run function.
    i tried above code but it was not working.
    Sample code is avaliableon net but it is for form application and we can see output if we run the form application .
    so if i want to run my C# application what should I do?

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Configuration;
    using System.Security.Principal;
    using System.Security.Cryptography.X509Certificates;
    using System.Net;
    using System.Threading;
    using System.Diagnostics;
    using Microsoft.Rtc.Collaboration;
    using Microsoft.Rtc.Signaling;
    using System.Runtime.InteropServices;
    //using Microsoft.Rtc.Collaboration.Sample.Common;
    namespace UserPresence
    class UCMASampleInstantMessagingCall
    #region Locals
    // The information for the conversation and the far end participant.
    // Subject of the conversation; will appear in the center of the title bar of the
    // conversation window if Microsoft Lync is the far end client.
    private static String _conversationSubject = "The Microsoft Lync Server!";
    // Priority of the conversation will appear in the left corner of the title bar of the
    // conversation window if Microsoft Lync is the far end client.
    private static String _conversationPriority = ConversationPriority.Urgent;
    // The Instant Message that will be sent to the far end.
    private static String _messageToSend = "Hello World! I am a bot, and will echo whatever you type. " +
    "Please send 'bye' to end this application.";
    private InstantMessagingCall _instantMessaging;
    private InstantMessagingFlow _instantMessagingFlow;
    //private ApplicationEndpoint _applicationEndpoint;
    private UserEndpoint _userendpoint;
    private UCMASampleHelper _helper;
    private static SqlDependency dependency;
    private static string connectionString = @"Data Source=MyServer;Initial Catalog=MyDatabase;Integrated Security=SSPI";
    // Event to notify application main thread on completion of the sample.
    private AutoResetEvent _sampleCompletedEvent = new AutoResetEvent(false);
    #endregion
    #region Methods
    /// <summary>
    /// Instantiate and run the InstantMessagingCall quickstart.
    /// </summary>
    /// <param name="args">unused</param>
    //private string _helper;
    //UCMASampleHelper _helper = new UCMASampleHelper();
    public static void Main(string[] args)
    UCMASampleInstantMessagingCall ucmaSampleInstantMessagingCall =
    new UCMASampleInstantMessagingCall();
    var connection = new SqlConnection(connectionString);
    SqlDependency.Start(connectionString);
    SqlConnection connection = new SqlConnection(connectionString);
    connection.Open();
    SqlCommand command = new SqlCommand(
    "select col1 from dbo.tblTest",
    connection);
    // Create a dependency (class member) and associate it with the command.
    dependency = new SqlDependency(command, null, 5);
    // Subscribe to the SqlDependency event.
    dependency.OnChange += new OnChangeEventHandler(onDependencyChange);
    // start dependency listener
    SqlDependency.Start(connectionString);
    //ucmaSampleInstantMessagingCall.Run();
    private static void onDependencyChange(Object o, SqlNotificationEventArgs args)
    run();
    private void Run()
    // Initialize and startup the platform.
    Exception ex = null;
    try
    // Create the UserEndpoint
    _helper = new UCMASampleHelper();
    _userendpoint = _helper.CreateEstablishedUserEndpoint();
    Console.Write("The User Endpoint owned by URI: ");
    Console.Write(_userendpoint.OwnerUri);
    Console.WriteLine(" is now established and registered.");
    List<string> _Users = new List<string>();
    _Users.Add("sip:[email protected]");
    _Users.Add("sip:[email protected]");
    foreach (string useruri in _Users)
    // Setup the conversation and place the call.
    ConversationSettings convSettings = new ConversationSettings();
    convSettings.Priority = _conversationPriority;
    convSettings.Subject = _conversationSubject;
    // Conversation represents a collection of modes of communication
    // (media types)in the context of a dialog with one or multiple
    // callees.
    //Convers conver =new ConversationParticipant
    Conversation conversation = new Conversation(_userendpoint, convSettings);
    InstantMessagingCall _instantMessaging = new InstantMessagingCall(conversation);
    // Call: StateChanged: Only hooked up for logging. Generally,
    // this can be used to surface changes in Call state to the UI
    _instantMessaging.StateChanged += this.InstantMessagingCall_StateChanged;
    // Subscribe for the flow created event; the flow will be used to
    // send the media (here, IM).
    // Ultimately, as a part of the callback, the messages will be
    // sent/received.
    _instantMessaging.InstantMessagingFlowConfigurationRequested +=
    this.InstantMessagingCall_FlowConfigurationRequested;
    // Get the sip address of the far end user to communicate with.
    //String _calledParty = "sip:" +
    // UCMASampleHelper.PromptUser(
    // "Enter the URI of the user logged onto Microsoft Lync, in the User@Host format => ",
    // "RemoteUserURI");
    // Place the call to the remote party, without specifying any
    // custom options. Please note that the conversation subject
    // overrides the toast message, so if you want to see the toast
    // message, please set the conversation subject to null.
    // _instantMessaging.Conversation()
    _instantMessaging.BeginEstablish(useruri, new ToastMessage("Hello Toast"), null,
    CallEstablishCompleted, _instantMessaging);
    catch (InvalidOperationException iOpEx)
    // Invalid Operation Exception may be thrown if the data provided
    // to the BeginXXX methods was invalid/malformed.
    // TODO (Left to the reader): Write actual handling code here.
    ex = iOpEx;
    finally
    if (ex != null)
    // If the action threw an exception, terminate the sample,
    // and print the exception to the console.
    // TODO (Left to the reader): Write actual handling code here.
    Console.WriteLine(ex.ToString());
    Console.WriteLine("Shutting down platform due to error");
    _helper.ShutdownPlatform();
    // Wait for sample to complete
    _sampleCompletedEvent.WaitOne();
    // Just to record the state transitions in the console.
    void InstantMessagingCall_StateChanged(object sender, CallStateChangedEventArgs e)
    Console.WriteLine("Call has changed state. The previous call state was: " + e.PreviousState +
    "and the current state is: " + e.State);
    // Flow created indicates that there is a flow present to begin media
    // operations with, and that it is no longer null.
    public void InstantMessagingCall_FlowConfigurationRequested(object sender,
    InstantMessagingFlowConfigurationRequestedEventArgs e)
    Console.WriteLine("Flow Created.");
    _instantMessagingFlow = e.Flow;
    // Now that the flow is non-null, bind the event handlers for State
    // Changed and Message Received. When the flow goes active,
    // (as indicated by the state changed event) the program will send
    // the IM in the event handler.
    _instantMessagingFlow.StateChanged += this.InstantMessagingFlow_StateChanged;
    // Message Received is the event used to indicate that a message has
    // been received from the far end.
    _instantMessagingFlow.MessageReceived += this.InstantMessagingFlow_MessageReceived;
    // Also, here is a good place to bind to the
    // InstantMessagingFlow.RemoteComposingStateChanged event to receive
    // typing notifications of the far end user.
    _instantMessagingFlow.RemoteComposingStateChanged +=
    this.InstantMessagingFlow_RemoteComposingStateChanged;
    private void InstantMessagingFlow_StateChanged(object sender, MediaFlowStateChangedEventArgs e)
    Console.WriteLine("Flow state changed from " + e.PreviousState + " to " + e.State);
    // When flow is active, media operations (here, sending an IM)
    // may begin.
    if (e.State == MediaFlowState.Active)
    // Send the message on the InstantMessagingFlow.
    _instantMessagingFlow.BeginSendInstantMessage(_messageToSend, SendMessageCompleted,
    _instantMessagingFlow);
    private void InstantMessagingFlow_RemoteComposingStateChanged(object sender,
    ComposingStateChangedEventArgs e)
    // Prints the typing notifications of the far end user.
    Console.WriteLine("Participant "
    + e.Participant.Uri.ToString()
    + " is "
    + e.ComposingState.ToString()
    private void InstantMessagingFlow_MessageReceived(object sender, InstantMessageReceivedEventArgs e)
    // On an incoming Instant Message, print the contents to the console.
    Console.WriteLine(e.Sender.Uri + " said: " + e.TextBody);
    // Shutdown if the far end tells us to.
    if (e.TextBody.Equals("bye", StringComparison.OrdinalIgnoreCase))
    // Shutting down the platform will terminate all attached objects.
    // If this was a production application, it would tear down the
    // Call/Conversation, rather than terminating the entire platform.
    _instantMessagingFlow.BeginSendInstantMessage("Shutting Down...", SendMessageCompleted,
    _instantMessagingFlow);
    _helper.ShutdownPlatform();
    _sampleCompletedEvent.Set();
    else
    // Echo the instant message back to the far end (the sender of
    // the instant message).
    // Change the composing state of the local end user while sending messages to the far end.
    // A delay is introduced purposely to demonstrate the typing notification displayed by the
    // far end client; otherwise the notification will not last long enough to notice.
    _instantMessagingFlow.LocalComposingState = ComposingState.Composing;
    Thread.Sleep(2000);
    //Echo the message with an "Echo" prefix.
    _instantMessagingFlow.BeginSendInstantMessage("Echo: " + e.TextBody, SendMessageCompleted,
    _instantMessagingFlow);
    private void CallEstablishCompleted(IAsyncResult result)
    InstantMessagingCall instantMessagingCall = result.AsyncState as InstantMessagingCall;
    Exception ex = null;
    try
    instantMessagingCall.EndEstablish(result);
    Console.WriteLine("The call is now in the established state.");
    catch (OperationFailureException opFailEx)
    // OperationFailureException: Indicates failure to connect the
    // call to the remote party.
    // TODO (Left to the reader): Write real error handling code.
    ex = opFailEx;
    catch (RealTimeException rte)
    // Other errors may cause other RealTimeExceptions to be thrown.
    // TODO (Left to the reader): Write real error handling code.
    ex = rte;
    finally
    if (ex != null)
    // If the action threw an exception, terminate the sample,
    // and print the exception to the console.
    // TODO (Left to the reader): Write real error handling code.
    Console.WriteLine(ex.ToString());
    Console.WriteLine("Shutting down platform due to error");
    _helper.ShutdownPlatform();
    private void SendMessageCompleted(IAsyncResult result)
    InstantMessagingFlow instantMessagingFlow = result.AsyncState as InstantMessagingFlow;
    Exception ex = null;
    try
    instantMessagingFlow.EndSendInstantMessage(result);
    Console.WriteLine("The message has been sent.");
    catch (OperationTimeoutException opTimeEx)
    // OperationFailureException: Indicates failure to connect the
    // IM to the remote party due to timeout (called party failed to
    // respond within the expected time).
    // TODO (Left to the reader): Write real error handling code.
    ex = opTimeEx;
    catch (RealTimeException rte)
    // Other errors may cause other RealTimeExceptions to be thrown.
    // TODO (Left to the reader): Write real error handling code.
    ex = rte;
    finally
    // Reset the composing state of the local end user so that the typing notifcation as seen
    // by the far end client disappears.
    _instantMessagingFlow.LocalComposingState = ComposingState.Idle;
    if (ex != null)
    // If the action threw an exception, terminate the sample,
    // and print the exception to the console.
    // TODO (Left to the reader): Write real error handling code.
    Console.WriteLine(ex.ToString());
    Console.WriteLine("Shutting down platform due to error");
    _helper.ShutdownPlatform();
    #endregion
    So i want to call run method when new entry is added in the database . and this application is not like any asp.net form application . In form application we display data when programs loads as like your RefreshDataWithSqlDependency
    function . But in my application my application will run (send IM) when any new entry is added in the database . As I need running application to achieve notification , what kind of changes are required?

  • Weblogic 8.1 (SP4) configuration for console log

    Weblogic version: 8.1 SP4
    By default in console (cmd window) log, date and time format is as below.e.g
    <Jul 11, 2008 12:22:35 PM IST>
    I need to see time in millisecond. Is there any configuration for this?
    please help.

    Assuming the log entries you care about are generated by your application, and not the infrastructure, you're better off adding millisecond detail to your application log messages. If you're using commons-logging, you can tie this to the WL server log implicitly through configuration, or you could use NonCatalogLogger to explicitly log to the WL server log.

  • (g)mail client for console (recommendations please)

    I need an (g)mail client for the console that is reliable and supports imap. i used mutt a while ago, but it seems to be broken with "noatime" set. (i'm using a cheap netbook with tiny ssd..)
    i heared sup would be good, but it seems development stoped a while ago, ..
    anything you could recommend? something with good documentation preferably as i'm quite a noob
    Last edited by silly (2012-07-10 11:47:35)

    it seems to be broken with "noatime" set.
    Apparently it works if you use the maildir folder format.
    http://wiki.mutt.org/?MuttFaq/Folder
    There is also some issue with the "noatime" flag for mounting filesystems (most often used on laptops). [...] another option is to use the MaildirFormat.

Maybe you are looking for

  • The Apple ID on my iPod Touch no longer exists

    I have an iPod Touch and the Apple ID no longer exists because it was removed from the server at my former place of work, yet I am asked to enter the PW for it.  Also, it shows up in other places.  Is there a way to have it removed from Apple's datab

  • Jerky and "Not In Real Time"

    Why is my footage in AF 5.5 jerky and why do I get a message in red saying"Not in Real Time"? Any ideas please?

  • How to add new line wrapping rule?

    Hi all, I have a question about line wrapping condition of Java editor of JDeveloper. JDev has some predefined rules for it and I can change them from preference. But can I add a new rule? I'd like to place conditional operators such as "&&" or "||"

  • Sync Home calendars and work calendars

    I've been using iCloud to sync my home calendars from my personal computer running 10.8 but I would like also to sync over the clouds the work calendars I have in the office however the only way to do it would be to disable the iCloud calendar sync o

  • Contacts show up in duplicates in Messages.app

    I just got my Haswell rMBP 13, and all my email accounts (Gmail, Exchange, iCloud) were automatically configured when I signed into iCloud for the first time on the computer. For some reason in the Messages app, all the contacts show up as duplicates