Yeah! You can now turn your PC to the WiFi hotspot. If your Windows 10 installed PC is connected to the cable (ADSL) Internet so you can have your cellphone connected too, just do following steps:
1. Run Command Prompt as administrator. You can press Win + X and select “Command Prompt (Admin)”.
2. Run following command there (use your favorite username and password):
netsh wlan set hostednetwork mode=allow ssid=username key=password
3. Start the hosted network you have created already:
netsh wlan start hostednetwork
4. Now search “View Network Connections” in the start menu.
5. Right-Click on your active Ethernet connection and choose “Properties”.
6. In “Sharing” tab check “Allow other network users to connect through this computer’ internet connection”.
7. In the drop down menu choose the added connection with command you just have run.
Composer used to make PHP development very easier but not anymore! Now it’s one of requirement for any PHP projects. Now I show you hot to use this awesome and how you fall in love with it!
Continue reading How to use composer in PHP projects
What is Dependency Injection?
A Dependency is an object that can be used. An Injection is the passing of a dependency (object) to a dependent object that would use it. Eventually, Dependency Injection means giving the object all the dependencies (needed objects).
For example, a
User object uses a
Mailer object to send welcome email. In this example the
Mailer object is a dependency for the
User object. We can ascribe this dependency to classes as well. Now, we should pass
Mailer instance to
User object instead of creating new instance of
Mailer in the
Continue reading Dependency Injection in PHP
What is Quicksort?
Quicksort is a divide and conquer algorithm. It first divides a large list into two smaller sub-lists and then recursively sort the two sub-lists. If we want to sort an array without any extra space, Quicksort is a good option. On average, time complexity is O(n log(n)). Continue reading Quicksort array in Java
Logging is one of the most important parts of software development. When the project getting larger, debugging without a logging system is completely impossible. Developers really need a sufficient logging system!
Logging means store software errors (alerts, warning and so on) with a perfect details. They just could be stored in a directory (In my opinion, the best one), database or even be sent to an email (In my opinion, the worst one!).
Logs illuminates the way of debugging. When error occurs, you won’t tell unknown users the details, just say “Oops!” or something like that, and log all details you need, then you can find the bug easily…
Continue reading Logging in PHP with PHPLogger
Recently I was working on a personal project. It needed to compress MP3 files for instance from 320KB bitrate to 128KB bitrate. After checking out some Java library that was really interesting in their own, I found JAVE library more useful to compress MP3 files. Now I publish how did I done my project with this library.
Continue reading How to compress MP3 files in Java
Welcome to Milad Rahimi’s blog. It’s my first post on my blog, A Software Engineer’s Life. I haven’t changed the default WordPress post title, Hello world!, because it’s my favorite sentence, only programmers know!
I’m gonna publish computer-related articles and try to keep this blog up-to-date, you can help me with your comments and feedback, thank you in advance…
You may want to visit my website too, http://miladrahimi.com.