String to UTF8

Hi!
I need convert any string to UTF8 forma.
Who?
Thanks!

Okay, got it.
You can use the IDataOutput interface; it has got a writeUTF() method that takes in a string as argument. See this: http://livedocs.adobe.com/flex/3/langref/flash/utils/IDataOutput.html#includeExamplesSumma ry

Similar Messages

  • Convertion from Unicode to UTF8

    I want to convert some string having Unicode chars into a string with UTF8 char. I used following code snippet:
    try {
    String str = new String(givenString);
    String utfStr = new String(str.getBytes("UTF-8"), "UTF-8");
    System.out.println("Converted:" + str + " to:" + utfStr);
    } catch (Exception e) {
    e.printStackTrace(System.out);
    I also tried :
    Charset utf8Charset = Charset.forName("UTF-8");
    CharsetEncoder encoder = utf8Charset.newEncoder();
    CharsetDecoder decoder = utf8Charset.newDecoder();
    ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(givenString));
    CharBuffer cbuf = decoder.decode(bbuf);
    String dest = cbuf.toString();
    When Java tries to encode Unicode to UTF-8 and it runs into an unknown character (typically a character that is in the High Ascii range) it substitutes it with '?' or some other wierd character.
    How do I prevent this.

    Where is this string coming from? Are you initializing it in your source code as a String literal? String str = "A�roport Princesse B�atrix"; If so, you need to make sure the .java file is saved in an encoding that can handle all of the characters. ISO-8859-1, windows-1252, and of course, UTF-8 will all suffice. You also need to make sure the compiler reads the source file with the correct encoding. For example, if you saved your source files as UTF-8, you would do this: javac -encoding UTF-8 *.java Finally, before you print the text to the console, you need to make sure the console is using an encoding that can handle it. On my WinXP box, the default encoding (or codepage, as they call it) for console windows is cp437, which doesn't support accented characters. You can change it with the "chcp" command, like so: chcp 1252 Unfortunately, chcp won't accept UTF-8 or any other Unicode encoding, but cp1252 can handle the accented characters in your string. Note that you don't need to specify that encoding in your code; the Java runtime detects it automatically.
    >
    If you see question marks or some other placeholder character when viewing output, that's probably because the terminal or whatever doesn't have the fonts available to render those characters.>
    No, question marks always indicate an encoding problem. If the character is valid but the font lacks a glyph for it, it shows up as a little rectangle.

  • Problem with encoded UTF8 parameter when calling request.getParameterValues

    I'm losing some parts of my parameters when I get to the servlet.
    Using the java.net.URLEncoder on an English/Chinese UTF-8 string combination, I created a URL with a parameter "pk". I use this in an HTML page that calls a servlet. Here is what I set the parameter equal to:
    pk=GUEST.%E6%88%3F%E9%83%BD%E8%88%B9%E5%3F%95%E4%BD%3F%E8%A7%84%E6%A0%BC
    My URL looks like the following:
    http://localhost/servlets/MyServlet?pk=GUEST.%E6%88%3F%E9%83%BD%E8%88%B9%E5%3F%95%E4%BD%3F%E8%A7%84%E6%A0%BC
    When this gets to the servlet side, I lose all of the chinese parts of the String when I call request.getParameterValues("pk") for this string. This is the case even if I convert the string to UTF8 using getBytes("UTF8").
    String[] pks = request.getParameterValues("pk");
    pks.length = 1
    pks[0].length() = 6
    pk[0]=GUEST.
    Any clue why?
    My page has a charset of utf-8 and other pages with using posts work fine. Unfortunately my request must be a get in this situation.

    Try this standard tomcat workaround...
    String[] tmppks = request.getParameterValues("pk");
    String [] pks = new String[tmppks.length];
    for(int i=0; i<tmppks.length; i++)
    pks[i] = new String(tmppks.getBytes("ISO-8859-1"),
    ), "UTF-8");Hi,
    I am working in JSP.
    If I don't convert the string to UTF-8 format, then even though I am setting the charset to UTF-8 in jsp page, it is not giving the correct parameter values.
    Is there any way other than converting the string from "ISO-8859-1" to "UTF-8", in order to get the string in UTF-8 format i.e., to get string in UTF-8 format directly from request.getParameter method?
    Thanks & Regards,
    Kavitha.

  • Encoding Issue: Change UTF8 with BOM char file to UTF16LE without BOM char.

    i am trying to read UTF 8 file with BOM char .. if BOM mark present then i want to remove that BOM char
    and write same file with UTF16LE with out BOM char ..
    Please suggest solution on this .
    FileInputStream fis = new FileInputStream(file);
                   long size = file.length();
                   byte[] b = new byte[(int) size];
                   int bytesRead = fis.read(b, 0, (int) size);
                   if (bytesRead != size) {
                        throw new IOException("cannot read file");
                   byte[] srcBytes = b;
                            int b0 = srcBytes[0] & 0xff;
                   int b1 = srcBytes[1] & 0xff;
                   int b2 = srcBytes[2] & 0xff;
                   int b3 = srcBytes[3] & 0xff;
                   if (b0 == 0xef && b1 == 0xbb && b2 == 0xbf) {
                        System.out.println("Hint: the file starts with a UTF-8 BOM.");
                             String srcStr = new String(b ,"UTF8");
                     String      encoding= "UnicodeLittle";
                            writeFile(filePath, srcStr,encoding);// Here is writing file with UTF16LE
         But files gets written with BOM char .
    how do i remove this .
    Please suggest solution on this

    'uncle_alice' - in the OP's other thread on this topic I posted a decorated InputStream class that will strip of any (well any I could find definitions of) BOM prefix. Using this it is almost trivial for the OP to convert a file from one encoding to another without worrying about the BOM. I showed him the water but I can't make him drink.

  • Convert from utf16 to utf8 ?? er?

    Dear list,
    I have recently seen a sample to convert a utf16 string to utf8. I am a little bit confused. I thought utf16 was a superset of utf8. Could please someone explain why this is necessary sometimes ?
    regards
    Ben

    how can utf16 be a superset of utf8. I thought this
    relationship was similiar to ASCII and utf8/utf16,
    where for example the space bar has a value of 32 in
    ASCII and Unicode (utf8 and utf16).... This been tjhe
    case there is not much need for a utf8 to utf16
    conversion program.I didn't say it was a superset. It is a different way of representing the same thing.
    >
    You say that utf16 is ALWAYS 2 bytes, and utf8 is
    usually 8 bits but is variable when necessary. Is
    utf16 not a variable byte character set ? No.
    The name
    according to this, utf8 and utf16 is somewhat
    misleading as they are NOT always 8 or 16 bytes.
    And "java" is neither an island nor a beverage. The name does not convey the entirety of the subject.
    characters the first byte (or 2) is an 'escape' bytewhich means that more bytes are needed.
    What do you mean by first or (2). escape byte?
    When something sees a given specific byte then then it knows that there are a certain number of bytes after that are needed to fully represent the character.
    I am still not convincedConvinced?
    If you do not find my explaination satisfactory then you might try writing some code that converts to UTF16 and UTF8 using String.getBytes(String).
    You might also try to find the character set definitions.

  • Using string password

    Hi
    Can someone give me a sample code about how to use string password when encrypting and decrypting data?
    I have made an application that encrypts and decrypts data and it can even save password. Password is not created from string see code:
    KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");
    Now I want that client can give a password and application use that while encrypting and decrypting.
    I'm using CipherOutputStream and CipherInputStream to save and open data. I'm using Blowfish algorithm.
    Regards
    Juha

    Hi Juha,
    Here is the sample code for encrypting and decrypting a string.
    import java.io.*;
    import java.security.*;
    import javax.crypto.*;
    import sun.misc.*;
    public class SecretWriting{
    public static void main(String args[]) throws Exception{
    if(args.length<2)
    System.out.println("Usage : SecretWriting -e|-d text");
    return;
    Security.addProvider(new com.sun.crypto.provider.SunJCE());
    Key key;
    try{
    ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
    key=(Key)in.readObject();
    in.close();
    catch(FileNotFoundException fnfe)
    KeyGenerator generator= KeyGenerator.getInstance("DES");
    generator.init(new SecureRandom() );
    key=generator.generateKey();
    ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
    out.writeObject(key);
    out.close();
    Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
    if(args[0].indexOf("e") !=-1)
    cipher.init(Cipher.ENCRYPT_MODE,key);
    String amalgam=args[1];
    for(int i=2;i<args.length;i++)
    amalgam+=" "+args;
    byte[] stringBytes=amalgam.getBytes("UTF8");
    byte[] raw=cipher.doFinal(stringBytes);
    BASE64Encoder encoder = new BASE64Encoder();
    String base64 = encoder.encode(raw);
    System.out.println(base64);
    else if(args[0].indexOf("d")!=-1)
    cipher.init(Cipher.DECRYPT_MODE,key);
    BASE64Decoder decoder = new BASE64Decoder();
    byte[] raw = decoder.decodeBuffer(args[1]);
    byte[] stringBytes = cipher.doFinal(raw);
    String result = new String(stringBytes,"UTF8");
    System.out.println(result);
    I hope this will help you out.
    Thanks
    Bakrudeen
    Technical Support Engineer
    Sun MicroSystems Inc, India

  • [SOLVED] Login to Gnome Session fails when not online

    Sry, this is weird and i don't know how to fix it. Whenever i am not online during login stage in gdm i cannot
    start the Gnome Shell. I get the "Oops" Screen and need  to logout. All is fine when i am Online however.
    Even weirder: When i try to login for several times, usually 3-4, without being online and without restarting, gnome eventually disables all
    shell extensions and is starting... BUT after a restart the same problem appears even when all user extensions are still disabled ?!
    here is the output from journalctl ... has anyone, any clue ?
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: X Protocol Version 11, Revision 0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Build Operating System: Linux 3.18.1-1-ARCH x86_64
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Current Operating System: Linux iroha 3.18.3-1-ck #1 SMP PREEMPT Fri Jan 16 15:35:30 EST 2015 x86_64
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-ck root=UUID=2ce02639-13ab-47e6-bd7f-fca99207253f rw i8042.nomux=1 quiet
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Build Date: 29 December 2014 01:09:58PM
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Current version of pixman: 0.32.6
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Before reporting problems, check http://wiki.x.org
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: to make sure that you have the latest version.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Markers: (--) probed, (**) from config file, (==) default setting,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (++) from command line, (!!) notice, (II) informational,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (++) Log file: "/dev/null", Time: Thu Jan 22 14:04:22 2015
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) Using config directory: "/etc/X11/xorg.conf.d"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) No Layout section. Using the first Screen section.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) No screen section available. Using defaults.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) |-->Screen "Default Screen Section" (0)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) | |-->Monitor "<default monitor>"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) No device specified for screen "Default Screen Section".
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Using the first device section listed.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) | |-->Device "card0"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) No monitor specified for screen "Default Screen Section".
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Using a default monitor configuration.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) Automatically adding devices
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) Automatically enabling devices
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) Automatically adding GPU devices
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Entry deleted from font path.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Entry deleted from font path.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) FontPath set to:
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: /usr/share/fonts/misc/,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: /usr/share/fonts/TTF/,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: /usr/share/fonts/OTF/,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: /usr/share/fonts/Type1/
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) ModulePath set to "/usr/lib/xorg/modules"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) The server relies on udev to provide the list of input devices.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: If no devices become available, reconfigure udev or disable AutoAddDevices.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loader magic: 0x818d80
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module ABI versions:
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: X.Org ANSI C Emulation: 0.4
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: X.Org Video Driver: 18.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: X.Org XInput driver : 21.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: X.Org Server Extension : 8.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (EE) systemd-logind: failed to get session: PID 462 does not belong to any known session
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) xfree86: Adding drm device (/dev/dri/card0)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) PCI:*(0:0:2:0) 8086:0166:17aa:5006 rev 9, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00004000/64
    Jan 22 14:04:22 iroha acpid[440]: client connected from 462[0:0]
    Jan 22 14:04:22 iroha acpid[440]: 1 client rule loaded
    Jan 22 14:04:22 iroha accounts-daemon[463]: started daemon version 0.6.39
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Open ACPI successful (/var/run/acpid.socket)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) LoadModule: "glx"
    Jan 22 14:04:22 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.Accounts'
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module glx: vendor="X.Org Foundation"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: compiled for 1.16.3, module version = 1.0.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: ABI class: X.Org Server Extension, version 8.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) AIGLX enabled
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/AH-AP
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) LoadModule: "intel"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module intel: vendor="X.Org Foundation"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: compiled for 1.16.3, module version = 2.99.917
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Module class: X.Org Video Driver
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: ABI class: X.Org Video Driver, version 18.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (++) using VT number 1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20140905
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4000
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx
    Jan 22 14:04:22 iroha acpid[440]: client connected from 462[0:0]
    Jan 22 14:04:22 iroha acpid[440]: 1 client rule loaded
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Creating default Display subsection in Screen section
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: "Default Screen Section" for depth/fbbpp 24/32
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): Depth 24, (--) framebuffer bpp 32
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): RGB weight 888
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): Default visual is TrueColor
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) intel(0): Option "AccelMethod" "sna"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) intel(0): Option "Backlight" "intel_backlight"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Output LVDS1 has no monitor section
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output LVDS1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Enabled output LVDS1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Output VGA1 has no monitor section
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Enabled output VGA1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Output HDMI1 has no monitor section
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Enabled output HDMI1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Output DP1 has no monitor section
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Enabled output DP1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) intel(0): Using a maximum size of 256x256 for hardware cursors
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Output VIRTUAL1 has no monitor section
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Enabled output VIRTUAL1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) intel(0): Output LVDS1 using initial mode 1366x768 on pipe 0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): TearFree disabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): DPI set to (96, 96)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loading sub module "dri2"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) LoadModule: "dri2"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module "dri2" already built-in
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loading sub module "present"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) LoadModule: "present"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module "present" already built-in
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) Depth 24 pixmap format is 32 bpp
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/WLAN-24EE87
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): SNA initialized with Ivybridge (gen7, gt2) backend
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): Backing store enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): Silken mouse enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): HW Cursor enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): DPMS enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (==) intel(0): display hotplug detection enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): [DRI2] Setup complete
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): [DRI2] DRI driver: i965
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): [DRI2] VDPAU driver: i965
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): direct rendering: DRI2 enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): hardware support for Present enabled
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) RandR disabled
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/awesome-net
    Jan 22 14:04:22 iroha kernel: Switched to clocksource tsc
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/eduroam
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_ARB_create_context
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_ARB_create_context_profile
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_INTEL_swap_event
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_ARB_fbconfig_float
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: enabled GLX_ARB_create_context_robustness
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) AIGLX: Loaded and initialized i965
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) GLX: Initialized DRI2 GL provider for screen 0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): switch to mode [email protected] on LVDS1 using pipe 0, position (0, 0), rotation normal, reflection none
    Jan 22 14:04:22 iroha haveged[441]: haveged: ver: 1.9.1; arch: x86; vend: GenuineIntel; build: (gcc 4.9.2 ITV); collect: 128K
    Jan 22 14:04:22 iroha haveged[441]: haveged: cpu: (L4 VC); data: 32K (L4 V); inst: 32K (L4 V); idx: 21/40; sz: 31910/59039
    Jan 22 14:04:22 iroha haveged[441]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.0016
    Jan 22 14:04:22 iroha haveged[441]: haveged: fills: 0, generated: 0
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/m1fun3
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) intel(0): Setting screen physical size to 361 x 203
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/WLAN-Zi
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/GFZ-1x
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/VPN connection 1
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/wlan-zi
    Jan 22 14:04:22 iroha mtp-probe[665]: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5"
    Jan 22 14:04:22 iroha mtp-probe[665]: bus: 1, device: 4 was not an MTP device
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device Power Button (/dev/input/event2)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Power Button: Applying InputClass "evdev keyboard catchall"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Power Button: Applying InputClass "system-keyboard"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) LoadModule: "evdev"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module evdev: vendor="X.Org Foundation"
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> new connection /etc/NetworkManager/system-connections/In da Hood!!
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: compiled for 1.16.2, module version = 2.9.1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Module class: X.Org XInput Driver
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: ABI class: X.Org XInput driver, version 21.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Using input driver 'evdev' for 'Power Button'
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Power Button: always reports core events
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) evdev: Power Button: Device: "/dev/input/event2"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: Power Button: Vendor 0 Product 0x1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: Power Button: Found keys
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) evdev: Power Button: Configuring as keyboard
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event2"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_rules" "evdev"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_model" "pc104"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_layout" "de"
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> monitoring kernel firmware directory '/usr/lib/firmware'.
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> rfkill1: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0/ieee80211/phy0/rfkill1) (driver iwlwifi)
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> WiFi hardware radio set enabled
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> WWAN hardware radio set enabled
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> Loaded device plugin: /usr/lib/NetworkManager/libnm-device-plugin-bluetooth.so
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> Loaded device plugin: /usr/lib/NetworkManager/libnm-device-plugin-wifi.so
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> Loaded device plugin: /usr/lib/NetworkManager/libnm-device-plugin-wwan.so
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> Loaded device plugin: /usr/lib/NetworkManager/libnm-device-plugin-adsl.so
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> WiFi enabled by radio killswitch; enabled by state file
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> WWAN enabled by radio killswitch; enabled by state file
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> WiMAX enabled by radio killswitch; enabled by state file
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> Networking is enabled by state file
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (lo): link connected
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (lo): carrier is ON
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (lo): new Generic device (driver: 'unknown' ifindex: 1)
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (lo): exported as /org/freedesktop/NetworkManager/Devices/0
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (enp8s0): carrier is OFF
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (enp8s0): new Ethernet device (driver: 'r8169' ifindex: 2)
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (enp8s0): exported as /org/freedesktop/NetworkManager/Devices/1
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (enp8s0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: The XKEYBOARD keymap compiler (xkbcomp) reports:
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: > Ignoring extra symbols
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Errors from xkbcomp are not fatal to the X server
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device Video Bus (/dev/input/event7)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Video Bus: Applying InputClass "system-keyboard"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Using input driver 'evdev' for 'Video Bus'
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Video Bus: always reports core events
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) evdev: Video Bus: Device: "/dev/input/event7"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: Video Bus: Vendor 0 Product 0x6
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: Video Bus: Found keys
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) evdev: Video Bus: Configuring as keyboard
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input9/event7"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_rules" "evdev"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_model" "pc104"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_layout" "de"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) No input driver specified, ignoring this device.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) This device may have been added with another device file.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event4)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) No input driver specified, ignoring this device.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) This device may have been added with another device file.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event5)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) No input driver specified, ignoring this device.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) This device may have been added with another device file.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event6)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) No input driver specified, ignoring this device.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) This device may have been added with another device file.
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) AT Translated Set 2 keyboard: always reports core events
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: AT Translated Set 2 keyboard: Found keys
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 8)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_rules" "evdev"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_model" "pc104"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_layout" "de"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) LoadModule: "synaptics"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Module synaptics: vendor="X.Org Foundation"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: compiled for 1.16.0, module version = 1.8.1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: Module class: X.Org XInput Driver
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: ABI class: X.Org XInput driver, version 21.0
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: always reports core events
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "Device" "/dev/input/event8"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) synaptics: SynPS/2 Synaptics TouchPad: found clickpad property
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5706 (res 52)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4888 (res 98)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left double triple
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "FingerLow" "40"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "FingerHigh" "40"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "TapButton1" "1"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "TapButton2" "2"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "TapButton3" "3"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "HorizResolution" "65"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "VertResolution" "100"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: always reports core events
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input5/event8"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 9)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.036
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device ThinkPad Extra Buttons (/dev/input/event3)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) ThinkPad Extra Buttons: Applying InputClass "evdev keyboard catchall"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) ThinkPad Extra Buttons: Applying InputClass "system-keyboard"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) Using input driver 'evdev' for 'ThinkPad Extra Buttons'
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) ThinkPad Extra Buttons: always reports core events
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) evdev: ThinkPad Extra Buttons: Device: "/dev/input/event3"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: ThinkPad Extra Buttons: Vendor 0x17aa Product 0x5054
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (--) evdev: ThinkPad Extra Buttons: Found keys
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) evdev: ThinkPad Extra Buttons: Configuring as keyboard
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/platform/thinkpad_acpi/input/input4/event3"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "ThinkPad Extra Buttons" (type: KEYBOARD, id 10)
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_rules" "evdev"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_model" "pc104"
    Jan 22 14:04:22 iroha gdm-Xorg-:0[462]: (**) Option "xkb_layout" "de"
    Jan 22 14:04:22 iroha gdm[443]: Failed to give slave programs access to the display. Trying to proceed.
    Jan 22 14:04:22 iroha kernel: r8169 0000:08:00.0 enp8s0: link down
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (enp8s0): preparing device
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): using nl80211 for WiFi device control
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): driver supports Access Point (AP) mode
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): new 802.11 WiFi device (driver: 'iwlwifi' ifindex: 3)
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): exported as /org/freedesktop/NetworkManager/Devices/2
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
    Jan 22 14:04:22 iroha kernel: iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
    Jan 22 14:04:22 iroha kernel: iwlwifi 0000:02:00.0: Radio type=0x2-0x0-0x0
    Jan 22 14:04:22 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:22 iroha systemd-logind[438]: New session c1 of user gdm.
    Jan 22 14:04:22 iroha systemd[924]: pam_unix(systemd-user:session): session opened for user gdm by (uid=0)
    Jan 22 14:04:22 iroha systemd[924]: Starting Sockets.
    Jan 22 14:04:22 iroha systemd[924]: Reached target Sockets.
    Jan 22 14:04:22 iroha systemd[924]: Starting Timers.
    Jan 22 14:04:22 iroha systemd[924]: Reached target Timers.
    Jan 22 14:04:22 iroha systemd[924]: Starting Paths.
    Jan 22 14:04:22 iroha systemd[924]: Reached target Paths.
    Jan 22 14:04:22 iroha systemd[924]: Starting Basic System.
    Jan 22 14:04:22 iroha systemd[924]: Reached target Basic System.
    Jan 22 14:04:22 iroha systemd[924]: Starting Default.
    Jan 22 14:04:22 iroha systemd[924]: Reached target Default.
    Jan 22 14:04:22 iroha systemd[924]: Startup finished in 6ms.
    Jan 22 14:04:22 iroha org.a11y.Bus[991]: Activating service name='org.a11y.atspi.Registry'
    Jan 22 14:04:22 iroha org.a11y.Bus[991]: Successfully activated service 'org.a11y.atspi.Registry'
    Jan 22 14:04:22 iroha org.a11y.atspi.Registry[1074]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    Jan 22 14:04:22 iroha gnome-session[943]: gnome-session[943]: WARNING: Could not parse desktop file orca-autostart.desktop or it references a not found TryExec binary
    Jan 22 14:04:22 iroha gnome-session[943]: WARNING: Could not parse desktop file orca-autostart.desktop or it references a not found TryExec binary
    Jan 22 14:04:22 iroha kernel: iwlwifi 0000:02:00.0: L1 Enabled - LTR Disabled
    Jan 22 14:04:22 iroha kernel: iwlwifi 0000:02:00.0: Radio type=0x2-0x0-0x0
    Jan 22 14:04:22 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service'
    Jan 22 14:04:22 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:22 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.UPower'
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): preparing device
    Jan 22 14:04:22 iroha dbus[435]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service'
    Jan 22 14:04:22 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:22 iroha dbus[435]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> wpa_supplicant started
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0) supports 5 scan SSIDs
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): supplicant interface state: starting -> ready
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0): supplicant interface state: ready -> disconnected
    Jan 22 14:04:22 iroha NetworkManager[442]: <info> (wlp2s0) supports 5 scan SSIDs
    Jan 22 14:04:22 iroha kernel: fuse init (API version 7.23)
    Jan 22 14:04:23 iroha kernel: media: Linux media interface: v0.10
    Jan 22 14:04:23 iroha kernel: Linux video capture interface: v2.00
    Jan 22 14:04:23 iroha kernel: Bluetooth: Core ver 2.19
    Jan 22 14:04:23 iroha kernel: NET: Registered protocol family 31
    Jan 22 14:04:23 iroha kernel: Bluetooth: HCI device and connection manager initialized
    Jan 22 14:04:23 iroha kernel: Bluetooth: HCI socket layer initialized
    Jan 22 14:04:23 iroha kernel: Bluetooth: L2CAP socket layer initialized
    Jan 22 14:04:23 iroha kernel: Bluetooth: SCO socket layer initialized
    Jan 22 14:04:23 iroha kernel: usbcore: registered new interface driver btusb
    Jan 22 14:04:23 iroha kernel: uvcvideo: Found UVC 1.00 device Integrated Camera (5986:0299)
    Jan 22 14:04:23 iroha kernel: input: Integrated Camera as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/input/input11
    Jan 22 14:04:23 iroha kernel: usbcore: registered new interface driver uvcvideo
    Jan 22 14:04:23 iroha kernel: USB Video Class driver (1.1.1)
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device Integrated Camera (/dev/input/event9)
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Integrated Camera: Applying InputClass "evdev keyboard catchall"
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Integrated Camera: Applying InputClass "system-keyboard"
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) Using input driver 'evdev' for 'Integrated Camera'
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Integrated Camera: always reports core events
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) evdev: Integrated Camera: Device: "/dev/input/event9"
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (--) evdev: Integrated Camera: Vendor 0x5986 Product 0x299
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (--) evdev: Integrated Camera: Found keys
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) evdev: Integrated Camera: Configuring as keyboard
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/input/input11/event9"
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "Integrated Camera" (type: KEYBOARD, id 11)
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Option "xkb_rules" "evdev"
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Option "xkb_model" "pc104"
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (**) Option "xkb_layout" "de"
    Jan 22 14:04:23 iroha gnome-session[943]: Entering running state
    Jan 22 14:04:23 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
    Jan 22 14:04:23 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:23 iroha tlp[1425]: Loading tp-smapi kernel module...done.
    Jan 22 14:04:23 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service'
    Jan 22 14:04:23 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) intel(0): EDID vendor "LGD", prod id 852
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) intel(0): Printing DDC gathered Modelines:
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: (II) intel(0): Modeline "1366x768"x0.0 78.00 1366 1414 1450 1640 768 772 780 793 -hsync -vsync (47.6 kHz eP)
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha kernel: acpi_call: Cannot get handle: Error: AE_NOT_FOUND
    Jan 22 14:04:23 iroha tlp[1425]: Setting battery charge thresholds...done.
    Jan 22 14:04:23 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Successfully called chroot.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Successfully dropped privileges.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Successfully limited resources.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Running.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Watchdog thread running.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Canary thread running.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Successfully made thread 1456 of process 1456 (/usr/bin/pulseaudio) owned by '120' high priority at nice level -11.
    Jan 22 14:04:23 iroha rtkit-daemon[1460]: Supervising 1 threads of 1 processes of 1 users.
    Jan 22 14:04:23 iroha colord[1443]: /usr/lib/colord/colord-sane: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory
    Jan 22 14:04:23 iroha tlp[1425]: Applying power save settings...done.
    Jan 22 14:04:23 iroha dbus[435]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    Jan 22 14:04:23 iroha dbus[435]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory.
    Jan 22 14:04:23 iroha pulseaudio[1456]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.LoadFailed: Unit dbus-org.bluez.service failed to load: No such file or directory.
    Jan 22 14:04:23 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
    Jan 22 14:04:23 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:23 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.locale1'
    Jan 22 14:04:23 iroha NetworkManager[442]: <info> (wlp2s0): supplicant interface state: disconnected -> inactive
    Jan 22 14:04:23 iroha gnome-session[943]: Gjs-Message: JS LOG: Failed to launch ibus-daemon: Failed to execute child process "ibus-daemon" (No such file or directory)
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: The XKEYBOARD keymap compiler (xkbcomp) reports:
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: > Ignoring extra symbols
    Jan 22 14:04:23 iroha gdm-Xorg-:0[462]: Errors from xkbcomp are not fatal to the X server
    Jan 22 14:04:23 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service'
    Jan 22 14:04:23 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:23 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
    Jan 22 14:04:23 iroha polkitd[449]: Registered Authentication Agent for unix-session:c1 (system bus name :1.18 [gnome-shell --mode=gdm], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
    Jan 22 14:04:23 iroha gnome-session[943]: Gjs-Message: JS LOG: No permission to trigger offline updates: Polkit.Error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered
    Jan 22 14:04:24 iroha org.gnome.OnlineAccounts[991]: goa-daemon-Message: goa-daemon version 3.14.2 starting
    Jan 22 14:04:24 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
    Jan 22 14:04:24 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:24 iroha udisksd[1569]: udisks daemon version 2.1.3 starting
    Jan 22 14:04:24 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.UDisks2'
    Jan 22 14:04:24 iroha udisksd[1569]: Acquired the name org.freedesktop.UDisks2 on the system message bus
    Jan 22 14:04:25 iroha gnome-session[943]: Gjs-Message: JS LOG: GNOME Shell started at Thu Jan 22 2015 14:04:23 GMT+0100 (CET)
    Jan 22 14:04:25 iroha kernel: psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
    Jan 22 14:04:26 iroha kernel: input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input10
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/event10)
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: Applying InputClass "evdev pointer catchall"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: Applying InputClass "Trackpoint Wheel Emulation"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) Using input driver 'evdev' for 'TPPS/2 IBM TrackPoint'
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: always reports core events
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) evdev: TPPS/2 IBM TrackPoint: Device: "/dev/input/event10"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (--) evdev: TPPS/2 IBM TrackPoint: Vendor 0x2 Product 0xa
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (--) evdev: TPPS/2 IBM TrackPoint: Found 3 mouse buttons
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (--) evdev: TPPS/2 IBM TrackPoint: Found relative axes
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (--) evdev: TPPS/2 IBM TrackPoint: Found x and y relative axes
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) evdev: TPPS/2 IBM TrackPoint: Configuring as mouse
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) Option "Emulate3Buttons" "false"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) Option "EmulateWheel" "true"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) Option "EmulateWheelButton" "2"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) Option "YAxisMapping" "4 5"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) evdev: TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) Option "XAxisMapping" "6 7"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) evdev: TPPS/2 IBM TrackPoint: XAxisMapping: buttons 6 and 7
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) evdev: TPPS/2 IBM TrackPoint: EmulateWheelButton: 2, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/serio2/input/input10/event10"
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE, id 12)
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) evdev: TPPS/2 IBM TrackPoint: initialized for relative axes.
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: (accel) keeping acceleration scheme 1
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: (accel) acceleration profile 0
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: (accel) acceleration factor: 2.000
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (**) TPPS/2 IBM TrackPoint: (accel) acceleration threshold: 4
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) config/udev: Adding input device TPPS/2 IBM TrackPoint (/dev/input/mouse1)
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) No input driver specified, ignoring this device.
    Jan 22 14:04:26 iroha gdm-Xorg-:0[462]: (II) This device may have been added with another device file.
    Jan 22 14:04:27 iroha NetworkManager[442]: <info> startup complete
    Jan 22 14:04:29 iroha NetworkManager[442]: <info> WiFi now disabled by radio killswitch
    Jan 22 14:04:29 iroha NetworkManager[442]: <info> (wlp2s0): device state change: disconnected -> unavailable (reason 'none') [30 20 0]
    Jan 22 14:04:29 iroha NetworkManager[442]: <info> (wlp2s0): deactivating device (reason 'none') [0]
    Jan 22 14:04:29 iroha logger[1589]: ACPI group/action undefined: button/wlan / WLAN
    Jan 22 14:04:32 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:32 iroha sysctl[1592]: fs.inotify.max_user_watches = 32768
    Jan 22 14:04:37 iroha gdm-password][1590]: pam_unix(gdm-password:session): session opened for user iroha by (unknown)(uid=0)
    Jan 22 14:04:37 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:04:37 iroha systemd-logind[438]: New session c2 of user iroha.
    Jan 22 14:04:37 iroha systemd[1595]: pam_unix(systemd-user:session): session opened for user iroha by (uid=0)
    Jan 22 14:04:37 iroha systemd[1595]: Starting -.slice.
    Jan 22 14:04:37 iroha systemd[1595]: Created slice -.slice.
    Jan 22 14:04:37 iroha systemd[1595]: Starting Sockets.
    Jan 22 14:04:37 iroha systemd[1595]: Reached target Sockets.
    Jan 22 14:04:37 iroha systemd[1595]: Starting Timers.
    Jan 22 14:04:37 iroha systemd[1595]: Reached target Timers.
    Jan 22 14:04:37 iroha systemd[1595]: Starting Paths.
    Jan 22 14:04:37 iroha systemd[1595]: Reached target Paths.
    Jan 22 14:04:37 iroha systemd[1595]: Starting Basic System.
    Jan 22 14:04:37 iroha systemd[1595]: Reached target Basic System.
    Jan 22 14:04:37 iroha systemd[1595]: Starting "Chrome Remote Desktop host daemon"...
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: 2015-01-22 14:04:37,208:INFO:Daemon process started in the background, logging to '/tmp/chrome_remote_desktop_20150122_140437_0SS98g'
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: Using host_id: a792e48a-fe0f-5943-9596-fac5157abb01
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: Launching X server and X session.
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: Starting Xvfb on display :20
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: Xvfb is active.
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: Launching X session: ['/etc/gdm/Xsession']
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: Launching host process
    Jan 22 14:04:37 iroha chrome-remote-desktop[1598]: ['/opt/google/chrome-remote-desktop/chrome-remote-desktop-host', '--host-config=-', '--audio-pipe-name=/home/iroha/.config/chrome-remote-desktop/pulseaudio#4da065af94/fifo_output', '--ssh-auth-sockname=/tmp/chromoting.iroha.ssh_auth_sock', '--signal-parent']
    Jan 22 14:04:38 iroha chromoting[1623]: Host started for user: [email protected]
    Jan 22 14:04:38 iroha org.a11y.Bus[1643]: Activating service name='org.a11y.atspi.Registry'
    Jan 22 14:04:38 iroha org.a11y.Bus[1643]: Successfully activated service 'org.a11y.atspi.Registry'
    Jan 22 14:04:38 iroha org.a11y.atspi.Registry[1666]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    Jan 22 14:04:38 iroha pulseaudio[1687]: [pulseaudio] sink.c: Default and alternate sample rates are the same.
    Jan 22 14:05:02 iroha gdm-password][1590]: pam_systemd(gdm-password:session): Failed to create session: Connection timed out
    Jan 22 14:05:02 iroha org.a11y.Bus[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha gnome-session[943]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha org.gtk.vfs.Daemon[991]: A connection to the bus can't be made
    Jan 22 14:05:02 iroha org.gtk.vfs.Daemon[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha gdm-launch-environment][803]: pam_systemd(gdm-launch-environment:session): Failed to release session: Interrupted system call
    Jan 22 14:05:02 iroha org.a11y.atspi.Registry[1074]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha ca.desrt.dconf[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha org.freedesktop.Telepathy.AccountManager[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha org.gnome.OnlineAccounts[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha gdm-session-worker[803]: <3>GLib: Source ID 72 was not found when attempting to remove it
    Jan 22 14:05:02 iroha org.gnome.Caribou.Daemon[991]: ** (caribou:1552): WARNING **: daemon.vala:186: can't hide keyboard: The connection is closed
    Jan 22 14:05:02 iroha org.gtk.Private.MTPVolumeMonitor[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Error sending message: Broken pipe (g-io-error-quark, 44). Exiting.
    Jan 22 14:05:02 iroha org.gnome.Caribou.Daemon[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha org.gtk.Private.UDisks2VolumeMonitor[991]: g_dbus_connection_real_closed: Remote peer vanished with error: Error receiving message: Connection reset by peer (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha gnome-session[943]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    Jan 22 14:05:02 iroha polkitd[449]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.18, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
    Jan 22 14:05:02 iroha systemd-logind[438]: Removed session c1.
    Jan 22 14:05:02 iroha systemd[924]: Stopping Default.
    Jan 22 14:05:02 iroha systemd[924]: Stopped target Default.
    Jan 22 14:05:02 iroha systemd[924]: Starting Shutdown.
    Jan 22 14:05:02 iroha systemd[924]: Reached target Shutdown.
    Jan 22 14:05:02 iroha systemd[924]: Starting Exit the Session...
    Jan 22 14:05:02 iroha systemd[924]: Stopping Basic System.
    Jan 22 14:05:02 iroha systemd[924]: Stopped target Basic System.
    Jan 22 14:05:02 iroha systemd[924]: Stopping Timers.
    Jan 22 14:05:02 iroha systemd[924]: Stopped target Timers.
    Jan 22 14:05:02 iroha systemd[924]: Stopping Sockets.
    Jan 22 14:05:02 iroha systemd[924]: Stopped target Sockets.
    Jan 22 14:05:02 iroha systemd[924]: Stopping Paths.
    Jan 22 14:05:02 iroha systemd[924]: Stopped target Paths.
    Jan 22 14:05:02 iroha systemd[924]: Received SIGRTMIN+24 from PID 1703 (kill).
    Jan 22 14:05:02 iroha /etc/gdm/Xsession[1702]: /etc/gdm/Xsession: Beginning session setup...
    Jan 22 14:05:02 iroha systemd[931]: pam_unix(systemd-user:session): session closed for user gdm
    Jan 22 14:05:02 iroha /etc/gdm/Xsession[1702]: gpg-agent: a gpg-agent is already running - not starting a new one
    Jan 22 14:05:02 iroha /etc/gdm/Xsession[1702]: localuser:iroha being added to access control list
    Jan 22 14:05:02 iroha /etc/gdm/Xsession[1702]: /etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- gnome-session
    Jan 22 14:05:02 iroha org.a11y.Bus[1726]: Activating service name='org.a11y.atspi.Registry'
    Jan 22 14:05:02 iroha org.a11y.Bus[1726]: Successfully activated service 'org.a11y.atspi.Registry'
    Jan 22 14:05:02 iroha org.a11y.atspi.Registry[1739]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
    Jan 22 14:05:02 iroha rtkit-daemon[1460]: Successfully made thread 1764 of process 1764 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
    Jan 22 14:05:02 iroha rtkit-daemon[1460]: Supervising 2 threads of 2 processes of 1 users.
    Jan 22 14:05:02 iroha dbus[435]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    Jan 22 14:05:02 iroha dbus[435]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory.
    Jan 22 14:05:02 iroha pulseaudio[1764]: GetManagedObjects() failed: org.freedesktop.systemd1.LoadFailed: Unit dbus-org.bluez.service failed to load: No such file or directory.
    Jan 22 14:05:02 iroha gnome-session[1702]: GNOME_KEYRING_CONTROL=/home/iroha/.cache/keyring-CFEWSX
    Jan 22 14:05:02 iroha gnome-session[1702]: SSH_AUTH_SOCK=/home/iroha/.cache/keyring-CFEWSX/ssh
    Jan 22 14:05:02 iroha gnome-session[1702]: GNOME_KEYRING_CONTROL=/home/iroha/.cache/keyring-CFEWSX
    Jan 22 14:05:02 iroha gnome-session[1702]: SSH_AUTH_SOCK=/home/iroha/.cache/keyring-CFEWSX/ssh
    Jan 22 14:05:02 iroha gnome-session[1702]: GPG_AGENT_INFO=/home/iroha/.cache/keyring-CFEWSX/gpg:0:1
    Jan 22 14:05:02 iroha gnome-session[1702]: GNOME_KEYRING_CONTROL=/home/iroha/.cache/keyring-CFEWSX
    Jan 22 14:05:02 iroha gnome-session[1702]: SSH_AUTH_SOCK=/home/iroha/.cache/keyring-CFEWSX/ssh
    Jan 22 14:05:02 iroha gnome-session[1702]: GPG_AGENT_INFO=/home/iroha/.cache/keyring-CFEWSX/gpg:0:1
    Jan 22 14:05:02 iroha gnome-session[1702]: GNOME_KEYRING_CONTROL=/home/iroha/.cache/keyring-CFEWSX
    Jan 22 14:05:02 iroha gnome-session[1702]: SSH_AUTH_SOCK=/home/iroha/.cache/keyring-CFEWSX/ssh
    Jan 22 14:05:02 iroha gnome-session[1702]: GPG_AGENT_INFO=/home/iroha/.cache/keyring-CFEWSX/gpg:0:1
    Jan 22 14:05:02 iroha gnome-session[1702]: error: XDG_RUNTIME_DIR not set in the environment.
    Jan 22 14:05:02 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
    Jan 22 14:05:02 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:05:02 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.hostname1'
    Jan 22 14:05:03 iroha dbus[435]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
    Jan 22 14:05:03 iroha systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Jan 22 14:05:03 iroha dbus[435]: [system] Successfully activated service 'org.freedesktop.locale1'
    Jan 22 14:05:03 iroha gnome-session[1702]: (gnome-shell:1785): Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null
    Jan 22 14:05:03 iroha gnome-session[1702]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104
    Jan 22 14:05:03 iroha gnome-session[1702]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151
    Jan 22 14:05:03 iroha gnome-session[1702]: @resource:///org/gnome/gjs/modules/overrides/GLib.js:261
    Jan 22 14:05:03 iroha gnome-session[1702]: _proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78
    Jan 22 14:05:03 iroha gnome-session[1702]: _makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124
    Jan 22 14:05:03 iroha gnome-session[1702]: LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:120
    Jan 22 14:05:03 iroha gnome-session[1702]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jan 22 14:05:03 iroha gnome-session[1702]: ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:558
    Jan 22 14:05:03 iroha gnome-session[1702]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jan 22 14:05:03 iroha gnome-session[1702]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
    Jan 22 14:05:03 iroha gnome-session[1702]: Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
    Jan 22 14:05:03 iroha gnome-session[1702]: _initializeUI@resource:///org/gnome/shell/ui/main.js:150
    Jan 22 14:05:03 iroha gnome-session[1702]: start@resource:///org/gnome/shell/ui/main.js:112
    Jan 22 14:05:03 iroha gnome-session[1702]: @<main>:1
    Jan 22 14:05:03 iroha gnome-session[1702]: ** Message: Execution of main.js threw exception: JS_EvaluateScript() failed
    Jan 22 14:05:03 iroha gnome-session[1702]: gnome-session[1702]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jan 22 14:05:03 iroha gnome-session[1702]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jan 22 14:05:04 iroha gnome-session[1702]: (gnome-shell:1803): Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null
    Jan 22 14:05:04 iroha gnome-session[1702]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104
    Jan 22 14:05:04 iroha gnome-session[1702]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151
    Jan 22 14:05:04 iroha gnome-session[1702]: @resource:///org/gnome/gjs/modules/overrides/GLib.js:261
    Jan 22 14:05:04 iroha gnome-session[1702]: _proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78
    Jan 22 14:05:04 iroha gnome-session[1702]: _makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124
    Jan 22 14:05:04 iroha gnome-session[1702]: LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:120
    Jan 22 14:05:04 iroha gnome-session[1702]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jan 22 14:05:04 iroha gnome-session[1702]: ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:558
    Jan 22 14:05:04 iroha gnome-session[1702]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jan 22 14:05:04 iroha gnome-session[1702]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
    Jan 22 14:05:04 iroha gnome-session[1702]: Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
    Jan 22 14:05:04 iroha gnome-session[1702]: _initializeUI@resource:///org/gnome/shell/ui/main.js:150
    Jan 22 14:05:04 iroha gnome-session[1702]: start@resource:///org/gnome/shell/ui/main.js:112
    Jan 22 14:05:04 iroha gnome-session[1702]: @<main>:1
    Jan 22 14:05:04 iroha gnome-session[1702]: ** Message: Execution of main.js threw exception: JS_EvaluateScript() failed
    Jan 22 14:05:04 iroha gnome-session[1702]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jan 22 14:05:04 iroha gnome-session[1702]: WARNING: App 'gnome-shell.desktop' respawning too quickly
    Jan 22 14:05:04 iroha gnome-session[1702]: gnome-session[1702]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jan 22 14:05:04 iroha gnome-session[1702]: gnome-session[1702]: WARNING: App 'gnome-shell.desktop' respawning too quickly
    Jan 22 14:05:04 iroha gnome-session[1702]: (gnome-settings-daemon:1754): GLib-GIO-CRITICAL **: g_dbus_proxy_call_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
    Jan 22 14:05:04 iroha gnome-session[1702]: Unrecoverable failure in required component gnome-shell.desktop
    Jan 22 14:05:04 iroha gnome-session[1702]: megasync: /usr/lib/libcrypto.so.1.0.0: no version information available (required by megasync)
    Jan 22 14:05:04 iroha gnome-session[1702]: megasync: /usr/lib/libssl.so.1.0.0: no version information available (required by megasync)
    Jan 22 14:05:04 iroha gnome-session[1702]: megasync: /usr/lib/libssl.so.1.0.0: no version information available (required by megasync)
    Jan 22 14:05:04 iroha gnome-session[1702]: Entering running state
    Jan 22 14:05:04 iroha gnome-session[1702]: (uint32 1,)
    Jan 22 14:05:04 iroha gnome-session[1702]: Failed to play sound: File or data not found
    Jan 22 14:05:04 iroha gnome-session[1702]: Initializing nautilus-dropbox 2.10.0
    Jan 22 14:05:04 iroha org.gnome.OnlineAccounts[1726]: goa-daemon-Message: goa-daemon version 3.14.2 starting
    Jan 22 14:05:04 iroha org.gnome.zeitgeist.Engine[1726]: ** (zeitgeist-datahub:1904): WARNING **: zeitgeist-datahub.vala:226: Unable to get name "org.gnome.zeitgeist.datahub" on the bus!
    Jan 22 14:05:05 iroha gnome-session[1702]: [13:05:05][warn] QT Warning: No systemtrayicon available
    Jan 22 14:05:05 iroha gnome-session[1702]: (gnome-settings-daemon:1754): GLib-GIO-CRITICAL **: g_dbus_proxy_call_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
    Jan 22 14:05:05 iroha gnome-session[1702]: [13:05:05][err] Error in c-ares. Reinitializing...
    Jan 22 14:05:05 iroha gnome-session[1702]: [13:05:05][err] Invalid DNS servers: 127.0.0.1
    Jan 22 14:05:05 iroha gnome-session[1702]: [13:05:05][err] Error in c-ares. Reinitializing...
    Jan 22 14:05:05 iroha gnome-session[1702]: [13:05:05][err] Invalid DNS servers: 127.0.0.1
    Jan 22 14:05:06 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:06 iroha gnome-session[1702]: [13:05:06][err] Error in c-ares. Reinitializing...
    Jan 22 14:05:06 iroha gnome-session[1702]: [13:05:06][err] Invalid DNS servers: 127.0.0.1
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: ** (nautilus:1830): WARNING **: connect() failed
    Jan 22 14:05:07 iroha gnome-session[1702]: [13:05:07][err] Error in c-ares. Reinitializing...
    Jan 22 14:05:07 iroha gnome-session[1702]: [13:05:

    damn ! that was it ... you wouldn't believe how long i was struggling with that strange error
    chrome-remote-desktop is actually  a pretty cool tool to remotely control your pc from your mobile.
    well, but it had to go now ... thanks for your help !

  • Writing data into file from URL address

    Hi!
    I need to download file from certain url address and write it to file on my local disk. The file being downloaded is a image file and therefore
    I cannot make sure what encoding should I use. When I save file manually on disk and compare it with the file written programmatically, then
    the bytes in both files are not equal. Any smart advises are welcome.
    The code being used is:
    import java.net.*;
    import java.io.*;
    public class UrlParser {
         public static void main(String[] args) {
              String data;
              try{
                   // Construct a URL object
                   URL url = new URL("http://stockcharts.com/c-sc/sc?s=qqqq&p=D&b=3&g=0&i=t74934638175&r=4028");
                   // Open a connection to the URL object
                   String encoding = "UTF8";
                   BufferedReader html = new BufferedReader(new InputStreamReader(url.openStream(),encoding));      
                   Writer img_out = new OutputStreamWriter(new FileOutputStream("sc.gif"), encoding);
                   while((data = html.readLine()) != null) {
                        img_out.write( data );
                   img_out.close();
              } catch(MalformedURLException e) {
                   System.out.println(e);
              } catch(IOException e) {
                   System.out.println(e);
    }

    Use InputStream and OutputStream classes, not Readers/Writers. The latter are for "text" I/O, not "binary".

  • Non-English Characters (Encoding)

    Using the XMP Toolkit I'm having problems reading and writing non-English characters.  For example: keywords read which should be "casa campesina, cultivos agrí colas, zona cafetera, café, plátano" read as "casa campesina, cultivos agrÃcolas, zona cafetera, café, plátano".   I have the same problem with other languages such as Norwegian.
    Does anyone else have this type of problem?  Or perhaps a suggestion as to what I might be doing to cause such a problem?
    Best regards,
    Glenn Rogers
    Developer of DBGallery: Photo DATAbase System

    Hi Glen,
    if you write non ASCII characters using our toolkit, you have to make sure to encode your string in UTF8.
    If you see this while reading, the data in the file might not be valid UTF8. If it's local encoding (for example mac local encoding) our library will try to convert it based  on the OS you are running it on. So it you got mac local encoding in the EXIF of the file and you are using the toolkit on windows, this might cause the wrong characters you are seeing.
    In order to avoid this please always use UTF8 encoded strings.
    Regards,
    Samy
    XMP Team

  • How to get the private and public key?

    there is my code,i want to get the public key and the private key �Cbut i could not find the the approprite method to solve the problem.
    import java.security.Key;
    import javax.crypto.Cipher;
    import java.security.KeyPairGenerator;
    import java.security.KeyPair;
    import java.security.Security;
    public class PublicExample {
    public static void main(String[] args) throws Exception {
    if (args.length != 1) {
    System.err.println("Usage:java PublicExample <text>");
    System.exit(1);
    byte[] plainText = args[0].getBytes("UTF8");
    System.out.println("\nStart generating RSA key");
    KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
    keyGen.initialize(512);
    KeyPair key = keyGen.generateKeyPair();
    System.out.println("Finish generating RSA key");
    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", "BC");
    //System.out.println("\n" + cipher.getProvider().getInfo());
    System.out.println("\nStart encryption");
    cipher.init(Cipher.ENCRYPT_MODE, key.getPublic());
    byte[] cipherText = cipher.doFinal(plainText);
    System.out.println("Finish encryption:");
    System.out.println(new String(cipherText, "UTF8"));
    System.out.println("\nStart decryption");
    cipher.init(Cipher.DECRYPT_MODE, key.getPrivate());
    /*i want to get the private and public key in this method ,but i found the result was not
    the one i expected to get,how to solve the problem?
    thanks in advance!
    System.out.println("private key:" + key.getPrivate().toString());
    System.out.println("public key:" + key.getPublic().toString());
    byte[] newPlainText = cipher.doFinal(cipherText);
    System.out.println("Finish decryption:");
    System.out.println(new String(newPlainText, "UTF8"));
    thanks in advance!

    System.out.println("private key:" +
    " + key.getPrivate().toString());
    System.out.println("public key:" +
    + key.getPublic().toString());
    key.getPrivate() returns an instance of PrivateKey and key.getPublic() returns an instance of PublicKey. Since PublicKey and PrivateKey are interfaces then they will return one of the concrete implementations. Check out the Javadoc for PublicKey and PrivateKey.
    When you know which concreate implemenation you have then you can use the methods on that object (by appropriate casting) to find the information you want.

  • Converting Chinese Characters from UTF-8 to GB2312

    Hi,
    I need to interact with an external system that only accepts GB2312 encoded strings as input.
    I have a site that is used to capture user input before feeding the data to the system. (Refer to the following)
    <%
    String strName = request.getParameter("strName");
    boolean serviceStatus = false;
    if (request.getParameter("strName") != null)
    serviceStatus=invokeTheService(strName,"text_process");
    %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    How can i encode the "strName" variable value to "GB2312". (Do be informed that i am unable to change the meta Content-Type to GB2312)
    I had tried using the following but was unable get it right.
    strName = new String(strName.getBytes("UTF-8"),"GB2312");
    I had also tried using the CharsetEncoder.encode to attempt to encode it to GB2312 but kept getting a UnmappableCharacterException message.
    *Correct me if i'm wrong, but UTF-8 tends to represent characters in 1,2 or 3 bytes.
    In the case of chinese characters, each character is represented by 3 bytes.
    GB2312 tends to represent each character in 2 bytes.
    So if i have a 3 chinese character as input, the original strName.length() would return 9. whereas the Gb2312 encoded strName should return 6 ?

    KeithTan wrote:
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    How can i encode the "strName" variable value to "GB2312". (Do be informed that i am unable to change the meta Content-Type to GB2312)Then what is the point of converting to GB2312 if you inform the recipient that it is encoded as something other than GB2312?
    >
    I had tried using the following but was unable get it right.
    strName = new String(strName.getBytes("UTF-8"),"GB2312");That can never ever be right. Java Strings are UNICODE encoded as UTF16. They are always encoded internally as UTF16 so your code says - convert the string to UTF8 bytes and then, even though they are UTF8 bytes and not GB2312 bytes, treat them as GB2312 bytes. That will almost certainly corrupt the String
    >
    I had also tried using the CharsetEncoder.encode to attempt to encode it to GB2312 but kept getting a UnmappableCharacterException message.Even if Java does support GB2312 then it is a wast of time sending GB2312 content to a client and telling the client that it is UTF-8 .

  • Unicode display rightly but different characters

    Hi, I've tried inserting some chinese characters into the form, convert it to utf-8 and store in the database (db2 udb v7.2) using entity (cmp) beans. Everything looks ok until when i retrieved the data from the database , it sure display chinese characters but some of them are not the characters i initially entered, can some experts please help? Thanks in advance!
    Below are the code i use to convert to utf-8 and back to display in a jsp page:
    Converting to utf-8
    byte[] fieldByteValue = field.toString().getBytes("ISO8859_1");
    String fieldStringValue = new String(fieldByteValue, "UTF8");
    Converting back from utf-8
    byte[] fieldByteValue = this.fields.getBytes();
    String fieldStringValue = new String(fieldByteValue, "UTF8");

    If you are to store a byte array of a String object encoded in UTF-8, use this form, under the condition that the String object consists of correct chinese characters:
    byte[] fieldByteValue = field.toString().getBytes("UTF8");It will be retrieved to a String object in the form:
    String str = new String(fieldByteValue, "UTF8")

  • Page directive with UTF-8 charset??

    Hello,
              I try to implement the following jsp with weblogic. It displays A???C on the
              browser when the encoding is set to Unicode(UTF-8).
              When I change the browser encoding to Western European, it works fine.
              <html>
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              <title>Trying</title>
              </head>
              <body>
              <%
              String original = new String("A" + "\u696D" + "\u00f1" + "\u00fc" + "C");
              byte[] utf8bytes = original.getBytes("UTF8");
              String roundTrip = new String(utf8bytes, "UTF8");
              %>
              Original = <%=original %>
              RoundTrip = <%=roundTrip %>
              </body>
              </html>
              I found that it ignores the first two 00 when handle \u00xx character.
              However, if I add the following page directive at the beginning, it works
              fine.
              <%@ page contentType="text/html; charset=UTF-8" %>
              My question are
              1. why it trim the first two digit ("00")?
              2. what the weblogic did when I add the page directive?
              3. Is that mean the line <meta http-equiv.....> cannot work?
              4. Is there any alternative instead of adding the page directive line?
              I use WL6.1, win2000. Please help.
              Thanks a lot.
              Regards,
              kfchu
              

    String original = new String("A" + "\u696D" + "\u00f1" + "\u00fc" + "C");          > I found that it ignores the first two 00 when handle \u00xx character.
              > 1. why it trim the first two digit ("00")?
              I can't tell what you mean. According to the JLS, the "\uxxxx" construct is
              processed in a pre-lexical step. That means that your code is the same as
              writing:
              String original = new String("A" + "?" + "?" + "?" + "C");
              (Where I used a question mark instead of looking up and writing in the
              actual character values.)
              The reason why it is 00xx is that the "\u" construct requires the data in
              UTF16 format (the 2-byte encoding of Unicode characters which you know as
              Java's "char" type).
              To see how this data is encoded / decoded, you can look at the Java sources
              for java.io.DataInputStream and DataOutputStream.
              > 4. Is there any alternative instead of adding the page directive line?
              Yes! You can use the Response method directly:
              public void setContentType(java.lang.String type)
              (That's all that the JSP does anyway.)
              Peace,
              Cameron Purdy
              Tangosol Inc.
              Tangosol Coherence: Clustered Coherent Cache for J2EE
              Information at http://www.tangosol.com/
              "kfchu" <[email protected]> wrote in message
              news:[email protected]...
              > Hello,
              >
              > I try to implement the following jsp with weblogic. It displays A???C on
              the
              > browser when the encoding is set to Unicode(UTF-8).
              > When I change the browser encoding to Western European, it works fine.
              > ---------------------------------
              > <html>
              > <head>
              > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              > <title>Trying</title>
              > </head>
              > <body>
              > <%
              > String original = new String("A" + "\u696D" + "\u00f1" + "\u00fc" + "C");
              > byte[] utf8bytes = original.getBytes("UTF8");
              > String roundTrip = new String(utf8bytes, "UTF8");
              > %>
              > Original = <%=original %>
              > RoundTrip = <%=roundTrip %>
              > </body>
              > </html>
              > -----------------------------------
              >
              > I found that it ignores the first two 00 when handle \u00xx character.
              > However, if I add the following page directive at the beginning, it works
              > fine.
              > <%@ page contentType="text/html; charset=UTF-8" %>
              >
              > My question are
              > 1. why it trim the first two digit ("00")?
              > 2. what the weblogic did when I add the page directive?
              > 3. Is that mean the line <meta http-equiv.....> cannot work?
              > 4. Is there any alternative instead of adding the page directive line?
              >
              > I use WL6.1, win2000. Please help.
              >
              > Thanks a lot.
              >
              > Regards,
              > kfchu
              >
              >
              

  • [Solved] Gnome can't log in on first attempt

    Hi all,
    When I log on to Gnome from GDM, the first attempt gives me the "Oh no, something has gone wrong" screen. The second attempt works.
    I've tried the various things suggested in the relevant forum threads (notably fixing the locale with localectl and reinstalling gdk2-pixbuf), to no avail.
    Here is what I think is the relevant part of the logs:
    Jun 29 12:10:36 mouton gnome-session[598]: (gnome-settings-daemon:643): color-plugin-WARNING **: failed to obtain org.freedesktop.color-manager.create-profile auth
    Jun 29 12:10:36 mouton gnome-session[598]: (gnome-settings-daemon:643): color-plugin-WARNING **: failed to obtain org.freedesktop.color-manager.create-profile auth
    Jun 29 12:10:36 mouton gnome-session[598]: (gnome-settings-daemon:643): color-plugin-WARNING **: failed to obtain org.freedesktop.color-manager.create-profile auth
    Jun 29 12:10:37 mouton gdm-Xorg-:0[321]: The XKEYBOARD keymap compiler (xkbcomp) reports:
    Jun 29 12:10:37 mouton gdm-Xorg-:0[321]: > Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
    Jun 29 12:10:37 mouton gdm-Xorg-:0[321]: > Ignoring extra symbols
    Jun 29 12:10:37 mouton gdm-Xorg-:0[321]: Errors from xkbcomp are not fatal to the X server
    Jun 29 12:10:38 mouton gnome-session[598]: (gnome-shell:686): Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null
    Jun 29 12:10:38 mouton gnome-session[598]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104
    Jun 29 12:10:38 mouton gnome-session[598]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151
    Jun 29 12:10:38 mouton gnome-session[598]: @resource:///org/gnome/gjs/modules/overrides/GLib.js:261
    Jun 29 12:10:38 mouton gnome-session[598]: _proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78
    Jun 29 12:10:38 mouton gnome-session[598]: _makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124
    Jun 29 12:10:38 mouton gnome-session[598]: LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:149
    Jun 29 12:10:38 mouton gnome-session[598]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jun 29 12:10:38 mouton gnome-session[598]: ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:560
    Jun 29 12:10:38 mouton gnome-session[598]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jun 29 12:10:38 mouton gnome-session[598]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
    Jun 29 12:10:38 mouton gnome-session[598]: Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
    Jun 29 12:10:38 mouton gnome-session[598]: _initializeUI@resource:///org/gnome/shell/ui/main.js:166
    Jun 29 12:10:38 mouton gnome-session[598]: start@resource:///org/gnome/shell/ui/main.js:117
    Jun 29 12:10:38 mouton gnome-session[598]: @<main>:1
    Jun 29 12:10:38 mouton gnome-session[598]: Window manager warning: Log level 32: Execution of main.js threw exception: JS_EvaluateScript() failed
    Jun 29 12:10:38 mouton gnome-session[598]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jun 29 12:10:38 mouton gnome-session[598]: gnome-session[598]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jun 29 12:10:39 mouton gnome-session[598]: (gnome-shell:703): Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null
    Jun 29 12:10:39 mouton gnome-session[598]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104
    Jun 29 12:10:39 mouton gnome-session[598]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151
    Jun 29 12:10:39 mouton gnome-session[598]: @resource:///org/gnome/gjs/modules/overrides/GLib.js:261
    Jun 29 12:10:39 mouton gnome-session[598]: _proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78
    Jun 29 12:10:39 mouton gnome-session[598]: _makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124
    Jun 29 12:10:39 mouton gnome-session[598]: LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:149
    Jun 29 12:10:39 mouton gnome-session[598]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jun 29 12:10:39 mouton gnome-session[598]: ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:560
    Jun 29 12:10:39 mouton gnome-session[598]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    Jun 29 12:10:39 mouton gnome-session[598]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
    Jun 29 12:10:39 mouton gnome-session[598]: Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
    Jun 29 12:10:39 mouton gnome-session[598]: _initializeUI@resource:///org/gnome/shell/ui/main.js:166
    Jun 29 12:10:39 mouton gnome-session[598]: start@resource:///org/gnome/shell/ui/main.js:117
    Jun 29 12:10:39 mouton gnome-session[598]: @<main>:1
    Jun 29 12:10:39 mouton gnome-session[598]: Window manager warning: Log level 32: Execution of main.js threw exception: JS_EvaluateScript() failed
    Jun 29 12:10:39 mouton gnome-session[598]: gnome-session[598]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jun 29 12:10:39 mouton gnome-session[598]: WARNING: App 'gnome-shell.desktop' exited with code 1
    Jun 29 12:10:39 mouton gnome-session[598]: gnome-session[598]: WARNING: App 'gnome-shell.desktop' respawning too quickly
    Jun 29 12:10:39 mouton gnome-session[598]: WARNING: App 'gnome-shell.desktop' respawning too quickly
    Jun 29 12:10:39 mouton gnome-session[598]: Unrecoverable failure in required component gnome-shell.desktop
    Any ideas?
    Last edited by lardon (2014-10-24 13:06:40)

    sorry, no idea. having the same problem here:
    okt 03 17:42:45 olivia gdm-Xorg-:0[715]: Errors from xkbcomp are not fatal to the X server
    okt 03 17:42:45 olivia gnome-session[3379]: (gnome-shell:3528): Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null
    okt 03 17:42:45 olivia gnome-session[3379]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104
    okt 03 17:42:45 olivia gnome-session[3379]: _pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151
    okt 03 17:42:45 olivia gnome-session[3379]: @resource:///org/gnome/gjs/modules/overrides/GLib.js:261
    okt 03 17:42:45 olivia gnome-session[3379]: _proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78
    okt 03 17:42:45 olivia gnome-session[3379]: _makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124
    okt 03 17:42:45 olivia gnome-session[3379]: LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:149
    okt 03 17:42:45 olivia gnome-session[3379]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    okt 03 17:42:45 olivia gnome-session[3379]: ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:560
    okt 03 17:42:45 olivia gnome-session[3379]: wrapper@resource:///org/gnome/gjs/modules/lang.js:169
    okt 03 17:42:45 olivia gnome-session[3379]: _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110
    okt 03 17:42:45 olivia gnome-session[3379]: Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:204
    okt 03 17:42:45 olivia gnome-session[3379]: _initializeUI@resource:///org/gnome/shell/ui/main.js:166
    okt 03 17:42:45 olivia gnome-session[3379]: start@resource:///org/gnome/shell/ui/main.js:117
    okt 03 17:42:45 olivia gnome-session[3379]: @<main>:1
    okt 03 17:42:45 olivia gnome-session[3379]: Window manager warning: Log level 32: Execution of main.js threw exception: JS_EvaluateScript() failed
    okt 03 17:42:45 olivia gnome-session[3379]: gnome-session[3379]: WARNING: App 'gnome-shell.desktop' exited with code 1
    okt 03 17:42:45 olivia gnome-session[3379]: WARNING: App 'gnome-shell.desktop' exited with code 1
    okt 03 17:42:45 olivia gnome-session[3379]: WARNING: App 'gnome-shell.desktop' respawning too quickly
    okt 03 17:42:45 olivia gnome-session[3379]: gnome-session[3379]: WARNING: App 'gnome-shell.desktop' respawning too quickly
    okt 03 17:42:45 olivia gnome-session[3379]: Unrecoverable failure in required component gnome-shell.desktop
    systemctl restart gdm helps. nvidia 750ti & 3 monitor-setup.

  • Very urgent : please help !!!! Blowfish problem

    Greetings people,
    I have devised an application which reads the value from file and encrypts it (using Blowfish)......The file is then read and decrypted accordingly..............
    Problem : I seem to be able to encrypt and further decrypt file(s) which size is below 100 bytes. Anything beyond that will trigger the following :
    javax.crypto.IllegalBlockSizeException: Input length (with padding) not multiple of 8 bytes
    at com.sun.crypto.provider.SunJCE_h.a(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(DashoA6275)
    at javax.crypto.Cipher.doFinal(DashoA6275)
    at LockDownBase.decrypt(LockDownBase.java:144)
    Could someone please help me with this dilemma as time is of the essence at this point and I really need to get this thing up and running. (ps. It is necessary for me to retain the usage of the Base64 Encoder as I am conducting a study on the usage of this Encoder).
    Thank you for the help
    <code>
    import java.io.*;
    import java.math.*;
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import sun.misc.*;
    public class LockDownBase {
    private static String keyFile = "c:\\encode\\blowfishbase.txt";
    public static String new_key (String me) throws Exception {
    //Get a blowfish key
    KeyGenerator keyGenerator = KeyGenerator.getInstance("Blowfish");
    keyGenerator.init(128);
    SecretKey key = keyGenerator.generateKey();
    System.out.println("OK");
    byte [] encoded = key.getEncoded();
    FileOutputStream fos = new FileOutputStream(keyFile);
    fos.write(encoded);
    fos.close();
    return me;
    //initKey
    public static Key initKey() throws Exception{
    FileInputStream in = new FileInputStream(keyFile);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int i;
    while((i=in.read()) != -1){
    baos.write(i);
    in.close();
    byte [] keys = baos.toByteArray();
    SecretKeySpec key = new SecretKeySpec(keys,"Blowfish");
    Key keyword = key;
    return key;
    public static String encrypt (String location) throws Exception{
    //PrintStream is deprecated, but works fine in jdk1.1.7b
    //PrintStream output1 = new PrintStream(outFile1);
    //get_key
    String testme = "dummy";
    Key key = initKey();
    Cipher cipher = Cipher.getInstance("Blowfish/ECB/PKCS5Padding");
    cipher.init(Cipher.ENCRYPT_MODE, key);
    // read in the input file
    String line;
    StringBuffer buffer = new StringBuffer();
    FileInputStream fis = new FileInputStream(location);
    InputStreamReader isr = new InputStreamReader(fis);
    Reader in = new BufferedReader(isr);
    int ch;
    while ((ch = in.read()) > -1) {
    buffer.append((char)ch);
    in.close();
    line = buffer.toString();
    byte [] cipherText = cipher.doFinal(line.getBytes("UTF8"));
    //output1.print(" ");
    // output1.println("ciphertext.length = " + cipherText.length);
    // print out representation of ciphertext to general output file
    BASE64Encoder encoding = new BASE64Encoder();
    String feed = encoding.encode(cipherText);
    FileOutputStream outFile2 = new FileOutputStream(location);
    PrintStream output2 = new PrintStream(outFile2);
    output2.close();
    String dir = location;
    FileOutputStream outFile3 = new FileOutputStream(dir);
    PrintStream output3 = new PrintStream(outFile3);
    output3.println(feed);
    output3.close();
    return location;
    public static String decrypt (String location) throws Exception{
    Key key = initKey();
    String line;
    String dir = location;
    FileReader far = new FileReader (dir);
    BufferedReader stdin = new BufferedReader(far,8192);
    String line = null;
    while ((line = stdin.readLine()) != null){
    BASE64Decoder decoding = new BASE64Decoder();
    byte[] decrypted = decoding.decodeBuffer(line);
    Cipher cipher = Cipher.getInstance("Blowfish/ECB/PKCS5Padding");
    cipher.init(Cipher.DECRYPT_MODE, key);
    byte [] decryptedtext = cipher.doFinal(decrypted);
    String output = new String (decryptedtext,"UTF8");
    System.out.println(output);
    FileOutputStream outFile1 = new FileOutputStream(location);
    PrintStream output1 = new PrintStream(outFile1);
    output1.println(output);
    output1.close();
    return location;
    </code>

    The error message says it all.
    Input length (with padding) not multiple of 8 bytes
    As you are using PKCS5Padding you will have an output data whose length is padded with 1 a 8 bytes. For instance, if your original data have 1023 bytes, it is padded with 1 byte - total length = 1024. It your original data have 1024 bytes, it will be padded with 8 bytes (not 0 as you could think).
    You have some problem encoding and decoding Base-64 - it is not yielding the original encrypted results. Your best friend is System.out.println of the length of the original and encrypted data.

Maybe you are looking for