问题标签 [readable]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
10 回答
1450 浏览

encoding - 是否存在可发音的编码?

我正在使用 UUID,但它们的阅读、写作和交流并不是特别好。所以我想对它们进行编码。我可以使用 base64 或 base32,但无论如何它们都不容易:base64 有大写字母和符号。Base32 好一点,但你仍然可以获得笨拙的东西。

我想知道是否有一种很好且干净的方法可以将数字编码为可口的音素,以便获得更好的可读性并希望有一点压缩。

0 投票
1 回答
86 浏览

asp.net - 关于使文本框可读的查询?

我有一个 mvc 应用程序,我想让 texbox 可读,我使用了以下语法它不起作用。请告诉我哪里出错了

在此先感谢丽兹

0 投票
1 回答
1961 浏览

c# - Howto:在使用 C# 进行 OCR 之前提高 PDF 质量

我正在创建一个服务来监视扫描文件的文件夹。一旦文件存在,该服务就会将其拾取,并将其转换为可读的 PDF。在此过程中,该服务还会搜索条形码。在此之后,提取文本并将文件及其文本存储到我们软件的数据库中。位置基于条形码。

现在,对于 OCR,我们使用的是 Atalasoft ( http://www.atalasoft.com/ ) 的 SDK。此 SDK 中还包含条码识别器。

但是转换后的文本仍然存在一些错误。(我用其他 OCR 程序进行了一些测试,但 Atalasoft 的结果很好。)我正在寻找一些软件(SDK-kit),它可以让我提高用于 OCR 目的的 PDF 的质量。

我测试了 Kofax VRS Elite ( http://www.kofax.com/vrs-virtualrescan/ )。我正在寻找类似的东西,但可以使用某种 SDK 套件在服务中实现。

任何人以前这样做过,或有类似的问题?提前谢谢!

0 投票
2 回答
1600 浏览

tcl - 如何检查标准输入在 TCL 中是否可读?

使用以下命令,您可以注册一些回调stdin

这意味着在执行更新命令期间,thatCallback当有可用输入时,它将一次又一次地评估stdin

如何检查输入是否可用stdin

0 投票
1 回答
281 浏览

python - 使用python程序提取后无法从gmail读取电子邮件内容

您好,我有一个 Python 程序,它能够从 gmail 获取电子邮件。一切正常,除了有一堆

那种东西。去掉 HTML 的电子邮件会清理这个问题吗?我什至不知道如何引用此内容,电子邮件是否使用特定语言编写?

ps ..我不得不删除一些,因为我不能发布图像。

0 投票
1 回答
100 浏览

php - 将行就绪文本格式化为人类可读的格式

有什么想法可以将行就绪的文本变成人类可读的格式?

例子

On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.

0 投票
1 回答
264 浏览

python - python 列表推导式的嵌套多少合适?

我是一个相对的 python 初学者,现在对这种语言相当熟悉,但仍在努力解决什么是“pythonic”而不是什么的问题。我想知道人们对这个问题的想法是什么。

例如,使用这行代码来计算从 peewee 数据库中提取的出租物业每周的平均成本:

它使用嵌套列表推导,这可能会造成混淆。

或者,我可以将内部理解粘贴到一个临时变量中:

这可能(有点)更容易阅读,但作为一名前 C++ 程序员,我不喜欢纯粹为了可读性而创建临时变量,因为它会使命名空间变得混乱,并可能为垃圾收集器带来更多工作。

另外我认为,如果读者不理解该变量纯粹是暂时的,如果有很多这样的变量,可能会使代码更加混乱。

因此,尽管有“平面比嵌套更好”的指导,我还是倾向于选择第一个选项而不是第二个选项……但是你们蟒蛇老手怎么看?

谢谢!
通用电气

0 投票
1 回答
881 浏览

spring-mvc - Spring MVC 3.2——NotReadablePropertyException

我的 Spring 3.2 应用程序中出现以下异常:

这是我的控制器中的方法。我将 ArrayList 放入命令对象中,因此稍后将 Bulletin 对象从命令对象中取出似乎会出现问题。

出于某种原因,问题被标记在页面顶部表单的行中,而我正在尝试做的是在顶部列出公告。这是JSP。有任何想法吗?

0 投票
1 回答
66 浏览

c++ - 如何明确让用户知道模板参数的要求?

例如,我有一堂课

想要生成更具可读性的代码。有什么好的设计可以明确地让用户知道模板参数的要求吗?

0 投票
1 回答
98 浏览

c - c - 欺骗可读字节

需要一点帮助

我只是想检查字节是否可读,我搜索了解决方案但没有找到

希望你能帮助我

如果字节可读,我有这个代码我需要如果标记那个cheak