This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-20
Channels
- # announcements (1)
- # bangalore-clj (27)
- # beginners (82)
- # boot (4)
- # chestnut (1)
- # cider (22)
- # cljs-dev (26)
- # cljsrn (4)
- # clojure (118)
- # clojure-dev (18)
- # clojure-italy (2)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-russia (1)
- # clojure-spec (15)
- # clojure-uk (125)
- # clojurescript (61)
- # core-async (74)
- # cursive (2)
- # datomic (41)
- # duct (6)
- # editors (7)
- # emacs (3)
- # events (1)
- # figwheel-main (3)
- # fulcro (111)
- # hoplon (11)
- # jobs-discuss (97)
- # lein-figwheel (99)
- # off-topic (34)
- # onyx (4)
- # parinfer (9)
- # pedestal (4)
- # precept (2)
- # re-frame (5)
- # reagent (2)
- # reitit (4)
- # ring-swagger (11)
- # shadow-cljs (104)
- # spacemacs (4)
- # tools-deps (19)
- # vim (8)
- # yada (15)
Bore da
Morning
Morning.
Took the plunge and quit the job on Friday. 😐 Seems I'm not going to be held to the 13-week notice period, which is good. In an odd kind of limbo at present!
I also handed in my notice last week. Lets hope we both find a new and exciting challenge. Good luck.
Many thanks - here's hoping!
what's your plan now?
Got one or two interviews in the offing, so hoping one of those comes up. Meanwhile, sending out more applications! I guess it's a high-risk strategy, but I felt as though I had to get out.
Morning all! And I don’t think it’s a high risk strategy. Quality developers are in high demand.
I'd qualify that.... Quality developers are in demand in certain locations
@rhinocratic - best advice I got, upgrade your Linkedin to premium, even if it's for the 30 day trial.
Contacting folk out of network for me. Better feedback on post performance and so on, drill down organisations on who's looking at posts. Basically I'm paying to have my ego stroked by professionals 🙂
Right, so I saw that people recommended premium for contacting people out of network, but you only get like 4 messages per month, don’t you?
And interesting that you mention post performance, I don’t know any techies that post on linkedin, I’m mostly seeing recruiters and HR people engaging it strongly
I'm not using it in anger much at the moment except for post performance but that's really to do with something I'm launching later in the year.
> that’s really to do with something I’m launching later in the year. ohhhhh ears twitching
Plus there’s the risk of staying in a job that is bad for one’s mental state
@jasonbell I'd need to reactivate my LinkedIn - I deleted my account about 8 months ago!
Thanks - I keep a close eye on those!
There's a supply/demand issue right now so i) work it to your advantage, three month period is actually good strategy and ii) Linkedin is worth being back on, so many quality leads in a short space of time.
Noted death cult Linkedin gives me a lot of useless approaches from recruiters, but also some good ones
I found that the ratio was less favourable - I didn't feel that I was getting any value from it at all. However, in my case it's probably worth being on there at present!
If you're looking for Clojure jobs I'm sure there are people in this channel that can refer you to places. There's always the usual crowd of places that are looking for people
Thank you - got an application in with them - waiting to hear!
I found the quality and level of the recruiter spam I got went up significantly after my Kafka Summit talk went up online, which is interesting as it implies some of them are aware of it...
Morning. If anyone loves Emacs AND Vim (or wants to learn to love them) then I have a workshop on Tuesday night at SkillsMatter. Details on the London Clojurians meetup https://www.meetup.com/London-Clojurians/
I guess Vim means Vim
That's just 'evil'....especially when I'm trying to be 'holy'
Its all ed in the end 🙂
Has anyone "out there" done an image upload with Yada..? I am getting the rawdata from the context (finally), but it's very definitely corrupted - I compare the version of the file that's been through the upload with the original and they are very different, and it seems__ to be a character encoding thing, but I am not sure...
Anyway, I was wondering if anyone has done specifically image upload and could maybe tell me what godawful n00b thing I am doing to have the file be corrupted in this way?
@maleghast i have 🙂
are you specifying :raw-stream?
when setting up your webserver ?
The uploaded version of the image file is full of little question marks inside diamonds instead of the proper content...
@mccraigmccraig Er, no...
Or is that something that I need to specify on the Yada Resource that is handling the upload?
looks like edge starts the http listener here : https://github.com/juxt/edge/blob/master/app/src/edge/httpd.clj#L116
and there is no :raw-stream? true
alongside :port
is there any reason why :raw-stream? true
isn't specified by default @malcolmsparks @dominicm? or is is defaulted elsewhere now?
there's nothing fundamentally wrong with yada's upload capability - we are uploading document, picture and video files of many megabytes in size without issue - but it will be difficult for me to help you, because we are using custom yada.multipart.PartConsumer
and yada.multipart.Partial
implementations
(iirc because when we implemented upload suitable implementations didn't yet exist)
@mccraigmccraig - Ah, right... No worries then, but thanks anyway
It is clear to me that if I compare the contents of the jpg in question (in vim, just comparing it visually), before and after upload, that something horrible is happening to the file in transit.
Anyone else have any thoughts as to why my image file would be being corrupted in transit using Yada to handle the upload?
have not used yada, but in cases like that, I’d check that for example the file is not being read (before transmit) as a text file rather than binary file
When you say "something horrible", is the result of the same dimensions and/or file size? Does it just look like noise?
@rhinocratic - noise, and the file is no longer recognised as as Jpeg by imagemagick or GIMP
@lady3janepl - I am using the JavaScript dataTransfer API that should just pass on a file location to the browser, so it should be automatically treated as a binary file, if I have understood this correctly..?
@lady3janepl - Yes, that
OK, so I have almost sorted it out... @lady3janepl made me re-evealuate and I realised that the dumb n00b thing I was doing was using (spit ...) which ONLY works on strings... I am using http://clojure.java.io/output-stream now, which is much better, but there is one last wrinkle... I need to remove the following:
Content-Disposition: form-data; name="file"; filename="Ciny_Pots_I_annotated.jpg"^M
Content-Type: image/jpeg^M
^M
from the byte-array before I write it to file...out of curiosity, are you always expecting it to contain Content-Type: image/jpeg
or will you be allowing varied content?
I am pretty sure that I know what the offset is for the byte-array, I just need to figure it all out, which means getting to grips with Java Byte Arrays in Clojure...
I know I’m late to this particular party, but did you try #yada?
uh, why are you having to strip http headers @maleghast?
@peterwestmacott - yeah, there's not really anyone in there at the moment, as far as I can tell...
yeah I used to lurk there a bit, but I haven’t checked it in ages
When Malcolm is online he is often in there, but he is showing as offline at the moment.
@mccraigmccraig - well 'cos they are there in the byte-array I get out of the Yada request context's :body
in my let binding, gets me the byte-array of the upload, but those three lines above ^^ are tacked onto the head / front of the byte-array
hmm. that's not how we do file-uploads at all
that requires you to have the whole file in-memory
hold on... i'll get you some code
ok, here's the bulk of the implementation - the PartConsumer
and Partial
and here's a yada resource which uses it:
you end up with a java.io.File
object in your request map
that impl stores the upload in a tempfile and gives you the java.io.File
for the tempfile @maleghast... which is crude but effective. you could do something smarter and directly stream the upload to your final destination (e.g. S3 etc) bypassing any local storage, but we've not gotten around to doing that yet
There is something in there that tells me how to do what I want, in this case (as I don't mind having all of some small image files in memory one at a time...)
warning: there may well be simpler and more idiomatic ways to do this in yada now - that upload code was written many yada versions ago
oh, the :body-offset
used in create-tempfile-partial
I'll talk to @malcolmsparks at some point, to see if there are better ways now that Yada has moved on, but for now, this works!
@maleghast: sorry just catching up on some slack… We had a great response to this job advert I wrote (with tweaks/suggestions from others in our team too): https://medium.swirrl.com/swirrl-is-hiring-ed456c08b78b We spent a lot of time trying to get the wording right. In particular I wanted to avoid making out that we’re smarter than the candidate, and avoid all the macho-bs stuff, or rule out otherwise good candidates who missed something “essential”.
not claiming its anything like perfect; but I had similar thoughts to those you mentioned on job ads.
@rickmoynihan - Thanks very much indeed; I will have a look now 🙂
@rickmoynihan That's a great job posting! The narrative feels a little bit repetitive in the first section but that's a minor nit -- overall the message is awesome and it covers a lot of ground. It would inspire me to apply if I was UK-based and happy to relocate to Manchester!
Thanks. We’ve hired 4 people and a contractor off the back of it. 3 of them women, all a very high standard. I know what you mean regarding the repetition, but the first sentence was added as a TLDR summary; if you drop that does it still feel repetitive?
No, but I understand why the opening sentence was added.