V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  DoodleSit  ›  全部回复第 3 页 / 共 6 页
回复总数  114
1  2  3  4  5  6  
2020-07-23 12:14:49 +08:00
回复了 jimmyismagic 创建的主题 程序员 为什么很多后端程序员认为前端很难学?
玛德搞了 9 年前端了
css,学了 Transformer 、Animation
css,知道了贝塞尔曲线、矩阵变换,回头看了下数学
html canvas,我又学了计算机图形学和 opengl
js 复杂计算,然后学了 WebAssembly,为了写 WebAssembly 代码,又学了 Rust
js 事件知道了事件派发和冒泡
要做混合 app,学了 android ( java )和 ios ( oc )
自己搭网站,学了 php laravel
公司用的是 spring,然后又学了 spring boot
。。。

现在,头发也掉光了,腰不行了,钱也没赚到多少
2020-07-21 12:52:39 +08:00
回复了 githubhaoliu 创建的主题 macOS MBP 外接显示器总是点不亮,谁能救救孩子
买那种苹果正品散件 1 拖三( usb 、hdmi 、typec )(无包装盒) 268
从没出现过问题
2020-07-21 12:46:01 +08:00
回复了 meisen 创建的主题 硬件 华为台式机
这个串口,是不是可以把抽屉的文曲星 1020 拿出来,使用星际驿站恢复下系统了
5Y2O5Li65LiN6ZyA6KaB6L2v6JGX77yM5aGr5LiA5Liq5YWN6LSj5Lmm5bCx5Y+v5Lul

base64
2020-07-08 12:39:58 +08:00
回复了 ShikiSuen 创建的主题 PHP Xiuno BBS 怎麼了?
nodeclub,香
2020-07-03 19:33:12 +08:00
回复了 shawnbluce 创建的主题 程序员 老哥们下班都做什么?感觉自己好无聊啊
当然是 PH 双击 666 啦
public interface StreamType {
static int NORMAL = 1;
static int ERROR = 2;
}

public class StreamReaderWorker implements StreamType, Callable<String> {

private int type;
private InputStream is;

public StreamReaderWorker(InputStream is, int type) {
this.is = is;
this.type = type;
}


@Override
public String call() throws Exception {
if (is == null) return null;
BufferedReader br = null;
InputStreamReader isr = null;
boolean isReadSth = false;
try {
isr = new InputStreamReader(is);
br = new BufferedReader(isr);
String line = null;
StringBuffer stringBuffer = new StringBuffer();
while ((line = br.readLine()) != null) {
isReadSth = true;
stringBuffer.append(line);
}
return stringBuffer.toString();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (br != null) br.close();
if (isr != null) isr.close();
} catch (IOException e) {
e.printStackTrace();
}
if (is != null) {
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return "";
}


}
```
private static Logger logger = LoggerFactory.getLogger(ShellCmd.class.getName());

private static final String COMMAND_SH = "sh";
private static final String COMMAND_LINE_END = "\n";
private static final String COMMAND_EXIT = "exit\n";
private static ExecutorService pool;

private static Process process(String command) {
Runtime rt = Runtime.getRuntime();
Process p = null;
try {
p = rt.exec(command);
} catch (IOException e) {
e.printStackTrace();
p = null;
}
return p;
}

private static void initPool() {
if (pool != null) {
pool.shutdownNow();
pool = null;
}
pool = Executors.newCachedThreadPool();
}

public static String exec(String command) {
if (RegexHelper.isEmpty(command)) return "nil";
int runningStatus = -1;
try {
initPool();
Process process = process(COMMAND_SH);
try {
DataOutputStream dos = new DataOutputStream(process.getOutputStream());
dos.write(command.getBytes());
dos.writeBytes(COMMAND_LINE_END);
dos.flush();
dos.writeBytes(COMMAND_EXIT);
dos.flush();
dos.close();
InputStream err = process.getErrorStream();
InputStream normal = process.getInputStream();
List<Future<String>> futureList = new ArrayList<>();
futureList.add(pool.submit(new StreamReaderWorker(normal, StreamType.NORMAL)));
futureList.add(pool.submit(new StreamReaderWorker(err, StreamType.ERROR)));
runningStatus = process.waitFor();
for (Future<String> future : futureList) {
try {
String str = future.get();
logger.warn(str);
} catch (ExecutionException e) {
e.printStackTrace();
}
}
process.destroy();
} catch (InterruptedException e) {
e.printStackTrace();
}

} catch (IOException e) {
e.printStackTrace();
}
return "" + runningStatus;
}
```

很早之前写的,用着没啥问题
2020-07-02 14:12:17 +08:00
回复了 hard2reg 创建的主题 硬件 为什么 2020 年了机箱前置还有 usb2.0?
特么配了一个 i9 64G 内存的 dell 主机,机箱后面还只有 vga 和 dp 的,hdmi 都没有!
2020-06-29 18:54:26 +08:00
回复了 yitiaoxiaoxi 创建的主题 互联网 最近有个想法,快来打醒我
重运营~
2020-06-22 18:06:49 +08:00
回复了 sugars 创建的主题 分享创造 开发一个用于小程序的画布库
支持,可以做一个 https://vmarker.sagocloud.com/ 这个功能的小程序版吗,实现标注,调整大小
2020-06-18 12:02:07 +08:00
回复了 moshou 创建的主题 分享创造 「我的物品 for iOS」 恋物爱好者的专属,新版本宣传下
还以为是一大堆的手办啊、娃娃之类的,失望~ 😄
app 做的挺好
SMB?
2020-06-17 12:38:10 +08:00
回复了 v2016 创建的主题 PHP 笔迹(Penlogs)免费的 typecho 托管计划
@SingeeKing 卧槽,这玩意还有人记得。。
2020-06-16 22:17:29 +08:00
回复了 guoqing4396 创建的主题 程序员 想搞一个免费看小说的 app,大家觉得需要有哪些功能点?
面向南山、面向阅文编程
2020-06-16 13:25:42 +08:00
回复了 zcxzzz 创建的主题 NGINX nginx 求助,反向代理 error.log 里不报错,但结果一直是 400
chmod 读的权限
1  2  3  4  5  6  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   949 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 40ms · UTC 19:31 · PVG 03:31 · LAX 12:31 · JFK 15:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.