theming – Disable links to username and date

I am pretty new in drupal development. One of my tasks require me to disable links to username and date fields generated inside diff_diffs_show function of file under diff module ( )

  // Generate table header (date, username, log message).
  $old_header = t('!date by !username', array(
    '!date' => l(format_date($old_node->revision_timestamp), "node/$node->nid/revisions/$old_node->vid/view", array('absolute' => 1)),
    '!username' => theme('username', array('account' => $node_revisions($old_vid))),
  $new_header = t('!date by !username', array(
    '!date' => l(format_date($new_node->revision_timestamp), "node/$node->nid/revisions/$new_node->vid/view", array('absolute' => 1)),
    '!username' => theme('username', array('account' => $node_revisions($new_vid))),

Can someone help me how I can alter this function so that the links are disabled? Basically, I want the username and date fields in plain texts instead of links. I know it’s not right to modify module function code directly, so can someone guide me on how to create a custom module to alter this function and disable the links?

See this picture for reference – enter image description here

9 – Disable database delete if accidental module uninstallation

We are designing critical Website Project, and some of the site strcture like content type, fields are defined through module

  • we want if “Accidental Module Uninstallation” occurs, the database created with the module does not get deleted.

To store the database created, we are taking backup regularly through Cron job. But, we want the Database remains even after module is uninstalled.

Is it possible to keep data after module uninstalled?

Can the blog be online(the content created with above module) even if accidental module uninstallation occurs?

If module is re-enabled again: can the module integrate with previous data, and write new data?

Data created, and blogging content written are critical and expensive, we can not keep any flaws, even if in worst case scenario – anything worse happens.

Can anyone give some insight into this?

lg g2 – Disable popups on cancelled Sprint service on LG G2

You can root your device and then manually disable those popup settings by editing databases using SQLite editor app.

Some manufacturers put their custom apps as ordered by service providers. Theses apps do not have their own UI, but used by other service provider specific apps to get updated values from service provider as per customer-plan.

These apps change default values of certain actions, responses, service access in SQLite databases that are present in Android devices or build their databases which are accessed by Android system.

By using SQLite editor app, user can browse these databases manually and change values that seems to be connected with this pop-up issue. To browse these databases, device needs root access.

How can I disable mysql_native_password and mysql_old_password on MariaDB / MySQL?

I only want to use unix_socket as the sole authentication method.
Both mysql_native_password and mysql_old_password are installed and enabled by default, but I’d like to disable them.

I’m unable to uninstall them:

MariaDB ((none))> uninstall plugin mysql_native_password;
ERROR 1619 (HY000): Built-in plugins cannot be deleted            

I’ve followed the instructions here:

I’ve created disabled_plugins.ini in /etc/mysql with contents:



MariaDB ((none))> mysql_plugin disabled_plugins DISABLE;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysql_plugin disabled_plugins DISABLE' at line 1

This is on WSL1 and 10.3.27-MariaDB-0+deb10u1-log Debian 10

Can someone help?


repair – How do I disassemble FujiFilm X-T1 camera to disable the ISO dial lock button protection?

How to disassemble / take apart Fujifilm X-T1 and how to disable ISO Dial lock switch.

It is relatively easy to take apart FujiFilm X-T1. You only need one type of screwdriver, although the screws themselves are different. So as usual, make sure to have several small containers and a piece of paper to write down/draw where a particular screw came from. It took me less than half an hour. And I had no idea what I was doing. Took longer to document the process 🙂

The way the camera opens is, the top part comes loose and the back slides out, separating from the front. WARNING: DO NOT remove the top first. Just unscrew it and notice that it is loose and leave it be. The reason is that it has several short ribbon (film) cables, and if you lift it up first, you’re likely to disconnect or mis-align them, or worse!

So first remove all the screws that I will mention below in diagrams, then slide the back side out, and the then the top will easily lean back. The back side is preventing it from leaning back. Here in this photo you can see that I tried it at first without removing the backside:
enter image description here

As you’re removing the back side make sure to support the top so that it doesn’t fall, pulling on the cables. Back side also has ribbon cables but it’s much more easy to handle, they’re only attached towards the bottom (see image below).

So if you do everything right, no need to unplug any of the cables. If you’ve ever dealt with ribbon cables you know why I’m stressing this part so much. They and the ports they go into are very fragile and difficult to handle. Tweezers can scratch them and even cut the connection. (Here they’re not that big of a deal as in Fuji lenses I opened previously, but still why bother if you don’t have to right?)

So, lets do it step by step. 

1) Bottom: there are 8 screws – unscrew all

2) Front: only 1 (small) screw on the right side, peal off the rubber covering.enter image description here

Left/Right is when facing the camera.

3) Left: 2 above, 2 below (all behind the rubber)

4) Right: 2 above (behind the rubber) and one behind the USB door

