Let’s say your friend comes over to your house, and wants a pirated movie but he only brought his cellphone with him with no wires. What could be the fastest way in that scenario?
Transfer it to google drive and then let your friend download it, right?
But what if you have your own local storage in your own computer like google drive and your friend is not only able to access that storage using web browser, but able to download any file from it?
So congratulations, I have a solution for this that I would like to share with you.
It is called LoocalDrive, the name is pretty much inspired by Google Drive and Kafka Data Streaming library..
The main focus was given to Sockets concerts as it works faster for transferring info.
Whenever someone joins your wifi, that user will have access to specific folder in your computer. But first, for that, you have to do the setup.
So let’s begin.
So go to this video’s description and open the github link.
It will bring you to this link.
It has instructions on how to install java language on different OS. You can do that on your own.
I shall show you how to install LoocalDrive in 3 easy steps.
Download Zip.
Extra Zip file.
Server-folder is the directory which will be an actual storage, so based on your OS, make it editable for everyone.
Follow video instructions.
Once done, you have to open that folder in the terminal.
Let’s compile and run Server.java.
The server is now started. Your computer will be the main host.
Let’s access this IP address on this PC’s browser first.
Let’s upload a file.
It will show notification and new files will be added to the list.
Let’s access that from different device.
When a new device is connected, instant notification is sent to all other devices.
Of course you can download any files from that storage.
You can also delete any file from any device.
You can upload files from any device and as soon as the file is uploaded, list is auto-refreshed.
Now, it is also inspired by Kafta data streaming, so in the terminal, you will see all activities as well.
You can download it on your computer or laptop and show off to your non-technical friends and family members.
Thanks for watching. You can subscribe for more videos like these. Any thoughts or feedback, you can comment down below.
The Composer installer script was not successful [exit code 1].
OpenSSL failed with a 'certificate verify failed' error. This indicates a problem with the Certificate Authority file(s) on your system, which either cannot be found or may be out of date.
Script Output: The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:XXX:SSL routines:tls_process_server_certificate:certificate verify failed Failed to enable crypto failed to open stream: operation failed
========================
When I try to install composer for PHP on windows 10 in different machines, Sometimes I face errors like this. So I was wondering if there is any alternate solution to this where I do not have to switch the whole operating system and be able to download the vendor folder using composer. I found that there is a way to do it in Windows 10. It's called WSL aka windows subsystem for Linux. For all of you experienced people out there already figured out what will be next. So this tutorial is for beginners. With WSL, you can access linux files from windows. So what we do is to install php & composer in linux, download the required vendor folder and copy it in windows.
So before installing WSL, make sure that your virtualization is on. You can check it by opening the task manager, opening the performance tab and looking for virtualization. It has to be enabled, if not, go to your BIOS setting and enable it. For different motherboards & processors, you will find it on different menus. Once you enable it, open the task manager again and check it. Once it is enabled, go to the Microsoft store, download Ubuntu 24.04. After executing Ubuntu, if you see an error, then open powershell in the Administrator. Run following commands. I mentioned them at the beginning of post.
After that, it should not show any error and ask you to give your username and password. I am using Ubuntu as my username and password. You can choose your own.
Better to update the OS.
Now, it is time to install PHP, apache2 and composer.
Make sure to install your required version of PHP before installing composer.
We shall go to the root folder by using cd .. command.
Lets go to the var/www/html folder in the linux terminal.
If you open windows explorer, you can open linux files by typing \\wsl$ in explorer’s path textbox.
You can also find linux at tree explorer at the bottom.
Open linux terminal, and make sure to make chmod 777 to html folder. With that, creating/editing/deleting files inside that folder will be very easy.
Let’s create a single folder to check if it works.
Let’s download the vendor folder using the composer command.
Once downloaded, you can copy-paste vendor folders in your PHP projects which are present in windows machines like xampp/wamp etc.
// Main thread: send messages from client to server
String messageToServer;
while ((messageToServer = clientConsole.readLine()) != null) {
serverOutput.println(messageToServer);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
========================
I was wondering if we could communicate between AWS operating system and PC using command prompt. Found out that this is possible. All we need to do is little bit of setup. The main advantage of using sockets is that once the connection is established, showing the message sent from server to client or vice-versa will not require any triggers like auto-refresh or button click etc. Sockets will handle the rest. Once sockets receives message, we can make program do all sorts of things like like creating new files, deleting files, showing files list etc. Any ways, our task is to establish connection using java sockets and that’s what we are going to do in this video.
In setup, our server will be AWS cloud server more specifically Elastic Compute Cloud, in short EC2. I installed ubuntu operating system in it. Remember that EC2 does not provide user interface to interact with files inside OS, so we shall use commands instead. Here, we shall not do a server setup from scratch. The server setup tutorial links are given in the description.
For client device, we are going to use windows machine which has Java already installed it, so make sure that you have that as well.
First, we shall need a PPK file. With that file, we can connect AWS server’s file system via FILEZILLA and also to run commands using PuTTY terminal. So, make sure that you installed them on you computer as well.
Let’s create KEY PAIR to download ppk file. Follow my steps.
[
From your AWS dashboard, click on EC2 -> Instances -> Key Pairs -> Create key pair
]
Make sure that pair type is RSA and file format is .ppk. Give any random name.
Once created, file will be downloaded automatically.
I already created key pair, so I am going to use that.
Next part is to enable port number 5000.
To create it, follow my steps.
[
Go to your EC2 Console
Select your instance → Networking → Security Groups
Click Inbound rules → Edit
Add a rule:
Type: Custom TCP
Port: 5000 (or any port you use)
Source: Your IP (or 0.0.0.0/0 for testing, but this is insecure)
]
Since I am not sure which group allows access, I am gonna create it in both.
Let’s connect ubuntu server using command prompt. To do that, open PuTTY.
Add IP Address, put 22 as a port number.
Select SSH radio button.
From the left side category, inside connection, go to select SSH, Auth, Credentials.
Select PPK file.
And click on open.
[How to know if ubuntu]
First we shall install Java.
sudo apt install openjdk-17-jdk.
To connect via FTP, use same credentials that we used for connecting server via putty.
Reach to var/www/ and create a folder where we are going to upload java file.
Let’s upload Server.java file. Code link is in the description.
Let’s go inside java-code folder.
Because the folder does not have permission, java file is no uploading. So reach to parent folder via putty terminal give edit permission to java-code folder.
Now, our server is ready.
I created a Client.java file. Code link is in the description.
Set AWS’s public IP as a value of String host variable.
In command prompt of client which is a windows system, we shall reach to a location where Client.java file is present.
Lets run client script.
And as you can see, whatever we type in command prompt from client reaches to server and vice-versa.
Open the browser and type in the URL, create 3 60 degree dot com.
Registered user can store his own 360 permanently. Also, 3 slots are given for free. For
more information, click on option appeared at the top right corner. Click on Register.
There are two methods to create an account. One is by filling the registration form. Email will be used as a username for login in future, so make sure to add a valid email address. Once verified, you will receive an email. And in that email, there will be a link. By clicking on it, you will be able to login. Second way is to login using a google account. We only store your email address, because the email is from google, it will be automatically verified, plus no need to add password every time you have to login.
Just click on Register With Google, you will be asked to login or choose gmail address. Once logged in, you will be redirected to your dashboard.
Unlocking the Full Potential of create360degree.com
create360degree.com offers a fantastic experience for everyone, but registering for a free account opens up even more creative possibilities! Let's explore some of the features available to both guests and registered users, and see how creating an account enhances your experience.
Feature 1: Easy Registration, Powerful Creation
Guests can create stunning 360 experiences using still images. However, registered users can take their creativity a step further by uploading videos and then selecting the perfect frames for their 360 masterpiece. Registering is quick and easy, you can either use your email address or conveniently sign up with your Google account.
Feature 2: Save Your Creations Forever
Guest creations are automatically saved for 90 minutes, allowing you to explore and share them with others. Registered users enjoy the incredible benefit of permanent storage for their 360 creations. Plus, you get three free storage slots to keep your masterpieces organised and accessible anytime. Need more space? Additional slots are available at an affordable price.
Feature 3: Customization and Control
Both guests and registered users can personalise their 360 experiences with features like:
Image rotation
Private accessibility as default
Rearrangement of images
Adding hotspots for interactive elements
Registered users gain even more control:
Password protection
Privacy settings (public, private, embeddable)
Categorization for easy discovery (educational, creativity, location, product)
Effortless Hotspot Creation: Search and import existing 360s to create internal links as hotspots, saving you time and effort.
Seamless Cross-Linking of hotspot: Add your current 360 as a hotspot to other creations on the platform, building connections between your work.
Feature 4: Preview and Publish with Confidence
Everyone can preview their 360 creation, ensuring it looks and functions exactly as intended.
Ready to Unleash Your Creativity?
Registering for a free account on create360degree.com unlocks a world of creative possibilities. From video uploads and permanent storage to advanced customization tools and effortless hotspot creation, you'll be well on your way to crafting stunning 360 experiences. Sign up today and get started!
Hey guys, there is a limitation in MYSQL, where you use group by and wanted max value, but when you try to fetch a row ID or any other column, it fails.
For example, there is one table on the left side called “potential_customers”, and on the right side, I wrote one query which returns maximum NEXT_CALL value for each customer_id.
So, in current example I wanted row ID 2 & 6.
But if I need ID or whole row, it fails even when you use order by column_name DESC.
Thankfully there is a workaround for this which is to use the combination of subquery and concat.
First, let’s alter the query, to concat customer_id and max of next call. Remove all order by if there is any.
Put that query is sub-query by adding rounded brackets around it.
Now, write a select query before sub query, & in where condition, use concat of required column. Don’t forget to use “IN” keyword.
And as you can see, it returns row ID that we need.
You can call whole column if you want.
So that’s it. Code link is given in the description.