Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: OSError: [Errno 26] Text file busy: '/var/tmp/tmp5qbeydbp
Post: OSError: [Errno 26] Text file busy: '/var/tmp/tmp5...
Hey,
Im using python3 and i have this code :
import tempfile
temp_file = tempfile.mkstemp(dir="/var/tmp")
with open (temp_file[1], "w+b") as tf:
... |
|
batchenr |
General Coding Help |
1 |
4,161 |
Mar-19-2020, 05:11 PM |
|
|
Thread: list of lists iterate only sends the last value
Post: list of lists iterate only sends the last value
Hey, im new to python.
Im using python3 with raspberrypi3 and GPIO. i have this code which supposed to iterate on list of lists :
#json file goes to python as s.settings
"gpio": [
{
... |
|
batchenr |
General Coding Help |
1 |
1,869 |
Sep-23-2019, 11:31 AM |
|
|
Thread: UDP to TCP requests script
Post: UDP to TCP requests script
Hey,
Im using python3, i have a script on the server that gets UDP requests from client and then
the server translate thous requests to tcp and transfer them internally to a py script on the server.... |
|
batchenr |
Networking |
0 |
2,540 |
Jun-30-2019, 07:52 AM |
|
|
Thread: flask to uwsgi threading issue
Post: RE: flask to uwsgi threading issue
So, i figured what made the uwsgi workers crash :
" harakiri = 60" in my uwsgi.ini conf , because our workers connection is for long time ( giving livestream) i guess harakiri thought it was overload... |
|
batchenr |
Web Scraping & Web Development |
1 |
3,998 |
Jun-17-2019, 02:12 PM |
|
|
Thread: Arrange list of tuple using loop
Post: RE: Arrange list of tuple using loop
Thank you all for the fast comments, i ended up with this code block :
res = []
for n in nvm:
res.append({"event_id": n[0], "cp_ids": n[1], "event_type": n[2], "start_ts"... |
|
batchenr |
General Coding Help |
7 |
3,441 |
Jun-16-2019, 02:37 PM |
|
|
Thread: Arrange list of tuple using loop
Post: RE: Arrange list of tuple using loop
(Jun-16-2019, 10:05 AM)noisefloor Wrote: Hi,
first of all: your post would be _much_ more readable if you would write words correctly in upper and lower case and especially would use punctuation.
... |
|
batchenr |
General Coding Help |
7 |
3,441 |
Jun-16-2019, 10:27 AM |
|
|
Thread: Arrange list of tuple using loop
Post: Arrange list of tuple using loop
Hey,
i have this list of tuples, i need to arrange the output in json by order.
in nvm i have 3 list of tuple
>>> nvm = [(10, ['cp5'], ['ERROR'], 201905021800.0, 201905021900.0, [[1.2], [1.... |
|
batchenr |
General Coding Help |
7 |
3,441 |
Jun-16-2019, 08:05 AM |
|
|
Thread: flask to uwsgi threading issue
Post: flask to uwsgi threading issue
Hey,
I dont know if its the right forum but ill post anyways, feel free to delete if its not.
Using Python 3.7.3, uwsgi 2.0.18, (docker container image python:3-stretch)
We have dev env where we are... |
|
batchenr |
Web Scraping & Web Development |
1 |
3,998 |
Jun-05-2019, 04:02 PM |
|
|
Thread: python3 List to array or string to extract data
Post: RE: python3 List to array or string to extract dat...
(May-28-2019, 12:39 PM)buran Wrote: what you have is tuple with one element list, that list has one element - list. Now that list has many elements - lists
>>> foo = ([[[32.098659, 34.82633... |
|
batchenr |
General Coding Help |
4 |
3,185 |
May-28-2019, 01:35 PM |
|
|
Thread: python3 List to array or string to extract data
Post: python3 List to array or string to extract data
Hey,
i am using python 3 and new to python.
i have this list :
([[[32.098659, 34.826334], [32.099361, 34.830506], [32.097026, 34.831574], [32.095502, 34.827881]]],)This is how i see the value of th... |
|
batchenr |
General Coding Help |
4 |
3,185 |
May-28-2019, 12:24 PM |
|
|
Thread: json.dumps to keep dictionary keys
Post: json.dumps to keep dictionary keys
Hello,
im using python3 on ubuntu 18 machine
i am new to python
i have this script :
import json
import psutil
d = {}
mem = psutil.virtual_memory()
dmem = mem._asdict()
print(json.dumps(dmem))and i... |
|
batchenr |
General Coding Help |
1 |
1,988 |
May-14-2019, 11:14 AM |