<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Daniel Rafaj Blog</title>
  <subtitle>Technical, ideas, functional programming, typography, bicycles and more.</subtitle>
  <link href="https://rafaj.dev/feed.xml" rel="self"/>
  <link href="https://rafaj.dev/"/>
  <updated>2022-04-04T00:00:00Z</updated>
  <id>https://rafaj.dev/</id>
  <author>
    <name>Daniel Rafaj</name>
    <url>https://rafaj.dev/</url>
    <email>hala-bala@tutanota.com</email>
  </author>
  
  <entry>
    <title>Danish design principles</title>
    <link href="https://rafaj.dev/b/danish-design/"/>
    <updated>2022-04-04T00:00:00Z</updated>
    <id>https://rafaj.dev/b/danish-design/</id>
    <content type="html">&lt;ul&gt;
&lt;li&gt;Practical&lt;/li&gt;
&lt;li&gt;Functional&lt;/li&gt;
&lt;li&gt;Elegant&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  
  <entry>
    <title>Look how cozy it is with new projector at home</title>
    <link href="https://rafaj.dev/b/new-projector/"/>
    <updated>2021-12-02T00:00:00Z</updated>
    <id>https://rafaj.dev/b/new-projector/</id>
    <content type="html">&lt;p&gt;&lt;img src=&quot;https://rafaj.dev/_img/photo_2021-12-02_10-03-43.jpg&quot; alt=&quot;Room with led projector playing Harry Potter&quot; title=&quot;Cozy home with new projector&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Re-creating reposting of images on IndieWeb like on Tumbler</title>
    <link href="https://rafaj.dev/b/re-creating-reposting-of-images-on/"/>
    <updated>2021-08-21T07:55:03Z</updated>
    <id>https://rafaj.dev/b/re-creating-reposting-of-images-on/</id>
    <content type="html">&lt;p&gt;TLDR; by using browser web-extension we can create option to righ click and select repost to your own site. Ideally this would create local copy of the image with linking to the source for creadits and you can create view of these pictures like on Tumblr/Pinterest.&lt;/p&gt;
&lt;h2&gt;Past&lt;/h2&gt;
&lt;p&gt;I remember time when I would check tumblr when I get bored and reposted every nice picture I found. I didn&#39;t really blog, or post my own pictures. Today, I would call this action as some kind of curation. Picture curated by me to create collage of images in grid to look nice and nothing else. No advertisements, no need to earn money, curate just for sake of collecting and good feeling I had afterwards. I felt ownership.&lt;/p&gt;
&lt;h2&gt;Present&lt;/h2&gt;
&lt;p&gt;After ten plus years after I abandoned my tumblr website, I create my own, and after while seeing what can be done with IndieWeb it is clear to me that I want back my pleasure feeling of reposting content. While back I was writing about bookmarking to my own website, and after couple of prototyping I can definitely say that it is not only possible but very convenient. Right clicking and reposting on any image on the internet I would like to re-post it on my own website. The difference is that once reposted I want also local copy of the image, which can be optimize for speed and I will not run into images which are not available anymore. In my opinion this is the best way to share content which is currently available but may not be in the future. I am left with only one question, how would I solve the licensing limitation of the image present. Of course citing the source and giving credit where it is due will happen but my question would be how is it possible to be able to earn money on these pictures in the future. My guess would be that it depends on the license and some tagging would need to be introduce to be able to mark pictures what is possible.&lt;/p&gt;
&lt;p&gt;These ideas and possibilities to create what is the most optimal way to repost / archive / share content is only possible because I own the tooling and the website. This would not be possible if I would want to post content on the de facto standard social media.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Ideal Bookmark approach</title>
    <link href="https://rafaj.dev/b/ideal-bookmark/"/>
    <updated>2021-08-02T00:00:00Z</updated>
    <id>https://rafaj.dev/b/ideal-bookmark/</id>
    <content type="html">&lt;p&gt;The best approach in my opinion would be have local copy saved of the bookmark, and reference created to that bookmarked website with source and copy. This way you can read website offline if you build your own website with that in mind. You have source, you minimize tracking, and make it accessible to any of you devices. Ideally, you can choose between private and public bookmarks, and have categories / tags for them too.&lt;/p&gt;
&lt;h2&gt;How I would design it&lt;/h2&gt;
&lt;p&gt;There is great open-source tool called &lt;a href=&quot;https://github.com/gildas-lormeau/SingleFile&quot;&gt;SingleFile&lt;/a&gt; which can be extended to be triggered on action in your browser and extended to be more convenient. The SingleFile tool creates HTML single file which contains everything needed to render website as you would see it in original website. Many folks use archive to persist links on the web, but I think it is better to have control over the links/bookmarks yourself and not rely on 3Th party, no matter how good it is.&lt;/p&gt;
&lt;p&gt;Therefore, I would suggest to create SingleFile extension to bookmark websites which automatically create bookmark post on your own website with help of micropub endpoint.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>File to program</title>
    <link href="https://rafaj.dev/b/file-to-program/"/>
    <updated>2021-01-14T00:00:00Z</updated>
    <id>https://rafaj.dev/b/file-to-program/</id>
    <content type="html">&lt;p&gt;When I was younger, I used to think of people who used command line, and complicated files to produce some kind of output, that they are just kind of weird people making it harder for themselfs. I couldn’t understand that you would use less pretty interface to write something to file instead of using pretty ui to do something.&lt;/p&gt;
