fiveworlds

Senior Members
  • Content count

    1673
  • Joined

  • Last visited

  • Days Won

    4

fiveworlds last won the day on March 16 2016

fiveworlds had the most liked content!

Community Reputation

66 Excellent

About fiveworlds

  • Rank
    Primate
  • Birthday 08/11/93

Profile Information

  • Gender
    Male
  • Location
    Somewhere on the internet
  • Favorite Area of Science
    computers
  1. I'm not great on debugging them either. I left a message for the maintainer so I hope they get back to me. I'm trying to help out a radio station that was using an older version of the software and the old equipment broke.
  2. Yeah I think I have a lot of it now. The specific repository I am trying to get working is https://github.com/Opendigitalradio/data-over-dab-example which is using gnuradio. I think I am down to one error now which is conan : cmake error at cmake/modules/conanpackages.cmake:81 could not find load file data-over-dab-example/build/conanbuildinfo.cmake I originally was trying to get it working on a raspberry pi but would up getting tons of errors because the raspberry pi chipset isn't supported
  3. That works but it doesn't install all the required dependencies to run http://osmocom.org/projects/sdr/wiki/rtl-sdr
  4. Does anybody here know how to properly install gnuradio on ubuntu. I can't seem to install these dependencies properly. qwt (>= 5.2.0) http://sourceforge.net/projects/qwt/ pyqt (>= 4.10.0) http://www.riverbankcomputing.co.uk/software/pyqt/download wxpython (>= 2.8) http://www.wxpython.org/ python-lxml (>= 1.3.6) http://lxml.de/
  5. var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); var img = new Image(); img.onload = function() { canvas.width = img.width; canvas.height = img.height; context.drawImage(img, 0, 0 ); var count = 0; var myData = context.getImageData(0, 0, img.width, img.height); for(var i=0; i<myData.data.length; i=i+4){ if(myData.data[i]>90||myData.data[i+1]>90){ myData.data[i] = 0; myData.data[i+1] = 0; myData.data[i+2] = 0; myData.data[i+3] = 0; } else { count = count + 1; } } context.putImageData(myData,0,0); document.body.appendChild(canvas); alert(count); } img.src = 'image.jpg'; That will remove the sky from the image after which you can crop out the trees. Which will give you an image that looks like this. Then you can use imagej analyse>analyze particles to get a count for the number of birds in the picture. Which worked out for me at 1388 since the camera didn't catch the birds in great detail. Most of the birds wound up being cut into 2 blobs so there are approx 700 birds.
  6. I could probably write something but in order to get a fairly accurate count I would need a video or at least a couple of pictures. Basically you can find the differences between 2 pictures aka the moving birds. Then create a spritesheet from the data and all you would need to do is count the length of the returned array. If you don't feel like coding it yourself you can use adobe photoshop to find differences between 2 photos and https://www.codeandweb.com/texturepacker/tutorials/how-to-create-a-sprite-sheet will generate the spritesheet and return a count of sprites.
  7. I couldn't find what the buttons were for the Model 75 but the documentation for the Model 65 is here http://bitsavers.informatik.uni-stuttgart.de/pdf/ibm/360/funcChar/A22-6884-3_360-65_funcChar.pdf
  8. Does anybody here know how to embed visual studio code's monaco editor into electron? I thought it should be simple since vs code runs on electron but it was throwing lots of javascript errors.
  9. Here are what the buttons of the full ckeditor look like minus a few. I use ckeditor on occasion. There should be a button which looks like Σ to insert a mathjax equation instead of having to use bbcode (which I can never remember) but you might have to download this plugin to use it. http://ckeditor.com/addon/mathjax To add buttons there should be a configuration file (*usually called config.js) the above example looks like this. It may be called something different on the forum software. CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.toolbarGroups = [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing', 'Math'] }, { name: 'forms', groups: [ 'forms' ] }, '/', { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, { name: 'links', groups: [ 'links' ] }, { name: 'insert', groups: [ 'insert' ] }, '/', { name: 'styles', groups: [ 'styles' ] }, { name: 'colors', groups: [ 'colors' ] }, { name: 'tools', groups: [ 'tools' ] }, { name: 'others', groups: [ 'others' ] }, { name: 'about', groups: [ 'about' ] } ]; config.extraPlugins = 'mathjax'; config.extraPlugins = 'widget'; config.extraPlugins = 'dialog'; config.extraPlugins = 'lineutils'; config.extraPlugins = 'clipboard'; config.extraPlugins = 'notification'; config.extraPlugins = 'toolbar'; config.extraPlugins = 'dialogui'; config.extraPlugins = 'button'; config.mathJaxLib = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML'; }; To make the equation editor work you need to download a few plugins and extract them into the plugins folder. Also CKEDITOR.replace needs to include the extraPlugins bit. CKEDITOR.replace( 'textareaIDhere', { extraPlugins: 'mathjax' } ); plugins.zip
  10. Why is half of ckeditor disabled including mathjax, source editing etc? x = {-b \pm \sqrt{b^2-4ac} \over 2a}
  11. I Yeah I never knew about the fat till awhile ago. The food science class did a study on supermarket yoghurt in lidl, aldi and tesco and found no yoghurt/cheese below 20% fat.
  12. Chicken/soup high salt if shop bought Yoghurt/cheese high fat Also try high intensity training e.g. sprints Skipping and boxing
  13. Yes you can make money blogging in wordpress. You would be looking at jobs like social media marketing manager for pubs, clubs and festivals your job would also include photography of any events and answering comments on the blog and facebook page.
  14. Nonsense men marry younger women because of a queueing effect where there is no elligible women of their own age thus they search for younger women. Personally I would much prefer to marry somebody much the same age as myself if given the choice.
  15. Ah I was missing the type. It should be a variable yeah which should be helpful if I can get it working right. #include<stdio.h> #include<conio.h> #include<stdlib.h> int i; int k; int line[38]; int repeatedNumbers[38]; int input; int loopcount; int repeatsx[20]; int repeatsy[20]; int p = 0; const LAST_LINE_DATABASE = "lastline.txt"; int main(int argc, char **argv) { filed(); _getch(); exit(EXIT_SUCCESS); } int incrementLine() { _asm { ADD line[TYPE line * 0], 1; ADD line[TYPE line * 1], 1; ADD line[TYPE line * 2], 1; ADD line[TYPE line * 3], 1; ADD line[TYPE line * 4], 1; ADD line[TYPE line * 5], 1; ADD line[TYPE line * 6], 1; ADD line[TYPE line * 7], 1; ADD line[TYPE line * 8], 1; ADD line[TYPE line * 9], 1; ADD line[TYPE line * 10], 1; ADD line[TYPE line * 11], 1; ADD line[TYPE line * 12], 1; ADD line[TYPE line * 13], 1; ADD line[TYPE line * 14], 1; ADD line[TYPE line * 15], 1; ADD line[TYPE line * 16], 1; ADD line[TYPE line * 17], 1; ADD line[TYPE line * 18], 1; ADD line[TYPE line * 19], 1; ADD line[TYPE line * 20], 1; ADD line[TYPE line * 21], 1; ADD line[TYPE line * 22], 1; ADD line[TYPE line * 23], 1; ADD line[TYPE line * 24], 1; ADD line[TYPE line * 25], 1; ADD line[TYPE line * 26], 1; ADD line[TYPE line * 27], 1; ADD line[TYPE line * 28], 1; ADD line[TYPE line * 29], 1; ADD line[TYPE line * 30], 1; ADD line[TYPE line * 31], 1; ADD line[TYPE line * 32], 1; ADD line[TYPE line * 33], 1; ADD line[TYPE line * 34], 1; ADD line[TYPE line * 35], 1; ADD line[TYPE line * 36], 1; ADD line[TYPE line * 37], 1; } return 1; } int initLine() { _asm { MOV line[TYPE line * 0], 1; MOV line[TYPE line * 1], 1; MOV line[TYPE line * 2], 1; MOV line[TYPE line * 3], 1; MOV line[TYPE line * 4], 1; MOV line[TYPE line * 5], 1; MOV line[TYPE line * 6], 1; MOV line[TYPE line * 7], 1; MOV line[TYPE line * 8], 1; MOV line[TYPE line * 9], 1; MOV line[TYPE line * 10], 1; MOV line[TYPE line * 11], 1; MOV line[TYPE line * 12], 1; MOV line[TYPE line * 13], 1; MOV line[TYPE line * 14], 1; MOV line[TYPE line * 15], 1; MOV line[TYPE line * 16], 1; MOV line[TYPE line * 17], 1; MOV line[TYPE line * 18], 1; MOV line[TYPE line * 19], 1; MOV line[TYPE line * 20], 1; MOV line[TYPE line * 21], 1; MOV line[TYPE line * 22], 1; MOV line[TYPE line * 23], 1; MOV line[TYPE line * 24], 1; MOV line[TYPE line * 25], 1; MOV line[TYPE line * 26], 1; MOV line[TYPE line * 27], 1; MOV line[TYPE line * 28], 1; MOV line[TYPE line * 29], 1; MOV line[TYPE line * 30], 1; MOV line[TYPE line * 31], 1; MOV line[TYPE line * 32], 1; MOV line[TYPE line * 33], 1; MOV line[TYPE line * 34], 1; MOV line[TYPE line * 35], 1; MOV line[TYPE line * 36], 1; MOV line[TYPE line * 37], 1; } return 1; } int filed() { // We assume argv[1] is a filename to open FILE *file = fopen(LAST_LINE_DATABASE, "rb"); if (file == 0) { printf("Could not open file\n"); file = fopen(LAST_LINE_DATABASE, "wb"); input = rand() % 36; repeatedNumbers[0] = input; initLine(); line[input + 1] = 0; fwrite(line, sizeof(int), 38, file); loopcount = 1; } else { printf("File opened\n"); fread(line, sizeof(int), 38, file); for (i = 0; i < 38; i = i + 1) { printf("%d ", line[i]); } fclose(file); loopcount = 0; } fclose(file); file = fopen("data.txt", "wb+"); for (i = 0; i < 100 - loopcount; i++) { incrementLine(); input = rand() % 36; int switcher = 0; for (k = 0; k < sizeof(repeatedNumbers); k++) { if (repeatedNumbers[k] == input) { repeatsx[p] = input; repeatsy[p] = i; p = p + 1; switcher = 1; break; } } if (switcher == 0) { repeatedNumbers[sizeof(repeatedNumbers)] = input; } line[input + 1] = 0; if (100 - i < 37 - loopcount) { for (k = 0; k < 38; k = k + 1) { printf("%d ", line[k]); } } fwrite(line, sizeof(int), 38, file); } fclose(file); file = fopen(LAST_LINE_DATABASE, "wb"); fwrite(line, sizeof(int), 38, file); fclose(file); printf(","); for (i = 0; i < p - 1; i++) { printf("%d ",repeatsx[i]); printf("%d ", repeatsy[i]); } printf("%d ", repeatsx[p - 1]); printf("%d ", repeatsy[p - 1]); printf(","); for (k = 0; k < sizeof(repeatedNumbers); k++) { printf("%d ", repeatedNumbers[k]); } }