Skip to content

Instantly share code, notes, and snippets.

View IQAndreas's full-sized avatar

Andreas Renberg IQAndreas

View GitHub Profile
@IQAndreas
IQAndreas / gist:2915057
Created June 12, 2012 04:44
FDT 5.5 Terminal Output - SWFBridge FDT Plugin
I am here
Bring it on Thread[main,6,main]
[ERROR]: java.io.FileNotFoundException: .SWFViewerCheck (No such file or directory)
[ERROR]: at java.io.FileInputStream.open(Native Method)
[ERROR]: at java.io.FileInputStream.<init>(FileInputStream.java:137)
[ERROR]: at java.io.FileReader.<init>(FileReader.java:72)
[ERROR]: at com.powerflasher.swfViewer.SWFViewer.readPort(SWFViewer.java:136)
[STDOUT]: No Socket.
[ERROR]: at com.powerflasher.swfViewer.SWFViewer.getConnection(SWFViewer.java:96)
[ERROR]: at com.powerflasher.swfViewer.SWFViewer.start(SWFViewer.java:31)
for (var i:int = 0; i < mcArray.length; i++)
{
var button:IDButton = new IDButton();
button.tf1.text = String(ID1[i])
button.tf2.text = String(ID2[i]);
button.tf3.text = String(ID3[i]);
button.tf1.selectable = false;
button.tf2.selectable = false;
button.tf3.selectable = false;
@IQAndreas
IQAndreas / Subclass.as
Created June 13, 2012 07:17
Ignoring constructor in a subclass
class Subclass extends Base
{
public function Subclass()
{
if (false)
{
super();
}
}
}
@IQAndreas
IQAndreas / fdt5 output 1
Created July 4, 2012 18:24
FDT5 "MOZILLA_FIVE_HOME not set" error
# Before setting "MOZILLA_FIVE_HOME"
$ java -cp swt-linux.jar:swfViewer-linux.jar com.powerflasher.swfViewer.SWFViewer -file=file://~/Testbench.swf -width=550 -height=400 -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner
Check port: 51513
No Socket.
Prop: /opt/fdt5 [2012-07-03]/plugins/com.powerflasher.fdt.ui.swfViewer_5.5.2.1518/linux32/data/properties.xml
Server on port 42178
Could not instantiate Browser: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
Exception in thread "main" java.lang.NullPointerException
at com.powerflasher.swfViewer.MainWindow.setUrl(MainWindow.java:229)
at com.powerflasher.swfViewer.MainWindow.initValues(MainWindow.java:185)
@IQAndreas
IQAndreas / Args.as
Created July 23, 2012 13:27
Difference between the FDT parser and the Flex Compiler creating unnecessary error message
package com.asm
{
public class Args
{
public static const REGISTER:String = "REGIS";
public static const CONSTANT:String = "CONST";
public static const ADDRESS:String = "ADDRS";
public static const DOUBLE_REGISTER:String = "2RGIS";
@IQAndreas
IQAndreas / commentsubmit.php
Created August 19, 2012 19:46
Line to add to `commentsubmit.php` in `jekyll-static-comments`
$header .= "Content-type:text/plain; charset=utf-8\r\n";
@IQAndreas
IQAndreas / blog_comment.txt
Created August 19, 2012 20:37
Odd blog comment
name: hkyvltjhpi
website: http://www.dexpmdhzuq.com/
----------------------
ckbecjrboesfbt, &lt;a href=&quot;http://www.xbrdrjecec.com&quot;&gt;scrkviiccx&lt;/a&gt;
import urllib.request, urllib.error, urllib.parse
import json
import base64
#==== configurations =======
username = "username"
password = "password"
src_repo = "AdamAtomic/flixel"
dst_repo = "FlixelCommunity/flixel"
#==== end of configurations ===
@IQAndreas
IQAndreas / Main.as
Created September 14, 2012 18:32
Testbench for Flixel's "round" function
package
{
import flash.display.Sprite;
public class Main extends Sprite
{
public function Main()
{
trace("AdamAtomic's `round()` function");
test(Math.round, adamatomic_round);
@IQAndreas
IQAndreas / gist:3790822
Created September 26, 2012 21:47
If only all error messages were this helpful
$ git merge -no-ff dev-attach-comment-to-email
error: did you mean `--no-ff` (with two dashes ?)