Cannot import pygame, get error instead
pygame installation issue in mac os
What is a StackOverflowError? How do I change my timezone to UTC/GMT? Currently when I execute the date command from bash I get the following displayed  Thu May 17 12:21:00 IST 2012  Below is my timezone config based on executing dpkg-reconfigure tzdata     Current default time zone: 'Europe/Dublin'   Local time is now: Thu May 17 12:32:52 IST 2012.   Universal Time is now: Thu May 17 11:32:52 UTC 2012.     Any idea how I change from IST to UTC/GMT? I have just installed Ubuntu 16.04 32-bit.   When I opened its software store, I found that it's not showing the apps I installed in Ubuntu 15.10 like Clementine, Gdebi package installer or synaptic package manager, dconf, acetoneiso etc.   I need these applications. How can I install them? Gauss's mean value theorem problem Suppose that  $f(z)$ is analytic and $f(z)\neq0$  on the disc $|z|&lt;1$ .  Show that for $0&lt;r&lt;1$,  $$ \exp\left[\frac{1}{2\pi}\int_{0}^{2\pi}{\log}|f(re^{i\theta})|\,d\theta\right] = |f(0)| $$  Any other theorems needed to solve this problem? I don't have any idea just with "Gauss's MVT"  Thank you in advanced. Connect to a MySQL server over SSH in PHP I have my database on remote Linux machine, and I want to connect using SSH and PHP functions (I am currently using ssh2 library for that). I tried using mysql_connect, but it gives me can't access (although I have granted permission) when I tried using this function:  $connection = ssh2_connect('SERVER IP', 22);  ssh2_auth_password($connection, 'username', 'password');  $tunnel = ssh2_tunnel($connection, 'DESTINATION IP', 3307);  $db = mysqli_connect('127.0.0.1', 'DB_USERNAME', 'DB_PASSWORD',                           'dbname', 3307, $tunnel)     or die ('Fail: '.mysql_error());   I got error "mysqli_connect() expects parameter 6 to be string, resource given". How can I resolve this? New questions, Show Recommended, Sort Newest not working polar decomposition of a square A when A is not full rank/invertible Cross-reference packages: which to use, which conflict? How do I parse command line arguments in Java? Margin of caption different than text body in 2-column table (cas-dc) How can I SELECT rows with MAX(Column value), PARTITION by another column in MYSQL? My table is:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   3 10 03/03/2009 john 300   4 11 03/03/2009 juliet 200   6 12 03/03/2009 borat 500   7 13 24/12/2008 borat 600   8 13 01/01/2009 borat 700     I need to select each distinct home holding the maximum value of datetime. Result would be:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   8 13 01/01/2009 borat 700     I have tried: -- 1 ..by the MySQL manual:   SELECT DISTINCT   home,   id,   datetime AS dt,   player,   resource FROM topten t1 WHERE datetime = (SELECT   MAX(t2.datetime) FROM topten t2 GROUP BY home) GROUP BY datetime ORDER BY datetime DESC  Doesn't work. Result-set has 130 rows although database holds 187. Result includes some duplicates of home. -- 2 ..join  SELECT   s1.id,   s1.home,   s1.datetime,   s1.player,   s1.resource FROM topten s1 JOIN (SELECT   id,   MAX(datetime) AS dt FROM topten GROUP BY id) AS s2   ON s1.id = s2.id ORDER BY datetime   Nope. Gives all the records. -- 3 ..something exotic:   With various results. I can't install Rainlendar 2 on my Ubuntu 18.04, I found this solution for 16.04 (), followed it, seems to work, but after install, there's no Rainlendar in my Show Apps, so I'm not sure what went wrong. When I issued sudo dpkg -i rainlendar2-pro_2.12.2.b138-1_amd64.deb, I got this:   Selecting previously unselected package rainlendar2-pro. (Reading database ... 190677 files and directories currently installed.) Preparing to unpack rainlendar2-pro_2.12.2.b138-1_amd64.deb ... Unpacking rainlendar2-pro (2.12.2.b138-1) ... dpkg: dependency problems prevent configuration of rainlendar2-pro:  rainlendar2-pro depends on libpng12-0; however:   Package libpng12-0 is not installed.  rainlendar2-pro depends on tofrodos; however:   Package tofrodos is not installed.  rainlendar2-pro depends on libjpeg62; however:   Package libjpeg62 is not installed.  rainlendar2-pro depends on libwebkitgtk-1.0-0; however:   Package libwebkitgtk-1.0-0 is not installed.  dpkg: error processing package rainlendar2-pro (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-11ubuntu1) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ... Processing triggers for mime-support (3.60ubuntu1) ... Errors were encountered while processing:  rainlendar2-pro   I got this after issuing this command in terminal sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED:   rainlendar2-pro 0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded. 1 not fully installed or removed. After this operation, 20.5 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 191316 files and directories currently installed.) Removing rainlendar2-pro (2.12.2.b138-1) ... Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ... Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...   What I'm doing wrong? After the last command it just removed Rainlendar and not installing dependencies as stated in the original post? TIA What is the complexity of finding SHA-1 collisions? Given the , what is the complexity of finding a SHA-1 collision?  Marc Steven's  is still detailing about 260. Does the previous complexity still hold? Is it possible to create a "weak reference" in javascript? Is there any way in javascript to create a "weak reference" to another object?   Can anyone think of a way to implement this  behavior in javascript? Replacements for switch statement in Python? When traveling to a country with a different currency, how should you take your money? Recently my wife and I traveled to Italy and before we left we got about 85% of our money in travelers checks and the other 15% we carried on in cash. When we arrived there, no one would take our travelers checks and many places did not accept credit cards. Eventually, we found some currency exchange places that would take the travelers checks and give us Euro's, but at a 7-15% fee, which was not really a very fun surprise.   While I was under the impression that it is safer to use travelers checks, it seems that they were not really accepted (the usual explanation being fraud). So the question is, is it best to just exchange your currency at home and carry all of it with you when you travel or are there other alternatives to carrying cash that are safer and cost effective? Repeating an equation including its content and number Determine the smallest positive value of x(in degrees) for which: $\tan(x+100^{\circ}) = \tan(x+50^{\circ})\tan (x)\tan(x-50^{\circ})$ I'm using +[NSUserDefaults standardUserDefaults] to store application settings. This consists of roughly a dozen string values. Is it possible to delete these values permanently instead of just setting them to a default value? How do I clone a generic list in C#?