« first day (3637 days earlier)      last day (1294 days later) » 

1:44 AM
only once.
removed.
 
 
1 hour later…
2:48 AM
write() will return before any characters are transmitted over serial.
...
How to find out whether succeeded or not.
Doing a read right after write didn't return any useful info either (just the usual output).
 
3:35 AM
mini lidar is working most of the times now. But I have problem reset the lidar when something goes wrong.
 
4:26 AM
From the videos I've seen it seems to work quite well. The chicken have to move far back to close the lid so they don't get their head stuck in it if that's what you're scared of.
As for write you might want to check this Serial.availableForWrite()
it seems to return the amount of data available in the buffer so if you see the the buffer isn't empty then there is still some data to send.
 
Good idea, going to try to flush the buffet before reset then checking the returned data.
 
4:42 AM
That said regarding your issue, you can use a well defined protocol
It would be more secure like that I guess
For example you send a message that can be decoded on the other end. On each message sent, your other side of the client has to answer with an aknowledge message back
 
Umm, I am not going to re-write the firmware for the mini lidar.
 
you can send a byte like 0 to mean that the message was succefully received / parsed
But you expect something back?
A timeout could also be used that if you don't receive the a response, then you restart the process including reseting init if necessary
it reminds me abit of an issue I had with a NFC card reader, I eventually had to shut down the power on the USB ports to restart the device because the driver on the RPi had a bug
 
The lidar should send something back. But there were too much data in the buffer on the micro-controller.
I guess if I keep on reading, I would be able to reach the returned code.
 
ah I guess that's fine then
 
Lidar works most of the times, but sometimes something goes wrong and micro-controller would start receiving garbage data from lidar. I think I will just reset the device in those cases.
 
5:27 AM
@LoïcFaure-Lacroix Yeah 1) use a C++ compiler targeting AVR 2) Arduino sketches support modern C++ features (you can even get C++17 by passing -std=gnu++17).
@Morwenn Yeah, its a pretty darn slow (stackoverflow.com/questions/15124900/…) and I don't understand their arguments about precision. It seems that writing a small addition to the library serves as a PhD thesis :-)
@Morwenn, the more I think about it, the more CGAL seems like an anti-pattern
@Morwenn I actually ended up presenting <cereal> which was pretty clean
But for tonight I’ll say this was a disgusting moment for democracy. Donald Trump made it so, and Chris Wallace let him. I hope there are no more debates before this election. If they happen, I won’t waste another minute of my life watching them.

The modern presidential debate was invented in 1960. We may have seen the end of its useful life this evening.
 
user7659542
6:32 AM
So I recently had a new client whose firm is total chaos. I was initially put in charge to just write their software development plan and test plan. Turns out those people have no formal process at all, therefor I had to come up with an applicable process and describe this. Next to this, they never did any testing. So I had to come up with an a testing strategy, methodology and so on and so forth
 
user7659542
Now I have been told the company is loosing loads of money. They want that multi million dollar project they have been informally promised by their client but are lacking financial means to reach the required quality standards. I was told that by the CEO. Some engineers cost too much and they will not be able to keep them during the entire development/preparation of the project
 
user7659542
So now it is my task, as the new guy, to go speak with those people to understand how much time they will need and how muuch work needs to e done to reach the required objective. Once that will be settled I will have to discuss with them my price and their price/salary to make it fit the CEO's foreseen budget
 
user7659542
I mean...
 
user7659542
Isn't this some sort of fcked up situation? Or is it just me?
 
8:04 AM
sounds like a standard "oh no, we are going bankrupt, lets hire $$consultant$$ to fix our shit"
 
user7659542
@ratchetfreak But they are complaining on how consultants are soo much more expensive than regular employees.
 
they hired you didn't they?
in this scenario you are the $$consultant$$
 
user7659542
@ratchetfreak yes, hired to try so save them
 
user7659542
@ratchetfreak during the last meeting they implicitely said they considered a 50% pay cut for me. But he didn't say it explicitely, presumably it was to see how far he would be able to reduce my price...
 
user7659542
Frankly speaking I have not foreseen to lower my tarifs
 
user7659542
8:43 AM
I like doing this, I consider this a "strategy consulting" which IMO is an incredibly interesting field.
 
user7659542
But at the same time I am affraid they are jus trying to give me the dirty work he does not want to do in order to not be hated by employees.
 
