您尚未登录。

#1 2013-06-15 10:20:55

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

测试 highlight.js

@requires_authorization
def somefunc(param1='', param2=0):
    r'''A docstring'''
    if param1 > param2: # interesting
        print 'Gre\'ater'
    return (param2 - param1 + 1) or None

class SomeClass:
    pass

>>> message = '''interpreter
... prompt'''
class A < B; def self.create(object = User) object end end
class Zebra; def inspect; "X#{2 + self.object_id}" end end

module ABC::DEF
  include Comparable

  # @param test
  # @return [String] nothing
  def foo(test)
    Thread.new do |blockvar|
      ABC::DEF.reverse(:a_symbol, :'a symbol', :<=>, 'test' + test)
    end.join
  end

  def [](index) self[index] end
  def ==(other) other == self end
end

anIdentifier = an_identifier
Constant = 1
render action: :new
grade = (student) ->
  if student.excellentWork
    "A+"
  else if student.okayStuff
    if student.triedHard then "B" else "B-"
  else
    "C"

eldest = if 24 > 21 then "Liz" else "Ike"

square = (x) -> x * x

two = -> 2

math =
  root:   Math.sqrt
  square: square
  cube:   (x) -> x * square x

race = (winner, runners...) ->
  print winner, runners

class Animal extends Being
  constructor: (@name) ->

  move: (meters) ->
    alert @name + " moved #{meters}m."

hi = `function() {
  return [document.title, "Hello JavaScript"].join(": ");
}`

heredoc = """
CoffeeScript numbers test #{ 010 + 0xf / 0b10 }
"""

###
CoffeeScript Compiler v1.2.0
Released under the MIT License
###

OPERATOR = /// ^ (
?: [-=]>             # function
 | [-+*/%<>&|^!?=]=  # compound assign / compare
 | >>>=?             # zero-fill right shift
 | ([-+:])\1         # doubles
 | ([&|<>])\2=?      # logic / shift
 | \?\.              # soak access
 | \.{2,3}           # range or splat
) ///
--[[
Simple signal/slot implementation
]]
local signal_mt = {
    __index = {
        register = table.insert
    }
}
function signal_mt.__index:emit(... --[[ Comment in params ]])
    for _, slot in ipairs(self) do
        slot(self, ...)
    end
end
local function create_signal()
    return setmetatable({}, signal_mt)
end

-- Signal test
local signal = create_signal()
signal:register(function (signal, ...)
    print(...)
end)
signal:emit('Answer to Life, the Universe, and Everything:', 42)

--[==[ [=[ [[
Nested ]]
multi-line ]=]
comment ]==]
[==[ Nested
[=[ multi-line
[[ string
]] ]=] ]==]
#include <iostream>

