<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>CuppaDev - Latest Comments</title><link>http://cuppadev.disqus.com/</link><description></description><atom:link href="https://cuppadev.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 02 Oct 2019 13:54:15 -0000</lastBuildDate><item><title>Re: New post</title><link>http://test2.cuppadev.co.uk/2019/10/02/new-post/#comment-4637474386</link><description>&lt;p&gt;Test&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Wed, 02 Oct 2019 13:54:15 -0000</pubDate></item><item><title>Re: CuppaDev - Optimizing TorqueScript</title><link>http://www.cuppadev.co.uk/2012/10/optimizing-torquescript.html#comment-2845504336</link><description>&lt;p&gt;Proper optimization of that kind of thing in JS looks good especially for a lot of people who wanted to have some output that will going to guide them and would help them in understanding new outputs in programming.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">write my essay for me</dc:creator><pubDate>Fri, 19 Aug 2016 02:09:46 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-854781871</link><description>&lt;p&gt;Amazing work, would be very nice to have a look on source code. Thanks for the explanations&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">JC</dc:creator><pubDate>Sun, 07 Apr 2013 00:27:22 -0000</pubDate></item><item><title>Re: CuppaDev - Optimizing TorqueScript</title><link>http://www.cuppadev.co.uk/optimizing-torquescript/#comment-744990423</link><description>&lt;p&gt;Please do Ben. While there are good parts, I think overall the current implementation of TorqueScript is a complete nightmare. You can only stretch a heavily string-based scripting interpreter so far which I think is a huge let-down for Torque. 10 years on and we're still using the same basic implementation? Crazy.&lt;/p&gt;&lt;p&gt;TBH I probably wouldn't have bothered trying to fix it if it weren't for the horror of iT2D. While mobile platforms aren't the fastest in the world, doing the simplest of things in TS seemed to be intolerably slow.&lt;/p&gt;&lt;p&gt;For the next article I improved the type system and added arrays, but I ran into real problems with the way the interpreter worked in certain edge-case scenarios (breaking the editors), and I have yet to bring myself to look through the code and debug the mess.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Fri, 21 Dec 2012 13:55:58 -0000</pubDate></item><item><title>Re: CuppaDev - Optimizing TorqueScript</title><link>http://www.cuppadev.co.uk/optimizing-torquescript/#comment-744970764</link><description>&lt;p&gt;It also corrupts memory if you delete stuff that's referenced in the script stack. I've recently been doing some work on a scripting language, I should post about it on my blog...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben Garney</dc:creator><pubDate>Fri, 21 Dec 2012 13:37:23 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-741160220</link><description>&lt;p&gt;Thanks for your suggestions :)&lt;/p&gt;&lt;p&gt;At present I'm still a Ruby novice but I will have a poke around and see what I can come up with - lots of reverse engineering at the moment!&lt;/p&gt;&lt;p&gt;Essentially I'm aiming to put a video stream like this onto my website, operated by several admin/curators, which viewers would sit back and watch. The admin would put together the playlists, and have these shuffled at regular intervals, and if I can figure it out, even have different playlists/queues load in at different times of the day.&lt;br&gt;The viewers wouldn't be able to modify the playlists or the queues.&lt;/p&gt;&lt;p&gt;This has got me off to a good start though - thanks so much for sharing this!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 17 Dec 2012 17:55:41 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-741121398</link><description>&lt;p&gt;If you want to implement a shuffle, all you need to do is iterate through the channel playlist and update the video "position".&lt;/p&gt;&lt;p&gt;If you look in web_socket_app.rb , when reordering the playlist the frontend invokes the command 'sort_videos', which reorders the playlist based on a specified order. When saved the modified videos will send a message to the channel notifying everyone of their new position in the list.&lt;/p&gt;&lt;p&gt;If you want things to happen in the background, check the implementation of do_timer in subscribers.rb. This handles automatically advancing channel videos in channels without active leaders.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Mon, 17 Dec 2012 16:58:00 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-741105139</link><description>&lt;p&gt;Wonderful, I'll play around with this further :)&lt;/p&gt;&lt;p&gt;On another note, would you have any advice on how I could implement a shuffle feature into the playlist? I'm trying to setup the player in a way so that I can load quite a large playlist into the queue (a few hundred videos), and then have the server automatically shuffle this every few hours?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 17 Dec 2012 16:32:41 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-740657307</link><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;The margin of error for setting the time is controlled by Tube.video.timeMargin, which by default for Youtube videos is set to 2s.&lt;/p&gt;&lt;p&gt;I'll see about improving the error handling here so catchup issues can be more cleanly resolved.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Mon, 17 Dec 2012 06:34:26 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-740581867</link><description>&lt;p&gt;I have this up and running after configuring my Linode for a day - works good :)&lt;/p&gt;&lt;p&gt;One question.&lt;br&gt;Sometimes I will run into an issue where if my internet is momentarily slow, and doesn't load the YouTube video as quickly as it should, I fall into this weird loop where the video begins an endless buffer catch up, and won't play, it will just buffer through the video entirely because by the time it has buffered the new position the server has scrubbed me to, it's already moved along 3 or 4 seconds, and keeps trying to sync up.&lt;/p&gt;&lt;p&gt;Is there a bit of code I can play around with which will widen the gap between how far the user and the server can be out of sync?&lt;/p&gt;&lt;p&gt;Many thanks :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 17 Dec 2012 04:47:52 -0000</pubDate></item><item><title>Re: CuppaDev - Using OpenAL on iOS</title><link>http://www.cuppadev.co.uk/openal-on-ios/#comment-679676894</link><description>&lt;p&gt;Source are reusable, but there was a bug in IOS5 that caused them to erratically only play the first buffer if you used alsourcei passing in NULL as the last param to remove the buffers.  This bug is fixed in later versions of IOS, but can be worked around in IOS 5 by manually UnQueueing the buffers prior to the call to alsourcei that passes NULL.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gerald</dc:creator><pubDate>Fri, 12 Oct 2012 06:53:53 -0000</pubDate></item><item><title>Re: CuppaDev - Where is ScummC?</title><link>http://www.cuppadev.co.uk/where-is-scummc#comment-638944904</link><description>&lt;p&gt;Back when I first made the repository I copied what I could of the documentation to the wiki on the github project. Apart from that you can use &lt;a href="http://archive.org" rel="nofollow noopener" target="_blank" title="archive.org"&gt;archive.org&lt;/a&gt; to browse the old scummc site in case anything else was missed&lt;/p&gt;&lt;p&gt;Have fun!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Mon, 03 Sep 2012 18:38:23 -0000</pubDate></item><item><title>Re: CuppaDev - Where is ScummC?</title><link>http://www.cuppadev.co.uk/where-is-scummc#comment-638941797</link><description>&lt;p&gt;so you are the one who made the git repo of scummc. I'm here to say thank you and to know if you can also share original documentation because the source seems offline.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Giovanni Cappellotto</dc:creator><pubDate>Mon, 03 Sep 2012 18:33:03 -0000</pubDate></item><item><title>Re: CuppaDev - Revisiting Android Development</title><link>http://www.cuppadev.co.uk/revisting-android-development/#comment-600725164</link><description>&lt;p&gt;It is good decision if you are developing the  androids applications in futures because today android has market and money to invest. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mobile Application Development</dc:creator><pubDate>Sat, 28 Jul 2012 08:52:29 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-564869457</link><description>&lt;p&gt;Hey Alex, looks like there was a server restart and tubehub didn't get reloaded. It should work fine now.&lt;/p&gt;&lt;p&gt;I did put the code up on github before, but there wasn't really any interest so i pulled it. I'm currently rewriting it in rails and changing the backend so its a little easier to configure, then i'll probably be open sourcing in on github again.&lt;/p&gt;&lt;p&gt;Thanks for your interest! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Fri, 22 Jun 2012 17:26:04 -0000</pubDate></item><item><title>Re: CuppaDev - Syncing Youtube with Websockets</title><link>http://www.cuppadev.co.uk/syncing-youtube-with-websockets/#comment-564704159</link><description>&lt;p&gt;Is there any source code in it? Is testtube still online?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexandre Rocha Lima e Maronde</dc:creator><pubDate>Fri, 22 Jun 2012 14:00:24 -0000</pubDate></item><item><title>Re: CuppaDev - Postmortem of a Ludumdare 23 Game</title><link>http://www.cuppadev.co.uk/ludumdare-23-postmortem/#comment-508226048</link><description>&lt;p&gt;I kind-of wanted to try making an RTS beforehand, the inspiration just spurred me on that line of thinking for the Ludum Dare. :)&lt;/p&gt;&lt;p&gt;I definitely agree writing a good RTS is a PITA. If i did another Ludum Dare i'd definitely go for something with a good simple but addictive component with dumb or non-existent enemies.&lt;/p&gt;&lt;p&gt;Nice postmortem - i hope you score well in the contest regardless :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Tue, 24 Apr 2012 17:49:25 -0000</pubDate></item><item><title>Re: CuppaDev - Postmortem of a Ludumdare 23 Game</title><link>http://www.cuppadev.co.uk/ludumdare-23-postmortem/#comment-508208160</link><description>&lt;p&gt;I suspect we both have  @mode7games ' tweet to thank for our failed attempts to make an RTS this Ludum Dare. Although my units all being round saved me a lot of trouble with colission detection, there's just so much to get right to get an RTS ready and fun. Even if you get unit control smooth and done, together with simple art, simple noises and maybe a music track in the background, there's still no game. For that you need an enemy, either in the form of another player, which requires you to write a server and netcode, or an AI.&lt;/p&gt;&lt;p&gt;My postmortem is here: &lt;a href="http://www.ludumdare.com/compo/2012/04/22/ld-23-post-mortem/" rel="nofollow noopener" target="_blank" title="http://www.ludumdare.com/compo/2012/04/22/ld-23-post-mortem/"&gt;http://www.ludumdare.com/co...&lt;/a&gt; and is quite a lengthy read. I ended up getting the "mining" ready to the stage where, in a last hour rally, I could wrap it in a menu and submit it as a tricky little mineweeper-replacement. I contionued working on the RTS, in the hope of getting it done for the Jam, but after writing an AI that simply wasn't beatable (the mechanics were still simple enough that it was able to paly pertty much perfect) and restructuring the engine to handle multiplayer it still is nowhere near done submittable...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tommy Schmid</dc:creator><pubDate>Tue, 24 Apr 2012 17:23:28 -0000</pubDate></item><item><title>Re: CuppaDev - Help! I Have a Memory Leak</title><link>http://www.cuppadev.co.uk/help-i-have-a-memory-leak/#comment-460445032</link><description>&lt;p&gt;In my case i didn't want to add too many extra complications by adding boost to the project, so i just made my own classes. Still, good to consider :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Fri, 09 Mar 2012 03:37:48 -0000</pubDate></item><item><title>Re: CuppaDev - Help! I Have a Memory Leak</title><link>http://www.cuppadev.co.uk/help-i-have-a-memory-leak/#comment-460299108</link><description>&lt;p&gt;Problems 1, 2 and 4 can be fixed by using reference counted pointers as a matter of course. boost, or the new C++0x standards have them as standard objects. intrusive_ptr, shared_ptr and unique_ptr are all ridiculously useful, don't leave home without them :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">n c</dc:creator><pubDate>Thu, 08 Mar 2012 22:39:20 -0000</pubDate></item><item><title>Re: CuppaDev - Help! I Have a Memory Leak</title><link>http://www.cuppadev.co.uk/help-i-have-a-memory-leak/#comment-459182905</link><description>&lt;p&gt;Hi! &lt;br&gt;So do I. Recently discovered this program. It helps to catch the leaking well,especially those associated with the GDI-Objects &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">beaver</dc:creator><pubDate>Wed, 07 Mar 2012 15:56:53 -0000</pubDate></item><item><title>Re: CuppaDev - Help! I Have a Memory Leak</title><link>http://www.cuppadev.co.uk/help-i-have-a-memory-leak/#comment-458137837</link><description>&lt;p&gt;+5 Excellent article  &lt;br&gt;But I usually use deleaker.This indicates to me in which line is leakage.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Роман Горенко</dc:creator><pubDate>Tue, 06 Mar 2012 16:11:07 -0000</pubDate></item><item><title>Re: CuppaDev - The Melancholy of Startups</title><link>http://www.cuppadev.co.uk/the-melancholy-of-startups/#comment-453519175</link><description>&lt;p&gt;Amazing, I'm going through that same kind of burnout right now... but my environment is a complacent environment not a start up... I too came from a great lifestyle I created thinking I'll "do something diffferent" and joined "an established web company". Now, my work is boring uninspired and I cannot use the "next best thing" but the "absolute last thing that was hacked together and kinda works"... None of my work can stand alone nor does it "count" in a big picture... I nearing 2 years here now, I'll be like you - i.e. OUT SOON!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous Girl</dc:creator><pubDate>Thu, 01 Mar 2012 12:12:09 -0000</pubDate></item><item><title>Re: CuppaDev - Where is ScummC?</title><link>http://www.cuppadev.co.uk/where-is-scummc#comment-376649044</link><description>&lt;p&gt;The link is in the blog post&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Thu, 01 Dec 2011 08:45:25 -0000</pubDate></item><item><title>Re: CuppaDev - Where is ScummC?</title><link>http://www.cuppadev.co.uk/where-is-scummc#comment-376645396</link><description>&lt;p&gt;I would like to obtain a copy of the source code for a personal final project involving this platform. Would it be possible?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jaimito Hendrix</dc:creator><pubDate>Thu, 01 Dec 2011 08:38:05 -0000</pubDate></item></channel></rss>