CodingLife


  • Home

  • Archives

  • Tags

  • Search

Go多维map赋值

Posted on 2018-09-04

Go的map对标C++中的unordered_map<T1,T2>(底层hash),在Go中目前并没有类似C++STL中的map<T1,T2>(底层红黑树)。在使用多维map时,遇到一个坑…

Read more »

goroutine的GPM模型

Posted on 2018-09-02

goroutine 是 Go 最核心的特性。为什么它可以比多线程效率更高?底层的实现机制是怎样的?

Read more »

Linux Shell 常用命令

Posted on 2018-09-02

top

Read more »

Redis基本特性介绍、安装方法

Posted on 2018-09-02

Redis:REmote DIctionary Server 之前用的都是 SQL 关系型数据库,随着网络应用并发速度的要求提高,Redis 这种缓存数据库使用越来越多,有必要提前学习掌握相关知识以便实际中应用。

Read more »

Why Go?

Posted on 2018-08-31

Gopher

Read more »

多路复用select、poll到epoll

Posted on 2018-08-22

select

Read more »

C++ 利用int存储单词本及背单词状况

Posted on 2018-08-12

PS:这是一个以前遇到的设计问题,在这里记录一下思考过程

Read more »

算法学习,拓扑排序(Topological Order)

Posted on 2018-08-01

应用场景

Read more »

.net下TTS库的几个bug解决方案

Posted on 2018-07-15

问题:
用C#调用SAPI时,在播放声音时没有问题,但是在输出到音频.wav文件时,就无法在特定event调用回调函数。
解决方案:
无法通过event进行临时语音变更,只能提前扫描文本内容,针对特定模式提前转变读音格式。

Read more »

C# 如何在WinForm下实现透明控件

Posted on 2018-07-01

难点

C# WinForm开发时,想要实现漂亮的透明背景动画效果。默认情况下,背景都是一个灰度图片,最多可以换成白色。
如果想实现透明效果,只能根据大背景颜色,调整控件背景颜色。
但是一旦大背景或控件本身有纹理,则很容易看出来不是透明背景,效果很差。
使用继承的方式特别复杂,并且运行效率低。用下面的技巧可以避开复杂,实现透明部品。缺点是一个部品得占用一个对话框。 ``` I’ve found a workaround for this problem, which I have on my own. Most of what I’ve read over here is true. And the approaches “à la” AlphaBlendTextBox are way too complex or too time-consuming for some environments, already heavily charged. Assume you have a given background color and a given picture or whatever you want to see through the RichTextBox control.

Read more »
1 … 26 27 28 … 31
CodeHunter2006

CodeHunter2006

这里包括一些技术经验总结、生活随想和其他...

304 posts
11 categories
85 tags
RSS
GitHub
© 2025 CodeHunter2006
Powered by Jekyll
Theme - NexT.Muse