bits, to programming
@bits@mastodon.online avatar

My definition of an expert in any field is a person who knows enough about what’s really going on to be scared.

-- P. J. Plauger, Computer Language, March 1983

libreoffice, to random
@libreoffice@fosstodon.org avatar

Improve your and knowledge – join the project! That's what Kira Tubo did: https://blog.documentfoundation.org/blog/2024/04/22/community-member-monday-kira-tubo/

Neurostroke, to Software
@Neurostroke@mastodon.social avatar
kaiserkiwi, to random
@kaiserkiwi@corteximplant.com avatar

I really like this post. Over the past 17 (oof nearly 18) years I've pretty much seen every archetype that is mentioned here.

And also had the situation multiple times where the management loved the negatively framed types while the other devs were annoyed.

https://www.simplethread.com/the-10x-programmer-myth/

Mastering the Challenges of Coding & Programming Cacultor, Free Online Calculator & Useful Tools (www.quickpickdeal.com)

At Quick Pick Deal, we ignite curiosity in the exciting realms of coding, programming, math, physics, and electrical engineering. We empower students and developers by demystifying complex subjects like power usage and energy consumption. Through engaging resources and insightful content, we equip learners with the knowledge to...

kaiserkiwi, to webdev
@kaiserkiwi@corteximplant.com avatar

Wanted to get some low hanging fruit tickets done for Questlog. Well I also decided to create more robust testing and now I finished the first task after 3 minutes and fighting Pest for 27 minutes now.

Why in all seven hells is Game::factory()->count(5)->create(); not creating 5 games? It's always 2 or 3. Never 5. This is absolutely infuriating…

I just wanted to get my list shorter and don't break stuff while I do.

The fun part? Also creating all 5 games manually fails. Without any log or something like that…

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

Oof. This was a really stupid error… My factory generated games with different categories. Main Game, DLC/AddOn and Expansion.

But the view I was testing filtered games by Main Game only… So by chance it was extremely unlikely that every game is a Main Game and so the count never was 5.

If feel really dumb right now.

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

I'm glad I marked some tasks as "low hanging fruit" while I had no time or energy to work on Questlog.

This way I was able to complete 5 small tasks, while my child slept, that were in my head for a long time, as I didn't need to search for issues but had a list I just could work through.

seav, (edited ) to random
@seav@en.osm.town avatar

I’ve finished doing perspective corrections on 250 photos of NHCP ! 🎉 I have been doing this sort of photo editing on and off since 2017 and this is in support of the historical markers @wikidata /Commons project I and a few others are working on (e.g., my Panandâ mobile app).

You can explore all 250 photos in this Commons category page: https://commons.wikimedia.org/wiki/Category:Perspective_corrections_by_Eugene_Alvin_Villar

If you’re curious how I am doing this, a slightly outdated process is on my blog: https://www.vaes9.com/posts/perspective_correction

seav,
@seav@en.osm.town avatar

Generating the mosaic image in my previous toot was an interesting micro-coding project. I conjectured but didn't expect that it was possible to arrange photos of varying sizes into a near square. I just used a naïve randomized heuristic to essentially solve a variation of the bin packing problem¹ and the results turned out to be good enough™ though obviously not rigorously optimal. Thanks also to the MediaWiki Action API!

¹ https://en.wikipedia.org/wiki/Bin_packing_problem

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

🔍 How to Extract Last Row in Data Frame in R

Base R
Use nrow(my_df) to get the total rows.
Extract the last row with indexing: my_df[nrow(my_df), ].

dplyr
Use tail(my_df, 1) to get the last row.

data.table
Convert to data.table: my_dt <- as.data.table(my_df).
Get last row using .N: my_dt[.N].

Now you know three ways to extract the last row. Try it yourself! 📊

#R

Post: https://www.spsanderson.com/steveondata/posts/2024-04-18/

liztai, to python
@liztai@hachyderm.io avatar

The one reason why I want to learn is so that I could program my computer to copy my social media posts and just stuff them into my Daily Note automatically. Ambitious or impossible? lol

collin, to random
@collin@ruby.social avatar

Playing with the JetBrains AI thing in their IDEs. The chat seems roughly as good as Copilot for normal rubber ducking.

The completion is different, but close. It operates on a line by line basis, so it kind of works like better autocomplete. It won't do the thing where it generates a whole method for you unless you ask it to. I might grow to prefer that.

