code logs -> 2016 -> Sun, 03 Jul 2016< code.20160702.log - code.20160704.log >
--- Log opened Sun Jul 03 00:00:05 2016
--- Day changed Sun Jul 03 2016
00:00 Netsplit over, joins: @PinkFreud
00:10 crystalclaw|AFK is now known as crystalclaw
02:26 shadaway is now known as Shady
03:06 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
03:30 VirusJTG_ [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Leaving]
03:30 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
03:30 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
03:55 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
04:06 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
04:06 mode/#code [+o himi] by ChanServ
06:07 celticminstrel is now known as celmin|sleep
07:11 Kindamoody[zZz] is now known as Kindamoody
08:06 Shady [ShadyGuru@Nightstar-qfckjl.tv13.ptd.net] has quit [[NS] Quit: Yay, he's gone]
08:10 crystalclaw is now known as crystalclaw|AFK
08:28 Kindamoody is now known as Kindamoody|afk
08:52 catadroid [catadroid@Nightstar-j3k0bt.dab.02.net] has joined #code
08:52 catadroid [catadroid@Nightstar-j3k0bt.dab.02.net] has quit [The TLS connection was non-properly terminated.]
11:23 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
11:23 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
11:52 catadroid [catadroid@Nightstar-j3k0bt.dab.02.net] has joined #code
12:04 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
12:06 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
12:06 mode/#code [+o ion] by ChanServ
12:19 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [Connection closed]
12:24 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
12:24 mode/#code [+o ion] by ChanServ
14:20 Gnomino [gnomino@Nightstar-vvv93v.fbx.proxad.net] has joined #code
14:30 catadroid` [catadroid@Nightstar-8mco0s.dab.02.net] has joined #code
14:33 catadroid [catadroid@Nightstar-j3k0bt.dab.02.net] has quit [Ping timeout: 121 seconds]
15:21 celmin|sleep is now known as celticminstrel
16:25 Shady [ShadyGuru@Nightstar-qfckjl.tv13.ptd.net] has joined #code
16:26 crystalclaw|AFK is now known as crystalclaw
16:46 crystalclaw is now known as crystalclaw|AFK
17:16
<@abudhabi>
I want a commandline app that takes a filename as an argument, uploads the indicated image file to some image hosting website, and spits out the image URL.
17:17
<@abudhabi>
Is there one?
17:17
<@abudhabi>
Or do I bloody well need to write one?
17:18
<@abudhabi>
Hm. How DOES one throw a file upload from netcat or some other utility?
17:20
<&[R]>
abudhabi: http://imgur.com/tools
17:20
<&[R]>
Scroll /all/ the way down.
17:20
<&[R]>
Third and second last items are CLI scripts.
17:21
<@abudhabi>
Sweet.
17:21
<&[R]>
<abudhabi> Hm. How DOES one throw a file upload from netcat or some other utility? <-- you make a PUT request (as opposed to a GET or POST), you'll probably need to encode the file though.
17:22
<&[R]>
It's probably simpler to use curl.
17:22
<@abudhabi>
What kind of encoding?
17:22
<&[R]>
(vs netcat)
17:22
<&[R]>
I think base64 will work, otherwise it'll have to be urlencoded.
17:29
<@abudhabi>
Hm. Neither of these scripts work.
17:29
<@abudhabi>
Both silently output nothing.
17:29
<@abudhabi>
(Well, the first one also formats the output of the blank URL string.)
17:31
<&[R]>
*shrug*
19:03
< ToxicFrog>
[R]: this assumes it actually uses HTTP PUT, rather than just expecting a POST request with the file contents in the body somewhere
19:03
< ToxicFrog>
Which most things do, AFAICT
19:03
< ToxicFrog>
I don't think I've ever seen PUT used in the wild
19:10
<@abudhabi>
What I'm getting is: {"data":{"error":"Image format not supported, or image is corrupt.","request":"\/3\/upload","method":"POST"},"success":false,"status":400}
19:10
<@abudhabi>
Regardless of file.
19:10
<@abudhabi>
Not sure what's wrong.
19:11
< ToxicFrog>
Does the same file work if you upload it using the browser?
19:12
<@abudhabi>
Yes.
19:49 Kindamoody|afk is now known as Kindamoody
20:02 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
20:02 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:00 catadroid [catadroid@Nightstar-5lb9go.dab.02.net] has joined #code
21:03 catadroid` [catadroid@Nightstar-8mco0s.dab.02.net] has quit [Ping timeout: 121 seconds]
22:43 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
22:45
<@abudhabi>
Is there a standard function that creates dirs in python in the same way that Java's mkdirs() thingy works?
22:46
<@abudhabi>
By that I mean creating all the dirs as specified by a string, if they don't exist.
22:47
<@abudhabi>
OK, found it.
22:47
<@abudhabi>
mkdir() vs makedirs()
22:47
<@abudhabi>
That's some inconsistent naming.
23:17 Kindamoody is now known as Kindamoody[zZz]
--- Log closed Mon Jul 04 00:00:15 2016
code logs -> 2016 -> Sun, 03 Jul 2016< code.20160702.log - code.20160704.log >

[ Latest log file ]