profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Linus789/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Linus G. Linus789 Lower Saxony, Germany Kotlin, Java, Python, Rust

Linus789/DeepLTranslator 26

The DeepL Translator is an API written in Java that translates via the DeepL website sentences. Without API key.

Linus789/fontdb 0

A simple, in-memory font database with CSS-like queries.

Linus789/sd 0

Intuitive find & replace CLI (sed alternative)

startedjonaswinkler/paperless-ng

started time in 17 days

push eventLinus789/hexv

Linus789

commit sha 0979fff9cdd34030d99a208d32d1deec23e5ca5b

Use env!, clean-up and updated fontdb to 0.6.2

view details

Linus789

commit sha b6644c9dd5d41fcc593c79af1f4b8877f218b9b0

Add tab-as-hex option

view details

Linus789

commit sha 8ff0d22a94529cf1e52cc62dbc33b9711531be48

Push version to 0.4.0

view details

push time in 19 days

push eventLinus789/hexv

Linus789

commit sha 30b112fa31b6ee0c5b6b85b00761028a97906b3c

Use env! to find out current version

view details

push time in 19 days

starteddjc/askama

started time in 20 days

startediv-org/invidious

started time in 20 days

startedzedeus/nitter

started time in 20 days

startedspikecodes/libreddit

started time in 20 days

startedenricocid/Music-Player-GO

started time in 20 days

push eventLinus789/hexv

Linus789

commit sha fbee44c807747d72395c1a54789436b7dc4a5533

Fix cargo clippy

view details

push time in 24 days

startedsvenstaro/cargo-profiler

started time in a month

push eventLinus789/hexv

Linus789

commit sha d3a6db464bf19f3c32e1b4c273a58a67256289e6

Update dependencies

view details

Linus789

commit sha 956946c66e1802f0b7950a302091068883fb0f7f

Push version to 0.3.1

view details

push time in a month

push eventLinus789/hexv

Linus789

commit sha a3fecb2640969d8be2df6399c0b650e8df6ffa55

Use bstr to handle invalid utf-8

view details

Linus789

commit sha 7adc49688229392714609e393f68b0834b0f3f03

Push version to 0.3.0

view details

push time in a month

push eventLinus789/hexv

Linus789

commit sha 354014a78ae91ccdef7306b5f3dcf22ec8aecd62

Write out flags

view details

Linus789

commit sha a3a55880d8f1a258dd3bf4311cca0c321405de66

Final newline only for terminal output

view details

Linus789

commit sha 9417c07715081cf497f36af771d3492367e6822a

Add option for printing newline as \n

view details

Linus789

commit sha 40a32206797426b56c84fad990d01c3fc679266c

Add option to print values in decimal format

view details

Linus789

commit sha a2b5c30d1b759312fc9972ab3c2bbde1ae6a4659

Add support for multiple fonts

view details

Linus789

commit sha 5f86a81772de422e751f98c38aaa6a01d5428567

Add option to print space as circle

view details

Linus789

commit sha 2436a450dd0c12161f010d1066e2d8e1946b9d5e

Refactor

view details

Linus789

commit sha 072bcd8bfe55dfd2ea6c585c99269a6d2e429a62

Use ab_glyph instead of rusttype

view details

Linus789

commit sha 9e83dc20c727b817a0746f462d4bf16e28c0ded3

Push version to 0.2.0

view details

push time in a month

startedyt-dlp/yt-dlp

started time in a month

push eventLinus789/DeepLTranslator

Linus789

commit sha c9627002d8ff2979392402df6b072c8cd98e723e

Fix documentation for awaitTermination

view details

push time in a month

issue closedLinus789/DeepLTranslator

Getting Exception in thread "Thread-5" org.openqa.selenium.WebDriverException: NULL_OUTPUT_STREAM

When I try to run below code