5) Back side: Lift up the viewfinder rubber guard to reveal 2 screws, and flip up the LCD to reveal two screws there: enter image description here

The lower part behind the LCD has 4 more screws. Those ones only hold the LCD in place. Don’t remove them.

6) Once these screws are removed the camera can come apart. Again, don’t pull on the top part. Slide the back side out as in this diagram:enter image description here

enter image description here

It comes apart this way, so the middle sides belong to the front part. That’s why in the previous pic I’m pushing the top edge out with my index fingers and bottom with my thumbs.enter image description here

7) And it opens up like thisenter image description here

8) Now with the back cover down, the top part can be leaned backwards easily:enter image description here

9) And you have access to the ISO dial mechanism. Just unscrew that middle screw and follow the diagram to remove the evil silver ring. It actually snaps on/out. So if you ever wanted to put it back, it’s a possibility.enter image description here

10) And here’s how it looks like inside. enter image description here

Before doing this, I was wondering if there’s a spring inside etc, and that afterwards there would be a hole I would need to seal… but none of that!
Once you take out the ring and close up the camera, the button is still in place and presses down like before, except it has ZERO effect now! The ISO dial still clicks as you rotate it, same as before. It’s like the magic fairy came and took only this silly ISO dial lock “feature” away without any side effects, with an exception of course, that you actually have to do it all yourself 😉

factory reset – How can I disable recovery mode?

Is there a way to disable recovery mode so it won’t be possible to factory reset your phone?

Basically what I am trying to do, is that it should be impossible to factory reset the phone as there is no recovery partition.

(Example format the recovery partition, or hide the option of factory reset on the recovery menu, build a custom recovery etc.)

P.S.. I was thinking of maybe removing a system app (example package installer) and making it a user app, and therefore when you factory reset the phone it won’t start cause the system app is missing, but when I tried that, the phone wouldn’t start even without resetting it, as the system needs the system app to start, ( I thought that maybe even though I removed the app from being a system app, the phone would still start as it’s still there as a user app, and only after resetting the phone – that the user apps get deleted, the phone won’t start as it’s missing the app).

Thanks in advance

Woocommerce categories disable

I want to disable the ability for someone to pick a category when he uploads a product .
Hint : I want only to disable the option to pick a… | Read the rest of

Disable search suggestions based on current page

Chrome has recently started offering search suggestions based on whatever is currently in the tab when I enter the address bar, like this:

Search Suggestions in Google Chrome

How can I disable this?

How to disable multi-user in android 8.1.1 without root using adb or anything else

How to disable multi-user in android 8.1.1 without root using adb or anything else

   ** Android 8.1.1 (Galaxy Tab A (2016)) **

disk encryption – Can I safely disable and re-enable Secure Boot when Bitlocker is used in order to make a Forensic Image?

I am about to make a forensic image (using dc3dd from OSFClone) of a laptop and in this specific case I’d like to startup using an bootable USB stick with OSFClone and image the disk to an external disk. The laptop in this case used Bitlocker with (I suspect) a TPM 2 chip. I did receive a Bitlocker recovery key for this laptop but I cannot be 100% sure that the recovery key is correct. I did also receive a local Windows Administrator user which I could use to boot and login to Windows and check the recovery keys but I rather don’t want to boot the machine into Windows at all.

My plan is to (temporarily) disable Secure Boot, boot from the OSFClone USB and make a forensic image to an external disk. After that I want to re-enable Secure Boot again. I wonder if Bitlocker will prompt to enter a Recovery Key in this case when booting normally again? Or will it boot straight into Windows (after re-enabling) like nothing has happened?

It’s an option if I have to enter the Bitlocker recovery key once after imaging and boot into Windows. But I rather don’t boot into Windows and as I said I cannot be 100% sure the recovery key I’ve received is correct.

Lastly, what happens if I do (accidentally) boot into Windows before re-enabling Secure Boot, does re-enabling Secure Boot change back the old behavior (no recovery key required) or did it then save that one “unsecure boot” state and prompt it anyway till a recovery key is entered.

Also in this case I am not sure if OSFClone will image the unencrypted disk (which I suspect in case of a SED disk with TPM-only, as it should unlock when the machine with TPM and disk power on) or will I only manage to image the encrypted disk (which I suspect when SED and/or TPM is not used). Either way, the forensic processing software we use (Intella by Vound-Software) should be able to handle Bitlocker encrypted images when the recovery key is supplied but I rather want to understand exactly how it works and if my understanding of this matter is correct.