Jump to content

Markup

Members
  • Content Count

    612
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Markup

  • Rank
    Scorpion Pit

Profile Information

  • Gender
    Not Telling

RuneScape Information

  • RuneScape Status
    None
  1. C/C++ is necessary for understanding key concepts and logical programming. I'd expect any competent programmer to have knowledge of most languages. My favourite languages are Python, C/C++, JavaScript. I do not like Java at all, although it is still quite good. Functional languages such as Haskell are interesting... Database Management and Networking are mainly tool based. You'd need to know a shell language such as bash. For databases you'll need to know SQL and a language to perform SQL statements. Database management SQL would probably be better suited to a scripting language such as python. Apps are unfortunately popular now. Java(android), xcode/C++/objective c?(apple), HTML+CSS+JavaScript. It's hard to suggest a language because IMO you should learn a language that enables you to complete interesting goals quickly otherwise you get frustrated and bored quickly. My first language was Small/Pawn for AMXX where I scripted server plugins for a game called counterstrike. When I had finished a plugin I had something I could share with others and play with which was great as fun. Nowadays I do impulse projects - example, my friend was using a JavaScript IRC client yesterday, I decided I'd write a grease monkey script to hook the qwebirc client and create an IRC bot. The interesting part being the hooking process(JavaScript is fun). It doesn't stop there though. Once I discovered I liked JavaScript I decided I'd compile googles v8 JavaScript engine which is written in C++. So now I'm using JavaScript in C++( have done this for CPython too). Imo, http://www.cplusplus.com/doc/tutorial/, follow this tutorial up until object oriented programming. Data types, operators, control structures and functions are core to most languages. Then have a play around and look at other languages.
  2. The manufacturing process of CPUs doesn't have a 100% yield. If they produce a quad core CPU and 1 core is defective then they sell it as a tri core. They also disable cores to meet market demand. http://www.cpu-world.com/info/AMD/Unlocking_cores_and_L3.html http://www.zdnet.com/blog/btl/why-amds-triple-core-phenom-is-a-bigger-deal-than-you-think/6334 http://www.legitreviews.com/amd-triple-core-marketing-hype-or-mainstream-killer_240
  3. Markup

    Tablets

    Connection was definitely fast enough, I probably didn't know how to work it properly. What do you think of the Nexus 7, what do you use it for?
  4. Looking to buy a tablet £300 max. Currently I'd pick Nexus 7 > Samsung Galaxy Tab 3 I've ruled out Apple because of the developer limitations. One of my main media requirements is streaming over http, VLC for Android should be fine for this but when I tested it out in the shop on a Nexus 7 it'd only play sound (mkv) and I didn't have enough time to try other files. Thoughts on 7" / 10", screen size for media compared to portability/ergonomics. The iPad mini is the perfect [email protected]". Having played with the Nexus 7 it felt just a little bit too small @ 7". Galaxy Tab 3 is 8", but the Nexus 7 is much faster(is speed even an issue?).
  5. Going back to this. It doesn't work on firefox because firefox overflows to the right not downwards. Changing height for width and top for left makes it work, although it's not aligned properly. Edit: http://jsfiddle.net/ERnxH/12/ $(document).ready( function(){ page = 1; } ); $("#next").click( function(){ var width = $("#book").outerWidth() $("#container").css("left",(-width * page) + "px"); page += 1; } ); $("#back").click( function(){ page -= 1; var width = $("#book").outerWidth() $("#container").css("left",(-width * (page-1)) + "px"); console.log($("#container").css("left")); } ); This works on firefox, and accounts for padding/border which is the hardcoded 16.
  6. Something else too, if it ends between a tag then it replaces the last few chars with an end tag?: >>> element.innerHTML.length 1493 >>> element.innerHTML.substring(1480, 1493); "nbsp;<i>I</i>" >>> str.substring(1480, 1493); "nbsp;<i>I mus"
  7. So the real fix honest is: var fixstr = document.createElement("div"); fixstr.innerHTML = story; story = fixstr.innerHTML;
  8. And another one I've found: Edit: this one was caused because it doesn't have an opening <i> highlighted by the red </i> element.innerHTML.substring(1199, 1210);"y. <br> &nb"str.substring(1199, 1210);"y.</i> <br>"str.substring(1199, 1220);"y.</i> <br> &nb"
  9. Okay so replace only replaces the first occurence. The fix is: story = story.replace(/\r/g,"");
  10. There are definitely carriage returns, at least on firefox. You've readded the insertBefore error aswell
  11. Edit: solution to original problem Well your problem is that when you set innerHTML it strips \r\n to \n. To fix just use .replace("\r",""); on the book data after you've retrieved it. function openStory(path){ xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET",path,false); xmlhttp.send(null); var lines = xmlhttp.responseText.split("[[zxjz]]"); story=lines[1]; story = story.replace("\r",""); }
  12. Did you test this on firefox? Isn't working for me You need to change insertBefore to [email protected] 690 TypeError: Not enough arguments to Node.insertBefore. div.insertBefore(leftPage); Firefox again You really need to update your browser. 23.0.1
  13. I rarely use linux for desktop use and know hardly anything about distributions, but for a beginner I think it has to be Ubuntu. I personally use Arch which I have on my raspberrypi and on a virtual machine.
  14. Did you test this on firefox? Isn't working for me You need to change insertBefore to [email protected] 690 TypeError: Not enough arguments to Node.insertBefore. div.insertBefore(leftPage); Firefox again
  15. The dropbox link is giving a 403 forbidden, so the example doesn't work.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.