Skip to content

Instantly share code, notes, and snippets.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] root-group
[INFO] sharedlibrary
[INFO] helloapp
[INFO] worldapp
[INFO]
[INFO] ------------------------------------------------------------------------
root@swdevel:~/GwtMaven3Project# mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] root-group
[INFO] sharedlibrary
[INFO] helloapp
[INFO] worldapp
[INFO]
@ailabs-software
ailabs-software / gist:3b86a9719fc698497a4b9445ac3394d4
Created January 16, 2017 05:52
Error due to fail at matching
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] root-group
[INFO] sharedlibrary
[INFO] helloapp
[INFO] worldapp
[INFO]
[INFO] ------------------------------------------------------------------------
var existingOrders = Orders.find();
var openOrderIds = [];
var itemsOrdered = [];
existingOrders.forEach(function(order) {
if (order.isOpen && !order.isAcceptingMoreItems) {
openOrderIds.push(order);
var anyOpenOrder = false;
@ailabs-software
ailabs-software / goog_
Created December 20, 2016 06:09
Events and life cycle
package com.google.gwt.sample.contentcentral.client;
import com.google.gwt.core.client.EntryPoint;
// package disposable;
/** Interface for an object which observes when we have been disposed */
interface IDisposeCallback
{
void disposeCallback();
@ailabs-software
ailabs-software / gist:9abb5fd75fdc010e9a92
Created January 8, 2015 23:31
Why is CellIdentifier set on struct not seen after return? Am I passing my value?
type LayoutCell struct
{
CellIdentifier string;
CellWidth int;
Widget_name string;
Widget_state *interface{};
}
type LayoutRow struct // CellGroup
@ailabs-software
ailabs-software / gist:220b92f9035e49ac0bef
Created January 6, 2015 16:34
Trying to create a listener I can pass to the worker.
func startWorker() {
cmd := exec.Command("myworker");
f, err := os.Create("/tmp/worker7.sock");
if (err != nil) { panic(err); }
_, file_err := net.FileListener(f); // ERROR: getsockopt: socket operation on non-socket
if (file_err != nil) { panic(file_err); }
cmd.ExtraFiles = []*os.File{ f };
}
type MyResponseWriter struct
{
http.ResponseWriter;
StatusCode int;
}
func (srw MyResponseWriter) Write(b []byte) (int, error) {
// How can I call the embedded method Write() method of http.ResponseWriter
return 0, nil;
}
@ailabs-software
ailabs-software / swap_rgba
Created December 22, 2014 01:09
Converting CAIRO BRBA to RGBA
func swap_bgra_rgba(img_buf *image.RGBA) image.Image {
var wtf = &bytes.Buffer{};
png.Encode(wtf, img_buf);
pic, _ := png.Decode( wtf ); // FIXMEIFMXE FIXME!!!!!!! -- WASTING CPU!!!
b := pic.Bounds();
@ailabs-software
ailabs-software / gist:f5383f3b460ed6590637
Created December 11, 2014 07:14
cat /proc/14959/limits
root@shopprod:/opt# cat /proc/14959/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 15872 15872 processes
Max open files 1024 4096 files