print list in proper way python
Getting the class name of an instance?
if I write,  #!/bin/bash echo "foo"   or  #!/bin/sh echo "foo"   both yields same. I have seen some scripts starting with #!/bin/sh or #!/bin/bash. Is there any difference between them? Why my DCIM folder is empty seen in the computer but not empty in the phone I am using HuaWeiNova device, and I tried to access it with aft-mtp-cli. $ aft-mtp-cli $ ls DCIM/  I got folders listed here: |-photos |-Camera ....  When I tried to list or download my photos in the Camera/ folder, I got nothing. Only the empty folders are listed and the folders that contains files are not shown at all. I am quite sure my photos are stored in the Camera folder in my cell phone. How come I could not access my photos with my computer ? Can't view deleted questions via Android app Why is the gravitational force always attractive? Why is the gravitational force always attractive? Is there another way to explain this without the curvature of space time?   PS: If the simple answer to this question is that mass makes space-time curve in a concave fashion, I can rephrase the question as why does mass make space-time always curve concavely? Sometimes I want to learn about a new programming related issue—topics such as DB ORM, search indexer, identity providers, logging, etc.  When I don't know anything about a subject, I ask for benchmarks or comparisons. I got some serious answers like links to tests, pros/cons, and Gartner's reviews. I found these very constructive and helpful. But then the question was blocked or deleted. Sometimes this happens even before I get an answer.  So where would it be more appropriate to ask questions about third party products and/or open source frameworks with which I am completely unfamiliar? Get variable from PHP to JavaScript I found this odd relationship, $x^2 = \sum_\limits{k = 0}^{x-1} (2k + 1)$. Graphics horribly corrupted on Ubuntu 16.04 in VirtualBox, showing random strips of pixelated colors Inside a VirtualBox VM, I have installed myself an Ubuntu 16.04.1 LTS Server installation. However, when I installed the ubuntu-desktop package and rebooted, this happened:    Exact command I used: sudo apt-get update; sudo apt-get install ubuntu-desktop ..and then a reboot command.  This just seems like a corrupted top-left portion of the screen, as my cursor can appear in view (but corrupted):    This is a purely graphical issue because I can use the keyboard to successfully progress to a desktop:    Note: On startup it shows correct graphics for a split-second then reverts to glitch.    Any help on this? How to pass anonymous types as parameters? Our DM keeps interrupting our long rests In the latest campaign, we're still around the third level, but every single night we've spend in the wild so far, we were interrupted by hard combat encounters (as in DMG-worded "hard"), forcing us to use our resources (like HP, spell slots, Ki, once-per-day stuff) and not restoring any of those lost the previous days. I feel like the , as it lasts four to six rounds, so we usually say that we'd like to resume our rest but the answer is always "you've been interrupted, your rest is over, you can't restart any until dusk". So the only real long rests we could have always were in town.  We've always used watch-turns, and being interrupted in the first night of the campaign, we now always spend one hour to find a safe place to rest and we make that intent very clear to the DM. But yet, kobolds, goblins, ghouls and gnolls always find us in the middle of the night, but never when we travel for ten hours during the day (which is comparable to "fast travel" in his own word). Once on the second day in the wild, we were faced to a deadly encounter (as in DMG-worded "deadly") which we survived only by fleeing. And we're kind of forced to get back to the deadly encounter, which is more than one day away from the nearest town.  We're five players and I'm the only one with PnP RPG experience... from ten years ago. I don't remember being this resourceless. We asked if it was a survival campaign and the answer was that it was only a normal introduction campaign found on the Internet that he spiced up a bit. We've also asked if we did anything wrong and the answer was that we followed the normal story.  The DM is mastering his second campaign (the first one is still ongoing, but with veteran players). The DM also plays a lot of survival campaigns as a player.  Is this situation normal? If yes, why? If not, what should I say to the DM?  Note that I'm fully aware of the "long rest" rule as written on page 186 of the PHB. This is why I encouraged my team to say that we resume our rest. (thanks Bloodcinder) Looking to Identify Book that has a large Leviathan type ship on the front The cover has a large Leviathan type ship on the front.   It is set in deep space as the people on said ship have been living there for generations. They come across an abandoned ship and set out to check it out. There are several traps but it seems to be a human ship and they even find a lone woman. Unfortunately she turns out to be an alien and attacks. They end up on a planet where a factory/warehouse is found to contain bodies, they think were eaten/experimented on by the aliens. I thought the book was called Leviathan but can't seem to find it anywhere. I seemed to be an older book from the golden age maybe even up into the 70's but I haven't had any luck yet. Any help I could get finding this would be great,thanks. A positive integer is divisible by $3$ iff 3 divides the sum of its digits I am having trouble proving the two following questions:    If $p|N$, $q|N$ and gcd(p,q)=1, then prove that $pq|N$ If $x$ is non zero positive integer number, then prove that $3|x$ if and only if 3 divides the sum of all digits of $x$.   For both questions I tried to use theorems of discrete mathematics, but I could not find the way to solve them. How to resize partitions? Minimum value of $ f(x,y,z)=\left(x+\frac{1}{y}\right)^2+\left(y+\frac{1}{z}\right)^2+\left(z+\frac{1}{x}\right)^2. $ If $x&gt;0$, $y&gt;0$, $z&gt;0$ and $x+y+z=6$ then find the minimum value of    $$ f(x,y,z)=\left(x+\frac{1}{y}\right)^2+\left(y+\frac{1}{z}\right)^2+\left(z+\frac{1}{x}\right)^2. $$   Thanks in advance. Password protect folder without disk images? Is this possible? I know you can protect a .dmg file, but is there a more convenient solution, by using a third party application? How do I find out which process is eating up my bandwidth? I think I'm being the victim of a bug here. Sometimes while I'm working (I still don't know why), my network traffic goes up to 200 KB/s and stays that way, even tough I'm not doing anything internet-related.   This sometimes happens to me with the CPU usage. When it does, I just run a top command to find out which process is responsible and then kill it. Problem is: I have no way of knowing which process is responsible for my high network usage. Both the resource monitor and the top command only tell me my total network usage, neither of them tells me process specific network info.  I've found questions here about monitoring total bandwidth usage, but, as I mentioned, that's not what I need. Is there another command I can use to find out which process is getting out of hand?  The command iftop gives results that disagree entirely with the information reported by System Monitor. While the latter claims there's high network traffic, the former claims there's barely 1 KB/s.  I've already tried killing all the obvious ones (Firefox, update-manager, Pidgin, etc) with no luck. So far, restarting the machine is the only way I found of getting rid of the issue. When to use a hyphen to coin a new word and when to omit a hyphen? Someone has asked for answer to these topics. However, I still want someone to provide me with simple and universal answers. I recently read a sentence from the English-speaking person. It is in an article. It is, ' The available options for mitigating pad cratering are not universally effective (see link below), but they may be helpful on a case by case basis until more crack resistant laminates are developed and become available.  '  If I am to write this, I will use 'a case-by-case basis until more crack-resistant laminates'   Can anyone tell me when to use a hyphen to coin a new word? A little background:  I do not know what the specifics are, but I've noticed that a quick edit after a post will often times not result in an edit being posted. It's as if there was no edit. Edit: According to Bart this amount of time is five minutes.  The problem:  A user made a really bad post (said that ~ in C# wrt integers was used for deconstruction). I down-voted said post. Post quickly disappeared (I guess poster realized they screwed up and took back the post). Later, I come back and see my down vote but the answer is now correct (that ~ is the bitwise complement operator). I try to get rid of my down vote because it is no longer appropriate. However, it has been about half an hour and there is no edit posted (presumably the poster made an edit within the non-posting edit window) so I can't take my vote back.  Suggested solution:  If post gets edited (even within the non-post edit window) mark all the votes as changeable. I would guess that this would either involve an update on a table of votes or adding a column for last edit time which is not bypassed by the grace period. I realize that this may be an entirely non-trivial change, but unless the non-posting of edits is somehow changed to make sure the edit was trivial it seems this is necessary. how to use dom php parser Is there a way to adjust kerning for a specific character combination?