Categories
Nichijou

新电脑

去年打完暑假工后就打算买台新的笔记本准备大学用,可当时还不清楚具体要报什么专业,也就不好随便买笔记本,打算留到来年暑假再做决定。

今年四月份,陪伴了我快八年的 VAIO 笔记本电脑彻底报废,没能撑到高考后。

Categories
Nichijou

再见高中

高中的最后一年果然很忙, 九月份入学后就能感受到的压力每时每刻都在提醒我不久以后的高考。

Categories
Nichijou

Mosquichuelos

On March of this year, I received an email from Spanish Minister of Education, about a scholarship, participating in an English summer camp for a week in some city inside Spain, full-board, paying only 100 euros and costs of transport.

Talk with native English speakers for a whole week? I had never done that before, not even for a day. I wasn’t sure if I should sign up for it. At the same time, I had already got a summer job for two months, and I had to figure out a way to put them together.

After doing some research, the reviews from the Internet finally convinced me. In the end, it’s my last chance (an undergraduate can’t apply for it). The result came out at the end of April. But it wasn’t until the middle of May when I could see all the available locations.

All of them are located in the South of Spain, in cities like Cuenca, Cordoba, Jaen, etc., where the temperature goes pretty high during the summer. None of the nine locations was near the beach. We were able to pick from four weeks of July. The camp starts on Sunday’s afternoon and ends on Saturday’s morning.

I had three days to decide the location and do the payment. I can’t drive, neither someone could give a ride, so my only chance was to take a bus or a train. I feel very dizzy on cars, especially when most of the bus trips would take at least four hours from Madrid.

So I decided to take a high-speed train (AVE). It goes much faster as you could guess, and the price goes higher too. Never tried one of these before, but it would be definitely better than a bus.

I had to investigate which place of nine had the best transport options. From Madrid is easy to reach all of those locations, but the number of the train is also an important factor for me. I had to be there on Sunday at 5 pm. It would be much better if the train drops me off like 30 minutes earlier. And I picked Cordoba – Canada Verde. It has more than ten trains from Madrid every day, and there is one with arrives at 16:17, perfect.

The ticket was booked on the 10th of June after I had finished the University Entrance Exam (a.k.a Selectividad). And all I had to do was to wait, until the 30th of June.

Categories
Nichijou

What’s up

每年放假以前,总感觉暑假会有足够的时间来做我想做的事情,然而却不是这样子。每年的开学都让我猝不及防,感叹时间过的真快,迷迷糊糊的就度过了整个假期。

不同往年的家里蹲,这两个月半的时间大部分都花在了工作上,也算是踏入了社会,并赚到了点零花钱。回过头看,上班的每一天都是枯燥无趣的,重复着几乎一样的工作,忙上忙下,记忆如同被海水冲刷的沙滩一般。但在这样的环境下,时间过的尤其快,一个月似乎也没想象的那么难熬。

Categories
Blogging

回到原点

如你所见,我把博客从 Hugo 转移回了 WordPress。暑假开始后只写了一篇长文(朝圣之路),并不是因为没东西可写,而是把仅有的时间都花在了折腾博客程序上。

Categories
Development

Firebase limit access to certain domains

While I was developing Iridescent, due to the fact that it’s a internal project, I had to limit the access only to user with email of certain domains.

Categories
Development

Firestore Pagination

Cloud Firestore, aka Firestore, is an NoSQL database released by Google on October 2017, currently it is on beta stage. It’s the successor of old Firebase database (Realtime Database), and in my opinion, the biggest change would be querying. Firestore allows you to do query based on multiple fields, which is very useful to handle data.

When I was carrying out my project Iridescent, I realized that I needed to paginate data. As the project grows up, I can’t load 100+ data all by once. Firestore has a daily limit for document reads and bandwidth, so I have to try to reduce the usage.

At the same time, a long waiting time is not part of good user experience, and loading all data by once might cause lag on low-performance devices.

Categories
Development

Disqus2WP

Update: this tool does not work anymore due to Disqus’ export format change (GDPR), which removed commenter’s IP address and Email.

I had been using Ghost on 2015 ~ 2017. It’s a good blogging-platform, but it doesn’t have a built-in comment system, so I had to use a third-party comment service, which is Disqus.

Disqus isn’t a bad platform, in fact, I think it’s a great solution for those who doesn’t want to spend a lot of time investigating how to avoid spams or maintaining. At the same time, it has some great features like “Real time comments” or voting.

Except the loading speed.

Categories
Share

万物基于 MIUI

我的第一台智能机是 Xperia X8,出厂系统是 Android 1.6 Donut,可以更新到 Android 2.1 Eclair。

配置放在当时不算高:168MB 的 RAM,骁龙 S1,可用的内部储存只有128MB。日常使用还不是特别卡,但能装的软件真的很少,以至于后来我被逼的搞了个 Link2SD 来拓展内部空间。(把应用移动到外部储存的功能在 2.2 才被加入)

在接触到 XDA 后就开始了我的刷机之旅。那时只要开启ADB调试就能Root,完全不需要解锁内核。ROM 从2.2出到了4.1,自定义内核也出了好几个。

也是在这个时候我认识了 MIUI。

Categories
Share

Google Pay 体验小记

Google Pay是Google的移动支付服务,将存储于Google账户内的支付信息集成到各项Google产品服务中而更方便交易。Google Pay — 维基百科