file conversion – Is there anyway to have macOS Photos bulk convert all of my past JPEG images to HEIC format?

I’ve seen lots of tutorials online explaining how to convert iOS HEIC files to JPEGs but I can’t seem to find any easy way to bulk convert existing JPEG photos to HEIC?

The reason being is I really like HEIC as a storage format: It easily makes image file sizes 5x to 10x smaller than JPEG equivalents which not only saves space but makes syncing the library to other devices quicker as well.

So I would like to convert all past images in my macOS Photo library to HEIC two take advantage of these benefits. Do any such tools exist? I would like to avoid a bulk export, conversion via non-Photos tools and then reimport because that seems messy.

How to pass a group value in inventory file to jinja2 template file in ansible

I have an inventory file named hospital.inventory and it contains following group with a single value.


Then I have a file name security.json.j2 inside the folder call templates. In there I want to refer above mentioned value in below placeholder.

"wellKnownUrl": "https://_placeholder_value_/my-configuration",

Is there any direct way of doing that?

As an alternative, how I did was declare a variable in main.yml file inside defaults directory and use it.

swarm_hostname: "
   {% for host in groups['dockerSwarmManager'] -%}
   {%- if not loop.last %}, {% endif -%}
   {%- endfor %}"

I don’t think it’s nice to use a loop just to extract a single value from a group inside the inventory file even though I get the expected output.

windows 10 – win ftp works in File Explorer, don’t work in PowerShell, “unknown host”

Well this is bizaar,

i opened File Explorer (windows 10), did new network location,, a window opened and i DLed some files from the remote server, no problem. Then i did PowerShell as administrator, turned off windows firewall, and got this:

ftp> open

Unknown host

downloaded and ran some other ftp client and it worked fine. Please help if you know about this. I need it for a batch file.

thanx, mike

Which filetypes does tracker support when indexing file content?

In Ubuntu 20.04, which filetypes does the desktop search tool support when it builds its index of file contents?

data corruption – Word file “docx-file” corrupted in Android after editing it on OneDrive using OfficeSuite, how to fix that?


I have a Word-file with extension “.DOCX” which I want to use it and edit it on my OneDrive.

I use the app OfficeSuite to edit my files. When I open the file on OneDrive with OfficeSuite, edit and save it, the file becomes corrupted. When I try to re-open the file I can’t open it.

When I download the file on my Andorid phone and open it using OfficeSuite I get the error “file corrupted” and I can’t open the file.

But the file can be opened on my Windows 10 with no problems both in OneDrive and in local folder.

When I edit a local .docx file using OfficeSuite on my Android phone and upload to OneDrive, I can open the file on OneDrive with no problems.

The problem happens when I open the .DOCX file in OneDrive with OfficeSuite and edit it. After the edit, the file becomes corrupted, but corrupted only on my Android phone.

That problem won’t happen on Excel files. I can open and edit Excel files using OfficeSuite in OneDrive.

And the same problem happens when I use Microsoft Word for Android too.

So it looks like the problem happens when I open the Word-file on OneDrive using OfficeSuite and edit it. Then the file won’t open anymore on my Android phone (but still opens on Windows 10).

My Andoid phone is Samsung Galaxy A3, Android Version 7.0.

How can I fix the problem?

I tried using Word, uninstall and reinstall both OneDrive and OfficeSuite, but the same problem remains.

There’s no such problem when I use Google Drive.

Why is it that ? How can I fix that problem, so that I can edit Word-files on OneDrive without making them corrupt ?

mysql – messages.php file security and efficiency

I am creating a social network and I want to know how secure and clean this code is. I had to update it to prepared statements because I was following a tutorial and even though it was made in 2019 it was using 15 year old code. So can someone tell me if it’s good or needs improvement ? Thanks.



//calls class. You can specify parameters when you define your function to accept input values at run time
$message_obj = new Message($con, $userLoggedIn);

    $user_to = $_GET('u');

