Urban75 Home About Offline BrixtonBuzz Contact

Today I have mostly been using ${insert development technology here}

Fez909 are you using a tutorial for that? I was playing with the official fb one this morning and its awful! Really confusing, so recommendations welcome. I don't really do front end so this is all super new to me, and js is pretty horrible. :p
I'm in a similar boat in terms of not knowing any front end stuff at all. The biggest problem I've found is all the tutorials expect you (quite reasonably) to already know JS. As I don't, I'm finding it tricky to know why certain things work in React which are actually nothing to do with React, and all about JS. The different syntaxes you can use (ES5/6/7, stateless functional components vs classes, etc) makes jumping between tutorials harder as well.

I want to avoid all the shit you read about with JS which is summed up in this amusing article if possible. I'm using create-react-app as my boilerplate/starter, and it seems nice so far. Handles all the babel/webpack shit that I don't understand, and gets you set up to start prototyping/playing with just one command ("create-react-app MyApp").

I've also got this ebook/course that I'm planning to go through: Fullstack React: 30 Days of React

Looks decent from the synopsis, but haven't even opened the PDF yet, so no idea if it's actually any good.

The learnprogramming and reactjs subreddits are good for when you get stuck and there's a fella from Facebook on the React team who is very active and gives good help. He created the boilerplate thing I linked above, I believe.

Sorry I couldn't be more help. I've not really had time to get properly into this yet. Let me know if you find anything good :)
 
No, it's useful to know it's not just me. I got react up and running that'll come in a couple of days. There's a free ebook "the road to react" which I've worked through the first half of, and at least it works - as with you it's using the create-react-app system to take care of all the cruft. There are plenty of 'free' pdfs of 'principles of object oriented JavaScript' around, which is the es6 compliant approach that react uses (apparently), so im trying to get up to speed that way.

ETA: the terminology js uses is really annoying, as it seems quite different from other languages. I mostly use python with bits of go and c#, andveel it's fairly portable between them. JS is pretty densely made into its own thing.
 
I started a new project last week using Vue.js. I'd been planning to use React, but Vue looked a bit simpler. So far it's been pretty nice, as it's got some super-simple routing and request-handling plugins.
 
In my quest to learn some more up to date tech I've settled on react - so far just done the facebook intro and so far I like it. It's conceptually quite different from what I'm used to and I feel quite accomplished that the basics have clicked after a few unsuccessful weeks of dipping my toes into the spaghetti of different eco systems and layers of complexity around these, spending hours and giving up after installing a half dozen things via NPM which create thousands of files that do nothing but give you 'hello world' and not having a clue what anything is actually doing under the hood.
 
I've been trying to achieve what I thought was quite a small thing. We have a tool I wrote that helps us manage our reps. I've been adding and changing bits and pieces to it for years. We have a problem with the reps ipad email accounts where it doesn't delete the trash when they empty it. This means that at the moment we have to go into exchange to add the users mailbox to our account with full access, wait for it to replicate and then manually empty their trash. Then go back into EMMC and remove the permissions.

I have had long, involved conversations with group about Search-Mailbox and Export-Mailbox cmdlets which apparently are too dangerous to let us mere mortals access, (and inexplicably don't actually do what they were supposed to when group tried) so I had a poke around, I do have access to Add-MailboxPermissions and Remove-MailboxPermissions. Great I thought I'll write a quick wrapper to run the powershell command to add the mailbox on our tool do the deed and then remove, two clicks not five minutes of waiting for EMMC to do it's thing.

Test this with the command on powershell, works fine. Add the command to the tool, gets access denied, whoami shows it's the correct user, the user has permissions, it just won't let me run the command unless it's in it's own PS window. If I open a command window as my full domain user (with full permissions) it gives access denied, if it's directly from running powershell it works fine.

FFS.
 
Any Android devs about? Have a quick question that is tricky to Google due to people asking a similar, but unrelated question.

I have an app that was originally designed for tablets but it seems like 70% of our users have downloaded it on their phones and it looks shit. Currently re-jigging it to work on phones.

Created a layout-large dir for the existing views. And then duped into layout for the phone, where I edited them to look good. All working fine so far, but a lot of the views don't need to change, so I have lots of duplication.

I know I can use <include layout="@layout/...."> to reuse components, but this only seems to work within the same layout folder, rather than across them. That makes sense, tbh, I'm OK with that.

So now I've tried creating a layout-common/ and tried to include those. No good. Can see why it doesn't work, too, but I feel like there must be a better way to do this than duping everything.

Any clues?

mauvais elbows - I think you do Android?
 
I am having fun with a raspberry pi 3, using node.js to do things that admittedly would be more efficient if I could be bothered to learn how to do them in c.

I'm using it to turn an ableton push 2 controller into a more general midi & OSC controller by processing midi from its buttons & knobs, and using libusb to drive the 960x160 colour display of the push 2.
 
2nd stab at React today/tonight - much more successful than last time. Probably because I have an actual project this time...

I have an 'app' with rudimentary auth, routing and some simple components. I'm using React router, which is really nice, and Material UI as I can't be arsed styling everything. I'm going to [eventually] plug it into the Flask backend I've been building to create a stats/BI/dashboard thing for my company.

It's been frustrating at times, but mostly I've been really enjoying it. And I fucking hate web dev.

:thumbs:

did you stick with it iamwithnail ?
 
A bit, but mostly sidelined by pressures at work - I feel like we could have rebuilt the janky thing ive spent the last two weeks working on, in react instead of trying to fix the broken Django code I inherited, had people given me requirements at the start. At the moment I'm doing electron js, which is the framework that Slack and he Github apps are built in, as I've a need for some desktop application stuff.
 
Back on vb.net to update some requested features on an old app. Actually enjoying it a lot, vb is so easy to knock up a quick utility, I added a watchlist to alert us when certain remote laptops come online, now every time I look at it I think of a new feature to add to that particular function. So far it's working surprisingly reliably and has been extremely easy to develop.
 
A bit, but mostly sidelined by pressures at work - I feel like we could have rebuilt the janky thing ive spent the last two weeks working on, in react instead of trying to fix the broken Django code I inherited, had people given me requirements at the start. At the moment I'm doing electron js, which is the framework that Slack and he Github apps are built in, as I've a need for some desktop application stuff.
Are you using React in your Electron app?

I'm not using redux yet as I don't have any state in my app, really. I plan to, though. It was going to be today's task (learning how to use it).
Back on vb.net to update some requested features on an old app. Actually enjoying it a lot, vb is so easy to knock up a quick utility, I added a watchlist to alert us when certain remote laptops come online, now every time I look at it I think of a new feature to add to that particular function. So far it's working surprisingly reliably and has been extremely easy to develop.
VB.net is just really comfy isn't it? I build a little utility with it in my previous job and everyone was having a go, saying why not use Java or whatever. But the speed I built it with, and lack of frustration because it's such an easy language, meant I had it work in no time at all.

I've still never found anything that makes building apps with a GUI easier than that. I thought Electron might be the answer to my GUI woes, but even that's nowhere near VB.net in terms of ease of use and speed of dev.

Never tried any of the other .NET family, but always wondered if C# has the same/similar easy GUI hooks and builder that you get with VB? Often I'm asked to build a simple app for someone and Ican knock out a command line app in no time, then spend forever trying to make a pretty front end for them so they can actually use it... :facepalm:
 
I've gone back to Django. Currently wondering why crispy_forms doesn't seem to easily allow its layouts to be used to do detail views, too...
 
I'd quite like my DetailView pages to have the same layout (only non-editably) as the edit forms for the same objects. It surprises me that there doesn't seem to be a nice DRY way to do this: ideally, it'd be good to have a subclass of Crispy Forms that allowed the same layout to be used to design a DetailView.

And I'm either missing something really obvious, or the rest of the Django world is, because I can't seem to find anything like that!
 
I mean, i see what you mean, but don't use a form for that, it's *supposed* to be non editable. You could inherit the layout from crispy_forms.layout and reuse it (as a Mixin for the DetailView?), but it seems like a lot of effort... I've never actually really considered this a problem, but now that you mention it, yeah, it seems strange. I suppose you could create a template tag that did the same as the {%crispy %}?

So instead of:
{% load crispy_forms_tags %}
{% crispy example_form example_form.helper %}


You'd have
{% load existential_detail_tags %}
{% existential example_detail_view %}


That'd be quite a nice solution, tbh. Too much dark magic and not enough tweakability in CBVs. Is there nothing in Classy CBVs that does what you need?
Django Class-Based-View Inspector -- Classy CBV
 
I mean, i see what you mean, but don't use a form for that, it's *supposed* to be non editable. You could inherit the layout from crispy_forms.layout and reuse it (as a Mixin for the DetailView?), but it seems like a lot of effort... I've never actually really considered this a problem, but now that you mention it, yeah, it seems strange. I suppose you could create a template tag that did the same as the {%crispy %}?

So instead of:
{% load crispy_forms_tags %}
{% crispy example_form example_form.helper %}


You'd have
{% load existential_detail_tags %}
{% existential example_detail_view %}


That'd be quite a nice solution, tbh. Too much dark magic and not enough tweakability in CBVs. Is there nothing in Classy CBVs that does what you need?
Django Class-Based-View Inspector -- Classy CBV
Yes, I certainly don't want to be instantiating useless forms. But it seems to me that you could take the Crispy Layout block and give it to another object that simply rendered it, according to the template scheme in force (I tend to do everything in Bootstrap), as a DetailView instead. I almost can't believe someone else hasn't done it, which is why I'm wondering what I'm missing :)
 
Nothing too exciting today, but I've finally got round to starting to re-write my Expression Engine Flickr API implementation (php).

I also thought it was about time that I set up git properly and started using it (Tower + Github) :oops:
 
I'd started to get back into Unity a bit but apparently they're now deprecating UnityScript (JS-based syntax) in favour of C#. And fuck C#.
 
Into the last 6 days of work at current employer. Given that they've just inadvertantly blocked access to the sandbox server, I can't really do very much today, so will continue my docker tutorials practice that I was doing yesterday, new employer has everything in docker.
 
Back
Top Bottom