duangsuse::Echo
717 subscribers
4.25K photos
130 videos
583 files
6.47K links
import this:
美而不丑、明而不暗、短而不凡、长而不乱,扁平不宽,读而后码,行之天下,勿托地上天国。
异常勿吞,难过勿过,叹一真理。效率是很重要,盲目最是低效。
简明是可靠的先验,不是可靠的祭品。
知其变,守其恒,为天下式;穷其变,知不穷,得地上势。知变守恒却穷变知新,我认真理,我不认真。

技术相干订阅~
另外有 throws 闲杂频道 @dsuset
转载频道 @dsusep
极小可能会有批评zf的消息 如有不适可退出
suse小站(面向运气编程): https://WOJS.org/#/
Download Telegram
Forwarded from LWL 的基地台
发现 TDLib 非常有趣的样子,感谢 jsw 介绍(
duangsuse::Echo
... 再附加上一个 DalvikVM 的 smali 汇编猜数游戏吧,然后教你们怎么用 enjarify、dex2jar 之类的(2333 jadx、jd-gui 什么的那种简单到爆炸的玩意就不教你们了,你用脚趾头都想得出来怎么用啊? 最后附上一句:我是擅长逆向工程的(迫真)(hhhh 开什么玩笑....
import java.lang.System;
import java.lang.Math;

import java.util.Scanner;

class Main {

static int getRand() { return (int) (Math.random() * 100); }

static void judge(int truth, int given) {
if (truth > given)
System.out.println("Too small");
else if (truth < given)
System.out.println("Too big");
else System.out.println("You win");
}

public static void main(final String... args) {
int rand, input;
final Scanner stdin = new Scanner(System.in);

loop: while (true) {
rand = getRand();

if (!stdin.hasNextInt()) break loop;
input = stdin.nextInt();

judge(rand, input);

continue loop;
}
}

}
duangsuse::Echo
import java.lang.System; import java.lang.Math; import java.util.Scanner; class Main { static int getRand() { return (int) (Math.random() * 100); } static void judge(int truth, int given) { if (truth > given) System.out.println("Too small");…
... 算了也没时间写了,写 Qt 去吧,感觉 judge() 里面那个 if 不是多好看似的... 反正是 Jawa 嘛
这次三个都没安排好... x86 汇编、ARM 汇编、Dalvik Smali,原因是我自己也不熟悉的东西教别人...
This media is not supported in your browser
VIEW IN TELEGRAM
Forwarded from duangsuse Throws
#life 掐指一算,我居然从下午三点死坐电脑前到晚上 11:50... 我居然死磕了足足 8 个小时一动也不动... 😶
Forwarded from METO 的涂鸦板
DNSPod 又开始各种炸了,我还是用 8.8.8.8 让 ISP 劫持走算了(
Forwarded from METO 的涂鸦板
内部章程明确规定周五不做变更,而且今天还是司庆日,完全没信心对外推荐腾讯云的服务。
duangsuse Throws
#life 掐指一算,我居然从下午三点死坐电脑前到晚上 11:50... 我居然死磕了足足 8 个小时一动也不动... 😶
这简直有毒啊,下面又双要熬夜伤身的还好我每周就这么一两次(迫真)要不然迟早猝死
This media is not supported in your browser
VIEW IN TELEGRAM
duangsuse::Echo
这简直有毒啊,下面又双要熬夜伤身的还好我每周就这么一两次(迫真)要不然迟早猝死
不能怪我,要怪就怪老师不识货我一定要给开源软件争气(迫真)
duangsuse::Echo
不能怪我,要怪就怪老师不识货我一定要给开源软件争气(迫真)
This media is not supported in your browser
VIEW IN TELEGRAM
btw. 比起 C++ 其实我反而更喜欢 C
btw. 但是 Qt 扩展的信号插槽机制也不错,很机智(识破)
https://github.com/duangsuse/randomSelection

目前正在斟酌是新建项目并且重写呢还是继续以前的项目
duangsuse::Echo
不能怪我,要怪就怪老师不识货我一定要给开源软件争气(迫真)
需要一个点名统计的功能,可惜找不到这样的软件 hhhh
「世界上最具备扩展性的 Qt 点名器 ChickPick (原名 randomSelection)」

「ChickPick Core」 #project #dev #qt #design #windows

命令行 pick.exe (Windows 下) Command line

pick [input = chicks.txt] [persis = -] [tasklog = -]
pick input [persis = -] [tasklog = -]
pick input persis [tasklog = -]
pick input persis tasklog

pick --help -h -help /help /h
pick --version -v -ver -version /ver /v /version
pick --options -opts /options /opts
pick --check -check -cf /check [file]
pick @respfile
pick --license -license /license
pick --makeini -makeini /makeini [output]
pick --gui /gui -gui

部分文件可以选用 !stdin !stdout !stderr

环境变量 Environment variables

FCOLOR
FFCOLOR
FFSIZE
FNAME
FPRESSDELAY
FPRESSALLOW

PFSIZE
PFCOLOR
PCOLOR
PDELAY
PWIDTH
PHEIGHT

RPOPLAST

RBATCHSIZE
RBATCHFILE
RURANDOM

(只读变量)
RLIST
RPFILE
RLFILE
RLASTITEM
RLASTINDEX
(结束只读变量)

VERSION

PLUGINS
ANIM
ANIMSPEED
LOGBATCH
LINESEP
SHOWTRAY
EMITSIG

ATEXIT
ATRANDOM
ATANIMSWITCH

标准项目结构 Standard project structure

Plugins/
Profiles/
Dicts/
Counts/
Logs/
chickPick.exe
chickPickWrapper.exe

文件 signature

文件:列表.txt,大小 8 Unicode 字符(10 项),文件校验码 xxxxx,总共点名 1 次(1 项被点过)

日志文件 Log file format

// 跳过一行文件标记
// 上次更新日期文本

<日期>
[时间] 名字

统计文件 Count file format

// 跳过一行文件标记

A: 2
B: 3

GUI 管理器 GUI Wrapper


列表
——
help | about | mode | setup 右击->profiles

mode 列表:
rand rc-> urand rc-> simplerand(使用非为平板设计的 UI,而不是悬浮窗)
count
logs rc->show all logs
edit rc->new

额外知识:
1. 为什么没有完全分开 wrapper 和核心
因为这样静态链接在 windows 上就很难受
2. 点名的是列表还是集合
有序列表,就是说可以通过调整人名出现的次数控制被抽中的可能性