wervice, to programming
@wervice@fosstodon.org avatar

I am continuing work on Zentrox. Today I almost finished user.c completly. The only problem is, that empty strings get replaced with -1in the databases.

I am working on fixing this as well.

https://github.com/Wervice/zentrox

(Also, thx for 5 stars in just about a day 😃

madopal, to Engineering
@madopal@mastodon.social avatar

Re: ChatGPT/CoPilot coding:

Boilerplate code is not a thing. Most "boilerplate" code is already covered in a library or package, and it should be used there. Otherwise, there are situational edge cases to be covered.

And unit test code is not boilerplate either. The point of unit tests aren't just to verify, but to explain problems when a failure happens. Unit tests without this are test theater.

AI coding without severe coaxing cannot do this.

onthefencedev, to productivity
@onthefencedev@twit.social avatar

Finally sorted a particularly complex piece of functionality which dives deep into some rather knarly legacy code - all with the help of 'Music to Code By' (now Music to Flow By) .... thanks @carlfranklin

Teckids, to linux German
@Teckids@bildung.social avatar

Für Mädchen* haben wir noch eine Einladung:

Am 25. April ist der #girlsday, bei dem Mädchen* eingeladen sind, in "typische Männerberufe" hineinzuschnuppern.

Wir zeigen zusammen mit dem @linuxhotel in #Essen, wie man Elektronik und Software selber baut und was die Leute in einem Schulungshotel machen, das die Admins großer Online-Dienste ausbildet.

Drei Plätze sind noch frei:

https://www.girls-day.de/.oO/Show/linuxhotel-gmbh/ein-tag-im-seminarhotel-fuer-linux-und-andere-open-source-software.1

Gerne weitersagen!

#Kinder #FediLZ #Linux #Coding #FOSS

claras_universe, to rust
@claras_universe@ieji.de avatar

Why is it so fun to create APIs? Something about it is so oddly satisfying, the image down below is part of my API documentation and its just pure dopamine to look at xD I could do this kind of stuff forever…

wervice, to github
@wervice@fosstodon.org avatar

How does your current project's language graph look?

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Need to Find Rows with a Specific Value (Anywhere!) in R?

Ever have a large R data table where you need rows containing a specific value, but you're not sure which column it's in? We've all been there! Here's a quick guide to tackle this using both dplyr and base R functionalities.

🌟 The dplyr Way: Streamlined Selection

🌟 Base R to the Rescue: Manual Looping

#R

Post: https://www.spsanderson.com/steveondata/posts/2024-04-16/

linuxtldr, to linux
@linuxtldr@noc.social avatar
gadgetry, to apple
@gadgetry@techhub.social avatar
bits, to programming
@bits@mastodon.online avatar

Trying to express implicit and fuzzy relationships in ways that are explicit and sharp doesn’t clarify the meaning, it destroys it.

-- Clay Shirky

sos, to programming
@sos@mastodon.gamedev.place avatar

I hate when programmers tell other programmers "Don't do this" "Don't do that". Don't listen to these people.

And don't gatekeep other people's code. Let people program however they want.

Worst thing is, person posting this DOES use early return in their code.

I think programmers just think they're better than others. "I can do this, but you can't". Don't be like that. It's not OK.

stevensanderson, (edited ) to programming
@stevensanderson@mstdn.social avatar

Estimating the degrees of freedom 'k' and the non-centrality 'ncp' parameters of the chi-square distribution from just a vector of numbers? I think I am there. Here is a post the work I did over the last couple of days:

Post: https://www.spsanderson.com/steveondata/posts/2024-04-15/

#R

foss_android, to web
@foss_android@mstdn.social avatar

freeCodeCamp
freeCodeCamp's open-source mobile app

freeCodeCamp.org is an online learning platform offering a comprehensive curriculum in development and machine learning. The curriculum is self-paced and available free of charge. The App includes challenges, tutorials, Code Radio, and podcasts.
Contribute to freeCodeCamp: https://contribute.freecodecamp.org/

Download: https://play.google.com/store/apps/details?id=org.freecodecamp

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • InstantRegret
  • everett
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • khanakhh
  • Durango
  • mdbf
  • JUstTest
  • ethstaker
  • anitta
  • modclub
  • osvaldo12
  • normalnudes
  • ngwrru68w68
  • GTA5RPClips
  • tacticalgear
  • provamag3
  • tester
  • Leos
  • cubers
  • lostlight
  • All magazines