利用虚拟机软路由负载均衡拓展带宽

前提:

  • 假定所使用的计算机能够使用虚拟机(256MB RAM 512 MB HDD 应该没有什么带不动的吧),通过固定且稳定的方式连接到局域网。
  • 虚拟机的虚拟网卡能够正常工作。
  • 假定局域网设定每IP地址限速。

原理:

将虚拟机的网卡桥接到局域网,宿主机与虚拟机通讯获取数据。虚拟机上的软路由通过负载均衡将数据包均衡分配给多个桥接网卡。由于每个桥接网卡都有其自己的局域网IP,所以每个桥接网卡能够获得到同等的带宽。宿主机把自身的流量收发交给虚拟机来分配,其理论网速将得到提升。(实际下载速度提升仅限于P2P和多线程下载,一般的单线程P2S测速网站不能够体现效果,如Speedtest.net。)

Continue reading

脑内开坑: 歌语计划屏保。

Keng: Gy Screensaver.

1, fetch information from Gy server

File format:
possibly XML, or JSON?
Consist of all of posts

Separated API port for update date.
Program checks the update date  compare to the local one. If the later one is newer, then update the local list.
Use local list for poor our unavailable internet connection.

2, the main body.

pick lyric from random if picked(a)=false.
label picked(a)=true,
lyric shown count +=1
if lyric shown = size(lyric array) then {lyric shown =0, fill picked(all)=0}
Draw lyric text in a time interval (#setting)

Randomize text size, color, position
Range of text size (#setting)
Range of color: complete hue,
Saturation and brightness are decided such that the text it’s visible on dark/black/starry background.
Text align to center,
[Detect pixel length/height of longest line,
Make a 10-20 px margin,
Draw text,  and start timer.
last time of line(a) = length(line(a)) * time factor (speed, #setting)
enter animation: typewriter,
exit animation: fade out, .5s
transition: exit,exit end,enter
after object finish, destroy object

3, otherwise, on web?

directly fetch items number and single item from server by ajax. other applies.

// God said, “come and get a new laptop.”

God said, “come and get a new laptop.”

Like so, another problem comes to this “choice phobia patient”. Although this may not be something  to worry about see agenda below, it’s still a thing that will live with me for another few years….. It should be important for me to think about it.

a. Agenda (just a temporary one)

By this June holiday – Decide which module to buy and purchase (remotely).
From June to November – Device is being tested in “Heaven”
By End-of-year holiday – I’d get it and start a new journey on it.

b. My requirement

Yea, I know that would be a lot, and complicated, which may also go beyond what I can comprehend. So I’ll try my best to filter out the whole myriad of laptops. Anyway, let me list them down first.
A Chinese version is prepared for posts on forums for help.

  • 首先要是一台笔记本电脑(废话)
  • 预算:四位数(即≤9999.99 RMB)(暂定)
  • 期望:
    • 配置可以承受得住本人折腾。比如说:
      内存狂魔Chrome20+标签 / PS大图 / AI渲染等等
    • 兼容性要好。
      能够(尽量完美)兼容各种系统(最挑剔的也就是黑苹果了吧)
    • 续航尽量长

未完待续/ To be continued….

 

Footnote:
Obviously, “god” and “heaven” represents my parent and my home.