How to serialize and export data in ruby 2.2.4 (Windows)?
Vote count: 0 I just started playing around with ruby, so try to be patience =). Everything seem fine until i ran into an issue: I need to export a Int converted string into binary data, so i can use it in a micro-controler. Here is part of the code: def save_hex text_hex = File.new("hex_#{@file_to_...
How to populate TableView after clicking button in JavaFX?
Vote count: 0 I know this has been asked several times here but I'm still struggling. I'm trying to at the moment populate one of my TableView called bookListTable. I'm trying to follow this example - http://docs.oracle.com/javafx/2/ui_controls/table-view.htm I can get that tutorial to work but can'...
How to find center dots of given dots in radius of 16 (x;z)?
Vote count: 0 I'm trying to print out locations of center dots. Compared dots must be in radius of 16. Printing out only if there is more than 5 dots in one place calculating from center. Center dot is, which is nearest to all nearby dots My code is giving me fale positives and duplicates. Methods: ...
colorbar eastoutside vs westoutside
Vote count: 0 I put two colorbars in the same image using this submission on filexchange. The position of the first colorbar is set by: colorbar('WestOutside') the position of the second one by: colorbar('EastOutside') Does anyone know why the first one is longer? When looking at the Matlab document...
Should I change the value of a function parameter?
Vote count: 0 I know that this is allowed in C, but I am used not to update the value of a variable passed by value. In my "coding style", a parameter passed by value is not changed. I mean that I prefer this: void func(int var) { int locVar = var; if(something) { locVar = locVar/2; } // [some stuff...
GetUserMedia get computer audio
Vote count: 0 I'm trying to share the computer's audio via webRTC and GetUserMedia, but I don't know if it is possible to obtain this stream. On Linux and Firefox, when I request the GetUserMedia with the following constrains navigator.mediaDevices.getUserMedia({video: false, audio:true}) In the pop...
Angular decorate $stateprovider to add layout variable
Vote count: 0 TLDR: I wish to add a field to the $stateProvider called "layout" that tells the ui which layout it should load before the routes html So i know that is is currently possible to make a layout variable by creating an abstract class: .state('dashboard', { abstract: true, url: '/dashboard...
Cannot validate credit card using Active Merchant
Vote count: 0 I have problem with validate credit card details using Active Merchant gem. When I try insert new payment, always have error: The credit card you provided was declined. 2 Please double check your information and try again.. This mean that, response isn't success. I don't have idea why....
How to append a list so that the changes are persistent?
Vote count: 0 I am new to Python and relatively new to coding in general, I was just trying to write a test bit of code to see if a list could be appended, and then when that .py is reloaded the changes are saved into it? I'm not sure if this is possible with lists without a decent amount more work,...
Exception while hitting a URL from android app
Vote count: -1 I'm getting exception while hitting a url from android app. I have added Inte et permission to the app's manifest. URL url = new URL("www.example.com?query=abcd"); HttpURLCo ection urlCo ection = (HttpURLCo ection) url.openCo ection(); urlCo ection.co ect(); urlCo ection.disco ect(); ...
django contact form receiving email for free
Vote count: 0 I just finished setting up a contact form thanks to some tutorial, but on the tutorial I took it says I have to setup sendgrid or some other service to get the reply. but thing is they aren't free. https://hellowebapp.com/news/tutorial-setting-up-a-contact-form-with-django/ Is there a ...
php WhatsApp API: Identity error while trying to log in
Vote count: 0 I am using PHP WhatsApp Library. As per instructions I got my login and password. Upon using I am getting error: ] Logging in as 'SmartCo ect Agent' (12334) tx <stream:features></stream:features> tx <auth user="12334" mechanism="WAUTH-2"></auth> rx <from s.whatsapp.net=""></from> rx <s...
variation in system call open overheads
Vote count: 0 I am trying to benchmark open system call with my code that read timestamp counter overhead = measure_tsc_overhead(); int i; unsigned long t0; synch_tsc(); t0 = rdtscll(); input_fd = open ("input.txt", O_RDONLY); if (input_fd == -1) { perror ("open"); retu 2; } printf("open syscall ove...
OpenSSL RSA engine - RSA verify failure
Vote count: 0 I have below a Minimal, Complete, and Verifiable example of what I want to do.Basically I want to implement an OpenSSL RSA engine that integrates some CUDA code. The CUDA part should do the modular exponentiation but it is not important in this example, so I just used the BN_mod_exp (s...
Difference between CONFIG and MANIFEST files
Vote count: 0 I searched for quite some time but didn't found much for this. There are files named MyApplication.exe.manifest and MyApplication.exe.config. What's the difference between these two files ? As far as I see Manifest files are interpreted by the OS and are more used to tell things about ...
Bluetooth Difference between pairing and paging, bonding
Vote count: 0 When study about bluetooth, I am coufused to understand Bluetooth co ection and pairing, bonding As far as I know, Bluetooth Co ection has these steps Inquiry - discover Paging - using the address in Inquiry process, process of forming a co ection Co ection - device can participate act...