command line – I accidentally changed root’s shell to zsh, is this bad?

command line – I accidentally changed root’s shell to zsh, is this bad? – Ask Different

Ubuntu Stuck In Command Line

I have an old dell PowerEdge r710 running ubuntu. It hasn’t been used in a while and when I tried to turn it one it booted, but into the command line. Does anyone have an idea why this is happening?.
link to pic of the server if that helps:

sending an email in gmail inserts line breaks, is it possible to stop that or remove those?

Sending an email in gmail inserts line breaks, is it possible to stop that or remove those?

For example if I email myself a message that I want to email somebody. Then if at some point try to email the person and copy paste what I emailed myself, it has line breaks stuck in there.

For example here is a story. Snow white and the seven dwarfs.

I can put it in notepad/notepad2, and it all wraps nicely because there aren’t a ton of line breaks in there.

But if I email myself that in gmail.

So I enter it into this window

enter image description here

or clicking the popout/so-called full screen button in that gmail window

then it shows it as

enter image description here

Then I click send.

Then I get

enter image description here

Then if I try to put that into notepad/notepad2, it shows as

enter image description here

As you can see, Gmail has added a load of line breaks to it that weren’t in there when I typed it.

Is there a way to get the original thing I typed without the line breaks that gmail added? So if I put a line break in there then fine but I don’t want the ones that Gmail added.

I don’t mind whther we are talking about removing gmail’s additional line breaks from the email the recipient gets. Or, removing the additional line breaks from the email I see in my sent folder. Or retrieving the contents of the email from my sent folder but without the additional line breaks

At the moment i’m doing it manually. So eg copy/pasting the email into notepad and removing some of the line breaks manually.. judging each one.. Or a bit quicker, copy/pasting into Gvim and using “J” to remove some of the line breaks.

Line touches a curve. Find a value of x in the quadratic curve

The line y = 2x – 3 touches the curve y = x^2 + kx + 6
Find the possible values of k.

I would like a tip towards solving the problem rather than the entire answer. I tried comparing them to each other but ended up with x^2 – 2x + 9 = kx and did not know what to do next

command line – sshpass bash not working well

I have a problem with an bash.


SCRIPT="pwomxplayer -A udp://"
for HOSTNAME in ${HOSTS} ; do
   sshpass -p 'Nasanasa0401' ssh -o StrictHostKeyChecking=no -l ${USERNAME} ${HOSTNAME} "${SCRIPT}"

The problem is that it takes a long time to execute the command in the following ip and when I look at the services on the raspberry pi master where the bash is running I notice that I have two services running and one says zzzzzzzzzz

Does anyone realize that I may be doing wrong?

The following attempt works fine:

SCRIPT="sudo killall pwomxplayer.bin"
for HOSTNAME in ${HOSTS} ; do
   sshpass -p Nasanasa0401  ssh -o StrictHostKeyChecking=no  -l ${USERNAME} ${HOSTNAME} "${SCRIPT}"

enter image description here

command line – Starting server in screen with ssh does not create screen session

I’m trying to compose a single command that will start server in screen on remote machine. ssh user@host "cd workingdirectory/ ; screen -dmS server ./" also tried with -t and -f flags for ssh command. When I execute cd workingdirectory/ ; screen -dmS server ./ while connected via ssh it works correctly, but when I run it with ssh part the screen does not launch. I don’t understand what I’m doing wrong.

How do I flush the Javascript/CSS Cache using a SSH command line in Magento 1.9

how do I flush or delete the Javascript/CSS Cache using a SSH command line in Magento 1.9?

magento2 – credit memo total line got a bad record

I have an order O1, with multiples products.
THe products P1 has been refunded from the order.
The totals are fine if we are just looking at the refund amount and the order.

But, here comes the issue, usually, if you want to create a credit memo on the same order O1 with a product P2; on the opening form, you will the that one of your product got already refunded, so the total line will be 0.

But sadly, on that specific refund (and only that one, I don’t have issue in the code). The total line didn’t took the value 0; so as, it still count the first product price amount in the second product refund…which shouldn’t be.

So I’m looking for a way to modify directly that value from the database; but I don’t know where to look at.

As you can see there, the last line should be 0 as it was already refunded (the subtotal and so on in the bottom is also wrong because of that)


So here is my issue : What table should I alter to update that total line value ?

This is what I have in my sales order item table…it sounds good to me

qty refund

May be the issue comes from the fact that the amount refunded is still noticed as 0 ? But i’m not sure


Small JavaScript function that mimics flag handling of the command line

I am writing a function that I would use to handle parameters with options for use later in another project.

A sample input would be similar to this:

foo bar --baz con str --w=1920 --h=1080

From the example above I would expect foo and bar to be not part of any flag and baz would contain con and str and w with the value of 1920 and h with 1080:

baz = (con, str)
w   = 1920
h   = 1080

This getFlags function would take a string and perform the “flag” logic that I had in mind.

const getFlags = (str) => {
  const prefix = '--';

  const strArray = str
    .replaceAll(/s+/ig, ' ')
    .split(' ');

  let flagArray = {
    _noFlag: {
      values: (),

  let lastArg = '';
  strArray.forEach((arg) => {
    if (arg.startsWith(prefix) && arg.length > prefix.length) {
      noPrefixFlag = arg.slice(prefix.length);

      if (noPrefixFlag.includes('=')) {
        const pair = noPrefixFlag.split('=');
        flagArray(pair(0)) = {
          values: (pair(1)),
        lastArg = '';
      } else {
        lastArg = noPrefixFlag;
        flagArray(lastArg) = {
          values: (),

    } else if (lastArg) {
    } else {

  return flagArray;

It works as I expect it, but I feel like this function can be improved.

Fatal error in formatting.php line 450

I have an error on the clone of a site and not on the original site. I no longer dare to touch the original site in production without finding the solution on the clone. The error noted by the debug function of wordpress is:

Warning: trim() expects parameter 1 to be string, object given in /home/monsieurai/www/Clone-Prodezza/wp-includes/formatting.php on line 445

Recoverable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in /home/monsieurai/www/Clone-Prodezza/wp-includes/formatting.php on line 450

Thanks for your help.

DreamProxies - Cheapest USA Elite Private Proxies 100 Cheap USA Private Proxies Buy 200 Cheap USA Private Proxies 400 Best Private Proxies Cheap 1000 USA Private Proxies 2000 USA Private Proxies 5000 Cheap USA Private Proxies - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies New Proxy Lists Every Day Best Quality USA Private Proxies