I have been looking for sometime on how to encrypt and decrypt a string. But most of it is in 2.7 and anything that is using 3.2 is not letting me print it or add it to a string.Continue reading How do I encrypt and decrypt a string in python?
LOAD is a DB2 utility that I would like to use to insert data into a table from a CSV file.Continue reading How to use the DB2 LOAD utility using the python ibm_db driver
For example this SQL statement returns 1k rows
SELECT * FROM tableName WHERE someCondition
I have some simple python code that searches files for a string e.g.
path=c:\path, where the
c:\path part may vary.
I’ve read many examples, blog posts, questions/answers about asyncio / async / await in Python 3.5+, many were complex, the simplest I found was probably this one.Continue reading Simplest async/await example possible in Python
I have an SQL database and am wondering what command you use to just get a list of the table names within that database.Continue reading How to retrieve table names in a mysql database with Python and MySQLdb?
For a django project, I designed a different login page. The users here will log in via openldap. I can access users’ full information with their uid id, but I could not find how to verify the password.Continue reading How can I verify user and password using Python ldap3 via OpenLdap?
I want to parse CSV file line by line and convert it to JSON and send over websocket. I found some code online which converts CSV to JSON as followsContinue reading Convert CSV to JSON file in python
I need to set up a project which contains HTML, CSS, and JS files. Currently, my structureContinue reading Tornado Project Structure - Js files not being found
Xcode 6 error “Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.”
I’ve tried cleaning the build folder and rebuilding, no luck. The funny thing is the entire project got built for a few times, but after some code and UI changes it started failing. Even if I create new projects, the same thing happens after about 5-6 builds.Continue reading Xcode 6 error “Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier.”
I have a problem with the transfer of variable ‘insurance_mode’ by the decorator. I would do it by the following decorator statementContinue reading Decorators with parameters?
I am new to Python and I am playing with JSON data. I would like to dynamically build a JSON object by adding some key-value to an existing JSON object.Continue reading How to dynamically build a JSON object with Python?
json.loads take a string as input and returns a dictionary as output,
json.dumps take a dictionary as input and returns a string as output.
What is the difference between a function decorated with
@staticmethod and one decorated with
If you don’t want to use pathlib, use can use
I am trying to set
JAVA_HOME by entering export
JAVA_HOME=/Library/Java/Home at terminal.
Is there a way to make Python logging using the
logging module automatically output things to stdout in addition to the log file where they are supposed to go?
At present the most powerful supercomputer in Slovenia has a capacity of around 38 teraFLOP/s and is owned by a private company. In the HPC RIVR project, we will set up a supercomputer capacity of at least 1.5 petaFLOP/s of data capacity of at least 22 PB. Today I would be the 23rd most powerful in Europe and the 90th in the world.Continue reading High Performance Computing Center in Slovenia - HPC RIVR