stevensanderson, to programming
@stevensanderson@mstdn.social avatar

🎉 New Post Alert! 🎉

Counting words in a string is a fundamental task in data analysis.

  1. Base R: Use strsplit(), a straightforward method to split strings and count words.

  2. stringr: The str_split() function from the stringr package makes the code more readable.

  3. stringi: For powerful and efficient string manipulation, stri_split_regex() from the stringi package is your go-to.

Happy coding! 🚀

#R

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

SharonCummingsArt, to art
@SharonCummingsArt@mastodon.social avatar
SharonCummingsArt, to art
@SharonCummingsArt@socel.net avatar
feinstruktur, to classicalmusic
@feinstruktur@mastodon.social avatar

Karl Amadeus Hartmann: Symphony No. 4 (1946-47)
Performed by the Bamberger Symphoniker
Conducted by Ingo Metzmacher

https://youtu.be/8VoK0neJlq0?si=rqVrCDRcATMT4eu8

#ClassicalMusic #ModernClassicMusic #symphony #strings
@classicalmusic @classical_music_and_beyond

amadeus, to random
@amadeus@mstdn.social avatar

Does anyone know of a decent or ? So far I have only found so-called silent cellos/violins with built-in, synthesized and amplified sound engines. But I'd really be more interested in a pure MIDI controller. The same goes for the . If there's something well-built and reliable in that area, I'd be interested as well. 🤓️

danadamsmusic, to classicalmusic

Miss Admiral Gordon’s Strathspey (William Marshall ) is a 250 yr. old strathspey dance tune. Named for the Strathspey region of Scotland, the strathspey dance is a popular form of country dance, usually in 4/4 time and slower than a reel or jig. It is characterized by the use of the “Scots Snap" rhythm — a sixteenth note followed by a dotted eighth note, or in reverse order.

video/mp4

AnimatedShortOfTheDay, to Canada
@AnimatedShortOfTheDay@socel.net avatar
autumn64, to random

#C #developers: How many times have you struggled with #char_arrays because of memory leaks caused by #scanf, or by of your information being incomplete because you didn't choose the right buffer size on #fgets?

Recently I made this header file called #NSSTRING.H, which mimics the functionality of the #Strings from high-level programming languages. It's easy to use, memory-safe, doesn't need a buffer size, and especially, it's free software!

Check it out here: https://codeberg.org/Autumn64/nsstring.h

roberto, to php
@roberto@phpc.social avatar

PHP function: levenshtein()

Calculating the distance between two strings

https://drops-of-php.hi-folks.dev/05-string/16-str-levensthein/

ambergrey, to aitools
@ambergrey@mastodon.social avatar

Are guitar luthiering tools the same as violin family luthier tools? Does anyone know how one starts acquiring these over time to build their own workbench to work on both families of instruments?

gregorni, to random
@gregorni@fosstodon.org avatar

Gotta love it when the Gtk docs tell you a function takes a "NULL-terminated array of char*" as a parameter. 😂

(For those who don't know, this is C jargon for "a string")

#GTK #C #GtkDocs #Docs #Documentation #CProgrammingLanguage #jargon #strings

nigelpurdy, (edited ) to random
svetlyak40wt, to random
@svetlyak40wt@fosstodon.org avatar

Common Lisp Package of the day:

https://github.com/stylewarning/big-string

Go, play with it!

ambergrey, to guitar
@ambergrey@mastodon.social avatar

Curious what everybody feels about electric guitar strings! I want to try a set of Elixir strings. I like Ernie Ball regular slinky. Super slinky too. D’Addario (so?) have nice resonance but to me there is some uneven balance in tone and some muddiness in the lower ranges.

carliermusic, to ElectronicMusic
smurthys, to Java
@smurthys@hachyderm.io avatar

I cannot get over how Java's String class is a "character sequence" yet we can't write the following code we so expect should be possible:

IMHO CharSequence should be iterable.

#Java #programming

smurthys,
@smurthys@hachyderm.io avatar

Two quick and dirty implementations of "iterable string" in Java:

  1. Directly make String iterable (image shown)
  2. Make CharSequnce iterable

Of course, these need to be done in the JDK in appropriate classes/interfaces instead of the wrapper IterableString class I have.

https://sigcpp.godbolt.org/z/1dh3cdTee

mythopoetica, to classicalmusic

Suite for Strings, composed by Einojuhani Rautavaara, performed by the Burlington Chamber Orchestra (conductor: Michael Hopkins)

https://youtu.be/0Xc-1IPOTZw

Rautavaara remains one of my favourite composers of all time. I can never get enough!

@composers
@classicalmusic
@contemporarymusic

#composers #orchestra #strings

stevesplace, to music
@stevesplace@mastodon.social avatar

Hey kids! I added another bass line in case your speakers can't reproduce a sub-bass well, and added strings, too!

Also turned up the guitar. 🤘😎🎸

And the bass.

And the vocals b/c the bass and guitar are louder plus I added #strings. 🎻

How's your weekend going?

#musicproduction #music #newmusic #mastodonmusic

Check it out:

If I'm A Felon (remixed for your listening pleasure)

https://soundcloud.com/stephen-teter/if-im-a-felon?si=55894f4a132a486f851089f72a2e067a&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing

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