`public class Translate1 {

public static void main(String[] args) {
	DeepLConfiguration deepLConfiguration = new DeepLConfiguration.Builder()
			.setTimeout(Duration.ofSeconds(10))
			.setRepetitions(3)
			.setRepetitionsDelay(retryNumber -> Duration.ofMillis(3000 + 5000 * retryNumber))
			.setPostProcessing(true)
			.build();

	DeepLTranslator deepLTranslator = new DeepLTranslator(deepLConfiguration);

	try {
		String translation = deepLTranslator.translate("I ran into a similar problem yesterday.", Language.AUTO_DETECT, Language.GERMAN);
		System.out.println(translation);
	} catch (Exception e) {
		e.printStackTrace();
	}
}

}`

getting below error: Exception in thread "Thread-5" org.openqa.selenium.WebDriverException: NULL_OUTPUT_STREAM Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T20:55:26' System info: host: 'DESKTOP-C0OB8V0', ip: '192.168.225.52', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_275' Driver info: driver.version: JBrowserDriver at com.machinepublishers.jbrowserdriver.Util.handleException(Util.java:136) at com.machinepublishers.jbrowserdriver.JBrowserDriver.lambda$launchProcess$2(JBrowserDriver.java:475) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoSuchFieldError: NULL_OUTPUT_STREAM at org.zeroturnaround.exec.ProcessExecutor.redirectOutput(ProcessExecutor.java:394) at org.zeroturnaround.exec.ProcessExecutor.<init>(ProcessExecutor.java:149) at com.machinepublishers.jbrowserdriver.JBrowserDriver.lambda$launchProcess$2(JBrowserDriver.java:427) ... 1 more

Should I follow or install anything to run the deepl Translator?

closed time in a month

rajajan09

issue commentLinus789/DeepLTranslator

Getting Exception in thread "Thread-5" org.openqa.selenium.WebDriverException: NULL_OUTPUT_STREAM

This issue should be fixed with the newest release, since this project now uses the ChromeDriver instead of the JBrowserDriver.

I have the same issue.

That is another issue. You are using Java 11, but the JBrowserDriver only supports Java 8. With the ChromeDriver both versions should be supported now.

rajajan09

comment created time in a month

issue closedLinus789/DeepLTranslator

org.openqa.selenium.StaleElementReferenceException: The element no longer exists within the page.

Sometimes when translating I get the following exception:

org.openqa.selenium.StaleElementReferenceException: The element no longer exists within the page.
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T20:55:26'
System info: host: 'DESKTOP-F8H276P', ip: '192.168.2.155', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_271'
Driver info: driver.version: unknown
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.machinepublishers.jbrowserdriver.Util.handleException(Util.java:128)
	at com.machinepublishers.jbrowserdriver.Element.getAttribute(Element.java:184)
	at de.linus.deepltranslator.DeepLTranslatorBase.readResult(DeepLTranslatorBase.java:136)
	at de.linus.deepltranslator.DeepLTranslatorBase.getTranslation(DeepLTranslatorBase.java:106)
	at de.linus.deepltranslator.DeepLTranslator.translate(DeepLTranslator.java:50)
	at de.linus.deepltranslator.DeepLTranslator.translate(DeepLTranslator.java:42)

This causes an abort of the translation without retries. I'm not sure why it happens, maybe this can be handled better?

private String translate(String text, Language from, Language to, int repeated) throws Exception {
	try {
		return getTranslation(text, from, to);
	} catch (DeepLException e) {
		if(repeat(++repeated)) {
			Thread.sleep(getConfiguration().getRepetitionsDelay().apply(repeated).toMillis());
			return translate(text, from, to, repeated);
		}

		throw e;
	}
}

closed time in a month

BullyWiiPlaza

issue commentLinus789/DeepLTranslator

org.openqa.selenium.StaleElementReferenceException: The element no longer exists within the page.

This issue should be fixed with the newest release.

This causes an abort of the translation without retries. I'm not sure why it happens, maybe this can be handled better?

The retries worked for me, but I re-implemented them nonetheless by making use of a for-loop.

BullyWiiPlaza

comment created time in a month

issue closedLinus789/DeepLTranslator

