In this tutorial

Link to GitHub repository




Traditional way

Uploading images into S3 from browser — Traditional way

This approach has some drawbacks

To communicate between python and C, we have a library `ctypes`

Step — 1 : create a c program, in which one function receives another function pointer as parameter.

In the below example, the function divide receives another function pointer as first parameter, which receives 2 parameters, quotient and remainder.

If your csv files are very large say more than 100MB, then it would be very difficult to concatenate the csv files using conventional methods.

In Python we can use the library shutil to concatenate multiple large csv files into a single csv file.

Sample code is

import shutil
csv_files = ['source1.csv', 'source2.csv', 'source3.csv', 'source4.csv', 'source5.csv']
target_file_name = 'dest.csv';
shutil.copy(csv_files[0], target_file_name)
with open(target_file_name, 'a') as out_file:
for source_file in csv_files[1:]:
with open(source_file, 'r') as in_file:
# if your csv doesn't contains header, then remove the following line.
shutil.copyfileobj(in_file, out_file)

To Test the code, download some sample large csv file (eg :

Then make some copies of same files and run the above program.

Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(new ComponentName("org.videolan.vlc", ""));
String url = 'Your youtube url';
i.putExtra("url", url);
i.setDataAndType(Uri.parse(url), "video/*");

3. Wait for some time, it will starts play your youtube url in VLC.

Prince Francis

Providing simple solutions for complex problems.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store