var some_uri = new URI("http://www.example.com/foo/bar"); alert(some_uri.authority); // www.example.com alert(some_uri); // http://www.example.com/foo/bar var blah = new URI("blah"); var blah_full = blah.resolve(some_uri); alert(blah_full); // http://www.example.com/foo/blah
Determining relative path with jQuery
<span class="com">// Initiate asynchronous load of xml data:</span><span class="pln"> jQuery</span><span class="pun">.</span><span class="pln">ajax</span><span class="pun">({</span><span class="pln"> type</span><span class="pun">:</span> <span class="str">"GET"</span><span class="pun">,</span><span class="pln"> url</span><span class="pun">:</span> <span class="str">"/wp-content/themes/mytheme/data.xml"</span><span class="pun">,</span><span class="pln"> dataType</span><span class="pun">:</span> <span class="str">"xml"</span><span class="pun">,</span><span class="pln"> success</span><span class="pun">:</span><span class="pln"> parseDataXML </span><span class="pun">});</span>
How Much Do Average Apps Make?
What we see here is that while decent amounts of money can be made on an app, a hard-working developer on iOS will be able to get a new car, while Android and Microsoft developers will be forced into the used car market if they plan to take those earnings on the road. At $4,000 in average revenue per app, Apple has a lead but it still begs the question as to how many developers can actually make a living directly from apps on any platform.
How I learned to develop Android apps in less than a year
A year ago I had a basic grasp of Python and I knew some HTML and CSS. Two weeks ago I published my first proper Android app and I’m being offered jobs as a web developer.
This is how I started learning programming.