How to extract a zip archive with Python on Windows

Have you ever been asked or wonder how to learning a programming language? If not, then you can skip this blog post. :-) At work, a coworker said to me “I want to learn a programming language. Where do I start or how do I even start it?” I was asked this question because I had explicitly expressed my interest to my teams that I like programming a lot, though programming is not being used my professional career at the moment. ...

September 26, 2023 · 3 min · 466 words · kenno

How to Zip a file using command line

I normally use gzip for file compression. However, there is time when you want to share a compressed file with Windows users and you want to avoid them cursing at you. One good solution is to use zip compression (even if I had to learn how to do it on a Linux machine). Well, like always we can run man zip to learn more about it, but since you’re reading this, it is unlikely that you’re doing that. So, here is how you can do it. ...

May 22, 2023 · 1 min · 141 words · kenno

ការបង្កើត zip file ជាមួយលីណាក់/យូនិច

តាំងពីបានប្រើលីណាក់មក ខ្ញុំពុំសូវដែលបានបង្រួមឯកសារជាមួយ zipទេ ភាកច្រើនខ្ញុំបង្កើត gzip។​​ ហេតុអ្វី? គិតថា gzip វាស្រួលបង្កើតជាងនិងដោយសារតំរួវការនៅសាលាផងនោះ។ ប៉ុន្តែយើងក៏មិនអាចជៀសវាង មិនប្រើ zip​សោះដែរ។ ឧទាហរណ៍ ថ្ងៃនេះ មិត្តរបស់ខ្ញុំម្នាក់សួរខ្ញុំពីរបៀបបង្រួមឯកសារទៅជា zip ខ្ញុំស្រាប់តែស្រឡាំងកាំងតែម្តង។ ខ្ញុំសាកធ្វើដូចនេះ៖ $ ls dir1 $ zip file1.zip dir1 adding: dir1/ (stored 0%) មើលទៅហាក់ដូចជាដំណើរការ តែតាមពិត ឯកសារដែលនៅក្នុង dir1 អត់បានបញ្ចូលក្នុង file1.zip ទេ។ ដូចស័ព្ទដង អោយតែមានការងើងឆ្ងល់អ្វីមួយនោះ ខ្ញុំតែងតែសាកស្វែងរកជាមួយគូកឹល។ នេះគឺជាការបញ្ជាសំរាប់បង្រួម​ឯកសារដែលត្រឹមត្រូវ៖ $ zip -r file1.zip dir1 adding: dir1/ (stored 0%) adding: dir1/myimage.jpg (stored 0%) ប្រភពដើម

November 5, 2006 · 1 min · 54 words · kenno