Giter VIP home page Giter VIP logo

gitblog's Introduction

gitblog's People

Contributors

jasmine-liang avatar yihong0618 avatar

gitblog's Issues

Building record: Todo-list app using MVVM architecture

Show case, code -> Todolist app

output.compress-video-online.com.mp4

Day 1

Why Coordianate Layout?

  • I want ToolBar to collapse or hide. Google made it really easy by introducing AppBarLayout & CollapsingToolbarLayout, which both work best under a CoordinatorLayout.

Why Relative Layout?

  • RelativeLayout enables you to specify how child views are positioned relative to each other.

Trade-off using @Parcelize annotation

We know implementing Parcelable on an entity class so the entity object will be put into an Intent object and passed between activities/fragment. Is it a good practice? What about Repository pattern? android - Is it good practice implementing Parcelable on a Room database entity? - Stack Overflow

Additional knowledge

Switch Java Version on Archlinux

See what's installed:
archlinux-java status
Get a name of version you want to use, then issue this command,
sudo archlinux-java set JAVA-X-JDK JAVA-X-JDK is the name of the result from the status command.

[Solved]Can't connect to [local] MySQL server in Linux

Check the MYSQL Reference Manual

MySQL :: MySQL 5.6 Reference Manual :: B.3.2.2 Can't connect to [local] MySQL server
I know there are two ways of connecting the mysqld server in Unix, So I quckly found that the /tmp/mysql.sock was missing.

Solution

資料庫中mysql.sock不存在問題,Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) " - IT閱讀
Then use systemctl start mysqld.service to start the server.
Use systemctl status mysqld.service to check the status of the server.

Explore Living coding: Sonic-pi !

Music and code, but most of all: Have fun!

I really appreciate the combination of music and coding, hence I have so much fun playing around with it :-)
sonic-pi

What is Living code and how you can try it on youself?

Sonic Pi - The Live Coding Music Synth for Everyone
https://sonic-pi.net/

(Solved)Installation Issue in Archlinux distro

Unable to start on Manjaro Linux · Issue #2341 · sonic-pi-net/sonic-pi

因使用一个工具失败而探索到的关于隐私保护的问题

使用WechatMomentScreenshot

这是一个开源的朋友圈转发截图生成器,适用于当你被迫转发文案集赞才能使用某种产品的情景。我在Chrome和Firefox都简单手动测试了一下功能。发现在Chrome上生成不了图片。我就去项目的issue逛了一下看到有人是因为使用广告拦截插件而看不到生成的图片。我把注意点转向了Chrome上安装的插件🤔

找到你了! CanvasFingerprintBlock插件

非常粗暴地把每个插件都试了一遍,最后发现是这个插件在起作用。去Chrome web store看这个插件的介绍,再结合项目main.js里对toDataURL() 的使用,基本上这个插件是在防止生成的canvas向网站发送用户的个人数据。

Such websites do this by painting an image on a hidden HTML element and then taking a snapshot of it and posting the snapshot back to themselves. Because the exact pixel values in the drawn canvas can differ subtly from one set of hardware to another, these websites can use those differences to distinguish between visitors as well as to recognize specific visitors from one visit to the next.
我就很好奇是怎么从生成的canvas中的这些pixel values来辨别用户的。于是,我找到了一些解释。

Canvas fingerprinting的基本原理

Canvas fingerprinting works by exploiting the HTML5 canvas element: when a user visits a website their browser is instructed to “draw” a hidden line of text or 3D graphic that is then rendered into a single digital token, a potentially unique identifier to track users without any actual identifier persistence on the machine. Variations on installed GPU model, operating system and overall system performances cause the variations in the rendered digital token.

参考:

我还从 https://coveryourtracks.eff.org/ 这个网址上测试出我的Timezone, BrowserPlugin details(存在插件漏洞被利用风险), Device memory等很多个人信息呢:(

可以做点小小抵抗

除了 Coveryyourtracks 这篇文章提到的措施外,依据不同的需求分开使用浏览器也是个办法。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.