How often does VLC check for updates? - updates

I am hoping someone having some experience with VLC can help me out.
Need to know the update check schedule of VLC. Does it check for updates on each launch? Or once daily/weekly/monthly?
I have checked the windows task schedule list but couldn't find any update check scheduled task by VLC.
So how does it work?

VLC do not use task scheduler and such: it checks for updates itself when started.
Frequency is configurable with 3 days as a default value. You can change it in "Options -> Interface" tab in VLC itself.

Related

Scheduling an event not executing

I am testing my mysql database and currently using dbforge IDE. When I create an event, for accessing some values from a table, which is supposed to occur after sometime, but it's not running and I don't get an error either. Please let me know exactly how to schedule an event in dbforge properly. Thanks
By default event scheduler is disabled try check whether it is on or not.
show variables like 'event_scheduler';

How to receive MySQL database notifications in Delphi?

I am developing a Delphi XE7 application with data stored in an online Mysql database. For the database access I use FireDAC. Because the application can be used on more than one computer simultaneously I need to be notified when a table is changed, so I can update the displayed information on each computer. FireDAC has a component called TFDEventAlerted which sounded like exactly what I need for this. But this component gives an error when activating (calling Register): [FireDAC][Phys][MySQL]-303. Capability is not supported.
I am not sure what this means, but after reading more about the component it seems Mysql does not support this type of events? If so: can anyone tell me whether there is another solution to accomplish the same?
Any help would be appreciated as I cannot seem to find a good solution.
Native MySQL doesn't have the push-notification feature you're hoping to use. To make this work you'll need to poll (to regularly run a query) to look for changes.
There are some ways to overcome this limitation if the scale of your system makes polling infeasible. You could add a user-defined function to your MySQL server, like this one to send messages: https://github.com/mysqludf/lib_mysqludf_stomp#readme
This won't work if you don't own the MySQL server; most hosting services won't allow you to install UDFs.
Or, you could build a message publish/subscribe app. This is pretty easy to do with the Amazon simple queuing service or with rabbitmq. But it's a different kind of system design from what you are probably used to.
In my article series about Firebird Database Events I proposed a solution based on message-oriented middleware. The middle tier of your application then would notify all interested parties about certain database events. Middle tier code would be database independent, all you need is a message broker who is specialized in reliable message delivery. An imaginary example for a 'after post' event handler is shown below:
procedure TAppDataModule.PurchaseOrderAfterPost(DataSet: TDataSet);
var
Notification: INotification;
begin
Notification := NotificationService.CreateNotification(PURCHASE_ORDER_TABLE_UPDATED);
Notification.SetIntProperty(PURCHASE_ORDER_ID, PurchaseOrderID.AsInteger);
NotificationService.Send(Notification);
end;
Popular free/libre open source message brokers are for example Apache ActiveMQ and RabbitMQ.
TFDEventAlerted control is not for MySQL database. That database doesn't support event model. If you want update data in "real time" then you must add manual request for changed data
Here are steps:
Add new field to your database table like "last_updated";
Fill that field by now() value on update or insert actions (by trigger or sql);
Add timer to delphi app and add request by SELECT MAX(last_updated) AS last_updated FROM my_table for last updated time;
If that time is new then request updated data by SELECT * FROM my_table WHERE last_updated >= :need_last_updated.

MySQL debug trace timestamp

MySQL debug trace (/tmp/mysqld.trace) does not dump timestamp.
what way to add timestamp?
(I need source code profile in detail)
I could use lldb(not gdb).
gdb has 'show debug timestamp' option.
https://sourceware.org/gdb/onlinedocs/gdb/Debugging-Output.html
iidb have the same option ?
It doesn't look like the MySQL debug trace uses the debugger at all. From the descriptions online, it is just programmatically dumping log info at various points. Since it doesn't stop in the debugger, then the "show debug timestamp" option won't help you in gdb since the debugger wouldn't be doing anything to trigger emitting the timestamp.
If you know what the trace printing function is, you could set a breakpoint there and get lldb to dump the current time using a Python breakpoint command. But I doubt you will want to have the debugger stop every time you want to dump a trace message, that would most likely slow you down too much.
I want to profile sql.
add debug output to souce code and lldb, but this is time consuming.
If mysqd.trace could print timestamp, best way.

Getting the current logged-in user from an Ant task running in Hudson

I'm using the "Hudson batch task plugin" to kick off some ant tasks after a build has run to deploy the build to a remote box.
As a part of the deploy the ant tasks writes a log record to a database. I'd like to be able to include the current user's username.
Does anybody know if the user's login is available to ant scripts running in Hudson? Maybe as an environment variable?
It is not available as an environment variable. This is because a single build can have many causes - it might be triggered by the timer trigger, and while queued, a user could request the build start as well. This would result in a build with two causes - the user and the timer trigger. It is also possible for multiple users to be the cause of the same build.
If you want to look up the causes, you should take a look at the XML api. You can do a wget/curl to the right URL, and you will see all the causes for the build.

What is the best way to create 'versions' of uploaded files?

In my application people will upload resumes and they can update the resumes I am storing. The resumes use a file stream in a database. That is working fine. But now I want to track versions of the uploaded resumes to find the latest and previous resume.
What is the best way to do this?
What I would do if I were you, would be to add a versionNumber column to the table, and when the "Update" their resume, I would just write a new entry to the database. You should then have a column called ResumeActive or something similar as a Bit field. just mark the most recent resume as the active and mark all the others as inactive.
Should they wish to rollback their resume to a previous version, just mark that as active and mark all the others as inactive. I hope this helps and that I understood your question correctly.
You could also use a storage engine that is aware of document versions and this be able to not only track versions but also quickly switch between them and view differences. If you're using windows for your solution you could investigate Sharepoint ($) or Sharepoint Portal Services (free)
Use a normal or binary diff, and on each change, store the result of the diff in the database, with the version number. So if a user wants to revert back, apply all the diffs upto that version. This will take up lesser space than storing each version of the whole file.