My function on VBA does give some false negative output
-
تاریخ: 1395/6/29 ساعت: 5:32
Vote count: 0 recently I wrote a code in order to check the Social Insurance Number issued in Germany. I have 3 outputs, su ame, dob and the given Social Insurance Number. Between 3rd and 8th digits it consists of date month and last two years of birth. however, in some cases, it does retu false neg...
Spring RestTemplate post object not not sending in request?
-
تاریخ: 1395/6/29 ساعت: 5:32
Vote count: 0 I am consuming a web service using RestTemplate and my POST request is as follows. RestTemplate requestTemplate = new RestTemplate(); MappingJackson2HttpMessageConverter jsonHttpMessageConverter = new MappingJackson2HttpMessageConverter(); jsonHttpMessageConverter.getObjectMapper().con...
Sample C# code to read real time MIDI notes in
-
تاریخ: 1395/6/28 ساعت: 21:40
Vote count: 0 I'm at the start of a small project to capture MIDI notes in real time as played on an attached keyboard. I can process existing MIDI files but am looking to generate my data on the fly. In my estimation (and hope), my requirement is quite basic and I really only want to capture note i...
Would this be a bad use case of Apache Camel?
-
تاریخ: 1395/6/28 ساعت: 21:40
Vote count: 0 We are implementing a Web Service using Apache Camel that has many (20-50) "direct:" routes calling Java methods. Every method basically has a route to it, whether it's for business rule processing, or DAO access methods. While this may seem like it decouples the system from the standa...
Why the following button does not work?
-
تاریخ: 1395/6/28 ساعت: 21:40
Vote count: 0 I am writing an small script to produce some tables, the main idea is to copy text into my first text area called: <textarea cols="70" rows="15" id="text" ></textarea> to the press the button called: Generate tables: <button id="generate">Generate tables</button><br> That calles the fu...
Adding custom HTTP header to SignalR Hub
-
تاریخ: 1395/6/28 ساعت: 14:54
Vote count: 0 Is it possible to add a custom HTTP header to SignalR Hub from JS client when the co ection starts? My SignalR hub is shared both by my mobile and web client. I can pass a header from the mobile client but I'm not sure if this is possible to do this from the web client. This is what I'...
Assembler x64 Nasm single string compare
-
تاریخ: 1395/6/28 ساعت: 14:54
Vote count: 0 I'm new in assembler and try to performer some simple task, like enter name and get 'Hey name' answer. Sofar I read input and assign it to my undeclared variable than put this variable into rdx register and show it on the display. The problem is that I have no idea how to put tekst2 va...
How to read values till user presses enter in JAVA?
-
تاریخ: 1395/6/28 ساعت: 14:54
Vote count: 0 I need to take input in the form of- Given 'n' number of boxes and each of these boxes may contain any number of distinct integers, So first user enters n,then for each value of i from 1 to n,I need to enter values till enter is pressed. I don't know how to do this, Eg- 5 1 2 3 4 5 6 7...
Accessing "self" in initializing closure
-
تاریخ: 1395/6/28 ساعت: 6:15
Vote count: 0 In Swift 3 the dispatch_once function was removed and the migration guide suggests to use initializing closure: let myGlobal = { … global contains initialization in a call to a closure … }() _ = myGlobal // using myGlobal will invoke the initialization code only the first time it is us...
Implement Custom Search Plugin for Joomla
-
تاریخ: 1395/6/28 ساعت: 6:15
Vote count: 0 I would like to implement a Custom Search Plugin for Joomla 3.5.1. I am new to Joomla and still busy getting my feet together. I recently implemented a plugin that adds custom/extra fields (5 fields, free text inputs) to an article in Joomla 3.5.1. I followed their tutorial on how to g...
Javascript - Using promise for post PHP, get undefined result
-
تاریخ: 1395/6/28 ساعت: 6:15
Vote count: 0 I'm a newbie in JS and have a little to no knowledge about asynchronous program and promise. I have a problem in getting result from post PHP as written in this code: showModalLink = function(d, i) { $('#myModalLabel').text(d.source.name + ' - ' + d.target.name); $('#modalJum').text(d....
How do you assign to a variable in the root scope of a python program? [duplicate]
-
تاریخ: 1395/6/27 ساعت: 17:03
Vote count: 219 What exactly are the Python scoping rules? If I have some code: code1 class Foo: code2 def spam..... code3 for code4..: code5 x() Where is x found? Some possible choices include the list above: In the enclosing source file In the class namespace In the function definition In the for ...
How to copy SDL_Texture struct?
-
تاریخ: 1395/6/27 ساعت: 17:02
Vote count: 0 I want to create a copy of texturelike this: SDL_Texture *copy = new SDL_Texture; *copy = *texture; but I get "Incomplete type is not allowed" error asked 36 secs agoShiftyCodes Let's block ads! (Why?)
Accessing the Angular 2.0 ViewContainerRef for a popup created at runtime by a non-Angular library
-
تاریخ: 1395/6/27 ساعت: 17:02
Vote count: 0 Using Angular 2.0 (final), how can I obtain the ViewContainerRef of a DOM element created by an exte al, non-Angular library, after app/Component bootstrapping/rendering has occurred? I had previously used DynamicComponentLoader.loadNextToLocation(), but that was deprecated as of RC5. ...
To save single worksheet in excel to source folder with desired name
-
تاریخ: 1395/6/27 ساعت: 6:38
Vote count: 0 I have a macro enable workbook in my local folder. This workbook consists of 7 worksheet in total. Last sheet named as "AnsSheet". I want to save the last sheet (AnsSheet only) in the same folder location with modified name. Here is the code I am using which is not giving desired resul...
Receiving firebase autoId in tableViewController swift
-
تاریخ: 1395/6/27 ساعت: 6:38
Vote count: 0 I have a firebase structure that looks like this: The blue one is named feedPosts, the green one is the userId, the one without color is the autoId firebase creates for appending data and the orange one says content: "users post string is here". My problem is that I do not know how to ...
Is a C# static method's variable initialised every time the method is called?
-
تاریخ: 1395/6/27 ساعت: 6:38
Vote count: 0 In the example below, will a new StringBuilder(255) be created every time the static Flog.Log() function is called, or will it only be created the first time the method is called? public class Flog { public static void Log(FlogType flogType, string msg, params System.Object[] p) { Stri...
Inno Setup get Min and Max Integer Values in Pascal Script
-
تاریخ: 1395/6/26 ساعت: 22:02
Vote count: 0 I need to retu Min and Max Values of two Integers in most situations in my Pascal Script. But every time I need to create a TStringList and convert it to an Array Of String and then get its Min and Max Values. I like to have two functions like Min and Max to make this easier like Unit ...
Why can't we use DISTINCT keyword when we use ROLLUP operator?
-
تاریخ: 1395/6/26 ساعت: 22:02
Vote count: 0 I am confused why can't we use DISTINCT keyword when we use ROLLUP operator? Is there a reason or it just the specification? asked 55 secs agouser5574376 Let's block ads! (Why?)
Merging geometries with different materials three.js
-
تاریخ: 1395/6/26 ساعت: 22:02
Vote count: 0 So I am trying to merge two different geometries that are supposed to use different materials. Below is my code for your reference. //Here we instantiate the two materials I am using globeMaterial = new THREE.MeshBasicMaterial({ map: THREE.ImageUtils.loadTexture('local/images/earth1.jp...