How to serialize and export data in ruby 2.2.4 (Windows)?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
21:15
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?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
21:15
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)?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
19:52
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
19:52
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?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
19:52
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...
how to fetch album through facebook display in uicollectionview by objective c
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
18:51
Vote count: -1 FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"/{album-id}/photos" parameters:params HTTPMethod:@"GET"]; [request startWithCompletionHandler:^(FBSDKGraphRequestCo ection *co ection, id result, NSError *error) { }]; edited 5 mins agoKirit Modi asked 6 mins ...
A name was started with an invalid character. Error processing resource iis 5.1
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
18:51
Vote count: 0 Before I start I would like to tell all that I am usingvisual studio 2008dotnet framework 3.5windows xp sp 2 andIIS 5.1I developed a web application and I wanted to make it available online on our server. The first thing that I did was to publish the web site. The next thing was to mak...
How can we use collection_check_box without form in rails
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
18:51
Vote count: -3 If form is compulsory then how can i pass the variable values to a collected array and pass it to the other view where we beatify it? asked 5 mins agosk. saddam Let's block ads! (Why?)
GetUserMedia get computer audio
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
17:45
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
17:45
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...
SQL Server: how to use a database name as a parameter in a stored procedure
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
17:45
Vote count: 0 How can I do a join on tables of 2 different db in same domain like SET DBname = "sample" SELECT * FROM Table1 INNER JOIN DBname.table 2 On Table1.key = Table2.Key Any help would be appreciated asked 29 secs agoRobert_Junior Let's block ads! (Why?)
Cannot validate credit card using Active Merchant
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
16:39
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?
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
16:39
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
16:39
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
15:39
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
15:39
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
15:39
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
14:20
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
14:20
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
◷
تاریخ انتشار:
1395/1/16
|
ساعت:
14:20
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...