stevensanderson, to programming
@stevensanderson@mstdn.social avatar

After I update my #R Package TidyDensity there will be 176 functions...that's a lot of code I wrote. This is just a reflection. Right now it is 172.

#R

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

🔎 Selecting Columns Containing a Specific String in R: A Quick Guide 🚀

Hey R users! Need to select columns by a specific string? Here's how in base R, stringr, stringi, dplyr, and with a bonus from data.table.

🆒 R
✅ grepl
📦 stringr
📦 stringi
📦 dplyr

Bonus: 📦 data.table
library(data.table)
df_price <- df[, names(df) %like% "price"]

Happy coding! 🚀

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

#R

image/png
image/png
image/png

kubikpixel, (edited ) to rust
@kubikpixel@chaos.social avatar

Is today the day of the crab and is that a good thing? Yes, it means that the chainring is now number one! 🦀🎉

⚙️ Announcing Rust 1.0
https://blog.rust-lang.org/2015/05/15/Rust-1.0.html


ArneBab, (edited ) to random German
@ArneBab@rollenspiel.social avatar

define-typed: a static type syntax-rules macro for to create API contracts and help the JIT compiler create more optimized code:

https://www.draketo.de/software/guile-snippets#define-typed

Improved thanks to feedback from Vivien and Zelphir in the Guile User mailing list.

Just 26 lines to get argument and return value typing without changing Guile.

I love the flexibility of ❤️

swiftcraft, to programming
@swiftcraft@hachyderm.io avatar

🌟Exclusive offer for job seekers!🎉

Dive into the world of Swift development at SwiftCraft's main conference for just £90 + workshops or tutorials for an additional £90 each!

Find out more and apply! https://swiftcraft.uk/jobseekers

GurgleApps, to RaspberryPi
@GurgleApps@mastodon.social avatar

If you're looking for a gift or a project see our Word Clock kits. Fun to build & a joy to own. We're also selling
@RaspberryPi_org picos and parts for your clock & lets not forget the snazzy white faceplate. https://gurgleapps.etsy.com/uk/listing/1689755114/color-word-clock-kit-operated-by-wifi

image/jpeg

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Want to check duplicate values across columns of a data.frame? Well you can do that in a basic way with TidyDensity and the check_duplicate_rows() function, or you can go through todays blog post for some other ideas with and

#R

Post: https://www.spsanderson.com/steveondata/posts/2024-05-14/

image/png

kaiserkiwi, to webdev
@kaiserkiwi@corteximplant.com avatar

PSA for my fellow ​s:

If you ever get the "offer" to work with 6, run. Run as fast as you can. There is nothing out there that is more of a developer nightmare than this pile of junk.

95% of my gray hair comes only from Shopware.

stevensanderson, to programming
@stevensanderson@mstdn.social avatar

Discover essential techniques to check for column existence in R data frames!

Use %in% with names() or colnames(), explore dynamic checks with exists() and within(), or identify patterns with grepl(). Experiment with these methods in your projects.

Post: https://www.spsanderson.com/steveondata/posts/2024-05-13/

#R #RStats #RProgramming #Programming #Coding #Data

image/png

kaiserkiwi, to Laravel
@kaiserkiwi@corteximplant.com avatar

That made me chuckle :D

#Laravel #Statamic #PHP #Coding

skybert, to Java
@skybert@emacs.ch avatar

I know I'll get more geek points if I write Java code like:

pConf.getProfiles().forEach(<br></br>    p -> mProfileURIMap.put(p.getId(), p.getURI()));<br></br>

But I still think nothing beats a good old loop:

for (ProfileConf profileConf : pConf.getProfiles()) {<br></br>  mProfileURIMap.put(profileConf.getId(), profileConf.getURI());<br></br>}<br></br>

claras_universe, to github
@claras_universe@ieji.de avatar

Im still onto my streak. Its 132 days now. There is no going back, I have to fill the whole thing xD

ajsadauskas, to fediverse in Ideas to build a federated StackExchange alternative
@ajsadauskas@aus.social avatar

