Informative qDebug()

Informative debugging output for qDebug?

#define DEBUG() qDebug() << __PRETTY_FUNCTION__ << __LINE__

Posted

WebView, qdeclarativewebview has no direct connection to webkit javaScriptConsoleMessage

I stumbled upon on the doc of WebView QML component for Qt 4.7 http://doc.qt.nokia.com/4.7-snapshot/qml-webview.html. It seems it has features to connect the JavaScript console to be printed directly to 'main console' as QML's console.log does. But, it doesnt! http://trac.webkit.org/changeset/81471

The connected console should be done by overriding QWebPage::javaScriptConsoleMessage of QWebPage, as what phantom.js does: https://github.com/ariya/phantomjs/blob/master/src/webpage.cpp

Filed under  //  JavaScript   QML   Qt  
Posted

JavaScriptConsole WebView Element

I stumbled upon on the doc of WebView element for Qt 4.7 http://doc.qt.nokia.com/4.7-snapshot/qml-webview.html. It seems it has features to connect the JavaScript console to be printed directly to 'main console' as QML's console.log does. But, it doesnt! http://trac.webkit.org/changeset/81471

The connected console should be done by overriding QWebPage::javaScriptConsoleMessage of QWebPage, as what phantom.js does: https://github.com/ariya/phantomjs/blob/master/src/webpage.cpp

Filed under  //  JavaScript   QML   Qt   WebKit  
Posted

URI Routing AppEngine

Recently I have several tasks that should be done on secure way. I have no money on buying valid certificate. Here the Google’s AppEngine comes handy. To enable the site to be served as secure site what you have done is just enable it in app.yml file.

handlers:
  - url: /.*
  script: appname.app
  secure: always

Filed under  //  appengine   python  
Posted

Alan Kay's

The key in making great and growable systems is much more to design how its modules communicate rather than what their internal properties and behaviors should be.

Posted

Building Hello World Qt

OK, this is just simple steps that I always forget. Please not anymore!

  1. Create a simple code outputting “Hello”
  2. Create the .pro file.
  3. Generate the Makefile

Posted

Generate Simple Qt Unix Makefile on Mac OS X

Generate Makefile

qmake -spec macx-g++

Remove App bundle

mac {
  CONFIG -= app_bundle
}

Filed under  //  C/C++   Mac   Qt  
Posted

Today's Menu

Objective-C and Cocoa on Mac OS X

  1. AppKit
  2. Core Graphics

:–)

Posted

Native TODOs

Recently, I stumbled upon coding in hard ways. C/C++ and Objective-C

Libraries I’m interested in:

  1. Boost C++
  2. Poco C++
  3. libeio and libev
  4. V8

As you notice 3 and 4 are bundled inside node.js distribution

Posted

Reader App

TODO

  1. Convert PDF to JPEG or PNG automatically via Ghostscript, if it is possible, separate image from text (imageMagick?)
  2. Deploy a web-service, serving images. I’ll go with Ruby+Sinatra
  3. Build a non-native app for iPhone/iPad, jQTouch and convert it using PhoneGap. Well, there is a tempting native solution for PDF reader, using UIWebView!

Posted