Sander

Results 63 comments of Sander

Ah, thanks to @safihre ``` >>> import puremagic >>> filename = "test/resources/audio/testblabla.bla" >>> bla = puremagic.magic_file(filename) >>> for i in bla: ... print(i) ... PureMagicWithConfidence(byte_match=b'ID3\x03\x00\x00\x00', offset=0, extension='.koz', mime_type='', name='Sprint Music...

Real World Probability: common extensions on https://www.computerhope.com/issues/ch001789.htm ``` >>> mylikelyextlist = [ '3g2','3gp','7z','ai','aif','apk','arj','asp','aspx','avi','bak','bat','bin','bin','bmp','c','cab','cda','cer','cfg','cfm','cgi','cgi','cgi','class','com','cpl','cpp','cs','css','csv','cur','dat','db','dbf','deb','dll','dmg','dmp','doc','docx','drv','email','eml','emlx','exe','flv','fnt','fon','gadget','gif','h','h264','htm','html','icns','ico','ico','ini','iso','jar','java','jpeg','jpg','js','jsp','key','lnk','log','m4v','mdb','mid','midi','mkv','mov','mp3','mp4','mpa','mpeg','mpg','msg','msi','msi','odp','ods','odt','oft','ogg','ost','otf','part','pdf','php','php','pkg','pl','pl','pl','png','pps','ppt','pptx','ps','psd','pst','py','py','py','rar','rm','rpm','rss','rtf','sav','sh','sql','svg','swf','swift','sys','tar','tar','gz','tex','tif','tiff','tmp','toast','ttf','txt','vb','vcd','vcf','vob','wav','wma','wmv','wpd','wpl','wsf','xhtml','xls','xlsm','xlsx','xml','z','zip' ] >>> 'mp3' in mylikelyextlist True >>> 'koz' in mylikelyextlist False ``` List generated like this: ```...

Thanks for replying. I've implemented it in SABnzbd like this: * define list with likely extensions in the real word. For example: mp3 is, koz isn't * if current file...

I activated logging like described https://stackoverflow.com/a/38462866/1492917 ... but easy grep -i "bosch" or "plr" does not reveal anything

... it neither works from Windows: Windows does see the PLR30C, it connects, the PLR30C shows an extra symbol to the bluetooth symbol ... and then nothing ![image](https://user-images.githubusercontent.com/1273502/101993561-e98fd300-3cbb-11eb-9de5-8a29b40330f9.png)

FWIW: I can connect from Android to the PLR30C (so Bluetooth is working), but that is besides the point as I can't run the python script on Android. Is the...

Ah, cool (pun intended) ... that's exactly what I wrote into my temp_throttle.sh ... before seeing this PR. So I'm pro accepting this PR. Snippet from my output ``` unthrottle...

> Maybe with a flag to ignore the error this is acceptable, Which flag name would you suggest? * no_state_allowed * no_state_needed * ignore_state * ignore_state_error * ...

I got it working: "writing" the to-be-downloaded file to /dev/null is now possible, and thus measuring pure Internet speed (no limiting disk speed). Note the text **No state file, cannot...