Skip to content

Tag: python

chaquopy Does not add folder to phone

In my project, I tried to write a code using Chaquopy to add a folder to Android when running the program. Everything is correct and it does not give any error but nothing is added. here is my MainActivity code and this id python script What’s wrong? Answer Your Java code isn’t actually running an…

Put sin on segment in 3d

i need to put a sin function, or any other function on start of segment in 3d space. Something like that: Example But in 3d space, help me pls, i spent about 4 days for solving it, but did not get result There are 2 points in space at arbitrary positions. I need a sinusoid between these two arbitrary points.

Python Regex to Java

I am trying to convert a python regex to java. It finds a match in python but fails on the same string in java. Python regex : “(CommandLineEventConsumer)(x00x00)(.*?)(x00)(.*?)({})(x00x00)?([^x00]*)?”.format(event_consumer_name) Java regex : “(CommandLineEventConsumer)(\u0000\u0000)(.*?)(\u…

Python equivalent to Java’s MyClass.class.getName()

In Java, MyClass.class.getName() (assuming a class named ‘MyClass’) serves a purpose of getting the name of ‘MyClass’ even if MyClass is renamed, while hardcoding “MyClass” in a string will become unreliable. Note: there is no instance available – this is crucial to t…