最新 | 最热门 | 最高评价

+0  最适合程序员的笔记软件

Tag: Developer
阮一峰 发于 2021年08月26日 08:42 | 点击: 1074 | 展开摘要
程序员的笔记软件,应该满足下面几个条件。

(1)跨平台,同时支持桌面电脑(Windows,Mac,Linux)和手机(Android,iOS)。

(2)随时同步,打开任何一台机器,都能接着上一次的工作继续写。

(3)实时存储,如果软件突然关闭,也不会丢失内容。

(4)支持 Markdown 格式,便于后期直接发布。

(5)支持推送到远程 Git 仓库,产生历史版本,同时作为远程备份。

我一直在寻找符合这些条件的工具,但是市场上大部分的笔记软件,都不支持上面的第5点

查看全文: http://www.udpwork.com/item/18125.html

+0  Kubeflow deployment: part 2

Tag: develope | Kubeflow
ROBIN DONG 发于 2021年08月20日 14:55 | 点击: 352 | 展开摘要
Instead of using other strange components of Kubeflow, we can just use Kubeflow Pipelines which is much easier to be deployed and used.

After deployment (less than 20 minutes), I test my first example and it succeeded:

import kfp
from kf

查看全文: http://www.udpwork.com/item/18129.html

+0  Some tips in groovy of Jenkins

Tag: develope
ROBIN DONG 发于 2021年07月23日 08:23 | 点击: 336 | 展开摘要
Groovy could be used as the configuration file for Jenkins workflow. Although I totally don’t make head or tail of Groovy, its syntax is not hard to learn.

How to iterate a list

To export a bunch of tables to CSV format, we could us

查看全文: http://www.udpwork.com/item/18002.html

+0  How to paste in Vim

Tag: develope
ROBIN DONG 发于 2021年07月16日 09:29 | 点击: 348 | 展开摘要
After I have written the SQL on BigQuery’s UI:

SELECT
first_column
FROM
`project.dataset.table`
ORDER BY
`first_column` ASC
LIMIT
1000

I tried to copy it to my Vim editor through “Ctrl + c” and “Ctrl + v

查看全文: http://www.udpwork.com/item/18003.html

+0  The “real size” of hex file for AVR microcontroller

Tag: develope | AVR
ROBIN DONG 发于 2021年07月08日 18:35 | 点击: 301 | 展开摘要
Recently I dug out my USBasp tool and a few AVR microcontrollers, for enjoying programming the C language again. Unexpectedly, the old ATTINY2313V and ATmega88V couldn’t work with my USBasp tool (maybe they have already been fused wit

查看全文: http://www.udpwork.com/item/18004.html

+0  Be careful with random generate number

Tag: develope | numpy
ROBIN DONG 发于 2021年05月27日 13:50 | 点击: 314 | 展开摘要
This is the program I have used for a month:

import numpy as np

np.random.seed(202105)
rand = np.random.rand()

# business logic code using 'rand'

Then I add another np.random.rand() in the head of the code, and this time the output data

查看全文: http://www.udpwork.com/item/17904.html

+0  Trace memory error of CUDA program

Tag: develope | CUDA
ROBIN DONG 发于 2021年05月14日 08:57 | 点击: 366 | 展开摘要
The program which used CUDA for computing in GPU reported error about memory:

terminate called after throwing an instance of 'std::runtime_error'
what(): [CUDA] an illegal memory access was encountered LightGBM/src/treelearner/cuda_tree

查看全文: http://www.udpwork.com/item/17651.html

+0  软件工程的最大难题

Tag: Developer
阮一峰 发于 2021年05月10日 08:25 | 点击: 403 | 展开摘要
一、引言

大学有一门课程《软件工程》,研究如何组织和管理软件项目。

说实话,这门课不适合本科生,因为学生可能体会不到,课程到底要解决什么问题。只有亲身参与过大项目的开发,经历过大团队,才能感受为什么软件工程很重要,又很难做对。

软件开发有一个难题,叫做"扩展"(scaling),即怎样服务更多的用户。 你有10000个并发用户,跟你有10个并发用户,这是完全不同的概念,哪怕功能完全相同,背后的实现是完全不一样的。并发用户数上升一个数量级,软件就必须重构,大量问题随之产生

查看全文: http://www.udpwork.com/item/17594.html

+0  Migrate Spark job to BigQuery

Tag: develope | BigQuery | Parquet
ROBIN DONG 发于 2021年05月07日 08:45 | 点击: 361 | 展开摘要
I have just finished a work about migrating Spark job to BigQuery, or more precisely: migrate Python code to SQL. It’s a tedious work but improve the performance significantly: from 4 hours runtime of PySpark to half an hour on BigQue

查看全文: http://www.udpwork.com/item/17652.html

+0  Take care of the comma (in Python)

Tag: develope | python
ROBIN DONG 发于 2021年04月29日 12:06 | 点击: 470 | 展开摘要
Think about the result of this snippet:

def concat(a, b):
return a + "_" + b

left = "hello",
right = "world"

print(concat(left, right))

Should be “hello_world”, right?

But the actual result

查看全文: http://www.udpwork.com/item/17653.html

+0  Be careful when you use “isin()” method in Pandas

Tag: develope | pandas
ROBIN DONG 发于 2021年04月09日 12:17 | 点击: 324 | 展开摘要
import pandas as pd

df_excl = pd.DataFrame({"id": ["12345"]})
df = pd.DataFrame({"id": ["12345", "67890"]})

result = df[~df.id.isin(df_excl[["id"]])]
print(result)

Guess what

查看全文: http://www.udpwork.com/item/17655.html

+0  An error about multiprocessing of Python

Tag: develope | python
ROBIN DONG 发于 2021年04月08日 08:56 | 点击: 442 | 展开摘要
Our python program reported errors when running a new dataset:

[77 rows x 4 columns]]'. Reason: 'error("'i' format requires -2147483648 <= number <= 2147483647",)'
multiprocessing.pool.MaybeEncodingError: Error sending resu

查看全文: http://www.udpwork.com/item/17656.html
|<<<1234567>>>| 一共15页, 171条记录