d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Official Off-topic In Chd > Pls No Lock Mods :(
Prev16276286296306311226Next
Add Reply New Topic New Poll
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 20 2016 12:40pm
Quote (GRATS @ Mar 20 2016 02:26pm)
hey abduct

Code
import sys
from PIL import Image
import numpy as np

chars = np.asarray(list(' .,:;irsXA253hMHGS#9B&@'))

if len(sys.argv) != 4: print( 'Usage: python script.py image scale factor' ); sys.exit()
f, SC, GCF, WCF = sys.argv[1], float(sys.argv[2]), float(sys.argv[3]), 7/4

img = Image.open(f)
S = ( round(img.size[0]*SC*WCF), round(img.size[1]*SC) )
img = np.sum( np.asarray( img.resize(S) ), axis=2)
img -= img.min()
img = (1.0 - img/img.max())**GCF*(chars.size-1)

print( "\n".join( ("".join(r) for r in chars[img.astype(int)]) ) )


run this with python rofl

https://i.imgur.com/8344ZRj.png


This gave my loonix machine a tumor.
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Mar 20 2016 12:41pm
Quote (AbDuCt @ Mar 20 2016 11:40am)
This gave my loonix machine a tumor.


you ran it with too big of image size? it freaks out then
gotta do liek I did in the s/s 0.07 size or even smaller

This post was edited by GRATS on Mar 20 2016 12:41pm
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 20 2016 12:42pm
Quote (GRATS @ Mar 20 2016 02:41pm)
you ran it with too big of image size? it freaks out then
gotta do liek I did in the s/s 0.1 size or even smaller


I didn't even run it.

Also I hate where I live, my routes suck to the east coast. I only get 6.5mb/s out of 12mb/s download to my gigabit server. Yet to my other server in central USA I get my full bandwidth. What do.
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Mar 20 2016 12:45pm
Quote (AbDuCt @ Mar 20 2016 11:42am)
I didn't even run it.

Also I hate where I live, my routes suck to the east coast. I only get 6.5mb/s out of 12mb/s download to my gigabit server. Yet to my other server in central USA I get my full bandwidth. What do.


wtf
you sure it isn't a single thread maxing out ssh traffic speed rather?
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 20 2016 12:46pm
Quote (GRATS @ Mar 20 2016 02:45pm)
wtf
you sure it isn't a single thread maxing out ssh traffic speed rather?


This is HTTP file transfer downloads. I had the same problem with my old ISP. More or less to my east coast server I only get 50% of my bandwidth or less.
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Mar 20 2016 12:49pm
Quote (AbDuCt @ Mar 20 2016 11:46am)
This is HTTP file transfer downloads. I had the same problem with my old ISP. More or less to my east coast server I only get 50% of my bandwidth or less.


oh
wtf you using http
nsa loving botnet supporter

you SURE it isn't the server? if you use java you can detect slowest lane of the transfer

http://ndt.anl.gov/toolkit/


http://ndt.anl.gov:7123/

they changed the speed test port

This post was edited by GRATS on Mar 20 2016 12:51pm
Member
Posts: 21,380
Joined: Dec 23 2007
Gold: 1.00
Mar 20 2016 12:52pm
Quote (GRATS @ Mar 20 2016 01:39pm)
I've had my 1 razer keyboard since it was released a million years ago lol
not that I care either way, I can type 100+ wpm on any keyboard pretty easy

razers scancodes are fucking garbage though, pulling them, identifying them, and using them on linux is a nightmare, because their ghetto software is what controls 100% of keyboard

my next keyboard will definitely have a chip and send real codes..


That was before their stuff went to shit.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 20 2016 12:55pm
Quote (GRATS @ Mar 20 2016 02:49pm)
oh
wtf you using http
nsa loving botnet supporter

you SURE it isn't the server? if you use java you can detect slowest lane of the transfer

http://ndt.anl.gov/toolkit/


http://ndt.anl.gov/

they changed the speed test port


This is done via axel and apache, although all other protocols give me the same problems so its not protocol specific.

As for it being the server it's not. I can reach gigabit speeds off it seeding and downloading other shit:

Code
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from SoftLayer Technologies (x.x.x.x)...
Selecting best server based on ping...
Hosted by Skybeam (Dallas, TX) [0.24 km]: 7.312 ms
Testing download speed........................................
Download: 871.59 Mbits/s
Testing upload speed..................................................
Upload: 856.62 Mbits/s


Also if I use a vpn that is ran off a server that can max it's bandwidth out to my server, I in turn get full bandwidth since the routes change.

Just fucking odd in general.
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Mar 20 2016 12:59pm
Quote (AbDuCt @ Mar 20 2016 11:55am)
This is done via axel and apache, although all other protocols give me the same problems so its not protocol specific.

As for it being the server it's not. I can reach gigabit speeds off it seeding and downloading other shit:

Code
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from SoftLayer Technologies (x.x.x.x)...
Selecting best server based on ping...
Hosted by Skybeam (Dallas, TX) [0.24 km]: 7.312 ms
Testing download speed........................................
Download: 871.59 Mbits/s
Testing upload speed..................................................
Upload: 856.62 Mbits/s


Also if I use a vpn that is ran off a server that can max it's bandwidth out to my server, I in turn get full bandwidth since the routes change.

Just fucking odd in general.


yea no shit..
you must have like a 10mbps hub somewhere that some router is routing through (on accident) but it's probably a "fallback" in case another network lane goes down or something.. like that.

that's all I can think of, since I'm sure all the nodes aren't EIGRP that's all possible to happen.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 20 2016 01:03pm
Quote (GRATS @ Mar 20 2016 02:59pm)
yea no shit..
you must have like a 10mbps hub somewhere that some router is routing through (on accident) but it's probably a "fallback" in case another network lane goes down or something.. like that.

that's all I can think of, since I'm sure all the nodes aren't EIGRP that's all possible to happen.


Might go complain to my ISP later. Although all first and second tier support are idiots.
Go Back To Computers & IT Topic List
Prev16276286296306311226Next
Add Reply New Topic New Poll