Im not sure if i use the right terms, but im not able to find something to start with.  Im trying to develop a little HTML5 game. I have a ground with a texture and now I want to make a surrounding texture. The texture is an image wich should be bend around the ground.  At the moment im using  for display my images/textures. So im looking for some sort of Tutorial/Script/Advice. Im not even sure if I can bend a image in javascript. So the worst case I can think of is split the image in 100 pieces and then put it back together and rotate each piece.   for example like this:
Games like Super Metroid and Aquaria present the terrain with the other facing parts having rocks and stuff while deeper behind them (i.e. underground) there's different detail or just black.      I would like to do something similar using polygons. Terrain is created in my current level as a set of overlapping square boxes. I'm not sure if this rendering method will work such a system for creating terrain but if anyone has ideas I'd love to hear them. Otherwise I'd like to know how I should re-write the terrain rendering system so it actually works to draw terrain in this manner...
Where do I find system sounds? After installing gm-notify I see the option of hearing a sound every time a new e-mail arrives in my Gmail inbox, but I don't know where Ubuntu (10.4) stores the system sounds to assign one. Any ideas? Thanks. Do I need the original discs to install WoW on a new computer? My boyfriend bought the World of Warcraft Battle Chest, Wrath of the Lich King, &amp; Cataclysm. He downloaded them to our previous computer, but now we have a new one and when he took out the first disk from the battle chest he severely scratched it. Anyway, I tried putting in disk #2, and it said I couldn't do it without disk 1 (which is scratched!).  I've recently put in Wrath of the Lich King (it came with 2 CDs), and it said that I haven't downloaded the original and asked me if I wanted to downloaded. I clicked "yes" -- does that mean its downloading WoW &amp; The Burning Crusade? Or do we need to buy it all again?  We just bought the whole set on June of this year... What is the Python equivalent of static variables inside a function? Not enough space in /var/cache/apt/archives/ Is there a program to mine bitcoins in ubuntu 13.10? Formatting datetime2 in LaTex to 4th September, 2016 without the current day? I'm currently using  \usepackage[UKenglish]{babel} \usepackage{datetime}   and I'm getting  Sunday 4th September, 2016  with the commands \today or with \newdate{example}{01}{09}{2016} (outside of \begin{document}) and \displaydate{example} inside the document.  How can I reformat this date to not have the name of the day in it (Best would be with using datetime2)? So like 4th September, 2016. With the "th" as a high letter like this:   Full document example:  \documentclass[a4paper, 12pt, DIV=calc, headings=small]{scrreprt} %Used packages \usepackage[UKenglish]{babel} \usepackage[utf8]{luainputenc} \usepackage{datetime}  %Other definitions \pagenumbering{arabic}  \newdate{sample}{31}{01}{2017}   \begin{document} \displaydate{sample}\\ \today \end{document} To power my microcontroller (ATmega8), I am using a ~5.4V voltage source. I want to ensure that I don't accidentally connect the voltage source in reverse, and figured a diode would be a nice way to accomplish this as from what I have learned so far, a diode allows current to flow in one direction, and blocks it in the other.  But what I also learned is that diodes create drops in voltage. I have a few of the typical diodes (1N4001, 1N4148, etc.), and would like to use them to achieve the aforementioned result without dropping the voltage as it would be too low to power the IC.  My question is, is there any way to do this with a diode? Or do I need some other component (if so, what would you recommend)? Is there really no English equivalent to German's “Fachidiot”? There was the following paragraph in the article that came under the title, “GOP and the rise of Anti-knowledge” written by  (October 29, 2015):     “English unfortunately doesn’t have a precise word for the German   “Fachidiot,” a narrowly specialized person accomplished in his own   field but a blithering idiot outside it. In any case, a surgeon is   basically a skilled auto mechanic who is not bothered by the sight of   blood and palpitating organs. We need the surgeon’s skills on pain of   agonizing death, and reward him commensurately but that does not make   him a Voltaire.”    In Japanese we have a word, 専門バカ, of which literal translation is “specialist idiot” meaning exactly same as defined the above - a narrowly specialized person accomplished in his own field but a blithering idiot outside it.  I’m really curious about the absence of short descriptions of the specialist who knows nothing more than his specialty area in English like German “Fachidiot,” and Japanese "専門バカ."  Isn’t there really any short word counterpart to “Fachidiot,” specialist’s ignorance, for instance, in English?  P.S.  I found "narrow-minded specialisit" as a German-to-English translation of "fachidiot" in the web site, Interglot translation dictionary. Is it possible to log a program's network activity in Windows 7? Does anyone know of a program or way to log all network activity to a specific program on one's computer (program and/or service)?  I know I can see this "live" in Resource Monitor, but I'm wondering if anyone knows of a program or way to track and log all network activity to/from a specific process and/or service.  I'm finding a lot of "live"-type monitors, like Windows Resource Monitor, but nothing that can log. I have a text file named "Hex_data.txt". I want to load content of Hex_data.txt into a variable name RAM in verilog. When I try this, I get an error that the text file can't be found. Where is this file loaded from?  The content of "hex_data.txt" :            21            a4          2a          26          7a          ff           6f   I want to create a variable name "RAM" defined like:   reg [6:0] RAM; in which the above content save like:  RAM[0]=21     RAM[1]=a4           RAM[2]=2a             RAM[3]=26            RAM[4]=7a             RAM[5]=ff             RAM[6]=6f   I wrote a code:  module file_read;      reg [7:0] RAM [0:6];          initial $readmemh("Hex_data.txt", RAM);   integer i;               initial begin                    $display("data:");                for (i=0; i &lt; 7; i=i+1)                $display("%d:%h",i,RAM[i]);              end                 endmodule        But the above code not working. How can i get desired output? I just created a plane and added a wave modifier to it, to simply make it look like something fluid. Now, I have an Object that I want to place on the surface of this fluid plane. But how do I do that?  I thought of adding a driver to my Objects location, but I have no clue how to get the location of a certain vertex in runtime. migrating / merging iphone contacts I have an iPhone 6 (with proper iTunes backup) where all of my contacts where, but I bought a new iPhone 7 and had to initialize it as new iPhone, due to several time-related constraints, so now I have a few but new contacts on my new phone, but none of the older ones, but would be the best practice oriented, for just recovering the old contacts from the iTunes backups?  PS: I still have the old iPhone 6, so it could be used as "temporary storage" if needed. Calculation of pressure from flow rate of water Anybody kindly help me to find how to calculate pressure in bar from flow rate. I have a pipe and from that I am transferring water at a constant flow rate of 5ml/min. At this flow rate, with a 0.5 cm diameter pipe, what will be the pressure generated by water? Can we let users with privileges on one site have them on another? I have almost 4k reputation on Arqade. On Stack Overflow, I have to suggest edits and can't hit the close button. But I want to help with the close queue, which is at 62k at the time of this writing.  While I realize that people may be inexperienced with the system, I think I am experienced enough. If I want to edit something, I have to let it sit in the queue and get robo-reviewed. Yes, I know more about gaming than about coding. But I think I would know if this question is a duplicate of that, and if this question is off topic.  So, my request is that we should have the same privledges on every site, based on the site that we have the most reputation in. I am not asking that all the reputation be merged. cp - cannot create regular file : permission denied I want copy to /lib/udev but gives error  cp -f /tmp/ok_pcscd_hotplug.sh /lib/udev  cp:cannot create regular file /lib/udev/ok_pcscd_hotplug : Permission denied   I am root , but I can't understand . what can I do ? locating latitude-longitude point in a piste-map with matrix transforms I am trying to plot points of a particular latitude longitude on this image of a Swiss mountainous landscape.    What I am doing is I have some 54 known location-points plotted on this image (not visible in the linked image), which is a piste map, and is therefore an artist's impression of the landscape. I found out the latitude-longitudes and also height above sea level for these 54 known points. I opened my piste map in the GIMP, and plotted the 54 points, while at the same time reading their co-ordinates in points, in the piste-map. So, I have x-y coordinates (lat-long) and z coordinate (height above sea level) for all those 54 points (so its a 3d co-ordinate system that I have), and I also have X-Y coordinates of those places in my piste-map (a 2d co-ordinate system), and I assume a Z=1 for all those points.   To locate a particular lat-long on my piste-map(I have the coordinates for this place, i.e. the lat-long but not elevation), I need to calculate their X-Y on the piste-map. My approach is, that I calculate distances between this point which is to be located and those 54 known points , and then I sort them in ascending order. The first two points in this order will be the nearest points to the one which we want to locate. Now, I find my 3rd known point, and for that, I loop over the rest of the points, to get the nearest possible point such that this point forms a triangle with the first two closest points with the point which is to be located falling inside the formed triangle. Now, I have three known points forming a triangle say triangle ABC. For these known points, I have a triangle A'B'C' in the piste map, and the point to be located lies in the latter. I figure out the transform matrix which when multiplied with the 3X3 matrix of the three known points(in this 3X3 matrix, each row corresponds to a point, with the column values x,y and z in the 3d scape) results in a 3X3 matrix of those points in the piste-map. I multiply this transform matrix calculated with a new 3X3 matrix for three points, the first one being the point to be located, and the remaining two are the last two known points in the first 3X3 matrix. This way, the first two elements of my resulting matrix are the X and Y values for the point to be located, and I proceed ahead to draw the point on the piste-map. Is this approach correct with respect to the way I am using the transform matrix? Thanks! I would really appreciate if any alternative approaches are suggested as well! Deciding what answer to accept: the correct one-liner or the later elaborate one with code? Lately I've been getting some good answers to some specific questions. However, I've been hesitating on what answer I should accept.  Do I go with the short quick answer or do I accept a later answer where someone has elaborated on the previous answer with some code?  It's not really important but it kind of bugs me to not accept an answer when people have taken the trouble of replying.  Here's two examples: C++ Redefinition Header Files (winsock2.h) Sufficiency to prove the convergence of a sequence using even and odd terms What exactly is the cause of RAM incompatibility? I'm looking at rather short QVL lists from manufacturers, and I'm wondering what is the underlying cause of RAM incompatibility aside from the obvious: Obvious Reasons for Incompatibility  RAM Generation (DDR, DDR2, DDR3, DDR4) Form Factor / pin count RAM Type (ECC vs Non-ECC, Registered vs not, Buffered vs not) Minimum speeds on a board that cannot adjust the memory frequency Non-standard voltage range on a board that cannot adjust the memory voltage Channel count (single vs dual vs quad) Bad or inoperable module Mismatched set  Not Obvious Reasons  Brand SKU Max Capacity Speed too high  As in, why can't motherboard manufacturers just list the specifications of the RAM they will accommodate, and support every memory chip of that category instead of listing specific SKUs from specific brands? What happens electrically/physically that causes boards to fail to POST / operate with RAM that is otherwise 'compatible' with all of the specifications of RAM that is on the QVL?