int main(int argc, char *argv[]) {

  /* An annoying "Hello World" example */
  for (auto i = 0; i < 0xFFFF; i++)
    cout << "Hello, World!" << endl;

  char c = '\n';
  unordered_map <string, vector<string> > m;
  m["key"] = "\\\\"; // this is an error

  return -2e3 + 12l;
}
(defun prompt-for-cd ()
   "Prompts
    for CD"
   (prompt-read "Title" 1.53 1 2/4 1.7 1.7e0 2.9E-4 +42 -7 #b001 #b001/100 #o777 #O777 #xabc55 #c(0 -5.6))
   (prompt-read "Artist" &rest)
   (or (parse-integer (prompt-read "Rating") :junk-allowed t) 0)
  (if x (format t "yes") (format t "no" nil) ;and here comment
  )
  ;; second line comment
  '(+ 1 2)
  (defvar *lines*)                ; list of all lines
  (position-if-not #'sys::whitespacep line :start beg))
  (quote (privet 1 2 3))
  '(hello world)
  (* 5 7)
  (1 2 34 5)
  (:use "aaaa")
  (let ((x 10) (y 20))
    (print (+ x y))
  )

离线

#2 2013-06-15 12:05:55

mapleray
awesome小白一个
注册时间: 2012-12-02
帖子: 174
个人网站

Re: 测试 highlight.js

能不能搞个支持日志代码高亮的啊?

离线

#3 2013-06-15 12:23:20

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 测试 highlight.js

mapleray 说:

能不能搞个支持日志代码高亮的啊?

那个需要 Vim 呢。

离线

#4 2013-06-16 09:16:47

cjxgm
忙,却还想养猫?
所在地: 杭州
注册时间: 2011-08-19
帖子: 414
个人网站

Re: 测试 highlight.js

居然还是自动识别语言的
能否加上自定义 TAB 宽度?

my %tk  = (name => undef, type => undef);
my %tk2 = %tk;
my $retreated = undef;
my @keywords = qw(if else while break continue return exit);
my @dsymbols = qw(++ -- += -= == != >= <= && ||);
sub compile
{
	while (<>) { $source .= $_ }
	&advance;
	&bs_program;
	&gen_code;
}
sub match
{
	return unless $tk{type} eq shift;
	if ($_[0]) { return unless $tk{name} eq $_[0] }
	1;
}

sub match_or_die
{
	match $_[0], $_[1] or die "$_[0] " . "'"x($_[1] ne "") . "$_[1]" .
								"' "x($_[1] ne "") . "expected" .
								" "x($_[2] ne "") . "$_[2].\n";
}

sub bs_program
{
	while (!match()) { push @funcs, &bs_func }
}

离线

#5 2013-06-16 14:34:40

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 测试 highlight.js

cjxgm 说:

居然还是自动识别语言的
能否加上自定义 TAB 宽度?

Tab 就是 8 个字符的宽度啦=w=

离线

#6 2013-06-16 19:15:18

cjxgm
忙,却还想养猫?
所在地: 杭州
注册时间: 2011-08-19
帖子: 414
个人网站

Re: 测试 highlight.js

百合仙子 说:
cjxgm 说:

居然还是自动识别语言的
能否加上自定义 TAB 宽度?

Tab 就是 8 个字符的宽度啦=w=

那怎么行,我所有代码都是 noet sw=4 ts=4 sts=0 的

离线

#7 2013-06-24 09:26:41

枫叶饭团
免费会员
所在地: C.C.
注册时间: 2011-08-27
帖子: 190
个人网站

Re: 测试 highlight.js

好高级的样子

#!/bin/bash
echo "hello world"

离线

#8 2013-06-24 15:45:36

cuihao
所在地: USTC, Hefei
注册时间: 2011-08-19
帖子: 1,222
个人网站

Re: 测试 highlight.js

#!/bin/chnsh
输出 "啦啦啦"

Site: CVHC.CC   Twitter: @cuihaoleo   Org: LUG@USTC
AD:  ~欢迎参与志愿计算~

离线

#9 2013-07-01 18:18:57

nuanyangyang
会员
注册时间: 2013-06-26
帖子: 15

Re: 测试 highlight.js

++++++++[->++++++++<]>
ABCDEFGHIJKLMNOPQRSTUVWXYZ
++++++++.
     ---.
     +++++++..
            +++.
               ++++++++.
               --------.
               +++.
            ------.
    --------.
// 必须使用Clang 3.3编译

#include <stdio.h>

const int 正常退出 = 0;
const int 异常退出 = 1;
typedef int 整数;
typedef char 字符;
#define 格式化输出 printf
#define 迭代 for
#define 返回 return

整数 main(整数 命令行参数个数, 字符* 命令行参数[]) {
    格式化输出("世界你好\n");

    迭代 (整数 i = 0; i < 命令行参数个数; i++) {
        格式化输出("%s\n", 命令行参数[i]);
    }

    返回 正常退出;
}
package junk.htmlgen

import scala.math.BigInt
import scala.collection.immutable.Stream

object Fibonacci {
  val fibs: Stream[BigInt] = 0 #:: 1 #:: fibs.zip(fibs.tail).map { n => n._1 + n._2 }
}

object GenHtml extends App {
  val nums = Fibonacci.fibs.take(10)

  val html =
    <html>
      <head>
        <meta charset='UTF-8' />
        <title>Fibonacci Sequence</title>
      </head>
      <body>
        <h1>Fibonacci</h1>
        <ul>
        {
          for (n <- nums)
            yield <li>{n}</li>
        }
        </ul>
      </body>
    </html>

  println(html)
}
; ModuleID = 'hailstone.c'
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = private unnamed_addr constant [18 x i8] c"longest: %d (%d)\0A\00", align 1

; Function Attrs: nounwind uwtable
define i32 @main(i32 %argc, i8** nocapture %argv) #0 {
  br label %1

; <label>:1                                       ; preds = %._crit_edge, %0
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next, %._crit_edge ]
  %terms.04 = phi i32 [ 0, %0 ], [ %this_terms.0.terms.0, %._crit_edge ]
  %longest.03 = phi i32 [ 0, %0 ], [ %i.0.longest.0, %._crit_edge ]
  %2 = trunc i64 %indvars.iv to i32
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1, %.backedge
  %j.02 = phi i64 [ %j.0.be, %.backedge ], [ %indvars.iv, %1 ]
  %this_terms.01 = phi i32 [ %4, %.backedge ], [ 1, %1 ]
  %4 = add nsw i32 %this_terms.01, 1
  %5 = and i64 %j.02, 1
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %7, label %9

; <label>:7                                       ; preds = %.lr.ph
  %8 = lshr i64 %j.02, 1
  br label %.backedge

; <label>:9                                       ; preds = %.lr.ph
  %10 = mul i64 %j.02, 3
  %11 = add i64 %10, 1
  br label %.backedge

.backedge:                                        ; preds = %9, %7
  %j.0.be = phi i64 [ %11, %9 ], [ %8, %7 ]
  %12 = icmp eq i64 %j.0.be, 1
  br i1 %12, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.backedge, %1
  %this_terms.0.lcssa = phi i32 [ 1, %1 ], [ %4, %.backedge ]
  %13 = icmp sgt i32 %this_terms.0.lcssa, %terms.04
  %i.0.longest.0 = select i1 %13, i32 %2, i32 %longest.03
  %this_terms.0.terms.0 = select i1 %13, i32 %this_terms.0.lcssa, i32 %terms.04
  %indvars.iv.next = add i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond = icmp eq i32 %lftr.wideiv, 1000000
  br i1 %exitcond, label %14, label %1

; <label>:14                                      ; preds = %._crit_edge
  %15 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([18 x i8]* @.str, i64 0, i64 0), i32 %i.0.longest.0, i32 %this_terms.0.terms.0) #2
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @printf(i8* nocapture, ...) #1

attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #2 = { nounwind }

最近编辑记录 nuanyangyang (2013-07-01 19:01:03)

离线

#10 2013-07-01 19:04:53

nuanyangyang
会员
注册时间: 2013-06-26
帖子: 15

Re: 测试 highlight.js

// https://github.com/enjalot/adventures_in_opencl/blob/master/experiments/texshare/part2.cl

__kernel void part2(__global float4* pos, __global float4* color, __global float4* vel, __global float4* pos_gen, __global float4* vel_gen, float dt)
{
    //get our index in the array
    unsigned int i = get_global_id(0);
    //copy position and velocity for this iteration to a local variable
    //note: if we were doing many more calculations we would want to have opencl
    //copy to a local memory array to speed up memory access (this will be the subject of a later tutorial)
    float4 p = pos[i];
    float4 v = vel[i];

    //we've stored the life in the fourth component of our velocity array
    float life = vel[i].w;
    //decrease the life by the time step (this value could be adjusted to lengthen or shorten particle life
    life -= dt;
    //if the life is 0 or less we reset the particle's values back to the original values and set life to 1
    if(life <= 0)
    {
        p = pos_gen[i];
        v = vel_gen[i];
        life = 1.0;
    }

    //we use a first order euler method to integrate the velocity and position (i'll expand on this in another tutorial)
    //update the velocity to be affected by "gravity" in the z direction
    v.z -= 9.8*dt;
    //update the position with the new velocity
    p.x += v.x*dt;
    p.y += v.y*dt;
    p.z += v.z*dt;
    //store the updated life in the velocity array
    v.w = life;

    //update the arrays with our newly computed values
    pos[i] = p;
    vel[i] = v;

    //you can manipulate the color based on properties of the system
    //here we adjust the alpha
    color[i].w = life;

}
import QtQuick 2.0

Rectangle {
    id: menuBar

    width: 1000
    height: 300

    property color fileColor: "thistle"
    property color editColor: "powderblue"

    Rectangle {
        id: labelList
        width: parent.width
        height: parent.height / 10
        color: "steelblue"

        z: 1

        Row {
            anchors.centerIn: parent
            spacing: 40
            Button {
                id: fileButton
                width: 50; height: 20
                label: "File"
                
                buttonColor: menuListView.curentIndex==0? fileColor: Qt.darker(fileColor, 1.5)

                scale: menuListView.currentIndex==0? 1.25: 1
                radius: 1

                onButtonClick: {
                    menuListView.currentIndex = 0
                }
            }
            Button {
                id: editButton
                width: 50; height: 20
                label: "edit"
                
                buttonColor: menuListView.curentIndex==1? editColor: Qt.darker(editColor, 1.5)

                scale: menuListView.currentIndex==1? 1.25: 1
                radius: 1

                onButtonClick: {
                    menuListView.currentIndex = 1
                }
            }
        }
    }


    VisualItemModel {
        id: menuListModel

        FileMenu {
            width: menuListView.width
            height: menuBar.height
            color: fileColor
        }

        EditMenu {
            color: editColor
            height: menuBar.height
            width: menuListView.width
        }
    }

    ListView {
        id: menuListView
        anchors.fill: parent
        anchors.bottom: parent.bottom
        width: parent.width
        height: parent.height

        model: menuListModel

        snapMode: ListView.SnapOneItem
        orientation: ListView.Horizontal
        boundsBehavior: Flickable.StopAtBounds
        flickDeceleration: 5000
        highlightFollowsCurrentItem: true
        highlightMoveDuration: 240
        highlightRangeMode: ListView.StrictlyEnforceRange
    }
}
gpg-agent[406]: enabled debug flags: assuan
Agent pid 410
startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kbuildsycoca4 running...
kbuildsycoca4(430) KBuildSycoca::checkTimestamps: checking file timestamps
kbuildsycoca4(430) KBuildSycoca::checkTimestamps: timestamps check ok
kbuildsycoca4(430) kdemain: Emitting notifyDatabaseChanged ()
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Module  "resources" is registered 
Module  "activities" is registered 
Module  "features" is registered 
This is the current thread id for Activities 140232241121024 QThread(0x2802380) 
These are the disabled plugins: ("activitymanager_plugin_dummy", "activitymanager_plugin_nepomuk") 
Initializing plugin: "activitymanager_plugin_globalshortcuts" 
This is the current thread id for Activities 140232565778304 QThread(0x25da150) 
Initializing plugin: "activitymanager_plugin_slc" 
Initializing plugin: "activitymanager_plugin_virtualdesktopswitch" 
VirtualDesktopSwitch::init 
Module  "org.kde.ActivityManager.VirtualDesktopSwitch" is registered 
Initializing plugin: "activitymanager_plugin_activityranking" 
running in thread ActivityRanking 
Initializing plugin: "activitymanager_plugin_sqlite" 
Module  "org.kde.ActivityManager.Resources.Scoring" is registered 
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/wks/.kde4/share/config/activitymanager-pluginsrc
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.5'
QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.13'
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Device" does not exist 
kded(429)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
This is the current thread id for Activities 140232241121024 QThread(0x2802380) 
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string:                  3.0 Mesa 9.1.3
OpenGL shading language version string: 1.30
Driver:                                 Intel
GPU class:                              SandyBridge
OpenGL version:                         3.0
GLSL version:                           1.30
Mesa version:                           9.1.3
X server version:                       1.14.1
Linux kernel version:                   3.9.7
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Drive" does not exist 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusObjectPath: invalid path ""
This is the current thread id for Activities 140232241121024 QThread(0x2802380) 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::AppletPrivate::mainConfigGroup: requesting config for "Adjustable Clock" without a containment! 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
kded(429)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
krunner(536)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::Applet::itemChange: Configuration object was requested prior to init(), which is too early. Please fix this item: QGraphicsItem(0) Panel (this = 0x20cab80 , parent = 0x0 , pos = QPointF(10129, -774) , z = 0 , flags =  ( ItemIsFocusable | ItemClipsChildrenToShape | ItemUsesExtendedStyleOption | ItemSendsGeometryChanges ) ) "Adjustable Clock" 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::AppletPrivate::mainConfigGroup: requesting config for "Adjustable Clock" without a containment! 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::Applet::itemChange: Configuration object was requested prior to init(), which is too early. Please fix this item: QGraphicsItem(0) Panel (this = 0x20cab80 , parent = 0x0 , pos = QPointF(10129, -774) , z = 0 , flags =  ( ItemIsFocusable | ItemClipsChildrenToShape | ItemUsesExtendedStyleOption | ItemSendsGeometryChanges ) ) "Adjustable Clock" 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
krunner(536)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Device" does not exist 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
I/O warning : failed to load external entity "/home/wks/.qalculate/eurofxref-daily.xml"
I/O warning : failed to load external entity "/home/wks/.qalculate/eurofxref-daily.xml"
krunner(536)/libplasma Plasma::PackagePrivate::isValid: Could not find required file mainscript 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Device" does not exist 
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QGraphicsLinearLayout::removeAt: invalid index 0
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kded(429) ContactRequestHandler::onNewAccountAdded: 
kded(429) ContactRequestHandler::onNewAccountAdded: 
kded(429) ContactRequestHandler::onNewAccountAdded: 
plasma-desktop(538)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
plasma-desktop(538)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
static bool QDeclarativeMetaType::isModule(const QByteArray&, int, int) Qt 4.7 import detected; please note that Qt 4.7 is directly reusable as QtQuick 1.x with no code changes. Continuing, but startup time will be slower. 
plasma-desktop(538)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Device" does not exist 
"/org/freedesktop/UDisks2/drives/HITACHI_HTS723232A7A364_E3834563CGP2PM" : property "Table" does not exist 
kded(429)/Network Management (NetworkManager backend) ConnectionDbus::fromDbusMap: Setting  "802-1x" not initialized 
kded(429)/Network Management (NetworkManager backend) ConnectionDbus::fromDbusMap: Setting  "802-1x" not initialized 
kded(429)/Network Management (NetworkManager backend) ConnectionDbus::fromDbusMap: Setting  "802-1x" not initialized 
file:///usr/lib/kde4/imports/org/kde/plasma/components/SectionScroller.qml:103: TypeError: Result of expression 'listView' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/plasma/components/SectionScroller.qml:175: ReferenceError: Can't find variable: sectionsRepeater
file:///usr/lib/kde4/imports/org/kde/plasma/components/SectionScroller.qml:103: Error: Cannot assign [undefined] to QString
file:///usr/lib/kde4/imports/org/kde/plasma/extras/ScrollArea.qml:120: TypeError: Result of expression 'horizontalScrollBar' [null] is not an object.
file:///usr/lib/kde4/imports/org/kde/plasma/extras/ScrollArea.qml:120: TypeError: Result of expression 'horizontalScrollBar' [null] is not an object.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
file:///usr/share/apps/plasma/plasmoids/notifier/contents/ui/devicenotifier.qml:224:13: QML QDeclarativeListView_QML_51: Possible anchor loop detected on fill.
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
plasma-desktop(538)/libplasma Plasma::isPluginVersionCompatible: unversioned plugin detected, may result in instability 
QGridLayoutEngine::addItem: Cell (0, 1) already taken
QGridLayoutEngine::addItem: Cell (0, 1) already taken
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Device" does not exist 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kaccess: cannot connect to X server :0
unnamed app(605): Communication problem with  "kaccess" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

No protocol specified
xrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
No protocol specified
xrdb: Resource temporarily unavailable
xrdb: Can't open display ':0'
_IceTransSocketUNIXConnect: Cannot connect to non-local host localhost
_IceTransSocketUNIXConnect: Cannot connect to non-local host localhost
Qt: Session management error: Could not open network socket
Could not find 'akregator' executable.
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/HL_DT_ST_DVDRAM_GT50N_M33C4CB1348" : property "Device" does not exist 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
polkit-kde-authentication-agent-1: cannot connect to X server :0
unnamed app(614): Communication problem with  "Polkit1AuthAgent" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

No protocol specified
No protocol specified
xcb_connection_has_error() returned true
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Master_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Headphone_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Speaker_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/PCM_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Mic_Boost_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Beep_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Capture_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Auto_Mute_Mode_0_penum" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Digital_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Internal_Mic_Boost_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Master_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Headphone_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Speaker_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/PCM_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Mic_Boost_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Beep_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Capture_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Auto_Mute_Mode_0_penum" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Digital_0" 
QDBusConnection for control created "/Mixers/ALSA__HDA_Intel_PCH_1/Internal_Mic_Boost_0" 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
klipper: cannot connect to X server :0
unnamed app(621): Communication problem with  "klipper" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kgpg: cannot connect to X server :0
unnamed app(617): Communication problem with  "kgpg" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

No protocol specified
xcb_connection_has_error() returned true
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kmix: cannot connect to X server :0
unnamed app(623): Communication problem with  "kmix" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

No protocol specified
No protocol specified
No protocol specified
No protocol specified
No protocol specified
kdeinit4: (konsole /usr/bin/konsole) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: Resource temporarily unavailable
Fcitx seems is not running

(process:612): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
No protocol specified
No protocol specified
Error: cannot open display: :0
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-quickphrase.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-clipboard.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-classic-ui.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-rime.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-kimpanel-ui.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-xim.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-autoeng.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-imselector.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-chttrans.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-x11.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-table.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-vk.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-anthy.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-libpinyin.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-qw.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-xkbdbus.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-keyboard.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-fullwidth-char.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-punc.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-xkb.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-ipc.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-pinyin.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-pinyin-enhance.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-remote-module.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-dbus.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-spell.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-unicode.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-cloudpinyin.conf
(INFO-637 /build/src/fcitx-4.2.7/src/lib/fcitx/addon.c:138) Load Addon Config File:fcitx-googlepinyin.conf
No protocol specified
No protocol specified
xcb_connection_has_error() returned true
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

No protocol specified
xcb_connection_has_error() returned true
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000319
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000319
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000319
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000319
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000319
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000319
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2000319
No protocol specified
No protocol specified
No protocol specified
kdeinit4: (konsole /usr/bin/konsole) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: Resource temporarily unavailable
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000324
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000324
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000324
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000324
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000324
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2000324
No protocol specified
(FATAL-637 /build/src/fcitx-4.2.7/src/frontend/xim/xim.c:134) X11 not initialized
No protocol specified

(google-chrome:626): Gtk-WARNING **: cannot open display: :0
No protocol specified
No protocol specified
No protocol specified
kdeinit4: (konsole /usr/bin/konsole) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: Resource temporarily unavailable
Ignoring source as no aboutToFinish handling is in progress. 
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200032f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200032f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200032f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200032f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200032f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200032f
tp-qt 0.9.3 WARN: Nested PendingReady for true failed with "org.freedesktop.DBus.Error.NameHasNoOwner" : "Name owner lost (service crashed?)"  
tp-qt 0.9.3 WARN: Building connection "/org/freedesktop/Telepathy/Connection/gabble/jabber/wks1986_40gmail_2ecom_2fkde_2dtelepathy" failed with "org.freedesktop.DBus.Error.NameHasNoOwner" - "Name owner lost (service crashed?)"  
tp-qt 0.9.3 WARN: Properties::GetAll(Connection) failed with "org.freedesktop.DBus.Error.NoReply": "Message did not receive a reply (timeout by message bus)" 
tp-qt 0.9.3 WARN: Properties::GetAll(Connection) failed with "org.freedesktop.DBus.Error.NoReply": "Message did not receive a reply (timeout by message bus)" 
tp-qt 0.9.3 WARN: Nested PendingReady for true failed with "org.freedesktop.DBus.Error.NameHasNoOwner" : "Name owner lost (service crashed?)"  
tp-qt 0.9.3 WARN: Building connection "/org/freedesktop/Telepathy/Connection/gabble/jabber/wks1986_40gmail_2ecom_2fkde_2dtelepathy" failed with "org.freedesktop.DBus.Error.NameHasNoOwner" - "Name owner lost (service crashed?)"  
tp-qt 0.9.3 WARN: Getting capabilities failed with "org.freedesktop.DBus.Error.NoReply": "Message did not receive a reply (timeout by message bus)" 
tp-qt 0.9.3 WARN: Nested PendingReady for true failed with "org.freedesktop.DBus.Error.NameHasNoOwner" : "Name owner lost (service crashed?)"  
tp-qt 0.9.3 WARN: Building connection "/org/freedesktop/Telepathy/Connection/gabble/jabber/wks1986_40gmail_2ecom_2fkde_2dtelepathy" failed with "org.freedesktop.DBus.Error.NameHasNoOwner" - "Name owner lost (service crashed?)"  
No protocol specified
kcminit: cannot connect to X server :0
No protocol specified
kcminit: cannot connect to X server :0
No protocol specified
No protocol specified
No protocol specified
kdeinit4: (konsole /usr/bin/konsole) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: Resource temporarily unavailable
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200033a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200033a
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200033a
QGridLayoutEngine::addItem: Cell (0, 1) already taken
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:189:21: QML TextEdit: Possible anchor loop detected on fill.
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:143:13: QML Item: Binding loop detected for property "height"
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:143:13: QML Item: Binding loop detected for property "height"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_149: Binding loop detected for property "portrait"
file:///usr/share/apps/plasma/plasmoids/org.kde.notifications/contents/ui/Notifications.qml:186:17: QML TabButton: Binding loop detected for property "implicitHeight"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_149: Binding loop detected for property "portrait"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_149: Binding loop detected for property "portrait"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_149: Binding loop detected for property "portrait"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
plasma-desktop(538)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
No protocol specified
kcminit: cannot connect to X server :0
No protocol specified
kcminit: cannot connect to X server :0
plasma-desktop(538)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
No protocol specified
No protocol specified
No protocol specified
kdeinit4: (konsole /usr/bin/konsole) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: Resource temporarily unavailable
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200035b
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200035b
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200035b
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200035b
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200035b
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x200035b
No protocol specified
No protocol specified

(process:801): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
No protocol specified
No protocol specified
Error: cannot open display: :0
No protocol specified
No protocol specified

(process:803): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
No protocol specified
No protocol specified
Error: cannot open display: :0
No protocol specified
No protocol specified
No protocol specified
dolphin: cannot connect to X server :0
No protocol specified
No protocol specified
No protocol specified
kdeinit4: (konsole /usr/bin/konsole) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: Resource temporarily unavailable
No protocol specified
No protocol specified
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
systemsettings: cannot connect to X server :0
systemsettings(810): Communication problem with  "systemsettings" , it probably crashed. 
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" " 

No protocol specified
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::end: Painter not active, aborted
krunner(536)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x200025a
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x2000251
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x2000248
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x200023f
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x2000236
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x200022d
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x2000224
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x200021b
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 19 (X_DeleteProperty)
  Resource id:  0x20002ed
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 19 (X_DeleteProperty)
  Resource id:  0x20002ed
startkde: Shutting down...
klauncher: Exiting on signal 1
startkde: Running shutdown scripts...
QThread: Destroyed while thread is still running
No protocol specified
xprop:  unable to open display ':0'
No protocol specified
xprop:  unable to open display ':0'
startkde: Done.
KCrash: Attempting to start /usr/bin/kactivitymanagerd from kdeinit
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/bin/kactivitymanagerd directly
KCrash: Application 'kactivitymanagerd' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi directly
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kactivitymanagerd(862): KUniqueApplication: Cannot find the D-Bus session server:  "Failed to connect to socket /tmp/dbus-PeWQtDlMBp: Connection refused" 

kactivitymanagerd(860): KUniqueApplication: Pipe closed unexpectedly. 

No protocol specified
drkonqi: cannot connect to X server :0

最近编辑记录 nuanyangyang (2013-07-01 19:11:46)

离线

#11 2013-07-02 17:27:51

cjxgm
忙,却还想养猫?
所在地: 杭州
注册时间: 2011-08-19
帖子: 414
个人网站

Re: 测试 highlight.js

这货的语言应该识别错误:

# brainsuck demo

main()
{
    @ x;

    while (x != 'x') {
        "what? ";
        x = getc();
        while (x == 10 || x == 13) x = getc();  # skip newline

        if (x == 'a') "Hi!";
        else if (x-'0' == 2) "Wow!";
        else {"> "; putc(x);}
        putc(10);   # newline
    }
}

这货应该没问题:

compiled by brainsuck compiler
>>>+[<[->-]>[-<>+>->]<+[<[->-]>[-<<[->+>+<<]>>[-<<+>>]++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++[-<->]<[[-]>+<]+>[-<+>>]<[++>]->]<+[
<[->-]>[-<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++
+.[-],<[-]>[-<+>]++++>->]<+[<[->-]>[-<<[-]>>+<<->]<+[<[->-]>[-<<[->+>+
<<]>>[-<<+>>]++++++++++[-<->]<[[-]>+<]+>[-<->]<[[-]>+<]>[-<+>]<<[->>+>
+<<<]>>>[-<<<+>>>]+++++++++++++[-<->]<[[-]>+<]+>[-<->]<[[-]>+<]>[-<+>]
<[-<+>]<[[-]>+<]+>[-<++++>>]<[+++++>]->]<+[<[->-]>[-<,<[-]>[-<+>]++++>
->]<+[<[->-]>[-<<[->+>+<<]>>[-<<+>>]++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[-<->]<
[[-]>+<]+>[-<->]<[[-]>+<]+>[-<++++++++>+++++++>>]<[++++++++>++++++++>]
->]<+[<[->-]>[-<++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++.[-]++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++.[-]+++++++++
++++++++++++++++++++++++.[-]->]<+[<[->-]>[-<<<[->>+>+<<<]>>>[-<<<+>>>]
++++++++++++++++++++++++++++++++++++++++++++++++[-<->]++[-<->]<[[-]>+<
]+>[-<->]<[[-]>+<]+>[-<+++++++++++>++++++++++>>]<[+++++++++++>++++++++
+++>]->]<+[<[->-]>[-<++++++++++.[-][-]+>->]<+[<[->-]>[-<++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++.[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++.[-]++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++.[-]+++++++++++++++++++++++++++++++++.[
-]->]<+[<[->-]>[-<++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++.[-]++++++++++++++++++++++++++++++++.[-]<<<[->>>+>+<<<<]>>>>
[-<<<<+>>>>]<.[-][-]->]<+[<[->-]>[-<->]<+[-]]]]]]]]]]]]]+>>[-<<->>]<<]
<<

离线

页脚