Skip to content

Instantly share code, notes, and snippets.

View jamalsa's full-sized avatar

Jamal Saepul Aziz jamalsa

  • Bandung, Indonesia
View GitHub Profile
ERRO[0327] failed to run command cmd="go install -p 4 -v github.com/therecipe/qt/core" env="PATH=/home/jamal/go/bin:/home/jamal/.config/composer/vendor/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl GOPATH=/home/jamal/go CGO_CFLAGS_ALLOW=.* CGO_CXXFLAGS_ALLOW=.* CGO_LDFLAGS_ALLOW=.* GOOS=linux CGO_ENABLED=1 GOROOT=/usr/lib/go GOARCH=amd64" error="exit status 2" func=RunCmdOptionalError name="install core"
github.com/therecipe/qt
github.com/therecipe/qt/core
# github.com/therecipe/qt/core
core.cpp: In function 'void* QAbstractAnimation_NewQAbstractAnimation(void*)':
core.cpp:246:19: error: 'QAbstract3DGraph' does not name a type; did you mean 'QAbstractState'?
if (dynamic_cast<QAbstract3DGraph*>(static_cast<QObject*>(parent))) {
^~~~~~~~~~~~~~~~
QAbstractState
core.cpp:246:35: error: expected '>' before '*' token
This file has been truncated, but you can view the full file.
diff --git a/bluetooth/bluetooth.cpp b/bluetooth/bluetooth.cpp
index 0132c9fd..9e38bce4 100644
--- a/bluetooth/bluetooth.cpp
+++ b/bluetooth/bluetooth.cpp
@@ -6,6 +6,7 @@
#include "bluetooth.h"
#include "_cgo_export.h"
+#include <QAbstract3DGraph>
#include <QBluetoothAddress>
@jamalsa
jamalsa / noreg
Created June 4, 2013 08:22
Noreg
5398840131917
5389380792702
5316870682894
@jamalsa
jamalsa / NewCommonMessage.java
Last active December 17, 2015 20:29
Contoh sintaks sederhana parsing rule common message baru. Fitur yang sudah ada baru parse object ke string sederhana.
@Entity(fieldOrder={"switcherId", "idpel"})
class TestObject
{
@Element(length=7)
public String switcherId;
@Element(length=15, padding=AdditionalFieldPadLocation.LEFT, paddingChar='0')
protected String idpel;
public String getIdpel() {
@jamalsa
jamalsa / netman
Created May 24, 2013 09:40
Sample ISO 8583 Message
2800001000000101000020130514125544001007VI105V3
@jamalsa
jamalsa / settings.xml
Created May 24, 2013 08:41
VSI Maven Settings
<?xml version="1.0" encoding="UTF-8"?>
<!--
User-specific configuration for maven. Includes things that should not
be distributed with the pom.xml file, such as developer identity, along with
local settings, like proxy information. The default location for the
settings file is ~/.m2/settings.xml
-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
@jamalsa
jamalsa / MessageBuilder.java
Created June 26, 2012 08:13
ISO8583 String Message Builder
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package id.co.vsi.common.ISO8583;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;
@jamalsa
jamalsa / NBOMinusHeader.java
Created April 17, 2012 02:37
Menangani message ASCIIHeader
// Mengirim message dengan NBOMinusHeader
int tLength = tRequestStream.length();
String tStrLength = String.format("%04d", tLength); // Padding length jadi 4, misal 100 jadi 0100, 55 jadi 0055
tRequestByteStream.write(tStrLength.getBytes());
tRequestByteStream.write(tRequestStream.getBytes());
@jamalsa
jamalsa / quran.scala
Created July 4, 2011 06:10
This is scala code to process quran text from Tanzil. This code show how easy to process xml file with scala library.
import scala.xml._
class Aya(source: NodeSeq) {
val text = (source \ "@text").text
}
class Bismillah(source: NodeSeq) extends Aya(source: NodeSeq) {
override val text = (source \ "@bismillah").text
}
@jamalsa
jamalsa / repeated_permutation.py
Created March 31, 2011 02:23
This is simple python script to display all possible permutation from sequence of number with repeated element
'''
Problems: Given list of sequence number from 1 to n. Generate lists of all possible permutation with
repeated element. For example :
[1,2] => [1,1], [1,2], [2,1], [2,2]
[1,2,3] => [1,1,1], [1,1,2], [1,1,3], [1,2,1], [1,2,2], [1,3,3], [1,3,1], [1,3,2], [1,3,3],
[2,1,1], [2,1,2], [2,1,3], [2,2,1], [2,2,2], [2,3,3], [2,3,1], [2,3,2], [2,3,3],
[3,1,1], [3,1,2], [3,1,3], [3,2,1], [3,2,2], [3,3,3], [3,3,1], [3,3,2], [3,3,3],
'''