Skip to content

Instantly share code, notes, and snippets.

View dotemacs's full-sized avatar

Александар Симић dotemacs

View GitHub Profile
import java.io.File;
import java.io.IOException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm;
import org.apache.pdfbox.pdmodel.interactive.form.PDField;
public class Flatten
{
public static void main(String[] args) throws IOException {
PDDocument doc = PDDocument.load(new File("interactiveform.pdf"));
@dotemacs
dotemacs / README.md
Last active February 9, 2020 14:02
Menubar app getting stuck

Problem

Menubar app as shown above is getting stuck.

What does the app do?

It's just a simple app that runs in the menubar and shows the current time in Paris.

It is written in fennel and transpiles to Lua. I have the sample of the original Fennel code and transpiled Lua.

#!/bin/sh
fullpath=/Users/alex/dev/cljr/install-with-nuget/Clojure.1.9.0/all/net40
exe=Clojure.Main.exe
cd ${fullpath} && mono ${exe}
Microsoft (R) Build Engine version 16.0.42-preview+g804bde742b for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 24/05/2019 20:47:43.
Project "/Users/alex/dev/clr/clojure-clr/Clojure/build.proj" on node 1 (Build target(s)).
Project "/Users/alex/dev/clr/clojure-clr/Clojure/build.proj" (1) is building "/Users/alex/dev/clr/clojure-clr/Clojure/ClojureCLR.sln" (2) on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug 4.0|Any CPU".
Project "/Users/alex/dev/clr/clojure-clr/Clojure/ClojureCLR.sln" (2) is building "/Users/alex/dev/clr/clojure-clr/Clojure/Clojure/Clojure.csproj" (3) on node 1 (default targets).
RestorePackages:
@dotemacs
dotemacs / build-output.log
Created May 24, 2019 19:45
ClojureCLR 1.9.0 build with msbuild instead of xbuild on macOS
Microsoft (R) Build Engine version 16.0.42-preview+g804bde742b for Mono
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 24/05/2019 20:29:17.
Project "/Users/alex/dev/clr/clojure-clr/Clojure/build.proj" on node 1 (Build target(s)).
Project "/Users/alex/dev/clr/clojure-clr/Clojure/build.proj" (1) is building "/Users/alex/dev/clr/clojure-clr/Clojure/ClojureCLR.sln" (2) on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug 4.0|Any CPU".
Project "/Users/alex/dev/clr/clojure-clr/Clojure/ClojureCLR.sln" (2) is building "/Users/alex/dev/clr/clojure-clr/Clojure/Clojure/Clojure.csproj" (3) on node 1 (default targets).
RestorePackages:
@dotemacs
dotemacs / build-output.log
Created May 24, 2019 19:39
Build of ClojureCLR 1.9.0 on macOS 10.14.4 with mono
>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
XBuild Engine Version 14.0
Mono, Version 5.20.1.19
Copyright (C) 2005-2013 Various Mono authors
Build started 24/05/2019 15:27:33.
__________________________________________________
Project "/Users/alex/dev/clr/clojure-clr/Clojure/build.proj" (Build target(s)):
IApp app = ConfigureApp
.iOS
.AppBundle("/path/to/iosapp.app")
.StartApp();
@dotemacs
dotemacs / dll-import-in-clojure-clr.md
Created May 21, 2019 14:04
How to import a DLL in Clojure CLR?

I can start the Clojure CLR REPL with the latest Clojure release I obtained from Sourceforge:

$ mono Clojure.Main.exe
Clojure 1.9.0
user=>

And then when I enter:

@dotemacs
dotemacs / looking-at-the-integration-end-to-end-testing.org
Created May 20, 2019 22:44
Looking at the integration/end to end testing for react-native

Looking at the integration/end to end testing

Calabash

Calabash http://calaba.sh/ seems to have been popular. But since it was develped by Xamarin team, who have been bought out by Microsoft, they’ve stopped further development on it and are hoping that the community picks up further maintenance & development.

The way calabash works: it installs the “server” on the

@dotemacs
dotemacs / clr-install.txt
Created May 20, 2019 10:06
CLR install issue
$ brew install nuget
$ mkdir ~/dev/clr
$ nuget install Clojure -Version 1.9.0
$ mkdir all
$ cp -r lib/net40 all
$ cp -r tools/net40/* all/net40
$ cp -r lib/net35 all/
$ cp -r tools/net35/* all/net35/