I am very new to python language a day old in python. I have to add append two jason string comma separated  {'10.10.10.1': {'msg1': 'hello1'} &amp; {'10.10.10.2': {'msg2': 'hello2'} as {'10.10.10.1': {'msg1': 'hello1'},{'10.10.10.2': {'msg2': 'hello2'}  I know it's really very bad to ask such question.
I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union).  The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. &gt;&gt;&gt; x = {'a': 1, 'b': 2} &gt;&gt;&gt; y = {'b': 10, 'c': 11} &gt;&gt;&gt; z = x.update(y) &gt;&gt;&gt; print(z) None &gt;&gt;&gt; x {'a': 1, 'b': 10, 'c': 11}  How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)
prevent user creating a duplicate node title how to prevent user creating a duplicate node title for a content type?  I already try uniqueness module () but it's only list out the duplicate content title but not return any error message when user save the new content. Any suggestion module or code? :) I've installed reCAPTCHA module but spam still bypass my security and leave nasty comments. What should I do? How to block them? Ralink MT7601U (148f:7601) Wi-Fi adapter installation I am trying to install a Ralink wifi adapter in Ubuntu Desktop 14.04.  The system is not detecting the wifi.   lsusb lists the device as:  Bus 002 Device 004: ID 148f:7601 Ralink Technology, Corp.  I have the rt2800 USB driver listed in "/etc/modules"; Following some instructions on the web, I tried this command:  echo 148F 7601 | sudo tee /sys/bus/usb/drivers/rt2800usb/new_i  lsmod | grep rt2800 returns the following:  rt2800usb              26581  0  rt2x00usb              20041  1 rt2800usb rt2800lib              83150  1 rt2800usb rt2x00lib              48886  3 rt2x00usb,rt2800lib,rt2800usb mac80211              545990  3 rt2x00lib,rt2x00usb,rt2800lib crc_ccitt              12627  1 rt2800lib How do you Set Custom Time in Ubuntu? Extract Raster Value into Polygon Attribute I have Raster Data for a State which has Elevation Data in its pixels. I also have Vector layer which has the 300 divisions of State. what I need is, I want to get the average elevation value of particular division from the raster data using ArcGIS. I tried extract by mask in ArcGIS to extract individual polygon to clip the raster into 300 raster then from individual raster i have collected average elevation but it has taken days together to complete the work. Is there any other easy way to get it? Exec format error of gcc-compiled Hello World c++ On AWS Ubuntu Server, I wrote C++ Hello, World program:  #include &lt;iostream&gt; using namespace std;  int main(){         cout&lt;&lt;"Hello, World!"&lt;&lt;endl;         return 0; }   And compiled it:  ubuntu@ip-xxxxx:~/dev/c++$ g++ -c ./test.cc -o out ubuntu@ip-xxxxx:~/dev/c++$ chmod a+x out ubuntu@ip-xxxxx:~/dev/c++$ ./out -bash: ./out: cannot execute binary file: Exec format error ubuntu@ip-xxxxx:~/dev/c++$ file ./out ./out: ELF 64-bit LSB  relocatable, x86-64, version 1 (SYSV), not stripped ubuntu@ip-xxxxx:~/dev/c++$ uname -a Linux ip-xxxxx 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ubuntu@ip-xxxxx:~/dev/c++$ gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4   It seems that architecture x86-64 is the same each other. What is the problem here? Do I have to add more C++ flags? How to find an unknown Steam User I was playing with someone on Ark: Survival recently, I CTD'd and couldn't get his information. Are there any means that I could find this user's Steam account even though he hasn't logged in since?  I know of the function View: Players in Steam, but it only shows me the last 24 hours and I haven't played with this player in 3-4 days. Is there a way I could extend the view recent players function on Steam? Is there a record of this somewhere? Or do I have any further options? What is the number of triangles with integer sides, given the length of the longest side? Suppose $a,b,c \in\mathbb N$, and the value of $c$ is known and fixed, while $a$ and $b$ are unknown and are both smaller than $c$. What is the total number of unique triangles possible with $a, b$ and $c$ as its sides? Is tipping mandatory at Restaurants and Bars in Germany? In Bavaria, I paid for my drink, I asked her for "Ruckgeld", but only got the integer part of the money back, the rest of it, she kept it for tip! I looked her in the eye and she understood that I wasn't happy with that "initiative", but wouldn't blink an eye!  My company advised me to let it go, mentioning that if I was going to ask for the change, she would swear.  Notice how she didn't return me the correct amount back and then stare at me, demanding for tip, but she would decide for me!  Since, I will be around for a week or so, I was thinking of paying the exact amount of money next time. Will I get in an uncomfortable situation of having the waiter stare at me, demanding a tip? In other words, is tipping mandatory in Germany?    PS: Having experienced the tipping-cruelty in USA, and having tipped generously waiters across the Mediterranean for their supreme behavior, this Saturday night came as a shock, since I had the impression that this awful habit was only a USA-thing (you know, just like the fake audience laughing they have in USA TV series :) ). Selecting a database in mysql with spaces in its name I want to select my particular database in mysql console, but the problem is that my database name has a space in between and mysql ignores the part after the space. For instance, when i give the command:  use 'student registration'   I get the message:  cannot find database 'student' How many of Trelawney's prophecies have come true? Throughout the Harry Potter series, Professor Trelawney makes many different prophecies and predictions. Although most of them are implied to be nonsense, often enough they still get fulfilled. Which ones have come true? Which ones have been proven false? Which ones are still possible?  How many of Trelawney's prophecies have come true?  I'm not asking if Divination in Harry Potter is real, or what it is. I am asking for a finite list of which of Trelawney's prophecies came true, and which ones didn't. Does David not understand that humans can't live that long? In the movie AI: Artificial Intelligence, they say David's mom is dead because 2000 years have passed. Does David not understand that humans can't live that long? How to turn hundreds of text URLs in Excel into clickable hyperlinks? Would "mid-to-late" and "low-to-mid" hyphenated as compound modifiers? Would "mid-to-late" and "low-to-mid" be hyphenated as compound modifiers?  Examples:  Temperatures are expected to be in the low-to-mid 60s.  Joe, I think, is in his mid-to-late 80s.  He was in his middle-to-late 40s.  She was in her middle-to-upper 60s.  Temperatures are expected to be in the lower-to-middle 70s.  Are all correct?  Thanks!!! Expanding electromagnetic field Lagrangian in terms of gauge field Calculating the area of an irregular polygon Given the length of the sides of an irregular polygon (no coordinates provided) how do you compute the area of the maximum area of the polygon?   Thanks in advance How could C-3PO see Luke? Smooth structure of embedded submanifolds How to get rid of OTA software update notification? I upgraded my Nexus 4 to Lollipop a few days ago but I don't like it. I'll leave out my reasons because they're not relevant here. I wiped my phone and installed a clean stock 4.2.2 version instead. I'm happy with this.  Not long after, Android automatically downloaded the 4.3 upgrade and notifies me with the choices "Later" and "Install". I don't want to do this upgrade.  How do I:   get rid of the notification, and  remove the downloaded update (to free up precious storage space).     I have already tried choosing "Later" but the same notification immediately reappears.    Based on Google search results, I also tried going to Settings &gt; Apps &gt; All &gt; Google Services Framework and unticked "show notifications" but it still appears. Force stop or disable also doesn't seem to help, so I've re-enabled the service including notifications. I didn't see any other apps in this list that sounded relevant - did I just not see it? If my app is live and users are facing a critical issue, can I upload another build and ask Apple to make it live within a day or two?