• Categories
    • Unread
    • Recent
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • GoaNyG

      What's the biggest PC game you own?

      Watching Ignoring Scheduled Pinned Locked Moved Gaming
      2
      0 Votes
      2 Posts
      722 Views
      ScuzzS
      I only have a few games installed. The Evil Within is currently winning at 38GB but if i install the HD texture pack for Shadow of Mordor I think that would be the largest at the moment. I did download Killzone 3 which was roughly 40GB.
    • AntuA

      Browser Pong

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding programming pong game
      2
      4 Votes
      2 Posts
      920 Views
      AntuA
      I set the source public yesterday on Github and MDN in case anyone is interested in it. I’m going to take a break for the holidays, and start work on some new projects next year. See you.
    • AlmostA

      Offers from Google Play

      Watching Ignoring Scheduled Pinned Locked Moved Tech
      2
      0 Votes
      2 Posts
      577 Views
      ScuzzS
      You get sweet deals with Chromecast too.
    • ScuzzS

      NodeBB v0.6.x

      Watching Ignoring Scheduled Pinned Locked Moved Announcements nodebb upgrade
      2
      0 Votes
      2 Posts
      821 Views
      ScuzzS
      I’ve finally got round to upgraded to the latest version of NodeBB! After spending days messing about trying to get the forums backup and and running i attempted to load our old database and user the latest version of NodeBB. And guess what? it worked! Everything (mostly) is back to how it was before. See you in another 10 years.
    • AlmostA

      [spoilers] Monument Valley

      Watching Ignoring Scheduled Pinned Locked Moved Gaming
      2
      1 Votes
      2 Posts
      487 Views
      ScuzzS
      Link for the lazy It’s currently £0.49 on the UK Play store.
    • AntuA

      I made an 8-ball

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding
      2
      2 Votes
      2 Posts
      542 Views
      FireladF
      Saw this and I had to play around with it. Here’s results: [image: AcdGDS4.png] [image: 18gm70f.png] Turns out I’m not gay… LOL
    • AlmostA

      Gamertag Thread

      Watching Ignoring Scheduled Pinned Locked Moved Gaming
      2
      0 Votes
      2 Posts
      362 Views
      SchamperS
      @Schamper: Schamper
    • AlmostA

      Android Keyboards

      Watching Ignoring Scheduled Pinned Locked Moved Tech
      2
      0 Votes
      2 Posts
      1k Views
      ScuzzS
      I was using the stock keyboard for Cyanogen Mod, I dont know what it is but it is pretty bad. I found that it predicted what i wanted but would not auto correct my words. I stuck it our for a while thinking it was just my fat finger typing but switching to Swift Key has been a massive improvement. I would suggest you try Swift Key. The predictions are great and i can type as fast as i can without many mistakes. The only mistakes I have are when i try and type slang or some word that isn’t real it auto corrects to an actual word. It also has that swipe thing too.
    • AlmostA

      Accidental Emoticons

      Watching Ignoring Scheduled Pinned Locked Moved The lounge
      2
      0 Votes
      2 Posts
      99 Views
      theDaftDevT
      aLc = A soldier with a rifle and a mic. Source: bf3
    • ScuzzS

      [nodebb-theme-seawolf] A dark theme for NodeBB

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding
      1
      0 Votes
      1 Posts
      920 Views
      ScuzzS
      Hi guys, Here is a theme I have been working on for NodeBB. It’s based on the Vanilla theme. I found the colour scheme at https://kuler.adobe.com/ which has some very nice colour schemes. It’s worth checking out. Screenshots of the theme: [image: ZeTsVe5.png] [image: zjzhF1B.png] [image: 4t5oojS.png] This is a work in progress so expect some bugs and some ugliness until I can sort them out. The admin panel need work but I’m hoping to sort that out soon. This is my first time doing anything like this so be kind :) Github: https://github.com/BitBangersCode/nodebb-theme-seawolf Live Demo: http://bitbangers.co.uk
    • SchamperS

      Using websockets in your plugin

      Watching Ignoring Scheduled Pinned Locked Moved General Computing
      1
      0 Votes
      1 Posts
      1k Views
      SchamperS
      The Problem Say you want your plugin to communicate between client and server using websockets. There isn’t a documented (or “official”) way on how to hook into the websockets API of NodeBB. I was facing this issue with the Shoutbox plugin, and had to find a clever way to get it to work. The way I found is a bit “hackish” but actually works really well and is now actually being used by a core developer in one of his plugins. The Process of finding a Solution When digging around a bit in the NodeBB source you can see how their socket implementation works. For this we navigate to src/socket.io. In this folder we see some files. You can quickly see that index.js is controlling everything, and that all the other files are socket “namespaces” (e.g. all the socket calls that have the user prefix will be handled by the user.js file. I won’t go into too many details on how this works, you’ll just have to believe me on this :) When playing around with this, you find out that when you add another js file in that folder, you’ll have working sockets on that namespace! But we don’t want to change anything in core… We want to do this from a plugin! We will further investigate one of these files. I chose the modules file because I thought it would fit a Shoutbox the most. It’s some pretty basic stuff in here. SocketModules is defined as a new object, and so is every “module”, like SocketModules.composer. At the very end you can see that this file sets the module.exports to the SocketModules object. This means that when you require(..) this file, you’ll have access to everything in the SocketModules object, but nothing outside of it. This gave me an idea. Exploring the Idea From your plugin you can require(..) files from NodeBB using module.parent.require(..). In this way you can also require the modules.js file like so: var ModulesSockets = module.parent.require('./socket.io/modules'); ModulesSockets will now be whatever this file has given us as their export. In our case, the SocketModules object, which includes everything that was defined in the modules.js file, which are basically all the socket handlers for the composer, chat, etc… Here I enter my idea: What happens if I add my own custom sockets to this object? I simply tested this with something like this (from within my plugin): var ModulesSockets = module.parent.require('./socket.io/modules'); ModulesSockets.test = function(socket, data, callback) { console.log("Working?"); console.log(data); callback(null, "It worked!"); } Then, on the client, I entered something like this in the console: socket.emit('modules.test', {data: "Some data"}, function(err, result) { alert(result); }); And hit enter. And it worked! I saw the logs in the NodeBB log and was alerted with “It worked!”. Using all this information I came up with the following solution. #The Solution So the solution is quite easy. All you have to do is require the namespace you want to extend, and add your custom handlers. You could even replace the default handlers with your own in this way! In a bit of code: var ModulesSockets = module.parent.require('./socket.io/modules'); ... //I prefer to execute this in the "action:app.load" handler method ModulesSockets.shoutbox = Shoutbox.sockets; //in this case, my handlers will listen to "modules.shoutbox.*" ... Shoutbox.sockets = { //Bunch of socket handlers here } I hope you guys learned something from this :D If you have any corrections or enhancements please call me out on it :P
    • AlmostA

      Tabs vs Spaces for formatting

      Watching Ignoring Scheduled Pinned Locked Moved General Computing
      1
      4 Votes
      1 Posts
      563 Views
      AlmostA
      There was some confusion in the shoutbox about formatting with tabs and spaces, namely: “Why does it look fine on my computer, but look like shit on github?” The answer is in the difference between tabs and spaces. Part 1 - Tabs vs Spaces In a monospaced font, a space character is exactly 1 character in width. In a monospaced font, a tab character’s width is defined by whatever is rendering it. It is common for a tab character to have a width of 4 characters, but 3, 6, and 8 show up on occasion. For example, this markdown and the gist below it are using the exact same text: Hello - 4 spaces Hello - 1 tab https://gist.github.com/Kern--/52be2592e8517d6b7625 (Sorry -- become – outside of quotes) You’ll notice that the top line looks the same in both places, but the line below it is aligned on the forum, but not aligned in the gist. That’s because the forum uses 4 character wide tabs but the gist uses 8 character wide tabs. Part 2 - Why are tabs stupid? You may be thinking “why would you want tabs to render differently? Why isn’t there a standard width?” The answer is because people have preference. Lets say you think everything should be indented 6 spaces and your reaction is “6 spaces?!? Are you fucking out of your mind? 3 spaces is the perfect indentation!” If I go out and use 6 spaces, while you’re using 3, our code would look terrible and inconsistent and no one is happy. If we both agreed to use tab characters, I can set my editor to display tabs as 6 characters, and you can set yours as 3 characters. Then, we each see indentation how we want and even if we both look at a computer that’s using 8 characters and think “This is the ugliest code ever”, at least the indentation is consistent. So actually tabs aren’t stupid. They allow the look you want without causing inconsistency with other people’s look. Part 3 - Text Editors FTL At some point the idea that tabs are stupid came back. “Why does this look different here? Why aren’t we all seeing the code the same way? Minimizing differences between our view of the code is the only way we can be productive” So let’s pretend we’ve agreed that tabs are dumb. We’ve all decided we can live with 4 spaces of indentation, but I’m a lazy computer scientist and that tab button was really convenient. :/ But wait! We’re not using tabs any more! So the tab button won’t be used, right? Why don’t we make the tab button insert 4 spaces? Most text editors let you override tab to insert a specified number of spaces. That way, you can still use the tab button, but it will look the same for everyone. In my opinion, this is a huge mistake. Especially if you’re using a number spaces corresponding to a common rendering of tab, it makes it easy to accidentally mix them. E.G. on my computer, tab inserts 4 spaces. Then I switch computers and keep working, but I forgot to set the editor on this computer to replace tab characters. Well, if this editor renders tabs as 4 characters, it looks fine on my computer, but once I switch back to my old computer (which used 8 characters), I’ve got the same inconsistency issues I was trying to get rid of! The “replace tab with x space characters” is a useful option for the lazy programmer, but it also pushes the issue into the background, making it easy to accidentally mix tabs back in. Part 4 - Conclusions There were a few things I wanted you to get out of this post: The difference between tabs and spaces Why people want to use tabs Why people don’t want to use tabs How text editors made the whole issue that much more confusing What does this all mean for you? Make sure you know whether the existing codebase is using tabs or spaces AND know whether your editor is replacing tab characters with spaces Keep that in mind, and formatting issues should be easy to resolve. (P.S. the nodebb source uses tab characters) I hope you guys got something out of this. <3 Almost
    • SchamperS

      nodebb-plugin-buzzer

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding
      1
      0 Votes
      1 Posts
      482 Views
      SchamperS
      So for the sake of creating something silly I made this little plugin. It’s add a nice button called ‘Buzz’ next to the Send button in the chat modal. When pressed, the other user will have their modal shaken all about and an annoying little nostalgic sound will play! To prevent users from losing their sanity these are the limitations: You can only buzz a user if you both have the chat window open (this is very much intentional to keep it from being too annoying) A buzz will last about 1 second, and you can only buzz every 2 seconds. (this is very much intentional to keep it annoying, but not too annoying) Have fun :D npm install nodebb-plugin-buzzer Source: https://github.com/MrWaffle/nodebb-plugin-buzzer
    • SchamperS

      Project Honeypot plugin?

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding
      1
      0 Votes
      1 Posts
      805 Views
      SchamperS
      It looks like the NodeBB community really wants an anti-spam plugin. (http://community.nodebb.org/topic/150/nodebb-anti-spam) Perhaps we can develop a plugin that utilises Project Honeypot? IP that users register with should already be available.
    • ScuzzS

      Welcome to BitBangers.co.uk!

      Watching Ignoring Scheduled Pinned Locked Moved Introductions
      1
      3 Votes
      1 Posts
      735 Views
      ScuzzS
      Welcome to BitBangers.co.uk! BitBangers is a forum created by a few friends as a place to come and chat and discuss various topics that are of interest to us. Previously we were members of a once large forum that dealt with memory modification of PlayStation Portable games. We created “cheat codes” for a vast amount of games, these cheat were anything from a simple infinite health code to a large anti-hack subroutine. For me, and I think many of the other members, this sparked off our path into computing, gaming, programming and technology in general. Sadly that forum closed at the end of 2013 after a 7 year run; the casual members who still visited the forums had no where to go to keep in touch with each other and this is when BitBangers sprung to life. We took some time in finding the correct forum software for us, with previous experience with VBulletin and Xenforo we decided to go for something different and open source. After some research and testing we decided to use NodeBB as our main forum software. NodeBB is new, open source and different which filled our requirements perfectly. With NodeBB being open source it is a great way for us to get involved with the development. We have only been up and open a week or so and we have had a few changes added to the main NodeBB repo over at Github. @Schamper has even released a fully working shoutbox plugin which is great! So, we’ve told you a bit about BitBangers, now it’s time for you to tell us a bit about yourself. Create a topic and introduce yourself!
    • ScuzzS

      Markdown Cheat Sheet

      Watching Ignoring Scheduled Pinned Locked Moved Announcements markdown cheatsheet
      1
      0 Votes
      1 Posts
      868 Views
      ScuzzS
      Here is a cheat sheet to help those of you who do not know how to use markdown. Headers # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6 Alternatively, for H1 and H2, an underline-ish style: Alt-H1 ====== Alt-H2 ------ H1 H2 H3 H4 H5 H6 Alternatively, for H1 and H2, an underline-ish style: Alt-H1 Alt-H2 Emphasis Emphasis, aka italics, with *asterisks* or _underscores_. Strong emphasis, aka bold, with **asterisks** or __underscores__. Combined emphasis with **asterisks and _underscores_**. Strikethrough uses two tildes. ~~Scratch this.~~ Emphasis, aka italics, with asterisks or underscores. Strong emphasis, aka bold, with asterisks or underscores. Combined emphasis with asterisks and underscores. Strikethrough uses two tildes. Scratch this. Lists (In this example, leading and trailing spaces are shown with with dots: ⋅) 1. First ordered list item 2. Another item ⋅⋅* Unordered sub-list. 1. Actual numbers don't matter, just that it's a number ⋅⋅1. Ordered sub-list 4. And another item. ⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown). ⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅ ⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅ ⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.) * Unordered list can use asterisks - Or minuses + Or pluses First ordered list item Another item Unordered sub-list. Actual numbers don’t matter, just that it’s a number Ordered sub-list And another item. You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we’ll use three here to also align the raw Markdown). To have a line break without a paragraph, you will need to use two trailing spaces. Note that this line is separate, but within the same paragraph. (This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.) Unordered list can use asterisks Or minuses Or pluses Links There are two ways to create links. [I'm an inline-style link](https://www.google.com) [I'm an inline-style link with title](https://www.google.com "Google's Homepage") [I'm a reference-style link][Arbitrary case-insensitive reference text] [I'm a relative reference to a repository file](../blob/master/LICENSE) [You can use numbers for reference-style link definitions][1] Or leave it empty and use the [link text itself] Some text to show that the reference links can follow later. [arbitrary case-insensitive reference text]: https://www.mozilla.org [1]: http://slashdot.org [link text itself]: http://www.reddit.com I’m an inline-style link I’m an inline-style link with title I’m a reference-style link I’m a relative reference to a repository file You can use numbers for reference-style link definitions Or leave it empty and use the link text itself Some text to show that the reference links can follow later. Images Here's our logo (hover to see the title text): Inline-style: ![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1") Reference-style: ![alt text][logo] [logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2" Here’s our logo (hover to see the title text): Inline-style: [image: icon48.png] Reference-style: [image: icon48.png] Code and Syntax Highlighting Code blocks are part of the Markdown spec, but syntax highlighting isn’t. However, many renderers – like Github’s and Markdown Here – support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. Markdown Here supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the highlight.js demo page. Inline `code` has `back-ticks around` it. Inline code has back-ticks around it. Blocks of code are either fenced by lines with three back-ticks <code>```</code>, or are indented with four spaces. I recommend only using the fenced code blocks – they’re easier and only they support syntax highlighting. <pre lang=“no-highlight”><code>```javascript var s = “JavaScript syntax highlighting”; alert(s); ```python s = "Python syntax highlighting" print s No language indicated, so no syntax highlighting. But let's throw in a &lt;b&gt;tag&lt;/b&gt;. </code></pre> var s = "JavaScript syntax highlighting"; alert(s); s = "Python syntax highlighting" print s No language indicated, so no syntax highlighting in Markdown Here (varies on Github). But let's throw in a <b>tag</b>. Tables Tables aren’t part of the core Markdown spec, but they are part of GFM and Markdown Here supports them. They are an easy way of adding tables to your email – a task that would otherwise require copy-pasting from another application. Colons can be used to align columns. | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown. Markdown | Less | Pretty --- | --- | --- *Still* | `renders` | **nicely** 1 | 2 | 3 Colons can be used to align columns. Tables Are Cool col 3 is right-aligned $1600 col 2 is centered $12 zebra stripes are neat $1 The outer pipes ( ) are optional, and you don’t need to make the raw Markdown line up prettily. You can also use inline Markdown. Markdown Less Pretty — — — Still renders nicely 1 2 3 Blockquotes > Blockquotes are very handy in email to emulate reply text. > This line is part of the same quote. Quote break. > This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote. Blockquotes are very handy in email to emulate reply text. This line is part of the same quote. Quote break. This is a very long line that will still be quoted properly when it wraps. Oh boy let’s keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can put Markdown into a blockquote. Inline HTML You can also use raw HTML in your Markdown, and it’ll mostly work pretty well. <dl> <dt>Definition list</dt> <dd>Is something people use sometimes.</dd> <dt>Markdown in HTML</dt> <dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd> </dl> <dl> <dt>Definition list</dt> <dd>Is something people use sometimes.</dd> <dt>Markdown in HTML</dt> <dd>Does not work very well. Use HTML <em>tags</em>.</dd> </dl> Horizontal Rule Three or more... --- Hyphens *** Asterisks ___ Underscores Three or more… Hyphens Asterisks Underscores Line Breaks My basic recommendation for learning how line breaks work is to experiment and discover – hit <Enter> once (i.e., insert one newline), then hit it twice (i.e., insert two newlines), see what happens. You’ll soon learn to get what you want. “Markdown Toggle” is your friend. Here are some things to try out: Here's a line for us to start with. This line is separated from the one above by two newlines, so it will be a *separate paragraph*. This line is also a separate paragraph, but... This line is only separated by a single newline, so it's a separate line in the *same paragraph*. Here’s a line for us to start with. This line is separated from the one above by two newlines, so it will be a separate paragraph. This line is also begins a separate paragraph, but… This line is only separated by a single newline, so it’s a separate line in the same paragraph. (Technical note: Markdown Here uses GFM line breaks, so there’s no need to use MD’s two-space line breaks.) Source: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
    • ScuzzS

      Youtube / Twitch page

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding
      1
      0 Votes
      1 Posts
      482 Views
      ScuzzS
      Now @leo is uploading some videos I think it might be best to have some sort of dedicated page where he can submit his own links and they will appear on a separate page. Instead of having them all in a thread. Do you think this would be something a plugin could and should do or do you think a simple html page would suffice? I know bootstrap will be useful with the layout for the page; I have a few ideas on how i would like it set out.
    • ScuzzS

      Chromecast

      Watching Ignoring Scheduled Pinned Locked Moved General Computing
      1
      0 Votes
      1 Posts
      593 Views
      ScuzzS
      Does anyone have a Chromecast? I started to use Netflix over the weekend, I don’t see why I didn’t start using it sooner. I have a “Smart” TV and because it is supposed to be smart I presumed there would be a Netflix app available on it. My TV is too old to have a Netflix app according to Samsung even though it has Youtube, BBC iPlayer and even a RightMove app. I had to dust off my PS3 and use that to play Netflix, this also solved the problem of networking up my TV. The main problem in my house is the networking, my TV has only LAN, my Raspberry Pi is only LAN and I don’t have a wireless adapter for it, and the TV in the living room has no network capability. When I want to use a different room to watch anything I usually have to FTP whatever i want to my RPi, unplug it all, take it to the other room and plug it all in. This takes time and effort, in this day and age it seems a bit medieval. I saw Googles advert on http://google.co.uk today for their Chromecast device and it seems to solve all my issues. It’s wireless, plugs straight into HDMI port and it can stream Netflix, youtube and I have read that it can stream UPNP from other devices connected on the same network. This means I can just unplug it from one TV and plug it straight into another without the hassle of all the leads, HDD and power for my RPi. I can still keep my RPi as an XBMC device and use that for my network streaming, I can just leave it switched on and connected up to my router. The only issue I can see with this is streaming 1080p content over wireless. It may not be able to handle it. What are your thoughts on this setup and the Chromecast device? Chromecast
    • ScuzzS

      Twitter!

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      1
      0 Votes
      1 Posts
      649 Views
      ScuzzS
      BitBangers has made its first step into social networking! Keep up to date with the latest threads and posts via our new Twitter account, follow us.
    • SchamperS

      nodebb-plugin-webrtc

      Watching Ignoring Scheduled Pinned Locked Moved Development and Coding
      1
      1 Votes
      1 Posts
      622 Views
      SchamperS
      I made another thing. Just wanted to get this (working) out on Github so that other people can hopefully contribute… It’s been a bitch. https://github.com/Schamper/nodebb-plugin-webrtc
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 8 / 9