So I have been having a lot of fun using Spacemacs (Emacs + Vim) lately as my new IDE. Its a game changer for sure. One thing I find particularly fun is the "pretty-mode" extensions I managed to program into it (had to write my own layer that I derived from some existing code). I'll explain each aspect of pretty-mode in a second but first check out some screen shots at the bottom of this post to see what it looks like.
If anyone wants to replicate my configuration the full setup is here: https://git.qoto.org/freemo/pretty-spacemacs
Pretty-git is the most functionally useful of them all. When you make a git commit it helps you format your git message using the standard format where you start with one keyword classifying the commit (such as fix, feature, refactor, etc) then a colon, then the text. It provides a list of selectable keywords and adds it to the git message. Moreover it can replace these keywords visually with descriptive icons (such as a little red bug for bug fixes). Later when you look through the git history you see these icons where the keywords should be making for a very nice visual representation.
My favorite is the pretty-code. Its a simple idea, it replaces certain keywords of phrases in code with equivelant mathematical symbols. So, for example null/nil/none will be replaced with the empty-set math symbol (a circle with a slash through it), similarlity stuff like not equals (!=) will be replace with an equals mark with a slash through it. You can fully customize what symbols are replaced and what it is replaced with. Also when you cursor over a symbol it temporarily reverts back to the keyword it replaced so you can see what it means. Searches and of course the underlying code itself (and in git) is unchanged.
pretty-shell is just a shell with some nice font-awesome fonts to make it pretty, usually informative so different icons might represent if a directory is a git repository or if it has staged changes and what not.
Finally pretty-outline. This basically just gives bullet points (useful in org-mode and note dating) some pretty icon representations rather than circles. Pure eye candy on this one.
So Gremlin Python ( Tinkerpop 3 ) does not have transaction support. So only way to get transaction like behavior is to make sure you do everything in a single database traversal.
Because I am writing an ORM / OGM model as my base that means I needed to implement something that looks like optimistic locking all my own (only works on immutable write-only graphs). Its a huge pain in the ass.
Anyway after half a day I finally figured out this is the traversal I need to resolve my optimistic lock when creating a single new node in the DB:
session.g.E().has('dirty',1).aggregate('x').fold().V().has('dirty',1).aggregate('x').choose(__.V().hasLabel('account').has("fingerprint", "DEADF00D").hasNot('dirty').count().is_(0), __.select('x').unfold().properties('dirty').drop()).iterate()
For todays #FollowFriday I'm going to do something a bit different. We have a lot of new users, one of the biggest surges we have seen in a while. As such a lot of new users are looking for high quality, long-standing, accounts to follow. Similarly many of the new users need some help getting attention and making new friends.
As such I am going to do this #FF in a few parts. One for old users I have mentioned in previous posts, as well as some of the new users who have been making quality posts and been active for at least a week now. Hopefully this will be more helpful.
Also a section for some bots might be useful.
I will use a persons profile description here as I dont want to misrepresent anyone.
:awesome_slide_r: New Mentions :awesome_slide_l:
@Karthikdeva - Always a Student, Nano-Technologist, Bookworm?, and basically I don't know anything, so I might be asking some agonizing questions.
@_lunawinters - Just a human , living on a rock called Earth, floating in a giant space.
@VidyaKrishnan - Independent journalist, S. Asia
@yantrajaal - Engineer by education, teacher by profession, programmer by passion and imagineer by intention
@susi123 - வாசிப்பையும்
@Full_marx - I am a मस्त डॉन on Mastadon. I wish to build something that can be of good use to as many people as possible. Social Sciences: Propaganda Science, Social Engineering, Behavioural Science, Advertising STEM: Human-Computer Interaction Design, Web Dev, Cyber Security Noob. Multimedia: Motion Graphics, Video Production, Electronic Music Production, Abstract Film, Writing Politics: Left, Right and Center. Whichever ideology leaves the people with the most amount of Dignity, sign me up for that one.
@raining_night - I love women, food, thriller/sci-fi/slasher movies and series, astro physics, superbikes, nature and animals ❤️ not in any specific order Trying out Veganism.
@shibaprasad - Master's student. Football Fan.
@ppmanik - Believe in free speech and data privacy. Interested in physics and science in general and future of Semiconductors and related devices in particular.
:kaboom: Old mentions :kaboom:
@SecondJon - I'm interested in being just not civil, but excellent in interacting with others of different viewpoints in an online world where we can so viciously defend our echo chambers and be so dismissive of other perspectives. I rarely log onto the bird site of FB anymore because the interactions are unproductive about anything meaningful. I'm a #Dad, #Husband, #Christian, #Anglican, Unaffiliated #conservatarian, Software #Developer, #Coloradan, Reader of paper #books, Card and BoardGamer, #tea drinker, solving problems for co-workers and partners primarily with and integrating with the #Salesforce/SFDC platform.
@cwebber - User freedom activist, ActivityPub co-editor, parenthesis enthusiast, occasional artist.
@pschwede - #Coding #Paradigms #GraphRewriting #YPEGIDA #choas #KzU #developer #programming #philosophy #scifi #linux #sociology #luhmann #HvF #python #java #sed #awk #cis #white #freespeech #atheism #freereligion #art #drawing #pixelart #diagrammatics #symbolism #dresden #unisex
@Absinthe - The green faerie
@metapsyche - I am a cloud of vapor. Fragmenting into ever smaller pieces to explore ever widening spaces. Web Developer by day, Pattern Hunter at night. Thinker and Tinkerer on weekends. :)
@imvectech - RESEARCH ° COOPERATE ° MONITOR ° ADAPT. Developing and teaching to implement DITO techniques for human survival between knowledge and fate.
@canonicalbrud - #Orthodox #Christian; husband and father; #biomedical #development #engineer; #crypto tinkerer; Stephen #Talbott fan, i.e. proponent of (re-)introducing #λόγος and #τέλος into #biology and thus heal the modern rifts between #philosophy, #theology, and the natural #science/s.
@david - Value people over code. I manage tech.lgbt. WordPress Maintenance fixupfox.com. On the Internet, everyone knows I'm a dog. Follows are open both ways for me if you're nice and cool!
@Curator - Curator of art from the instance
@Erik - Privacy, plants & politics Student CybSec @ :utwente:
:doge: Bots :doge:
@arxiv_eess - Electrical Engineering
#coding : films / réalité. Vu sur Télégram.
How I created custom desktop notifications using terminal and cron https://victoria.dev/blog/how-i-created-custom-desktop-notifications-using-terminal-and-cron/ #coding #developer
Understanding Array.prototype.reduce() and recursion using apple pie https://victoria.dev/blog/understanding-array.prototype.reduce-and-recursion-using-apple-pie/ #coding #developer
How users and applications stay safe on the Internet: it's proxy servers all the way down https://victoria.dev/blog/how-users-and-applications-stay-safe-on-the-internet-its-proxy-servers-all-the-way-down/ #coding #developer
A coffee-break introduction to time complexity of algorithms https://victoria.dev/blog/a-coffee-break-introduction-to-time-complexity-of-algorithms/ #coding #developer
Also, which might make you more likely to contribute code if you're interested in the project?
[ ] I love me that ES6+
[ ] Gotta use TypeScript
[ ] It depends on the project
[ ] I prefer CoffeeScript!
Ready for the next challenge?
"5 Guys and a Bunch of Coconuts"
Here is a link to the text description of the problem.
That link is to the repo, and my solution is in it as well.
Why I'm automatically deleting my old tweets using AWS Lambda https://victoria.dev/verbose/why-im-automatically-deleting-my-old-tweets-using-aws-lambda/ #coding #developer
A Unicode substitution cipher algorithm https://victoria.dev/verbose/a-unicode-substitution-cipher-algorithm/ #coding #developer
A quick guide to changing your GitHub username https://victoria.dev/verbose/a-quick-guide-to-changing-your-github-username/ #coding #developer