9:11 AM
like I said hiring a $$consultant$$ to fix their shit
 
9:43 AM
I realised that I was the lab rat for some marketing research - so there is one kind of coconut white milk biscuit that I quite like. One week, it's 33% off, so I bought 1 pack from this supermarket. The very next week, it's 50% off. I was like 'I like this biscuit, but I have already got some at home'. So I didn't buy. The third week, it's 66% off, so I bought 2 packets despite still having some at home. #lostgame
 
nwp
Why lost? The result is that 66% off sells twice as much as 33% off. If you hadn't bought again they would have concluded that 33% off is enough.
Though the rule of thumb I heard is that half price sells 10 times the amount. You're pretty far away from that.
 
@nwp I am usually in the 91% in that case.
 
10:36 AM
Good day
 
nwp
I disagree. My stuff doesn't work. The board makes strange noises too.
 
Nothing works for me either, I'm confined at home, I don't understand much about what I'm doing at work, it's stormy outside and I don't have any beer left in the fridge
 
nwp
Being home would be nice. I'd be even less productive, but at least I could hide under my blanket.
 
I want to drink a can of Bête :'(
@nwp Don't get me wrong, I love to wfh
But until I get my COVID test results I can't really leave the house
 
nwp
I don't like working from home. I am less productive and feel more pressure to justify my work.
 
10:42 AM
Isn't there like grocery/drink/food delivery sevices everywhere now?
 
I don't have many delivery services and I probably have enough food to last for the remaining 2~3 days
 
@nwp same, I'm now often alone in like a 24 person office
 
@nwp I feared that too at first, but it turns out that I'm sufficiently non-productive at the office that it doesn't make a difference when I work from home
But I can do a bunch of house tasks during noon instead of doing nothing, and I don't waste 1h~1h30 driving every day
 
nwp
It probably wouldn't make much of a difference for me either, but the justification part is scary.
Yeah, the commute is the real advantage for most. I have like 10 minutes by bike, so that doesn't make much of a difference to me.
And having a clear cut between work and not work is neat too.
 
The clear cut thing was my biggest fear, but it turned out ok: when my working day is done, I just don't really think about it anymore
 
 
2 hours later…
1:14 PM
6
Q: Is there a "simple" way to have ld output demangled funtion names?

Javier VilarroigI find very frustrating to have to fix C++ errors happening at linkage time (especially undefined reference errors) due to the fact that all the function names are mangled. An example of mangled name: _ZNK5boost7archive6detail11oserializerINS0_13text_oarchiveEN9galandria8UniverseEE16save_object_d...

 
nwp
1:41 PM
I keep losing code despite using git. It's very annoying.
I feel like I need to copy my project every day to avoid losing progress.
 
sounds like you don't do commits often enough
also, you won't hear me disagree with "git sucks". It truly is not suited as the "universal version control" tool that it is often treated as nowadays
 
nwp
Most of the times it works great.
Just like Firefox. It just happens to sometimes lose your tabs and then you're sad, but not often enough to change browsers.
Welp, time to redo the work I thought was completed.
I'm supposed to be doing something else entirely.
 
@nwp commit more
 
nwp
Committing when you're in a state where nothing works just seems terrible.
But I guess I should get used to it.
git commit -am"Doesn't compile, will probably revert, but I have to go home now."
 
you can rebase it later on anyway
 
nwp
1:53 PM
For that I would need to learn what rebasing really means and how to use it first.
 
@nwp you can stash too
or create a new temp local branch
 
nwp
@Mgetz That's what I did. I believe that's what fucked up the code.
 
or more precisely merge commits or re-arrange them. Git just hides this all under "rebase -i" even if it's not related to rebasing
 
@nwp then pop the stash I'd honestly just create another local temp branch?
 
which leads me back to "git sux", I've gotten used to it, but I can see that it's just full of insane design decisions and leaky abstractions
 
nwp
1:55 PM
I did pop the stash. Some changes are back, but not all of them.
And I didn't even change any code between the stash and the pop.
It would probably make sense to learn how to use Eclipse.
Just typing code isn't working out.
 
oh you're using a gui frontend for git, that'll make things more difficult
 
nwp
No, it makes things easier.
It works fine on Qt Creator. Just press Ctrl+G+C and it'll show you what files changed, double click to see the merge, type a message and all is good.
But now I'm in Eclipse that probably has a plugin somewhere in the market place that I could fuck around with for hours, but I'll use git bash instead.
And oh boy, even looking at a diff in git bash is a pain.
 
