This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] root-group | |
[INFO] sharedlibrary | |
[INFO] helloapp | |
[INFO] worldapp | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] root-group | |
[INFO] sharedlibrary | |
[INFO] helloapp | |
[INFO] worldapp | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var existingOrders = Orders.find(); | |
var openOrderIds = []; | |
var itemsOrdered = []; | |
existingOrders.forEach(function(order) { | |
if (order.isOpen && !order.isAcceptingMoreItems) { | |
openOrderIds.push(order); | |
var anyOpenOrder = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type LayoutCell struct | |
{ | |
CellIdentifier string; | |
CellWidth int; | |
Widget_name string; | |
Widget_state *interface{}; | |
} | |
type LayoutRow struct // CellGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |