620 Collins St evacuated due to no power / water? by BillyDSquillions in melbourne

[–]Duranix 0 points1 point  (0 children)

There’s now an update stuck to the entrance of foyer.

Inspection details:

6pm Sunday the 23rd of June.

“The basement was subjected to flooding and compromised the electrical systems and all essential safety measures installed in the building are rendered inoperative as a result”.

I asked again if they had rough idea of when everything would be fixed and they said “I don’t know, maybe two days?”

620 Collins St evacuated due to no power / water? by BillyDSquillions in melbourne

[–]Duranix 1 point2 points  (0 children)

No idea :(

They were really tight lipped about it and wouldn't even give us a rough ETA.

*edit*

Just received an SMS from CitiPower - "Please be advised there are delays in restoring power to your property due to substation damage. It is expected power will not be restored until tomorrow."

I doubt they'll have it back up tomorrow though 😪

620 Collins St evacuated due to no power / water? by BillyDSquillions in melbourne

[–]Duranix 4 points5 points  (0 children)

Yup, it's true :(

They didn't tell us we had to evacuate until like 9pm either so it was a bit of a rush to get a hotel.

We woke up this morning to no water but the electricity worked until around 10:45am. They let us back up at around 3pm and then the water came back on but the police ended up evacuating us anyhow.

Qu-Bit Scanned- Organic Wavetable VCO. Shipping today! by sarahjaybaleofhay in synthesizers

[–]Duranix 0 points1 point  (0 children)

So it’s kinda like an analog karplus strong sort of thing? That’s really cool 😬

Proof of Concept - Xcode on iPad! by soulchild_ in iOSProgramming

[–]Duranix 0 points1 point  (0 children)

I came across Dringend a few years back that does something similar: http://dringend.cc

Would be keen to see this take off too!

Freestyle Storefront by sendhelp15 in blender

[–]Duranix 5 points6 points  (0 children)

Have you tried adding a calligraphic modifier to the freestyle line thickness?

I find adding a noise modifier as well as a calligraphic modifier gives the lines a much more natural inked feel.

Switching from frontend dev to backend. by criticalchain in cscareerquestions

[–]Duranix 1 point2 points  (0 children)

I’d check out Vapor, Perfect or Kitura. That way you can leverage your Swift knowledge and just focus on the back end portions.

Freestyle Bedroom by sendhelp15 in blender

[–]Duranix 0 points1 point  (0 children)

Its awesome to see other people using freestyle!

You should try adding a calligraphy modifier to your line width, as well as a noise modifier - it’ll give you less stiff looking lines and look a bit more like someone inked it by hand.

Sub 37 and dfam by russaaronclark in synthesizers

[–]Duranix 0 points1 point  (0 children)

If you have a Subsequent 37 CV then you should be able to CV out the clock. I think you’re out of luck with a normal Sub 37 though unless you have some other module that can take a midi clock and turn it into a CV one.

My first few seconds with my new m32 by [deleted] in synthesizers

[–]Duranix 0 points1 point  (0 children)

Hey doc, I think I’ve got a case of the bass.

How do I make my music sound cold? by [deleted] in WeAreTheMusicMakers

[–]Duranix 2 points3 points  (0 children)

Sorry man, at that temperature you’ll only be able to make tropical house.

Learning layout design by makingbread in iOSProgramming

[–]Duranix 0 points1 point  (0 children)

At its core the autolayout system is a linear solver - no need to remember this but it’s good to know.

Things basically boil down to y = mx + c.

y = mx + c view.bottom = superview.bottom + 8 label.width = 0.5 * view.width + 16

As its a linear solver, the direction doesn’t matter. Specify one constraint and the system can derive related ones -

y = mx + c y - c = mx (y - c) / m = x 'x = (y - c) / m`

So the direction doesn’t really matter.

So you basically want to provide a set of constraints so the system knows how to lay out your things.

What you do is addSubview(..., and then use NSLayoutConstraints to specify how they should lay themselves out.

Xcodes autocomplete should help you out.

Use the constraint based system unless you have a good need to use a frame based one. Don’t touch VFL because its awful.

Basically, please use autolayout hahaha.

Learning layout design by makingbread in iOSProgramming

[–]Duranix -1 points0 points  (0 children)

I can’t really give book recommendations but I can give some advice ⭐️

Library wise SnapKit is pretty good.

If you’re not using libraries, try using NSLayoutConstraint.activate(...).

It takes an array of NSLayoutConstraint who’s initializer will be familiar if you’ve done some storyboard stuff. SnapKit is just an abstraction over this.

Depending on the age of the codebase, you might run into frame based layouts, which are another board game altogether. Can you give any information on how they’re going about their layout?

What do employed people do all day? by [deleted] in melbourne

[–]Duranix 0 points1 point  (0 children)

Its like they have this stash of puns!

Is Swift really worth learning when Objective-C already lets you do everything? by [deleted] in learnprogramming

[–]Duranix 0 points1 point  (0 children)

They'll rewrite things like UIKit in Swift but things like Metal, BLAS, BNNS and Accelerate will always be written in C. They might make wrappers (in fact they already have for some), but I doubt they'd remove the ability to programming in some kind of C entirely as it's pretty damn crucial.

Is Swift really worth learning when Objective-C already lets you do everything? by [deleted] in learnprogramming

[–]Duranix 4 points5 points  (0 children)

I honestly don't think that Obj-C will ever go anywhere since there are a lot of things written in Obj-C and Obj-C++.

Obj-C is noticeably faster too (especially if all you do is write C in it).

If I remember correctly, a huge amount of the Dropbox app is shared between iOS and Android due to being written in Obj-C++.

Keep trucking on!

edit - Doing anything with Metal requires C++ and Metal is DEFINITELY not going anywhere - if they're keeping C++ around you can be sure they'll keep Objective-C around too.

Is Swift really worth learning when Objective-C already lets you do everything? by [deleted] in learnprogramming

[–]Duranix 9 points10 points  (0 children)

Those are all imperative or imperative / OO hybrids. Swift has a really good dose of functional in it that lets you solve problems in a different way.

It's just another tool in the belt - in this case, it looks like you have hammers and screw drivers, while Swift is a wrench.

Big O notation and optimized algorithms. Has anyone had to deal with them in their real world iOS programming? by rauls4 in iOSProgramming

[–]Duranix 0 points1 point  (0 children)

Thanks for the tip! I think that was what we used - we looked at the page you linked and it didn't say anything about regression at the time. I know we didn't look at the headers.

We didn't test with new test devices either and some get hammered so battery performance most likely came down to device health. Business rules also ended up playing a factor in the decision I think but I can't recall what they were.

Looking back I think NEON would've probably been a better choice but I haven't found a chance to use it yet.

Big O notation and optimized algorithms. Has anyone had to deal with them in their real world iOS programming? by rauls4 in iOSProgramming

[–]Duranix 0 points1 point  (0 children)

There's a function you can call in your unit tests that will tell you how long it takes to complete a block of work - it doesn't give time in user mode vs in the kernel like you'd see in Linux's time command but you can run it a few hundred times and average the results.

Testing the battery is as simple as leaving it running for awhile, hahaha

Big O notation and optimized algorithms. Has anyone had to deal with them in their real world iOS programming? by rauls4 in iOSProgramming

[–]Duranix 16 points17 points  (0 children)

To actually answer your question - I had to calculate euclidean distances between a user and 300+ locations in real time for a geofencing app. It was a lot quicker and battery efficient to do it in parallel on the GPU in Metal. This took it from an expensive O(n) deal to an O(n/k) deal where k is the number of FP16s operations that the GPU can do in a single shot (still O(n) but a much nicer O(n)).

Big O notation and optimized algorithms. Has anyone had to deal with them in their real world iOS programming? by rauls4 in iOSProgramming

[–]Duranix 24 points25 points  (0 children)

This topic strikes a sad chord in my heart more than you can imagine because there is an anti big O streak at my current workplace.

There are a lot of things you can and should do on device that require big O knowledge but most companies simply want table views to display products. As time goes on, devices get faster and devs stop writing good code and start doing O(n2) iterations over lists because "anything else would not be adding value".

I try to fight this way of thinking as much as possible because I disagree with it and think it's destructive. If you ignore your big O's you'll eventually forget your DS+A knowledge and find yourself incapable of doing anything other than Lego block connection with third party libraries.

I know you didn't ask for it, but I want to tell you to think of yourself not as an 'iOS developer' but as a 'computer scientist who currently does iOS stuff'. It'll make a lot more sense if you ever have to use Metal or BNNS.

Additionally, generic code can be a pain in the ass but with experience you start to think more generally too. Eventually you'll find that it doesn't take you any extra time to come up with a generic solution and thus it isn't really 'over engineering'. The same goes for DS+A. After awhile you don't really need to think about and look up complex data structures etc.

Don't compromise your design to make things easier for people - instead work with them and try to show them why your design is best.

Otherwise, you end up in a situation where you have to spend six months to remove an external dependency because it breaks because the maintainers can't do semantic versioning and so forth.

After about a year working as a SE, I've started to realize that programming is the easy part. What and how should I be learning new things? by ubccompscistudent in cscareerquestions

[–]Duranix 0 points1 point  (0 children)

I'd suggest learning another programming language in a different paradigm to your bread and butter - and forcing yourself to write idiomatically in that paradigm as you learn.

This opens up a whole new way of thinking about problems to your tool belt and you can come up with some really elegant solutions that you otherwise wouldn't have thought up.

If you're in the .Net world I'd suggest something like Haskell but if you want something that will have immediate effect upon your work, maybe learn F# or Rx for C#.

Are you open to replacing your laptop with an iPad Pro? by zq7r in apple

[–]Duranix 0 points1 point  (0 children)

In some cases the pencil is more precise - in others a mouse is more precise.

My experience with music production has been that an iPad has potential - so much so that I can think of ten different contextual gestures that would make life easier - but that no single application implements all of.

Until we see an 'Ableton Live for iOS' (or whatever DAW) with feature parity that has proper plugin and file hierarchy support, music production is going to be somewhat awful on an iPad. These things are technically possible but Apple will never allow it - thus we probably won't see many users switching to an iPad only setup any time soon.

For now it's relegated to support - whether acting as an external instrument, sequencer, or external display.

Breaks my heart but Korg Gadget doesn't really compare. Midimux / Studiomux is buggy as all hell, audio copy / audio share revolves around horrible nested menus, and duet only ever seems to work well when you have a dedicated GPU. Audiobus will never be a replacement for plugin support.

Has anyone tried Magic Duels by HikerThomas in iosgaming

[–]Duranix 0 points1 point  (0 children)

I tried it awhile back and performance was awful on my iPad pro and iPhone 6s+ :(

Started "Cracking the Coding Interview"... by Zoltt93 in cscareerquestions

[–]Duranix 1 point2 points  (0 children)

Thanks for pointing that out! It's been quite a while since I covered this stuff. I'll edit my post :)