zsh compinit: insecure directories, run compaudit for list.Ignore insecure directories and continue [y] or abort compinit [n]?
skip_global_compinit=1
compaudit # find out insecure directoriessudo chown -R yourname /usr/local/share/zsh
zsh compinit: insecure directories, run compaudit for list.Ignore insecure directories and continue [y] or abort compinit [n]?
skip_global_compinit=1
compaudit # find out insecure directoriessudo chown -R yourname /usr/local/share/zsh
E: Problem parsing dependency 21 of libc6-dev-s390x-cross:all=2.31-0ubuntu7cross1E: Error occurred while processing libc6-dev-s390x-cross (NewVersion2)E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_focal_main_binary-amd64_PackagesE: The package lists or status file could not be parsed or opened.
Do these:
sudo rm -fr /var/cache/apt/archives/*
sudo dpkg --clear-avail
sudo rm -fr /var/lib/apt/lists/*
sudo apt update
https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/precincts/PAGeneralConcatenator-2020-11-04T01:02:56.961Z.json
in Firefox, click "Raw Data", then search for "chester" a few times.
How many more of these half million votes are fraudulent? Most of them are. Again realized this fraud vote dump was too apparent, in #11 at 2:22GMT or 9:22PM EST, they removed a total of 586189 votes! Which votes did they remove? I don't know. But I do know that those fraudulent Chester county votes were not removed. The next Chester vote update wouldn't come until 3 hours later at 5:27GMT (or 0:27 EST).
After #11 huge vote reduction, Biden still hold 200K margin over Trump. From this point on, Trump was able to catch up and leap over. The "glitch" that was caught on CNN where exactly 19958 votes were removed from Trump and added to Biden's total, happened at 4:08GMT (11:08pm EST). As Trump continued gain momentum, at 2am EST in the morning he had a 700K margin over Biden. Then came the big nation wide coordinated "halt", and vote dumps afterward that miraculously narrow the gap. They have everyone's attention.
But I think just like the one in Maricopa county, the huge early Biden head-start in Pennsylvania need more attention. The first 50 vote dumps out of Pennsylvania were complete mess. Some of them got cleaned up, but a good number of fraudulent votes are still there and in the final total. They should be investigated and taken out. The 421:233 Chester votes are still there. The 75K Biden/Trump ratio 16.5 Philly votes are still there. The 73K B/T 8:1 ratio Montgomery votes are still there. The 30K 4:1 Centre votes are still there. If even half of 200K early fraudulent Biden margin is taken out, Trump would win Pennsylvania (Biden's margin is 82K)
ffmpeg -protocol_whitelist file,http,https,tcp,tls -allowed_extensions ALL -i playlist.m3u8 -bsf:a aac_adtstoasc -c copy out.mp4
sudo systemctl disable apt-daily.timerthen edit 2 files:
sudo systemctl disable apt-daily-upgrade.timer
sudo vi /etc/apt/apt.conf.d/10periodicIn both files, change "1" to "0".
sudo vi /etc/apt/apt.conf.d/20auto-upgrades
ffmpeg -f concat -i files.txt -vf "select=not(mod(n\,30)),setpts=N/(FRAME_RATE*TB)" -vcodec rawvideo -pix_fmt yuv420p -an raw.yuvBecause this is uncompressed raw video, its size will be huge, probably tens of GigBytes. You probably don't want to play it on your computer, let alone uploaded to youtube. To make it playable, we need to compress it to mp4 format:
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1920x1080 -i raw.yuv -vcodec libx264 video.mp4You can see an example of the time lapsed video here:
I run it with "uvicorn example:app", then measure rps using 'ab':from starlette.responses import PlainTextResponse async def app(scope, receive, send): assert scope['type'] == 'http' response = PlainTextResponse('Hello, world!') await response(scope, receive, send)
ab -n 1000 -c 10 127.0.0.1:8000/The result is on average 4200 requests per second.
Using the same measurement, the ab result is a average 1900 requests/second.import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler), ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start()
(and put "from tornado.httpserver import HTTPServer" at the beginning of the file), its performance increases to 4700 requests/second, actually faster than Starlette.server = HTTPServer(app) server.bind(8888) server.start(0)
uvicorn --workers 4 example:appThe result now is 7500 requests/second, surpassing multi-process Tornado again.
cd drjava/drjava
ant jar
return DateTime::TimeZone->new(name => 'Asia/Shanghai');(Replace 'Asia/Shanghai' with your own timezone.)
use List::Util 1.31 ();Just delete '1.31'.
vboxmanage modifyhd u140464-02-disk1.vmdk --resize 30000What?!
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
vboxmanage clonehd u140464-02-disk1.vmdk u140464-02-disk1.vdi --format vdiThen detach vmdk disk from the VM and attach the vdi.
vboxmanage modifyhd u140464-02-disk1.vdi --resize 30000
sudo fdisk /dev/sdathen enter p, it showed:
Device Boot Start End Blocks Id SystemEnter n to create a new partition, press enter 2 times to accept default partition size. For some reason, there was a stray segment, so I have to enter n again to create a new partition. 2 partitions were created, after a p, my partition table looked like this:
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 33552383 16525313 5 Extended
/dev/sda5 501760 33552383 16525312 8e Linux LVM
Device Boot Start End Blocks Id Systemsda3 is useless, so I deleted it by a 'd' followed by a '3'. sda4 is the one I will use. Enter 'w' to write to disk. Then reboot the VM.
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 33552383 16525313 5 Extended
/dev/sda3 499712 501757 1023 83 Linux
/dev/sda4 33552384 61439999 13943808 83 Linux
/dev/sda5 501760 33552383 16525312 8e Linux LVM
sudo mkfs.ext4 /dev/sda4My /opt was not used, so I just mount sda4 as /opt
sudo mount /dev/sda4 /optAdd "/dev/sda4 /opt ext4 defaults 0 2" to the end of /etc/fstab so it was mounted automatically at boot.
"sudo service network-manager restart"Now both vpn and ethernet connections are managed by NetworkManager, turning on VPN just works.
ffmpeg -i video1.mov -vcodec wmv2 -acodec wmav2 -f asf video1.wmvThe resulting video quality is usually not very good, the images are often pixelated. To get better video quality, you need to specify bitrate:
ffmpeg -i video1.mov -b 1500k -vcodec wmv2 -acodec wmav2 -f asf video1.wmvHere I specified 1500kbps bitrate. You can set higher bitrate. Of course it doesn’t make sense to go above the video’s original bitrate. You can find the a video’s original bitrate from ffmpeg output or on Windows, right click the video file and select “Properties” then “Details” tab. Try different bitrates and select a lower one while still maintaining an image quality. Often times, I want to keep my video (and therefore the size of PowerPoint) small by shrinking the video (e.g. 320x240) like this:
ffmpeg -i video2.mp4 -vcodec wmv2 -acodec wmav2 -f asf -s 320x240 video2.wmvSmall video has an marginal benefit besides small file size: because the image size is small, the effect of pixilation is markedly reduced. Even with smaller size, with several videos in the Powerpoint, the file can still be too large to be sent with email(gmail and yahoo mail have 25Meg limit). To solve this problem, I usually just embed small, low quality, incomplete “teaser” videos with notes and links to complete 1080p videos I (pre)uploaded on youtube. To cut a 30 second video, starts from 5 seconds at original video:
ffmpeg -i 027.MOV -ss 00:05 -t 30 -vcodec wmv2 -acodec wmav2 -f asf -s 480x270 027s.wmvMy original 1 minute 1920x1080 video is 180MB, the half-minute “teaser” video is only 1.1MB.