<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by julia sut on Medium]]></title>
        <description><![CDATA[Stories by julia sut on Medium]]></description>
        <link>https://medium.com/@juliasutygina?source=rss-2681b8f0da82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yq0_3b-FGL9KDRyQazkRBA.jpeg</url>
            <title>Stories by julia sut on Medium</title>
            <link>https://medium.com/@juliasutygina?source=rss-2681b8f0da82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:41:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juliasutygina/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Your Phone Pictures’ Metadata Explained by a Junior Developer]]></title>
            <link>https://medium.com/@juliasutygina/your-phone-pictures-metadata-explained-by-a-junior-developer-49ee20bc6471?source=rss-2681b8f0da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/49ee20bc6471</guid>
            <category><![CDATA[exif]]></category>
            <dc:creator><![CDATA[julia sut]]></dc:creator>
            <pubDate>Mon, 17 Jan 2022 20:26:02 GMT</pubDate>
            <atom:updated>2022-01-17T20:26:02.514Z</atom:updated>
            <content:encoded><![CDATA[<h3>Phone Pictures’ Metadata Explained for a Junior Developer</h3><h4>Let’s see how we can use it during the development process and possibly come up with a few pet projects to work on</h4><p>I dare you to guess how many pictures are stored in your Recents folder without clicking that albums icon on your phone display :)</p><p>To my own surprise, I was off by a couple of thousands. I wonder if I will actually look through those five thousand images one day and what other curious facts those files could tell me.</p><p>Before googling what “<em>metadata</em>” stands for as well as “<em>EXIF</em>”, let’s see if we can learn by an example and define it on our own. For example, when I try to make this world a better place by posting a cute picture of my cat, this is what I believe I’m posting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1x5Wcof21_irKxD9CO_EoA.jpeg" /><figcaption>My fluffy cat Snowy</figcaption></figure><p>The reality is there is so much more to it; here is a short summary of what I’m actually exposing to the world:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oq_xukGECD0_DWeeqzoY4g.jpeg" /><figcaption>Same photo with EXIF data summary</figcaption></figure><p>Seeing this list makes me happy that my phone camera has restricted access to my location, otherwise it would have added the coordinates of my home straight into this picture, inviting everyone eager to stop by and say “hello”. But what would be even more valuable is the aggregate GPS from someone’s camera roll, as it contains patterns that can be analyzed to determine where they live, work, and what places they use frequently in their daily routine. Sounds like a privacy concern for some people. But then, how else would we get our photos conveniently sorted into neat photo albums and have short clips made for us as a reminder that “<em>on this day last year you were having fun at lake Tahoe</em>”?</p><p>Looking at the picture with EXIF data shown, we can already tell which phone was used, the time created, and the photo editing software used to crop a vertical picture from originally taken one in horizontal orientation.</p><p>The question arises, is it possible to erase this extra data at all? It is actually easy to do so by using special software, even online by going to websites like <a href="https://www.exifremove.com/">https://www.exifremove.com/</a> or <a href="https://www.exifdata.com/">https://www.exifdata.com/</a> or the command-line <a href="https://iptc.org/standards/photo-metadata/software-support/#pid4">ExifTool</a> can be run in a script to update many images at the same time. We’ll end up with the following result, short and sweet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyRub42GwIYVAFGeD4hpgQ.jpeg" /></figure><p>It is good to know that most social media platforms strip away the metadata from the personal pictures you upload (keeping it to themselves or not is another topic for discussion —think the location information for advertiser data mining purposes). EXIF data can take up to 15% of file size and is often lost during the compression process to save a few bytes of bandwidth. For developers and site administrators, it’s worth noting that stripping out metadata may infringe on the copyright holders’ rights if they exist and may even be illegal in some countries 🤔. It could be a good idea to check your image cropping and manipulation plugins for your CMS, as there are some that retain embedded metadata like the <a href="https://en-ca.wordpress.org/plugins/imagemagick-engine/">ImageMagick WordPress library</a>.</p><p>Now it is easier to understand what <strong>metadata</strong> is — information about the file itself. Picture metadata can be categorized into:</p><ul><li><a href="https://iptc.org/standards/photo-metadata/photo-metadata/"><em>descriptive</em></a><em> — </em>about the visual content in the form of a headline, caption, or keywords.</li><li><a href="https://iptc.org/standards/photo-metadata/photo-metadata/">a<em>dministrative</em></a><strong> </strong>— about creation date and location, instructions for the users, and other details.</li><li><a href="https://iptc.org/standards/photo-metadata/photo-metadata/"><em>rights</em></a><strong> </strong>— identification of the creator, copyright information, further rights usage terms.</li></ul><p>Picture metadata is stored in a <em>file structure format</em> called <strong>EXIF</strong>, which is short for <a href="https://en.wikipedia.org/wiki/Exif">EXchangeable Image File format</a>. EXIF metadata consists of a series of Tags and Values. It is used by digital cameras to store various information in pictures or images. Think of this data as a picture’s fingerprint for JPG files. Most digital cameras support EXIF and save the data in the file’s header information. There are several EXIF formats; therefore, the data can vary slightly. The table that lists all EXIF tags can be found <a href="https://exiftool.org/TagNames/EXIF.html">here</a>.</p><h3><strong>Interesting questions for writing your own program using pictures metadata</strong></h3><p>There are quite a few questions that occurred to me while doing my research on pictures’ metadata. For instance, if you were to write your own EXIF viewer or similar software that processes and sorts the photos, how would you filter out photos that contain metadata, iterate over it, extract or rewrite it, or “scrub” it off the photo altogether, or group the photos in separate directories according to the location/device or software they were taken by?</p><p>There are a number of Python modules that can access the EXIF data in digital photos. Some of the following open-source tools will be able to help us solve our questions.</p><h3>JavaScript and Python packages for image processing:</h3><ul><li><a href="https://pypi.org/project/exif/"><strong>exif module</strong></a> with a <a href="https://auth0.com/blog/read-edit-exif-metadata-in-photos-with-python/">handy article</a> by Auth0 on how to start using it with Python</li><li><a href="http://sourceforge.net/projects/exif-py/"><strong>exif.py</strong></a><strong> </strong>executes the Python script against one or more compatible image files and outputs all of the EXIF data to the console</li><li><a href="https://www.skypack.dev/view/exif"><strong>node-exif</strong></a> can extract Exif metadata from images (JPEG)</li><li><a href="https://www.skypack.dev/view/exif-js"><strong>exif-js</strong></a> can be used on images in the browser, either from an image or a file input element.</li></ul><p>Now, after exploring some of the tools and libraries and getting to know pictures metadata a bit closer, some more interesting questions arise.</p><ul><li>Was the image altered and is it possible to restore it?</li><li>How can we programmatically find related pictures or match the pictures stored on the device?</li><li>How do we make sure that EXIF data doesn’t get stripped away during the compression?</li><li>How do we inform the user that an app will be recording additional information?</li><li>How do we add warnings that pop up when a user is sharing pictures with their “home” geolocation tag?</li><li>If EXIF contains a thumbnail, has it been updated after the picture was altered?</li></ul><h3><strong>Algorithms and extra topics to explore</strong></h3><ul><li><a href="https://towardsdatascience.com/the-5-clustering-algorithms-data-scientists-need-to-know-a36d136ef68">Clustering algorithms</a></li><li><a href="https://en.wikipedia.org/wiki/Kernel_(image_processing)">Kernel (image processing)</a></li><li><a href="https://en.wikipedia.org/wiki/Convolutional_neural_network">Convolutional neural network</a></li><li><a href="https://en.wikipedia.org/wiki/Steganography">Steganography</a></li><li><a href="https://support.google.com/googleclips/answer/7545440?hl=en&amp;ref_topic=7334536">Google Clips</a></li></ul><h3><strong>Conclusion</strong></h3><p>Metadata is essential for identification and copyright protection. Metadata is also key to facilitating workflow, easily finding digital images via search — online or offline — and tracking image usage. There is a lot we can do to explore it better and write our own programs.</p><h4>Resources:</h4><ul><li><a href="https://www.consumerreports.org/privacy/what-can-you-tell-from-photo-exif-data-a2386546443/">How a Photo&#39;s Hidden &#39;Exif&#39; Data Exposes Your Personal Information</a></li><li><a href="https://www.sciencedirect.com/topics/computer-science/exchangeable-image-file-format">Exchangeable Image File Format</a></li><li><a href="https://auth0.com/blog/read-edit-exif-metadata-in-photos-with-python/">How to Read, Edit, and Erase Location and other EXIF Metadata from Your Photos With Python</a></li><li><a href="https://iptc.org/standards/photo-metadata/photo-metadata/">What is Photo Metadata - IPTC</a></li><li><a href="https://imageseo.io/does-exif-iptc-impact-images-seo/">Does EXIF data impact SEO ?</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49ee20bc6471" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WebSockets Explained by a Junior Developer]]></title>
            <link>https://medium.com/@juliasutygina/websockets-explained-by-a-junior-developer-46dc25f7c65d?source=rss-2681b8f0da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/46dc25f7c65d</guid>
            <category><![CDATA[websocket]]></category>
            <dc:creator><![CDATA[julia sut]]></dc:creator>
            <pubDate>Sun, 22 Aug 2021 18:41:17 GMT</pubDate>
            <atom:updated>2021-08-22T18:58:56.149Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>You may already be familiar with WebSockets technology. If not, let’s learn together</em></h4><p>When was the last time you went to the post office to get some stamps and mail a letter to your family? Maybe on Christmas, just for the fun of it? We are so used to the convenience of instant messaging and data exchange, that it became a standard user expectation of any app. The world is living in real-time now and WebSockets technology makes it all possible.</p><blockquote>If a user wanted to send 100 messages to the same person on a chat app, using HTTP 1.0, that would mean 100 separate request-response cycles. As for the lucky person on the receiving end of your hundred-message tirade, well, they would have to refresh the page to check to see if your stream of consciousness was still ongoing.</blockquote><figure><img alt="Cheerful ethnic friends browsing smartphone" src="https://cdn-images-1.medium.com/max/1024/1*rptuM_yRzwYpv9JkJmjBkg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@evelina-zhu-3179888?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Evelina Zhu</a> from <a href="https://www.pexels.com/photo/cheerful-ethnic-friends-browsing-smartphone-and-sitting-on-cottage-stairs-5737167/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><blockquote>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/Websockets_API"><strong>WebSocket API</strong></a> is an advanced technology that makes it possible to open a two-way interactive communication session between the user’s browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.</blockquote><h3>Protocol Overview</h3><p>WebSocket is a <em>stateful</em> web-based communication protocol, it is not designed around request-response. Before a client and server can exchange data, they must use the TCP (Transport Control Protocol) layer to establish the connection.</p><p>Initially, the connection is established through the HTTP request-response pair. The client sends a <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#exchanging_data_frames">handshake</a> first and the server responds to the handshake with an <em>upgraded header</em>(after authenticating and authorizing the client) for the upcoming requests.</p><p>Following this, the connection switches from HTTP over to WebSockets. We will see URI with the scheme of ws:// or wss:// instead of http:// or https://.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*ZnHGHJd5cgdlKreXjxUnIw.png" /></figure><p>An example of an HTTP GET request from the client to a ws:// URI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGKfrKLZHiSVwfWICaJAdw.png" /></figure><p>If the server accepts the connection, it returns a WebSocket handshake response like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pyKwvdhsu_AAoXYTNI7TA.png" /></figure><p>At this point, the network connection remains open and can be used to send WebSocket messages in either direction until the server or the client decides to tear it down.</p><figure><img alt="Cheerful surprised woman sitting with laptop open" src="https://cdn-images-1.medium.com/max/1024/1*caNfC9VFDqdFYHixEdw05w.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@olly?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Andrea Piacquadio</a> from <a href="https://www.pexels.com/photo/cheerful-surprised-woman-sitting-with-laptop-3762940/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>WebSocket connections enable the streaming of text strings and binary data via messages. WebSocket messages include a frame, payload, and data portion. Very little non-payload data gets sent across the existing network connection this way, which helps to dramatically reduce latency and overhead, especially when compared to the HTTP requests and streaming models.</p><blockquote>In December 2009, Google Chrome 4 was the first browser to ship full support for the standard, with WebSocket enabled by default.</blockquote><p><strong>What are WebSockets good for?</strong></p><ul><li>Real-time applications</li><li>Chat apps</li><li>Internet of Things</li><li>Online multiplayer games</li><li>Online auction bids</li><li>Cryptocurrency trackers</li><li>Realtime updating social feeds</li></ul><p>Here we can see that 98% of users have a compatible browser to use WebSockets:</p><p><a href="https://caniuse.com/websockets">Web Sockets | Can I use... Support tables for HTML5, CSS3, etc</a></p><p><strong>When we will not need to use WebSockets?</strong></p><ul><li>RESTful-API</li><li>Simple CMS</li><li>Retrieving resources without the need for ongoing updates</li></ul><p>Usage of REST over WebSocket or vice versa depends upon the type of application and scenario. For a real-time, scalable application, WebSocket is the ideal choice, less costly as compared to REST. Any application with lots of CRUD operation invites the use of RESTful style. At the end of the day, it is the requirement and scenario, which would decide WebSocket vs REST usage.</p><p>WebSockets are exciting for developers because they allow for <em>bidirectional</em> real-time communication between servers and clients making them unique against HTTP. <a href="https://www.leggetter.co.uk/real-time-web-technologies-guide/"><strong>Real-Time Web Technologies Guide</strong></a><strong> </strong>is a fantastic overview of the latest tech for using WebSockets.</p><p><a href="https://www.leggetter.co.uk/real-time-web-technologies-guide/">Real-Time Web Technologies Guide</a></p><h3>References &amp; further reading</h3><ul><li><a href="https://sookocheff.com/post/networking/how-do-websockets-work/">How Do WebSockets WebSockets Work</a></li><li><a href="https://medium.com/@td0m/what-are-web-sockets-what-about-rest-apis-b9c15fd72aac">What Are WebSockets?</a></li><li><a href="https://datatracker.ietf.org/doc/html/rfc6455">The WebSocket Protocol</a></li><li><a href="https://www.pubnub.com/guides/what-are-websockets-and-when-should-you-use-them/">What Are WebSockets, and When Should You Use Them?</a></li><li><a href="https://medium.com/@joshnbowen/learn-socket-io-in-2-hours-914f2c139ab1">Learn Socket.io in 2 Hours</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46dc25f7c65d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>