else {

    // calls function inside of class
    $user_to = $message_obj->getMostRecentUser();
    if($user_to == false)
        $user_to = 'new';

if($user_to != "new")
    $user_to_obj = new User($con, $user_to);

    if(isset($_POST('post_message'))) {

        if(isset($_POST('message_body'))) {

            $body = mysqli_real_escape_string($con, $_POST('message_body'));
            $date = date("Y=m-d H:i:s");
            $message_obj->sendMessage($user_to, $body, $date);


    $user_data_query = $con->prepare('SELECT first_name, last_name, num_likes FROM users WHERE username = ?');
        $user_data_query->bind_param("s", $userLoggedIn);
        $user_data_query_result = $user_data_query->get_result();

        while ($row = $user_data_query_result->fetch_assoc()) {

            $first_name = $row('first_name');
            $last_name = $row('last_name');
            $num_likes = $row('num_likes');


    $stmt = $con->prepare("SELECT profile_pic FROM users WHERE username = ? ");

    $stmt->bind_param("s", $userLoggedIn);






<style type="text/css">

.convos_column {

    background-color: #fff;
    padding: 10px;
    border: 1px solid #f2f2f2;
    border-radius: 7px;
    box-shadow: 2px 2px 1px #f2f2f2;
    z-index: -1;
    word-wrap: normal;

#convos {

    background-color: #fff;
    padding: 10px;
    border: 1px solid #f2f2f2;
    border-radius: 7px;
    box-shadow: 2px 2px 1px #f2f2f2;
    z-index: -1;
    word-wrap: normal;
    width: 30%;
    height: 400px;
    overflow: scroll;   
    float: left;
    left: -16%;
    top: 350px;
    position: relative;

#convos img {

    width: 50px;
    height: 50px;

#convos p {

    top: 10px;

.user_detailss {

    width: 20%;
    height: 310px;
    float: right;
    position: relative;
    right: 95%;
    top: 4%;


    <link rel="shortcut icon" type="image/png" href="favicon.ico"/>

<div class="user_detailss column">
    <a href="<?php echo $userLoggedIn; ?>">
        <img src="<?php echo $img; ?>" style="border-radius: 5px;" width="130px" height="130px">



    <div class="user_details_left_right">
        <a href="<?php echo $userLoggedIn; ?>">


                echo $first_name . " " . $last_name;



        <?php echo "Likes: " . $num_likes; ?>



<div class="main_column column" id="main_column">

        if($user_to != "new") {

            echo "<h4>You and <a href='$user_to'>" . $user_to_obj->getFirstAndLastName() . "</a></h4><hr><br>";

            echo "<div class='loaded_messages' id='scroll_messages'>";

            echo $message_obj->getMessages($user_to);
            echo "</div>";

        else {
            echo "<h4>New Message</h4>";

    <div class="message_post">
        <form action="" method="POST">

            if($user_to == "new") {

                echo"Select the friend you would like to message <br><br>";


                To: <input type='text' onkeyup='getUsers(this.value, "<?php echo $userLoggedIn; ?>")' name='q' placeholder='Name' style='padding-left: 5px;' autocomplete='off' id='search_text_input'>


                echo "<div class='results'></div>";
            } else {

                echo "<textarea placeholder='Enter your message...' name='message_body' id='message_textarea'></textarea>";

                echo "<input type='submit' name='post_message' class='info' id='message_submit' value='Send Message'>";





    <script type="text/javascript">
        var div = document.getElementById("scroll_messages");

        if(div != null) {

        div.scrollTop = div.scrollHeight;


<div class="user_convos convos_column" id="convos">

        <div class='loaded_conversations'>

        <?php echo $message_obj->getConvos(); ?>
    <a href="messages.php?u=new">New Message</a>



windows – Cache file names or contents of external drive, propagate changes when plugged in

I would like to treat an external drive similarly to cloud storage with offline access. Let me explain.

Clients like Google Docs Offline, Google Drive Backup and Sync, Dropbox, Autosync for Dropbox (Dropsync) each offer some of the following functionality:

  • By caching only file names from the cloud: list, rename, delete, create, move, copy files and directories
  • By caching file contents from the cloud: edit files

These changes can be “scheduled” while offline (not connected to the cloud) and propagated later when online.

I would like to do the same for an external drive: cache file names or contents, schedule changes while unplugged, propagate changes later when plugged in. Do solutions exist for Windows?

To save space, file contents would ideally be cached only for some files, depending on choice of specific directories or file size or file usage/edit history/date. This is what solutions like RealTimeSync don’t seem to offer – they sync all file contents.

Excel file issues in OneDrive

I was working on an excel file from past 1 week. This file was saved only on One drive and not on my disk. Till yesterday everything was fine.

But today when I open the file, everything I worked from Tuesday was gone! The file contained only the work from Monday!

Is this a bug? or something else? It would be really helpful if someone could help me solve this issue.

Thanks in advance!

DVWA file upload background

I’ve just started in penetration testing with metasploitable and currently trying to learn file upload vulnerability present in DVWA module. I know that somehow upload is preventing files other than images to be uploaded but I don’t understand how. I tried to look page source of ‘upload file’ webpage but I don’t see any javascripts working there. Webpage only refers to a script which also doesn’t seem to have any filters for file being uploaded. Can someone please explain what exactly in the html or JavaScript of webpage is working as a filter?

catalina – File System Update Delay

I regularly move/copy/remove files from the terminal using mv/cp/rm shell commands. With Catalina (10.15.5), file system updates are not reflected in the Finder windows until several minutes later. That is, I can rm a file and it will still show up in the corresponding Finder window for at least several minutes.

How should I go about diagnosing this behavior?
Could any of the following be contributing to it, and if so, how?

  • If the folder is on an SSD formatted with HFS+ rather than AFPS
  • Whether the folder is on a disk image and/or one with encryption
  • Whether there are 1000+ files in the folder
  • File sizes and/or types

One thing that does work is running disk first aid from Disk Utility or diskutil verifyVolume after any of these commands.