!Qt::SystemTrayIcon.isSystemTrayAvailable Qt::MessageBox.critical( nil, Qt::Object.tr("Systray"), Qt::Object.tr("I couldn't detect any system tray on this system.") ) exit 1 end window = Window.new window.show app.exec
great honor) in Electrical Engineering from University of Paderborn (Germany) Master degree from Institute of Technology Bandung (Indonesia) with an exchange program with Technical University Munich (Germany) Bachelor degree (with honor) from Institute of Technology Bandung (Indonesia) Indonesian, English, German Indonesia → Mountain View, California @AriyaHidayat
= ChildProcess.new("/usr/local/bin/phantomjs", "--disk-cache=true", script) phantomjs.io.stdout = input phantomjs.io.stderr = input Timeout.timeout(timeout) do phantomjs.start input.close logger.info("Attaching to PhantomJS's STDOUT and STDERR...") output.each_line{|line| logger.info("[PhantomJS] #{line}") } end rescue Timeout::Error logger.warn("PhantomJS is running longer than expected. Shutting it down...") phantomjs.stop end
new WebSocket "ws://127.0.0.1:#{@port}/" @socket.onmessage = this.commandReceived @socket.onclose = -> phantom.exit() WebKit module Capybara::Poltergeist class Server attr_reader :socket, :fixed_port, :timeout def start @socket = WebSocketServer.new(fixed_port, timeout) end def send(message) @socket.send(message) or raise DeadClient.new(message) end end end