Just see the total hashrate on the network, then figure out how many cpu’s you need to get over 51% of that rate - you then know what it would cost :)
Also - nice to see a monero discussion, it’s my fav cc. Also like it a lot because of the asic resistance that is built in.
monerod
from hogging on my CPU. I'm on DragonFly BSD, cpulimit
doesn't works, also nice
doesn't. I believe this is an IRC question.
Often people run a node somewhere, then connect to it with the remote node feature from other machines. Or use a light wallet.
Cpu use will go down when block chain is synced. Also just a tip - check the prune blockchain feature to save a lot of space.
Well, the code for getting and setting the avatar works.
I need to align things better though. But cool that it works.
And mostly whether it’s even a good idea at al, and if we should continue or not?
I think that activitypub in yarn is a great feature! And also one of the easier ones to set up and get going.
And as I said last week - I think it’s a important features - and will drive adoption.
It is optional as well - so if one does not want it - just not turn that feature on.
I personally was missing the fact that I could not easily follow others before you added activitypub, but now I can choose to follow them, which is great.
Oh, and also image upload needs to be done.
Got some time for coding today, dog is resting a bit, and kids are busy.
Today I’m resuming on the timeline, I’ll see if I can fetch and show the avatars next to the statuses.
And I’ll see if I can get a reply button to work, also need to clean up stuff that I’ve done so far.
A bit of duplicate stuff that can be simplified etc.
@prologic@twtxt.net Yeah, that did not work well it seems.
So my status above looks like this in fltk because of the @
Soooo… Fltk uses @ symbol in strings to apply effects to text, now wonder I’ve been having issues with the timeline.. https://www.fltk.org/doc-2.0/html/group__symbols.html
@ is used for mentions and all that stuff, so well - it just breaks the strings in the labels.
A lot of more work needs to be done, but at least now I got the basic timeline stuff done, took a good while to figure out how to solve it, but now I know. The reason why the statuses are cut short on some is because of html tags and stuff like that - c++ is a bit picky with strings and stuff like that. but I’ll get that sorted as well.
At least I can show the first screenshot. Keep in mind the GUI is not at all finished, I’m working on the basics first, implement all the features, then I work on finishing touches.
I will work more on it this weekend. I hope to tidy it up enough for a screenshot 😀
This one did the trick:
std::regex tags("<[^<]*>");
std::regex_replace(std::back_inserter(outputString), inputString.begin(), inputString.end(), tags, "");
Okay, so was easier to solve (for now) then what I initially thought.
First thing I found was this:
https://stackoverflow.com/questions/49333136/removing-html-tags-from-a-string-of-text
Okay, so it seems like the label\text I use for statuses does not like the strings from posts.
Especially if they contain html tags and such (which the often do), it just breaks the text.
I wonder what I can do with that.. I kinda want to not have html tags in the json reply.
Have to think a bit about how to solve it. Took a while to figure it out, the text was just garbled.
I created some long example strings with regular letters and such, to see if X number of posts would show up, and they did, but when I then replace my test strings with text from json - it goes all wrong again.
@prologic@twtxt.net Ouch, does not sound good..
Hope you get better soon!
How are you all doing today?
@carsten@yarn.zn80.net amazing view!
Working some more on timeline, trying to create a group widget and add label child widgets, those labels should then show the text for each status.
Brrr, we had -12c this morning. But no clouds and sun is out. Nice day!
Did some more work on the timeline stuff today, now I have added parsing of each status, so that I can get the data I need from each status (user, image url, text, links - all that stuff I need).
Created the function that grabs the timeline.
Now I have to plan a bit to make the actual gui for it, I think I might try and create my own custom fltk widget that I can feed with the json reply, and then it will set itself up based on that.
Or maybe something simple at first - not sure yet.
Next up is grabbing and showing the timeline, then all the other stuff needed. :)
Was fast to get this up and running, and nice to end the weekend with this working.
Posting from c++, fltk GUI.
my twitter feed blew up yesterday. I typically get some hundred views. but the post I did yesterday did get a lot of traction, lot’s of replies and feedback etc.
main
or edge
of Yarn.social's yarnd
on their pod and has activitypub
and webfinger
enabled? 🤔
Done! :)
main
or edge
of Yarn.social's yarnd
on their pod and has activitypub
and webfinger
enabled? 🤔
@prologic@twtxt.net I’ll do that right now.
main
or edge
of Yarn.social's yarnd
on their pod and has activitypub
and webfinger
enabled? 🤔
@prologic@twtxt.net I do :)
Json parsing is done :)
Now I can write the rest!
@lyse@lyse.isobeef.org always nice to know stuff like that! one day it can save someone :)
@rrraksamam@twtxt.net that’s nice!
Ah, I forgot - first i need to add a json library, so I’ll do that now.
So, progress is going smooth!
No I have compiled libcurl with openssl, and I fetch token already.
so next is creating three functions - one for posting, one for the login and fetching token (now I have just testing login when application starts), and the fetch the timeline. Then I need the gui.
Progressed faster in 2 hours in c++ then days with rust…
@prologic@twtxt.net Thank you! And same to you! Was great talking with you.
Haha, yeah, he is always ready for playtime or walks, haha.
Okay, so I spent about one hour setting up cmake, fltk and libcurl for c++, got all that running now.
I still need to fix the cmake script a bit, but I have a working verison now with this.
I will now add the same curl stuff I had in rust in c++, then work on the gui and all that.
So I will drop rust, and go for c++ instead, much easier for me. Was worth a try in rust, but for now that’s not for me to be honest, I much faster and better in c++.
Im very close to making the decision to just rewrite what I have in c++ instead. I feel I would have done this much faster with that. I’ll think about it until tomorrow. I’ll probably do that anyways just to see. just start with cmake and get started with it.
@prologic@twtxt.net Yeah, apparently it was a bit of old new (according to twitter), but still - looking forward to have a risc-v desktop system. :)
Hopefully it’ll not be too long until something like that hits the market with a price that I can pay for it.
I do have 2 risk-v devices already, one mangopi (like a raspberrypi zero), and one HiFive1 Rev B (like a arduino).
The Hifive rev B was a waste of time and money for me - but I bought it anyways, too ‘embedded’ for my liking, so not easy to make things work on that. The mangopi is perfect, got all my desktop stuff set up on that running debian.
@prologic@twtxt.net I will most likely post something tonight. Right now its juts a window with 3 input textboxes and some button, nothing fancy at all. :)
Found what I needed finally.. I now created a struct with this crate:
https://crates.io/crates/arraystring
That works for what I need, damn this has been annoying to find a solution too.
I can now store the strings I need in the struct, and use that in all the functions.
Also works with the GUI callback stuff, so it solves the Issue I’ve been having.
I have now added gui elements for server url, username, password.
And functions for fetching the timeline with the supplied info.
So now I can finally start working on the timeline GUI.
It’s been in a way easier then expected, but also somethings are a bit tricky.
I could easily have done the same in c++ much faster, but the whole point here was to learn more rust.
And for that it’s been going well.
okay, so all chores for today is done, so I have some time to code some more. I will resume my variable and functions adventure in Rust.
@prologic@twtxt.net What I mean is ‘3D’ that runs in realtime engine (like games etc) - and not ‘offline’ 3d (like animations etc), I work with simulators for oil industry.
The company I work work added a hybrid solution after covid restrictions lifted, we can work x amount of days a week from home.
Which was a great solution. Covid proved that everyone could work from home and still meet the project demands.
Personally I prefer the office, even if I have to be there alone (I worked for months alone there). But I also like the flexibility when I need it.
@prologic@twtxt.net Ah man, that sounds nice! I do not drink - except that I have one cider during the summer vacation. (Always look forward to that one).
Other then that I love energy drinks, not that they help in any way - just tastes good :)
I’m on my way to the office now shortly, ready for a new day with realtime 3D and coding.
Good morning to you all! Wish you a great day!
So - this is probably what I was looking for:
https://stackoverflow.com/questions/59814530/issue-with-string-using-in-multiple-functions
Also, I’m struggling a bit with some basic stuff, for example variables, does not work the same way as I’m used to with c++ it seems, so it’s a bit confusing, re-using variables as input to several functions does not seem to be as straight forward as I’m used too - so I need to find some more info about stuff like that.
Also the callback stuff for buttons and such is really weird to me. But I’ll stick with it.
Got the timeline, that was very easy to do, but now the harder part starts - wrap the timeline into a nice gui.
This is where I need to put in some work now. Started on this today.
@reddit_world_news@feeds.twtxt.net congrats! As a Norwegian this feels good!
Good morning to you all!
the last days has been super busy, work, family, dog takes up most of my time (not that I complain). But I need to find some time for coding, so hopefully I can resume tonight for a couple of hours when kids has gone to sleep.