Unable to find the socket transport "https"

PHP
I'm using this to check for the availability of a URL: $fp = fsockopen("$url", 443, $errno, $errstr); and I get this error back... Warning: fsocko...
11 days ago

Is there a way to touch() file in Amazon S3?

PHP
Im currently working with Amazon S3. Im writing a program that check the modified dates. What I need is a solution to edit the modified dates. I ...
11 days ago

Calling multiple methods as parameter of a php function

PHP
I got this function: /////////////////////////////////////////////////////////////// public static function make_table( $inputList, $funcArray ,$...
11 days ago

"getaddrinfo failed", what does that mean?

Python
File "C:\Python27\lib\socket.py", line 224, in meth return getattr(self._sock,name)(*args) gaierror: [Errno 11004] getaddrinfo failed G...
11 days ago

Python renaming strings

Python
Kinda dumb question but I got stuck. So I got this print (image_files[index].split(".")[0]).split("/")[1].split which gives the following output: ...
11 days ago

Clean way of slicing + stacking padas dataframe

Python
I have a Pandas DataFrame, say df, which is 1099 lines by 33 rows. I need the original file to be processed by another software, but it is not in the ...
11 days ago

Array to associative array

PHP
I have an array like this : array(3) { [0]=> array(2) { [0]=> string(6) "action" [1]=> string(5) "depot" } [1]=>...
11 days ago

PHP - Get key name of array value

PHP
I have an array as the following: function example() { /* some stuff here that pushes items with dynamically created key strings into an ...
11 days ago

ajax submit form why it cannot echo $_POST

PHP
I'm test using ajax submit form (submit to myself page "new1.php") The thing that I want is, after click submit button, it will echo firstname and l...
11 days ago

Convert an html table into json objects in python

Python
Im trying to convert an html table into json objects and writing it into a file. Basically it is a printer data fetched from the printer setup page. ...
11 days ago

What's the difference between python3.<x> and python3.<x>m

Python
What does the m stand for in python3.6m ? How does it differ to non m version? In which case would I prefer to use python3.6m rather than python3.6 ...
11 days ago

pip install Django on python3.6

Python
If I run pip install Django I get Requirement already satisfied: Django in /usr/local/lib/python2.7/dist-packages I'd like to use python3.6 in...
11 days ago

How do I install these PHP extensions on Ubuntu?

PHP
Ubuntu 16.04. nginx version: nginx/1.10.0 (Ubuntu) PHP 7.0.8-0ubuntu0.16.04.3 When I run composer install -v in Magento 2 directory I get this: Lo...
11 days ago

laravel custom command not listed

PHP
I have created a custom command called confirmUserCommand with the filename matching the class name (same case). The $name is set to confirmuser. Run...
11 days ago

How to convert dictionary values from string to list?

Python
I have a dictionary in which the values are strings and I need them to be lists. So I tried to do: for v in dic: v[1] = list(v[1]) However, it ...
11 days ago

django rest framework - always INSERTs, never UPDATES

Python
I want to be able to UPDATE a user record by POST. However, the id is always NULL. Even if I pass the id it seems to be ignored View Code: JSON POST...
11 days ago

How to use a state and local keywords for a single variable in perl?

Perl
While reading about the state and local method in Perl, I had one doubt. state: This is used to define the static variables for a subroutines. local...
11 days ago

CentOS 6 unzip file but files are going to root folder instead

Linux
When I did unzip /var/www/html/web.zip It unzipped the zip to /root/ folder. I need it to unzip the files to /var/www/html/ why is it happening?...
11 days ago

TTS - leaked ServiceConnection

Android
I am using the TTS in my APP. During onPuase method, I use the following code to stop the engine. The problem is whenever I pause the activity say usi...
11 days ago

Admob real ads not showing

Android
i am having problems in showing ads on my android app. I am able to show ads using this AdView adview = (AdView)findViewById(R.id.adView); A...
11 days ago