it can if you're really disciplined about how you use git. But I've not seen a gui toolkit that deals well with interactive rebases, cherry-picks and a good way to navigate reflog
because I'm messy af and need to clean up the mess I made all the time
 
nwp
I never use those in the git bash either.
I can barely clone, pull, push, commit, stash and stash pop. With no extra flags. I have to look up how to spell uncommit every time.
Something about reset head with weird caps and a ^ somewhere.
 
I just always look at the commit with git log manually before doing "git reset --hard"
I always alias "git log --graph --oneline --decorate" (I didn't have to look that up)
 
nwp
2:02 PM
In theory I should make aliases too. In practice I'd have to redo them everywhere I go and that will cause too much confusion.
 
true, I don't do it the first time I use it. But after typing that 10 times a day, I relent after a week or so, hehe
 
2:16 PM
@nwp if you get into rebasing learn how to read the git reflog
it will save your day the moment you succesfully screwed your project
but don't use git gc or anything that can garbage collect because that will wipe all unreferenced commits
With git, anything that is in git doesn't get lost
One example, doing "git add" is just enough to push objects into the index so they are under revision already even if they're not part of any commit
 
nwp
2:44 PM
I think all the changes in the submodule are gone.
Rip
 
nwp
2:59 PM
> ld.exe: cannot find
collect2.exe: error: ld returned 1 exit status
 
 
1 hour later…
4:18 PM
@nwp Doesn't Eclipse already come with git integration unter "Team" or "VCS" or something?
 
nwp
I can't find it in the Oxygen.3a Release (4.7.3a) Eclipse I have.
There is no Teams or VCS at least.
There are extra views I can add. Those would probably work.
 
Eclipse IDE for Java Developers: The essential tools for any Java developer, including a Java IDE, a Git client, XML Editor, Maven and Gradle integration
 
nwp
 
Ah, there you go.
I don't know how good the workflow support is, I only use it for git blame :D
 
nwp
I guess the add, commit, push and pull would be under staging?
 
4:23 PM
I don't know.
 
nwp
It is.
And it has a diff too. Incredible.
Never learn about tools, it's a waste of time.
 
technically all the code in your submodule will be tracked into .git/modules of your root repository
unless you did something like git clean or git reset --hard git should prevent doing anything or you have some kind of build tool that overwrite your things
 
Plus there's always pangit:
> Have you ever staged some files in git, forgot to commit them and then messed something up? Fear not, staged files are usually recoverable within a certain time frame! pangit lets you browse all recently staged files, even uncommitted ones, sorted by most recently staged.
 
may I please get some help regarding non copyable, non movable objects? thanks
 
nwp
There is a room for that.
 
4:34 PM
@nwp thank you very much
 
4:46 PM
yeah git is pretty bullet proof unless you run git gc manually
 
Why are you guys even mentioning git gc? :D "Look, there's this button that destroys the world. Please don't press it, ok? Just thought you should know it exists."
 
Yeah it might sound counter intuitive.. Just that I found out a few months ago one of our coworker used to call it manually to save space
I found out trying to help him recover something.
 
5:02 PM
git stores things so compactly that saving space via manual garbage collection sounds pointless to me.
Was he actually running out of disk space?
Personally, I have never used git gc.
(Except maybe to measure how pointless it was.)
 
No idea, thought I told him it was pointless
In some cases it may even make the repo bigger
 
Did you coworker grow up in an age where hard disk space was measured in MBs?
 
nope
Btw, if someone want to save spaces you can use --reference to have a repo of git objects shared between repos
 
How likely is it that different repos share objects of significant size?
 
One use case is if you have multi gigabytes repos that needs to be cloned multiple times
it's not exactly objects of significant size but a huge quantity of objects
 
5:13 PM
Why would you clone the same repo multiple times?
 
what it means is that your .git folder can be a of a few megabytes while the referenced objects don't have to be copied twice
At work we have multiple client setup
so each client use more or less the same platform but can use different commits
so you end up with multiple checkout but only one place to store all git objects, it's a pain to manage thought but if space constraint is a thing it's worth it
But in all honesty disk space cost next to nothing nowadays. I finally got some NFS drive setups done my personal docker swarm that space is almost a non issue now.
 
 
5 hours later…
10:08 PM
 

« first day (3637 days earlier)      last day (1294 days later) »