Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Sep 13, 2019 21:02
Thanks @roganjosh, I'll update here when I get to 1.0.0 :)
Sep 13, 2019 20:43
Hmm, yeah I can add one, but I'm using the traditional json lib, so it won't make any difference. (I didn't implement it)
Sep 13, 2019 20:40
Hmm yeah, you are right, I just found that I need to `json` something and it spits out a str, but a byte which in most cases isn't what I need, plus it is shorter to write this way:
`f.json(something)` instead of:
```
jsonlib.dumps(something, ensure_ascii=False).encode("utf8")
```
Sep 13, 2019 20:38
@roganjosh what stood out exactly?
Sep 13, 2019 20:32
@roganjosh no need to be sorry, I really do appreciate any thought. Anything you would change/add?
Sep 13, 2019 20:25
@roganjosh, hmm I just rewrote the beginning of the README with possibilities. Basically 2 main usages, one for small scripts where you need to write fast and it will help you abstract many common stuff we do in python 3. The second thought was to let users copy implementations of specific functions for production usage thus not adding another dependency.

PS, I just found out that someone took the name flick 4 days ago (!) in PyPI, so I renamed to https://github.com/agamm/eze
Sep 13, 2019 20:02
@Kevin, thanks! I'll try to implement them soon + tests. Thanks for the proofreading too, I'll fix them now :)
Sep 13, 2019 19:52
I just started (still working on it) creating a super simple library for common tasks in python 3, would really appreciate any thoughts:
https://github.com/agamm/flick
Sep 11, 2018 13:17
Hmm, I'll have to check some more. But I was thinking of creating a directory for some.
Sep 11, 2018 13:12
* = something like this: https://github.com/etsy/logster/blob/master/docs/parsers.md
But with more parsers, specifically in python.
Sep 11, 2018 13:11
Hi! does anyone here know about a good list of standardized log parses for different systems in python (nginx,apache,linux logs, squid,postfix etc...) ?
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Dec 11, 2016 20:29
I hate my life
Dec 11, 2016 20:29
:| not shit
Dec 11, 2016 20:18
I'm more of a debian dude
Dec 11, 2016 20:18
@tereško, this is for a client :(
Dec 11, 2016 20:11
This is my code:
```if(file_exists($file['path']) && is_writable($file['path'])) {
unlink($file['path']);
}```
Dec 11, 2016 20:10
for some odd reason PHP can't delete a file in temp folder (windows):
Warning: unlink(C:\Users\Me\AppData\Local\Temp\myfile584da39d68b22.tmp): Permission denied

Did this happen to you too?
Nov 26, 2016 21:47
thanks for the help
Nov 26, 2016 21:47
cya later guys
Nov 26, 2016 21:45
so I won't send them twice
Nov 26, 2016 21:45
I just can't use sessions other than that
Nov 26, 2016 21:44
function update_progress($progress) {
session_start();
$_SESSION['ajax_progress'] = '"' . $progress . '"';
session_write_close();
}
Nov 26, 2016 21:44
@PeeHaa, I found my solution:
Nov 26, 2016 20:45
yeah, I'll stay for sometime
Nov 26, 2016 20:43
I'll think about something
Nov 26, 2016 20:43
thanks anyhow
Nov 26, 2016 20:43
you don't know how much my friend
Nov 26, 2016 20:41
clients
Nov 26, 2016 20:41
I hate this shit app
Nov 26, 2016 20:41
I was asked to do that shit :(
Nov 26, 2016 20:40
haha lol
Nov 26, 2016 20:39
of the 3 possibilities what would you do?
Nov 26, 2016 20:38
they all seem pretty bad thou
Nov 26, 2016 20:38
what would you recommend? I read that I can flush more scripts to the user with buffering or someting like that, use shared_memory or write to a file
Nov 26, 2016 20:37
yeah, I know it sucks
Nov 26, 2016 20:36
I am not sure i'll have shell_exec in other machines
Nov 26, 2016 20:36
because i am not making this only for myself
Nov 26, 2016 20:36
I want it to work on old php versions too
Nov 26, 2016 20:36
it takes about 15 seconds to unzip on my machine
Nov 26, 2016 20:35
I put a "session" log function between zip_read calls
Nov 26, 2016 20:35
unzips a big file
Nov 26, 2016 20:34
elaborate?
Nov 26, 2016 20:33
I am reading about some
Nov 26, 2016 20:33
yeah sure
Nov 26, 2016 20:31
stuck with*
Nov 26, 2016 20:31
now it's stuck in the initial thing I put in the session
Nov 26, 2016 20:31
wait, but I pass the progress via sessions
Nov 26, 2016 20:28
it worked!
Nov 26, 2016 20:27
thanks!!!!
Nov 26, 2016 20:26
so I use the sessions_close after each time I write to the session?