|
hi im gonadic io and im a terrible programmer. my current hobby project is rust code running on an arduino which is talking to a magnetometer Final plan is a physical compass(a la pirates of the carribbean) that points towards the nearest open coffee shop. yes this would be 10 million times easier as an app but that's not the terrible programmer way
|
# ¿ Jul 17, 2018 16:46 |
|
|
# ¿ Sep 13, 2024 15:53 |
|
cinci zoo sniper posted:im just being terrible coworker and audibly giggling as the fallout from deleted prod database seeps in like is that it? end of the company?
|
# ¿ Jul 17, 2018 18:34 |
|
JawnV6 posted:why do you need a magnetometer at all? so that the compass knows which way it's pointing, and then (along with its gps coords and those obtained from goog maps) can turn the arrow to point the right direction. in theory. given that i'm doing it the odd lunchtime here and there i aim to be complete in 10 years or so. then i'll start on the drone/amateur rocketry dream which is why i'm doing all this poo poo in the first place
|
# ¿ Jul 17, 2018 18:36 |
|
cinci zoo sniper posted:another cjs: our developers on a different product don’t know why double digit % of records in one of they key tables of their database have their updated_at field changed each night when the records otherwise are unaltered sounds like a nightly backup process to me
|
# ¿ Jul 17, 2018 18:46 |
|
Deep Dish Fuckfest posted:at least that skips the step where you look up the doc, read it, and then realize that the actual design has changed completely since then and no one bothered to update the doc and then don't bother to update the doc yourself
|
# ¿ Jul 17, 2018 20:26 |
|
jabascript is becoming a dangerous reality for us because we would like to use gce's functions where js (and ts) are the only options. i dunno if we'd care enough to use wasm or scalajs or make a native module that the js calls
|
# ¿ Jul 17, 2018 22:37 |
|
MALE SHOEGAZE posted:seriously considering giving school another go atm. obviously to pursue at least a masters but if i'm gonna do it i guess i should do a phd. i'd have to do most of undergrad though, which would be costly. and weird. "I guess i should do a PhD" you should not do a PhD. 4 years of bullshit, being under appreciated under paid and like 60% of PhD thesiseses are never read after completion means that you have to be really self motivated and really want a PhD in order to complete it. "I guess" is what 2 year dropouts (like myself) said gonadic io fucked around with this message at 08:32 on Jul 18, 2018 |
# ¿ Jul 18, 2018 08:29 |
|
my boss last week: how long will this thing take to do? me: 1 day boss: okay don't do it just keep working on current stuff my boss today: hey we need that thing for our investor demo in 1 hour can you do it?
|
# ¿ Jul 18, 2018 12:58 |
|
Stringent posted:you: no correct. i even gave it a go but got nowhere near.
|
# ¿ Jul 18, 2018 13:01 |
|
Shaggar posted:hard tabs only, old man style.
|
# ¿ Jul 18, 2018 19:02 |
|
carry on then posted:please remember to perform all development activities on Microsoft Windows, which is the standard do you prefer powershell or good old DOS prompt? i've been using zsh in bash in cmd lately, and I really like how you right click to paste, and ctrl-c to both kill current process AND copy the selected text
|
# ¿ Jul 18, 2018 19:16 |
|
MALE SHOEGAZE posted:
Probably gets vectorised if the compiler can prove its a flat array yeah
|
# ¿ Jul 19, 2018 13:35 |
|
Circleci goes down during us trying to hotfix prod. Fml.
|
# ¿ Jul 19, 2018 18:43 |
|
Peeny Cheez posted:Codier Than Thou. This is amazing I'm stealing it
|
# ¿ Jul 19, 2018 19:13 |
|
cinci zoo sniper posted:as a data scientist in europe, the paycheck bit is true but with physics degree i don’t feel confidently competitive (wrt “hard skills”) with folks who have degree in math or stats or bioinformatics or something like that. cs degree in data science is more of a red flag, honestly, unless it’s a machine learning specifically (and even then it’s debatable) - there’s noticeable stigma that cs graduate have tunnel vision and need to be herded around. Lol I studied monads, complex analysis, graph theory, and crypto and not much else in my math degree. Better watch out I'm coming for all your stats jobs!
|
# ¿ Jul 21, 2018 09:08 |
|
MALE SHOEGAZE posted:tef's posts always remind me that i need to never work on distributed systems.
|
# ¿ Jul 22, 2018 20:53 |
|
jit bull transpile posted:Can someone explain what is meant by "composability"? It's a term that is used itt all the time but I've never encountered it elsewhere. it's when it's easy to use two different things together. name comes from function composition i.e. g(f(x)) how it's easy to compose the functions f and g. the opposite would be when two different things are real hard to use together, like how if you had to do some large conversion on the result f(x) before you could call g on it.
|
# ¿ Jul 23, 2018 21:31 |
|
Bloody posted:I would blog if I had anything interesting to talk about at all that wasn't just straight up violating ndas I'm going to blog coffee compass when (if) I ever finish it. Right now it involves reading papers on how to convert uT to some sort of direction/compass bearing. Given that it's done by presumable 99% of people who are using magnetometers like this I'm sure there's common enough libraries I can translate into rust
|
# ¿ Jul 24, 2018 08:19 |
|
Bloody posted:i just want to write rust and get paid for it ask me about writing a rust wrapper for the azure iot c sdk in my 5% time at work or at least i would be continuing with it if i ever got any these days
|
# ¿ Jul 24, 2018 19:27 |
|
rust magnetometer ststus: done and it calculates the angle from (magnetic) North it seems consistent but I have ordered a magnetic compass to check. This is much easier because I live on the Greenwich line so don't have to really correct for geographic vs magnetic north lol It also calculates the angles between two (hard coded) GPS coords now too but I have to be careful not to check my address into my public github repo. Next up: loving around with stepper motors
|
# ¿ Jul 25, 2018 00:54 |
|
ComradeCosmobot posted:yeah magnetic declination doesn’t exactly follow the Greenwich meridian, especially south of the equator Ah I thought it was some gmt thing, good to know. MALE SHOEGAZE posted:how are you feeling about arduino as your choice for doing embedded stuff in rust? i'm super interested in learning more about embedded but i dont want to get super serious (yet). Arduino is good because anything with that name is designed for beginners and all the breakout boards that namedrop arduino are also designed for beginners. The IDE is okay for examples to copy from but useless to actually work in even for c. The arm arduino (zero, mkrzero, etc) are good but a bit less supported in terms of nice rust libraries than the bluepill devices (just because that's what the dude who is implementing most of this stuff has/prefers) . Avr rust support is technically existant but awful. Last time I looked yuu had to use a fork of rustc gonadic io fucked around with this message at 17:24 on Jul 25, 2018 |
# ¿ Jul 25, 2018 17:04 |
|
For reference with my mkrzero (samd21g18a) I now need no unsafe code and no pointer loving which is a million times better than it was a year ago: https://github.com/djmcgill/coffee-compass/blob/master/src/main.rs I have all three of gpio, uart, and i2c being used in this crate, no big deal. Nowhere near stable though, all version 0.1 of libraries and I'm even using a dude's branch of a library because his pull request hasn't been accepted yet gonadic io fucked around with this message at 17:30 on Jul 25, 2018 |
# ¿ Jul 25, 2018 17:27 |
|
MALE SHOEGAZE posted:nice yeah, i want to do this. that is such a departure from the code i've been writing. i think i have byte anxiety. The main downside is that there's no working rust usb stack yet so you can't use the mkrzero's USB port to do serial logging, I bought a separate usart-to-USB device
|
# ¿ Jul 25, 2018 18:54 |
|
VikingofRock posted:I actually have that right now. The issue is that the fonts don't match, and one of the co-authors mentioned it in review. Lol what a li'l bitch
|
# ¿ Jul 26, 2018 09:15 |
|
redleader posted:i once spent an hour on a friday afternoon coding in papyrus. it was somewhat amusing Ex coworker used to chose in comic sans full time. Idk if he was doing it ironically, or as some kind of counter-culture thing? He said he found it easier to read maybe he just has lovely eyesight
|
# ¿ Jul 26, 2018 09:22 |
|
cinci zoo sniper posted:c tp s: i really don’t like working with relational data structures in pandas so im now experimenting with local mssql server installation to avoid committing war crimes to our dwh Sqlite my friend, its exactly for small local uses like this
|
# ¿ Jul 26, 2018 09:23 |
|
cinci zoo sniper posted:basically each agent has a list of customers assigned to them. they log into customer management panel in the morning, and start going one by one, manually, through customer account pages. if they see that customer has an invoice due, they print out a blank invoice reminder letter form, open customer personal detail page, and write down their details, by hand, into the form, and the gold it into an envelope and write the customer’s address on it, by hand. two letters per customer. total volume of hundreds, if not thousand, per day. If you wrote a thing that just told them which customers did have invoices, nothing else, you'd be lauded as a god
|
# ¿ Jul 26, 2018 10:47 |
|
Five star c === five pass LaTeX?
|
# ¿ Jul 26, 2018 16:26 |
|
Bloody posted:ctps: have you tried `cat` op? (it's called `type`) in Windows cmd
|
# ¿ Jul 26, 2018 18:35 |
|
TheCog posted:At the risk of sounding ignorant, what is a p-lang? All those dynamic "scripting" langs that start with a p. Perl, python, php, ruby
|
# ¿ Jul 26, 2018 18:36 |
|
Peeny Cheez posted:It's not the worst solution but as the files get larger it'll get poopy. Yeah I mean for large sets you'd want to set it up properly with a hash set and for Big Data you'd do, uh, a series of smaller hash set checks applied in parallel?
|
# ¿ Jul 26, 2018 21:02 |
|
Bloody posted:yeah for sure. the problem space is limited to four text files each a hundred lines long that I wanted to gently caress around with earlier today so I feel good are you sure the lines you're matching will be exactly identical? better spend 6 months adding a machine learning solution imo
|
# ¿ Jul 26, 2018 21:28 |
|
mystes posted:I don't know, there's got to be a dumber rust/cats pun out there somewhere. Feral? Rascall
|
# ¿ Jul 27, 2018 07:46 |
|
Powerful Two-Hander posted:what the gently caress sort of moon language is this It started as rust, which has syntax not dissimilar from c++. It is now something very different however
|
# ¿ Jul 27, 2018 10:31 |
|
eschaton posted:does rust let you declare your own operators, using Unicode too? https://github.com/rust-lang/rfcs/issues/818 quote:I'm closing this RFC as most people seem to be aganist this idea. I admit that in general the usefulness of this feature is limited. I was writing parser combinators which is one of the few times custom operators could be useful.
|
# ¿ Jul 27, 2018 10:52 |
|
MALE SHOEGAZE posted:nice! i'll give that a shot. you got code:
code:
|
# ¿ Jul 27, 2018 18:16 |
|
Fergus Mac Roich posted:
you don't even need to include time in the match to have a condition on it in the guard: code:
|
# ¿ Jul 27, 2018 21:55 |
|
Fergus Mac Roich posted:rust is awesome. standard haskell feature to the point where this became a way to avoid a huge chain of if-else blocks: code:
gonadic io fucked around with this message at 22:11 on Jul 27, 2018 |
# ¿ Jul 27, 2018 22:08 |
|
haskell is more "a cost between 2x and 2000x and you can't know ahead of time which it'll be" and trivial concurrency
|
# ¿ Jul 27, 2018 22:16 |
|
|
# ¿ Sep 13, 2024 15:53 |
|
zero cost functor idea:code:
|
# ¿ Jul 27, 2018 23:06 |