@lemmyreader Here's a starting point for a fediverse StackExchange: Make sure it's interoperable with Lemmy.

Now, you may not get the full feature set on Lemmy, but you should be able to interact with it from Lemmy as if it's a group on there.

noellemitchell, to mastodon
@noellemitchell@mstdn.social avatar

Me: I should read! Or work on coding. Orrr do something musical. Maybe take some photos. 🤔

Me: continues scrolling through my Mastodon feed 😂

chiefgyk3d, to python
@chiefgyk3d@social.chiefgyk3d.com avatar

I was up late trying to figure out a stupid issue I was having with the Crowdstrike API so I didn't stream on twitch last night, hoping to do a stream tonight. I think they took a feature out my team was actually using which would allow me to contain a device and make a note that could be viewed in the dashboard.

noellemitchell, to Blog
@noellemitchell@mstdn.social avatar

So I just looked at my Neocities blog for the first time on mobile and...it doesn't look that bad 😆

I guess I was expecting it to look horrible 😂

https://noellesbookshelf.neocities.org/

leanpub, to books
@leanpub@mastodon.social avatar

Leanpub book LAUNCH! Generative AI For The Rest Of US: Your Future, Decoded by Aymen El Amri https://youtu.be/AS5rxamBeps @eon01

claras_universe, to chess
@claras_universe@ieji.de avatar

I did the first board render with my chess engine :o I'm really happy with how it turned out. And it also shows that the white kingside castling worked xD (Assets from itch.io)

swiftcraft, to programming
@swiftcraft@hachyderm.io avatar

🌐Join us at #SwiftCraft for "Experimenting in a Sociotechnical System" by @jessitron

🚀Explore innovative ways to conduct experiments in complex systems, beyond traditional methods.

https://youtu.be/Z06HJ7qLpHE

Don't miss out! https://swiftcraft.uk/register

#swiftlang #coding #programming #softwareengineering #software

horovits, to ai
@horovits@fosstodon.org avatar

took out the fun part of , the creation, leaving us to debug and test auto generated code. Not fun 😕

And it seems our software has also become worse since the era.

@kevlin keynote at sharing developer research and thoughts.

dedsyn4ps3, to gaming
@dedsyn4ps3@fosstodon.org avatar

Guys, it's happening... I think I'm officially getting older.. 🫠

Gone are the nights of 24/7 parties fueled with Monster and Red Bull (though I can definitely still pound them during late night binges 🤗), and have given way to regularly having my app open to watch my investments and snag positions throughout the day/week...

Nowadays, I somehow seem to get off on data and stock charts... 🙈🙈

stevensanderson, to random
@stevensanderson@mstdn.social avatar

👍 In R, you can easily extract specific columns from a data frame by their numerical positions. For instance, to grab the second column from a data frame df, you can use df[, 2].

🙅‍♂️ You can also exclude columns by using negative indexing, such as df[, -2] to exclude the second column.

Keep exploring and happy coding!

#R

Post: https://www.spsanderson.com/steveondata/posts/2024-05-08/

image/png

devleader, to dotnet
@devleader@hachyderm.io avatar

Check out my C# course that will guide you through more advance topics including things like OOP and asynchronous programming!

Perfect for advancing your C# skills beyond the basics!
https://dometrain.com/course/deep-dive-csharp?affcode=1115529_nl-teyzg

kentbrew, to opensource
@kentbrew@xoxo.zone avatar

This from @nzakas has me wondering whether the bad guys are already using large language models to analyze GitHub histories in search of single unpaid maintainers who can be pressured to open commit access. https://ckarchive.com/b/d0ueh0h4gn08duk4xx64otmx96444hl

jake4480, to indiegames
@jake4480@c.im avatar

Back in the days of Twitter, @platformalist did Tweet Tweet Jam, a challenge where you would submit games coded with 500 characters or under.

Now I'm here, and he's still hosting it - this year is Tweet Tweet Jam 9, and you have 6 more days to submit your 500 character games:
https://itch.io/jam/tweettweetjam-9

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