fiveworlds

Senior Members
  • Content count

    1669
  • 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. 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.
  2. 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.
  3. 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
  4. 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.
  5. 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
  6. Why is half of ckeditor disabled including mathjax, source editing etc? x = {-b \pm \sqrt{b^2-4ac} \over 2a}
  7. 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.
  8. Chicken/soup high salt if shop bought Yoghurt/cheese high fat Also try high intensity training e.g. sprints Skipping and boxing
  9. 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.
  10. 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.
  11. 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]); } }
  12. Does anybody know how to use int arrays in the inline assembly compiler for c? I tried just putting the line[index] in but that gives me a "\n" access error. #include<stdio.h> #include<conio.h> #include<stdlib.h> int i; int line[38]; int repeatedNumbers[38]; int input; int loopcount; const LAST_LINE_DATABASE = "lastline.txt"; int main(int argc, char **argv) { filed(); _getch(); exit(EXIT_SUCCESS); } int filed() { // We assume argv[1] is a filename to open FILE *file = fopen("lastline.txt", "rb"); if (file == 0) { printf("Could not open file\n"); file = fopen(LAST_LINE_DATABASE, "wb"); for (i = 0; i < 38; i = i + 1) {line[i] = 1;} input = rand() % 36; repeatedNumbers[0] = input; line[input + 1] = 0; fwrite(line, sizeof(int), 38, file); return 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); return 0; } }
  13. ​ I dunno about bulk mine was a pumped water system similar to the hot water suits divers wear and a battery pack. It is a full body suit and is already made of fairly durable material and is available in black.
  14. That depends on how how quickly you need them if you make everything yourself then it will be less expensive. If not you can get suits that would work with a bit of alteration for about €2100 (they are kind of a niche product and only rich people buy them).
  15. Have you tried using a different keyboard or checking for malware running on startup/delayed start?