Syntax error near unexpected token ‘then’

There must be a space between if and [, like this: These (and their combinations) would all be incorrect too: These on the other hand are all ok: Btw these are equivalent: These are also equivalent: And, the middle part of your script would have been better with an elif like this: (I also dropped … Read more

Gedit command not working in kali linux terminal

Although I am not sure, what the actual error here is, but purging the package will help. You can try this After this try reinstalling with Moreover, you should Prefer AskUbuntu and SuperUser for such questions, you can expect a detailed and possibly faster response.

Can’t start hostednetwork

This happen after you disable via Control Panel -> network adapters -> right click button on the virtual connection -> disable To fix that go to Device Manager (Windows-key +x+ m on windows 8, Windows-key +x then m on windows 10), then open the network adapters tree , right click button on Microsoft Hosted Network Virtual Adapter and click on enable. Try now with … Read more

How to make rpm auto install dependencies

Create a (local) repository and use yum to have it resolve the dependencies for you. The CentOS wiki has a nice page providing a how-to on this. CentOS wiki HowTos/CreateLocalRepos. Summarized and further minimized (not ideal, but quickest): Create a directory for you local repository, e.g. /home/user/repo. Move the RPMs into that directory. Fix some … Read more

Is there an alternative sleep function in C to milliseconds?

Yes – older POSIX standards defined usleep(), so this is available on Linux: DESCRIPTION The usleep() function suspends execution of the calling thread for (at least) usec microseconds. The sleep may be lengthened slightly by any system activity or by the time spent processing the call or by the granularity of system timers. usleep() takes … Read more

Why do fonts appear jagged in Chrome?

In windows 10: Go to the windows search, search for “This PC” right click and choose properties Go to advanced system settings Click the settings button in the performance group Check the box for “Smooth edges of screen fonts” Restart computer and your fonts will be back to normal

What does /p mean in set /p?

For future reference, you can get help for any command by using the /? switch, which should explain what switches do what. According to the set /? screen, the format for set /p is SET /P variable=[promptString] which would indicate that the p in /p is “prompt.” It just prints in your example because <nul passes in a nul character which immediately ends the prompt so it … Read more

wget returns “Unable to establish SSL connection”

This is most likely due to a TLS version mismatch from client to server-side. Have a look here: Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS EDIT: Upon further digging into the problem, it could also be because of a wrong system time or an old version of wget.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)