« first day (3159 days earlier)      last day (943 days later) » 

 
3 hours later…
8:01 AM
💤
 
8:37 AM
0
Q: Defining shell variables inside IF block

AminI'm trying to set a variable's value based on a condition. So I've written an IF block. My code example: read -p "vHost/Domain Name *[www.example.com]: " hostName; if [ ${#hostName} -gt 0 ] ; then read -p "Document Root [/var/www/]: " documentRootInput if [ ${#documentRoot...

 
 
4 hours later…
12:11 PM
0
Q: i'm getting "syntax error, unexpected token "endif", expecting end of file" and i'm kinda lost

Micheli'm building a theme but not knowing php is easy for me to get into syntax errors. I created this loop to display all posts from a custom post type named "disturbo". I want to display the title, the thumbnail and a custom field named "citazione" that has a tagline/quote. I get the error "syntax ...

 
 
5 hours later…
4:53 PM
-1
Q: Check if 2 lists of strings contain the same elements in different order (including duplicates)

Emi OBI want to check if 2 lists contain the same string elements, but not necessarily the same order. For example: ['1', '2', '3'] == ['3', '1', '2'] Returns false, but I would like to be able to get an output of True, as they both contain the same elements, just in a different order. Similarly: ['1'...

-3
Q: PYTHON - How to add after each item in the list the mark ("->"), except the last item?

Avi DeriPYTHON - How to add after each item in the list the mark ("->"), except the last item? I need to print the result sorted and not as a list . exmple : This is the list : old_letters = ['a', 'p', 'c', 'f'] And this is how the end result should look : a -> c -> f -> p need the solution without loops...

 

« first day (3159 days earlier)      last day (943 days later) »