I simply can't find an answer, but given a link to a Telegram video, how do I, using NodeJS, download that video? It seems I can use a bot to download up to 20MB, and then there are services that allow you to download entire channels up to 2GB at a file, but I just want a single file downloaded. Thanks
You can use a local bot API server for that. see the official bot API docs for details: https://core.telegram.org/bots/api#using-a-local-bot-api-server
Related
I have a project in J2ME, writing in net beans 6.9.1
My project is about opening a mp3 file from with a string format file name that generates with a function (not browsing) and plays it.
I have created this program and it works in simulator.
My problem is, how to send all these 300 files to mobile device?
It should be simple to send between users with Bluetooth in future.
I want to know is there any way to package all files in one file and extract them when installing in mobile device?
Or what is the correct way to to that?
Thanks a lot.
Just copy the files JAR and JAD from "project_dir/dist" into your mobile then install it.
Packaging all those 300 mp3 files in your app will result in large jar file size. As you know most of the Java ME mobile phones have very less memory allocated for installing Java ME apps. It is better to provide an option to download all those files form server to SD card when a person use the app for first time.
As Sabin said, it is not a good solution to have all your audio files inside your application, assuming you are using Mobile RMS (Record Management System) which is very limited in size and capabilities; it is better to add a code to open them from your SD card or stream them from server.
I downloaded session record by adding /output/recording.zip?download=zip at the end of the recording URL. Record folder has some .flv and .xml files. How can i play this session? Am i use flv editor?
The recording you download using /output/recording.zip?download=zip query is not the video, it contains form FLV but they will not play.
To play the recording make the recording offline, in Adobe Connect 9 there is an option on recording page "Make Flv" under Actions tab.
You will have to play complete recording to download.
Yes, I think you'll need to use an editor for that.
Usually the way to download an Adobe Connect recording is the one described in the official documentation.
You should only use flv files, not xml files
cameraVoip.flv file for microphone, camera video and screenshare.flv for shared screen (from desktop).
You can also get the start time of these files in the indexstream.xml file, if you know how to work with ffmpeg software or other software, you can combine these files.
But if you can not and only audio and video are important to you and not a text conversation, you can use the program I wrote.
It goes without saying that Adobe Connect files may be corrupted for any reason, so make sure they are safe and then work with Adobe files.
https://github.com/HosseinShams00/AdobeConnectDownloader
I have developed a web based application in ASP.NET and C# where users have the facility to upload files on the server through this application I want the application to Scan the uploaded files for viruses before saving on the server. Same like when we attach files with our email in Yahoo. Please guide me how I can achieve this functionality Any API which can be integrated in ASP.NET application or any other way you can suggest. We can purchase the licensed version of a product which can achieve this. I have googled but did not find specific results.
Thanks in advance!
First of all the file must be saved onto the server before you can scan it. If you notice Yahoo will upload the file first - but not allow the attachment to be sent until scanned.
Then you can use an antivirus with a command line interface or some other kind of API. Both of these can be called via C# and should provide the functionality you require. Parhaps write a wrapper class that takes a file and returns true or false depending on whether a virus was detected.
Other applications that provide you with a command line interface:
Microsoft Security Essentials
clamAv
I believe MS AV provides better results.
Just purchase antivirus software that has a command-line interface (several popular packages include this). Once the file has been uploaded, run the scan.
I would think, in order to upload and scan at the same time, you might need to implement your own antivirus software as I'm not familiar with any package that would provide that sort of interface.
I run a shareware site. It doesn't work as you described, but I download each file to my local computer and run a scan on them. You would be doing something similar.
I am setting up a map on a drupal website using the mapstraction module. I am planning to use the 6.x-2.x-dev development branch of mapstraction because I need some of its additional functionality.
In the instructions for installing the module, it says to download the mapstraction v2 library from mapstraction.com Navigating through their site, I found this page:
code.google.com/p/mapstraction/source/checkout which tells you:
Command-line access
Use this command to anonymously check out the latest project source code:
'# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://mapstraction.googlecode.com/svn/trunk/ mapstraction-read-only
I don't understand what command-line access is? I've tried pasting mapstraction.googlecode.com/svn/trunk/ into my browser, and I get a whole directory listing. Do I download each of these files? How do I know what is actually the mapstraction v2 library? Am I going about accessing the javascript library in the wrong way?
They moved to git hub.
You can now just download the zip file from here without a client installed
https://github.com/mapstraction/mxn/downloads
What you need is a Subversion Client. The Apache project maintains a list where you should be able to find a client for your operating system. Once you have a client, you will have to perform the "Checkout" function on the url provided by Google Code. Once you have the directory downloaded by the SVN client, you can look at the examples for proper usage and file inclusion.
Is it possible to create Alfresco users in a "batch" way?
I mean, creating lots of users with a script or calling an API or something.
Thank you!
There is a module for the Share admin console in the Share-Extras project which allows the creation of users from a CSV file. It can found here: http://code.google.com/p/share-extras/wiki/CreateBulkUsers
The alfresco shell tools project allows the batch creation of Alfresco users:
https://code.google.com/p/alfresco-shell-tools/wiki/UsersAndGroupsFun#Create_a_new_user
It wraps the REST APIs mentioned in the other replies in an easy to use manner.
I think the easiest way to do that is to use the addPerson webscript.
Just create a small application that calls the webscript (it's a normal HTTP POST request) with the user data you want.
http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Add_Person
If you're using Alfresco Team, or a recent nightly build, then you can simply upload a CSV / Excel file of users and have them created for you. (It's in Swift too)
You'll find the link to do this in the admin console, and the webscript that backs this is http://localhost:8080/alfresco/service/api/people/upload (perform a GET to fetch the spreadsheet template, or a POST to upload the users)