social.stefan-muenz.de

Search

Items tagged with: do

The hardest thing about adding #hashtag support to my little project is the #regex hell. Thankful for the help, #stackoverflow.

A pretty good hashtag regexp is this one. 1-30 characters, has to start with a letter. However, it doesn't handle non-latin characters, so too bad for you people who don't speak American. I don't know of a character class that groks unicode, but if you do I'd love to know about it.
/(?:^|\B)#(?![0-9_]+\b)([a-zA-Z0-9_]{1,30})(?:\b|\r)/g

Since #ActivityPub allows HTML in content, you first have to sanitize it to prevent any XSS attacks, then turn it into DOM, then extract the text nodes, and scan each one for hashtags with the above regex. Surround each one you find into an anchor and reassemble the whole thing back to a DOM object and insert that into your page. You have to handle special cases like having punctuation after your #hashtag, since that's a thing we #do.

The strangest thing is why systems like #Friendica surround hashtags in content they send to other systems with links back to their own site. Why would my users want to see hashtags on your website?
 

#To #be #honest.


When I think about #preppers and #prepping, for some #weirdo #armageddon #scenario. I ask myself, how about and what do we need to be #prepared to #re-engineer and #re-build #technology we need as fast as possible....

It's not just about the #internet and #computers we all surely will miss #A #LOT, but there are other way #more #basic and #pressing #needs which come up when all #networks are #down, #every #bit #of #transistor #technology #is #blown and the #magic #smoke is #long #gone.

We will need #Communication #beyond #simple #wire-telegraphy. #What #can #we #do to re-build this technology?


#Well, it #seems, at least #some of us, are actually able to resort back to #good #old #vaccum #tubes... and some people even can #build / #manufacture them to some extent.

So at least, we have a #chance to still get #HAM #Radio #operators #back #on #track within a #foreseeable #timeframe. ;)

Here is one of the people, you might wanna ask for some tubes for your #gear:

* 02/13/2016 Triode
* 02/17/2016 Triode II
* 03/04/2016 Triode III
* 04/01/2016 Power Triode
* 08/28/2016 Triode IV
* 09/12/2016 Tetrode
* 10/31/2016 Portable Triode

And so on.. ;)

He has a lot of interesting stuff on his site at https://simplifier.neocities.org/

Have fun!

Btw, via @Hackaday (unofficial)
reshare from @Hackaday (unofficial)

Wood and Carbon Rods Used for This Handsome and Effective Microphone



#classichacks #mischacks #carbon #granule #microphone #oak #pine #pots #pstn #rod #telco #transducer #hackaday
posted by pod_feeder_v2
 
@piratenpartei ... bin aber auf jeden Fall in #do dabei!
 
Later posts Earlier posts