Zoe Tam

Software Engineer · Backend · System Design · GIS · FinTech · AI

0%

GeoTiff格式文件切片研究

用 Python 对 GeoTiff 文件进行切片相对容易,这里主要调研的是尝试用 Java 语言来对 GeoTiff 进行切片。

什么是GeoTiff文件?

GeoTiff文件切片的实现方式

ImageMagick

Gdal

Geotools

Research of Geotiff Format File Tile

It is relatively easy to slice GeoTiff type files using the python language, and the main investigation and research here is an attempt to slice Geotiff using the Java language.

What is GeoTiff File?

Implementations of Geotiff File Tile

ImageMagick

Gdal

Geotools

重构,夜未眠

为Activity定义新的生命周期

重点:单一职责->一个类或者方法,只做一件事情

Refactoring, Sleepless Nights

Defining a new lifecycle for Activity

Key point: single responsibility -> a class or a method should do only one thing

阅读全文Read more »

C++的并发世界

主要内容:

  • 什么是并发和多线程?
  • 为什么用并发和多线程?
  • 如何用并发和多线程?

The World of Concurrency in C++

Main topics:

  • What are concurrency and multithreading?
  • Why use concurrency and multithreading?
  • How do we use concurrency and multithreading?
阅读全文Read more »

Android学习心路历程

前言:

自从2016年加入了Android实验室,接触到了Android编程,购买了第一本Android开发相关的书《第一行代码》。我深深的被Android开发所吸引,可以说,在我学习编程的心路历程中,Android开发可以说是中间的一条线,一路贯穿了我的学习生涯。

Android learning journey

Foreword:

Since joining the Android Lab in 2016, I have been exposed to Android programming and purchased the first book “The First Line of Code” related to Android development. I am deeply attracted by Android development. It can be said that in my mental process of learning programming, Android development can be said to be the middle line, which runs through my learning career.

阅读全文Read more »

正则表达式

正则表达式是一种字符串匹配的一种模式,可以用于检测一个字符串是否包含某串、将匹配的字符串进行替换或者从一个字符串中提取符合某个条件的的子串等等

注:在C++中使用正则表达式进行字符串操作的时候,需要添加头文件 #include<regex>

Regular Expressions

A regular expression is a pattern for matching strings. You can use it to check whether a string contains a certain substring, to replace the matched parts, or to extract substrings that meet a condition, and so on.

Note: to work with regular expressions in C++, you need to include the header #include<regex>

阅读全文Read more »

Android开发岗个人面经

2020-05-13 字节跳动一面

这也是我人生中第一次经历的面试,也是第一次的线上面试,总的来说,真的很慌张,而且其实自己也知道准备的是不充分的,但是还是硬着头皮参加了,也算是一种人生经历吧。下面是字节跳动一面时候问到的问题,先列举出来,然后进行一个知识总结与概括:

  • 操作系统中死锁的概念
  • 产生死锁的方式
  • 排序,谈谈有什么排序算法,讲一讲时间复杂度,以及排序的“稳定性”
  • Java中 synchronized 与 Lock 区别
  • 单例模式实现,两种,多线程情况下的考虑
  • Android生命周期解析
  • Activity 之间的跳转生命周期是怎么变化的
  • Android中Handler与Message机制在多线程环境下的消息传输
  • 算法题:排序,有序的数组中找到某一目标值首次出现的下标,如:111122223334455666,问6第一次出现的数组下标为?(不可以用暴力)

下面是针对面试中提出的问题进行的知识上的储备。

My Android Developer Interview Notes

2020-05-13 ByteDance, first-round interview

This was the first interview of my life, and also my first online interview. Honestly, I was really nervous, and I knew I had not prepared enough, but I went ahead anyway. Call it a life experience. Below are the questions I was asked in the ByteDance first round. I list them first, then summarize the knowledge behind each one:

  • The concept of deadlock in operating systems
  • How deadlocks happen
  • Sorting: which sorting algorithms do you know, what are their time complexities, and what does “stability” mean for a sort
  • The difference between synchronized and Lock in Java
  • Two ways to implement the singleton pattern, and what to consider with multiple threads
  • The Android lifecycle
  • How the lifecycle changes when navigating between Activities
  • How Handler and Message pass messages between threads in Android
  • Coding question: in a sorted array, find the index of the first occurrence of a target value, e.g. in 111122223334455666, what is the index of the first 6? (No brute force allowed)

Below is what I studied to prepare for the questions from the interview.

阅读全文Read more »

原生数据类型与表达式

原生数据类型

  • 1.Java 中的原生数据类型共有 8 种:

    • 1) 整型:使用 int 表示。(32 位)

    • 2) 字节型:使用 byte 表示。(表示-128~127 之间的 256 个整数, 8 位)。

    • 3)短整型:使用 short 表示。(16 位)

    • 4)长整型:使用 long 表示。(64 位)

Primitive Data Types and Expressions

Primitive data types

  • 1.Java has 8 primitive data types:

    • 1) Integer: int (32 bits)

    • 2) Byte: byte (256 integers from -128 to 127, 8 bits)

    • 3) Short integer: short (16 bits)

    • 4) Long integer: long (64 bits)

阅读全文Read more »

Anaconda

网上对于Anaconda的安装是教程有很多,这里会为各位提供的是一个我当时安装时候所参考的链接地址。Anaconda的介绍、安装及使用教程

Anaconda

There are plenty of Anaconda installation tutorials online. Here is the link I followed when I installed it: Introduction, installation and usage of Anaconda (in Chinese)

阅读全文Read more »

Ubuntu+Windows双系统安装指南

写在前面:非常感谢Linux探索之旅在最初的时候给我的安装教程的指南,自己按照这篇教程安装双系统折腾了将近一个月,期间更是将Windows也给装炸了。。。于是乎重装系统,直到现在可以稳定的使用Ubuntu和Windows双系统。



Ubuntu+Windows dual system installation guide

A note before we start: I am very grateful to Linux Discovery Tour for the installation guide that got me started. I followed that tutorial to install a dual-boot system, and it took me nearly a month. Along the way I even broke Windows… so I reinstalled everything, and now I can use Ubuntu and Windows side by side reliably.



阅读全文Read more »