&lt;h2&gt;REST CALLING API programs&lt;/h2&gt;
&lt;p&gt;I used to use think Postman was great tool for hitting API manualy and there would not be other way to improve it. Well, yes there could be faster program, or maybe desktop application instead of web UI but that is it. Oh, I was wrong.&lt;/p&gt;
&lt;p&gt;I switched from atom to emacs while back and I run into this &lt;a href=&quot;https://github.com/pashky/restclient.el&quot;&gt;REST client&lt;/a&gt;
What is great about this, that it supports multiline variables and you can compose your endpoint, so if you want to hid production or dev environment and the only difference is root url, you can simply edit the variable and you are good to go. The sheer speed of looking for endpoint needed with simple search find cannot be compare to any other UI. Simply working in file within your editor where you spent most of your day anyway is good bless. You prefer vim keys ? well you can use them because you are using just another file, do you want to hit endpoint simple M-x(Execute) restclient-http-send-current which returns you json. Of course you can also bind it to keypress combination.&lt;/p&gt;
&lt;h2&gt;File to program&lt;/h2&gt;
&lt;p&gt;What I like about working in file, what ever syntax it is. I like the simplicity and reusing everything what I learned and setup in my own working environment and use that in file to generate something. Do you want make pdf thesis ? well, you can use LaTeX and generate PDF out of it. Do you need to reffer other scientific papers, keep list with Bibtex and autogenerate the rest. Don’t like LaTeX ? There is other format called Org-mode which you can use to write your document and fallback to LaTeX when needed, and best part it is as simple as Markdown.&lt;/p&gt;
&lt;p&gt;There are other programs which consume some kind of file with some kind of syntax, and I bet they are more pleasent to work with than any kind of fancy UI, and faster too. Speed is adictive and be able to copy and modify, or abstract to function is the best feeling when trying to do something complicated.&lt;/p&gt;
&lt;h2&gt;List of suggested programs which are file based.&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Org-mode (basically can create anything, even graphs, and generate any result from any programming language)&lt;/li&gt;
&lt;li&gt;Restclient.el&lt;/li&gt;
&lt;li&gt;Magit (text based git ui)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/PostgREST/postgrest&quot;&gt;PostgREST&lt;/a&gt; is API for your PostgreSQL database and the best part, is that you need to just write couple of SQL queries and REST API is generated for you.&lt;/li&gt;
&lt;li&gt;Diagrams ? &lt;a href=&quot;http://lgfang.github.io/computer/2015/12/11/org-diagram&quot;&gt;org-diagram &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Need to convert some file to other file ? &lt;a href=&quot;https://pandoc.org/&quot;&gt;https://pandoc.org/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  
  <entry>
    <title>Re-thinking Social media</title>
    <link href="https://rafaj.dev/b/social-media/"/>
    <updated>2021-01-12T00:00:00Z</updated>
    <id>https://rafaj.dev/b/social-media/</id>
    <content type="html">&lt;p&gt;What is Social media and what makes is social ? I believe that social media, is about connecting to people, sharing with people we know and colaborating on ideas. Do we need to earn money on our social media content ? I don’t think we need to. We share information with others, because we want to reach them fast and easily by publishing written post or captured photo. What is beautifull is that our friends an people who follow us (subscribe to our content) can read/check our content when they have time.&lt;/p&gt;
&lt;p&gt;By thinking about core principle of social media, we have content we create (Public or private) and then we have content, we want to consume (feed content). What makes social media great, is ease of content creation and content consumption. So my question is, is there any way to create these two, without need of 3th party website which handles that for us ?&lt;/p&gt;
&lt;h2&gt;Rethinking the content creation&lt;/h2&gt;
&lt;p&gt;I don’t know about you, but I think content creation which could be in form of facebook post, or twitter tweet can be done easily on your own website. Nowadays, one can buy cheap 30€ microcomputer and host their own website, making it accessible for everyone. Well and you need domain, but that is it. You don’t need much, the energy cost is negligible and with the computation power you need it is more than enough. If you don’t want to fiddle with microcomputer, you can host it on many 3th party websites which are more than happy to host it for you, for free. But what is the best, is the control you get, you decide what information you publish, what information share with only few people and no company is claiming ownership rights on your content.&lt;/p&gt;
&lt;p&gt;What is current issue with this approach is that not everybody knows how to set it up. What if I told you that you can do it with little bit of help and following tutorial.&lt;/p&gt;
&lt;h2&gt;Consuming the content&lt;/h2&gt;
&lt;p&gt;There is a way to consume the content other publish, and there are mulptiple ways how to achieve that, but in practice, you copy the url you want to follow on, and server will pull the change which you can later read on your own site. Having feed reader on your own website, makes it that you decide how to visualy consume the content and deciding how you want to group, what algorithm you want to use and more. The core point of this, that you need to have control of the content you produce, and consume, then everything is possible and processes could be improve to suit your need and desire.&lt;/p&gt;
&lt;h2&gt;Publish once, repost everywhere else&lt;/h2&gt;
&lt;p&gt;You can publish your own content on your own website, and repost your content on other sites to be able reach peolpe on the specific platform.&lt;/p&gt;
&lt;h2&gt;Where is it then ?&lt;/h2&gt;
&lt;p&gt;Well, technically it is possible, practically somebody has to create it for you. If you are interested in this idea, please contact me. I would like to improve current situation and make web distributed again.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Offline first</title>
    <link href="https://rafaj.dev/b/offline-first/"/>
    <updated>2020-12-22T00:00:00Z</updated>
    <id>https://rafaj.dev/b/offline-first/</id>
    <content type="html">&lt;p&gt;Offline first application will force you to design website which performs overall better than otherwise javascript infested application performs.&lt;/p&gt;
</content>
  </entry>
  
  <entry>
    <title>Init</title>
    <link href="https://rafaj.dev/b/init/"/>
    <updated>2020-10-10T00:00:00Z</updated>
    <id>https://rafaj.dev/b/init/</id>
    <content type="html">&lt;p&gt;Ownership of my data starts now. 2020 is the year.&lt;/p&gt;
</content>
  </entry>
</feed>