Use headless Chrome instead of JBrowserDriver

I had major slowness and stability problems with JBrowserDriver used by this library. With headless Chrome things ran perfectly. Maybe migrate this project to headless Chrome using Selenium as dependency. After all, JBrowserDriver isn't maintained actively anymore and arguably Chrome is far superior anyway:

// Supply the chrome driver path
setProperty("webdriver.chrome.driver", chromeDriverFilePath.toString());

// Configure the Chrome instance as headless
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");

// Start the chrome driver
WebDriver driver = new ChromeDriver(options);

Potentially related to this issue: https://github.com/Linus789/DeepLTranslator/issues/6

closed time in a month

BullyWiiPlaza

issue commentLinus789/DeepLTranslator

Use headless Chrome instead of JBrowserDriver

Fixed with https://github.com/Linus789/DeepLTranslator/commit/cb62f11b4a559a2a84820dde2a247185ff993f7b.

BullyWiiPlaza

comment created time in a month

issue closedLinus789/DeepLTranslator

Cannot wait for asynchronous translation(s) to finish

Even though the library provides translateAsync(), there doesn't seem to be a way to wait for all asynchronous translations to finish: The ExecutorService is not accessible: static final ExecutorService EXECUTOR = Executors.newCachedThreadPool(); Also, there is no method to wait for all tasks to be finished.

I implemented my own asynchronous wrapper and I found that translations are actually slowed down by multi-threading instead of sped up. I wonder what's up with that? Maybe multi-threaded support isn't properly implemented in the library either? Due to the usage of the WebDriver there should be a way of making translations much faster with multiple instances.

closed time in a month

BullyWiiPlaza

issue commentLinus789/DeepLTranslator

Cannot wait for asynchronous translation(s) to finish

Fixed with https://github.com/Linus789/DeepLTranslator/commit/f9bfb02a761ee2599b739de0b7200f28a6cbe9c8.

BullyWiiPlaza

comment created time in a month

issue closedLinus789/DeepLTranslator

Using Futures instead of custom callbacks

Java 8 introduced Futures and CompletableFutures. These allow for a Task to either return a value or finish with an exception. Making translateAsync return a completable Future would give the library a standard interface and not require custom implementations.

If wanted i can go ahead and make a pull request for it

closed time in a month

Chase22

issue commentLinus789/DeepLTranslator

Using Futures instead of custom callbacks

Fixed with https://github.com/Linus789/DeepLTranslator/commit/fb85d5bb5e9b814353f1528aad3f43ca59df6dae.

Chase22

comment created time in a month

created tagLinus789/DeepLTranslator

tag2.0.0

The DeepL Translator is an API written in Java that translates via the DeepL website sentences. Without API key.

created time in a month

release Linus789/DeepLTranslator

2.0.0

released time in a month

push eventLinus789/DeepLTranslator

Linus789

commit sha 5737596107ed6f338af85f1f5668ba16317f7856

Remove timezone from configuration options

view details

Linus789

commit sha a790bdcfa284b89211f6b552a1979b2c8a4eb6d9

More efficient language code to language enum conversion

view details

Linus789

commit sha cb62f11b4a559a2a84820dde2a247185ff993f7b

Use ChromeDriver

view details

Linus789

commit sha fb85d5bb5e9b814353f1528aad3f43ca59df6dae

Use CompleteableFutures

view details

Linus789

commit sha c7e26caa849beb343456408c5cd0b1d39b6962ad

Change behaviour of post-processing

view details

Linus789

commit sha f9bfb02a761ee2599b739de0b7200f28a6cbe9c8

Added ability to wait for all translations to finish

view details

Linus789

commit sha fcf2c6d39feb87a45cc3337fc3df60adf884971b

Fix documentation

view details

Linus789

commit sha 8676f1f255397f95bd67d342f62407925806e66a

Push version to 2.0.0 and update README

view details

push time in a month

startedBurntSushi/bstr

started time in a month

startedducaale/xh

started time in a month