I keep getting this error: Run-time error '5': Invalid procedure call or argument: I am just learning VBA...& yes, I have searched for the answer on here before I tried to ask this question. First I tried to add single quotes to the TableDestination(however there's no space in the sheet name), & then I tried to refresh the table which I did, no bueno. I also made sure that the pivot table name was unique and not previously used, lastly I came across a solution to remove the Sheets.Add statement and leave TableDestination:="". This worked but when I generate the report it inserts the pivot tabl
I am newbie to the spring-data-mongo. I've the following documents Food and I would like to query using Querying Arrys. I've following Food collection > db.food.find() { "_id" : 1, "fruit" : [ "apple", "banana", "peach" ] } { "_id" : 2, "fruit" : [ "apple", "kumquat", "orange" ] } { "_id" : 3, "fruit" : [ "cherry", "banana", "apple" ] } > And I am using following query I get the proper data. Now same I would like to achieve using Spring-data-mongo > db.food.find({fruit : {$all : ["apple","banana"]}}) { "_id" : 1, "fruit" : [ "apple", "banana", "peach" ] } { "_id" : 3, "fruit" : [ "cherry", "ba
I have a problem when Maven is generating the source code for a client web service with Axis. I need consume the wsdl from url exposed by other company. For example, this is the wsdl content in url http://127.0.0.1:8080/ESBService/Example?wsdl <wsdl:definitions xmlns:ns0="http://www.davivienda.com/xml/Example" xmlns:wsp200607="http://www.w3.org/2006/07/ws-policy" xmlns:wsp200409="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schem
I hit this signout issue for a long time and couldn't find a solution. At the beginning it was my website using ADFS 2.0 couldn't signout even if the correct signout url has been opened. I thought that was some cookies not cleared. After that, I found that it was probably the problem of ADFS server. I have tried: Stop iis server, so I don't have my website at all, just testing adfs. Clear my browser cookies. Close and reopen. So it is clean. Directly logon to adfs, e.g.: https://mydomain/adfs/ls/?wtrealm=mysite&wa=wsignin1.0 , here i get the popup window for username and password. Directly log
I already have a sub class of Request<JSONObject> that is used for http post to the server. The problem is, I have no idea on how can I add a parameter for a file. Posting string to the server is easy. but I need to add file as a different parameter. How can I do it? public class AddNewPetRequest extends Request<JSONObject> { private Response.Listener<JSONObject> listener; public AddNewPetRequest(String url, Map<String, String> params, Response.Listener<JSONObject> reponseListener, Response.ErrorListener errorListener) { super(Request.Method.GET, url, errorListener); this.listener = reponseLis
for a while I am trying to find how to make a load more(elements from an array) button,using Angular. I have 9 elements in array, I use ng-repeat to loop them, and limitTo:3 to output first 3. Questions: 1: is possible to make a load more button using only angular?(load more button is at bottom in example) 2: if not, how to make this work using jQuery? http://plnkr.co/edit/1gHB9zr0lbEBwlCYJ3jQ Thanks!
I am trying to store connections in the configuration table, but getting the below errors. SSIS is not configured as Offline mode. An error has occurred while connecting Oracle Server: Exception from HRESULT: 0xC0202009. Validation error. Oracle to BO: The connection manager "Oracle Server" will not acquire a connection because the connection manager OfflineMode property is TRUE. When the OfflineMode is TRUE, connections cannot be acquired. The connection manager will not acquire a connection because the connection manager OfflineMode property is TRUE
I am making a form with radio buttons in it. I am able to validate all other input except radio button. I got a accepted solution for this in this site Using JQuery to check if no radio button in a group has been checked but this is not working for me http://jsfiddle.net/ghan_123/trr185L2/2/ my code <input type='radio' name='datetime' value='1'>1 <input type='radio' name='datetime' value='2'>2 <input type='radio' name='datetime' value='3'>3 <input type='radio' name='datetime' value='4'>4 <input type='radio' name='datetime' value='5'>5 <br><button id='buttonnew'>validate</button> jquery $(docum
I've just installed Git for Windows 2.5.0 on Windows 7, and it appears that my .bashrc file is not being executed when I run Git Bash. I created the file like so: Administrator@HintTech-Dev MINGW64 / $ pwd / Administrator@HintTech-Dev MINGW64 / $ cd ~ Administrator@HintTech-Dev MINGW64 ~ $ pwd /c/Users/Administrator Administrator@HintTech-Dev MINGW64 ~ $ touch .bashrc Administrator@HintTech-Dev MINGW64 ~ $ vi .bashrc [... I insert the line "ZZZTESTVAR=234" (without the quotes) into the file in vim ...] Administrator@HintTech-Dev MINGW64 ~ $ exit Yet, when I next run Git Bash: Administrator@Hin
I've recently wrote a VBScript to send an email using Outlook. Everything works great untill it gets to the sending point. I'm assuming since it only opens a single message, and since the message was sent... the Window closes and Outlook is killed. Set objOutlook = CreateObject("Outlook.Application") Set objMail = objOutlook.CreateItem(0) objMail.Display 'To display message objMail.Recipients.Add ("[email protected]") objMail.Subject = "Mail Subject" objMail.Body = "This is Email Body" objMail.Send objOutlook.Quit Set objMail = Nothing Set objOutlook = Nothing All the information is entered
I'm learning JS and I'm making an app to find the winners per hole in a golf game. The player with less strokes is the winner of the hole, but sometimes more than one player could tie the hole with the same number strokes, so, to find the winner of the hole I need to evaluate the number of strokes from the tied players in the next hole and break the tie, if the tie persist, I need to evaluate the next hole and so on. The function foo should return an array with the index, position or names from the winner or winners of the hole (if the tie was impossible to break). Here's my code: var players
I am developing a simple project in spring but I have the following problem org.springframework.web.context.ContextLoader - Context initialization failed this is the controller: package com.linedata.jaba.controllers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.linedata.jaba.metier.IBanqueMetier; @Controller public class BanqueController { @Autowired private IBanqueMetier metier; @RequestMapping(value="/index") public String index() { return "banque"; }
I'm hoping somebody can answer what I think is a basic Gradle/Proguard question. I have a very basic Android project. This project contains the main app module, named app, and a library module for the Android Support libraries, named AndroidSupport. I wish to run Proguard exclusively on AndroidSupport (i.e. NOT on the overall application) because I'm having trouble running instrumentation tests on the application when it is Proguard-ed. My hope is that I can minify AndroidSupport on its own so that I don't need to Proguard my application code (and thus, avoid the problem of tests not running).
below is my code var s=function(){ return 'API CALL';//Through some API call i am getting and integer value }; switch(s()){ case 0: store.p1="Some Text"; break; case 1: store.p1="Some Other Text"; break; case 2: store.p1="Another Text"; break; } In the above function i am firing API call,which returns an integer value(0,1,2) and storing it in 's', i wanted to write unit test using jasmine..., could anyone please help how to write test case?! Note: 'store' is global variable and p1 is a another variable in 'store' where i want to store the value of 's'.
I run project deploy in Maven project and get the problem as below: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project iris: Cannot deploy artifacts when Maven is in offline mode -> [Help 1] Could you help me figure out this problem?
I see that someone made the react-native-linear-gradient library for gradients in React Native, but is there support in React Native natively for gradients? Something like: style = StyleSheet.create({ backgroundGradient: "vertical", backgroundGradientTop: "#333333", backgroundGradientBottom: "#666666" });
So I'm trying to parse a JSON request that looks a bit like this: { "source_code":"MOODY", "code":"DAAAYLD", "name":"Aaa Corporate Bond Yield", "data":[ [ "2015-08-11", 3.96 ], [ "2015-08-10", 4.06 ], [ "2015-08-07", 3.96 ] ] } There's a few more items I've left out but they're not important. Now, I'm using var jsonData = JsonConvert.DeserializeObject<JsonResponseObj>(GetRawData(code)); to make a JsonResponseObj which looks like: public class JsonResponseObj { [JsonProperty("name")] public string name { get; set; } [JsonProperty("code")] public string code { get; set; } [JsonProperty("source_c
I am using python-docx and am trying to insert the a <w:bookmarkStart> tag. I do not see any immediate API method to create the tag. So I googled several references to gain access to the raw XML using the document._document_part attribute. However, when I attempt to use it, python tells me it does not exist: >>> import docx >>> document = docx.Document() >>> print document._document_part Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'Document' object has no attribute '_document_part' I am using python-docx 0.8.5. Is there a method to add a <w:bookmarkSt
This question is different to the other Erlang crypto failure question posted as the environment is not Windows, the openssl and libssl-dev prerequisites were installed in the standard way. The issue is identified at source within Erlang, rather than a Riak issue, although it is related. Installing Erlang 16B02 as a prerequisite for Raik 2.1.1 on Ubuntu 14.04 LTS x64. Erlang was downloaded and installed as per the riak guide to installing erlang: http://docs.basho.com/riak/latest/ops/building/installing/erlang/ Prequisites installed before Erlang (including openssl and libssl-dev). Build worke
I need to update a list of objects in one query. I have class Parent which has a list of Child in ManyToMany relation. I need to update a list of Parent by setting children list to empty(remove all children references from join table). Currently i'm setting children list to empty and updating each entity in a query with a merge action,but when i have a large list of pharmacies there are too many queries. i tried this query: update Parent p set p.children=:children where p in (:parents) where :children is a new HashSet<Child> but it gives me error unexpected end of subtree Is there any way to u
I am new to ionic and I am trying to run a sample app of ionic on my phone (Samsung Galaxy s4) and I am unable to do so. I already have "USB Debugging" on in Developer Options. As seen above even though my phone is connected it runs on emulator. The app works on emulator without an issue When I do $ionic run android In logs says: No target specified and deploying to emulator The emulator comes up and has no issues in running the app. Then I tried $adb devices -l Its shows my device XXX listed there Now I try running $ionic run --devices Its says : Unknown platform : XXX I tried $ionic run -d '
Specifically, I have blocks of code for install that I want the user to be able to quickly copy and paste into a terminal. I'd like a button to 'copy to clipboard' for the code block. Since there's a 'copy to clipboard' button for the git clone URLs, I was wondering if I could piggy back off that or if not whether there was some relatively simple I could add to the MD to make this happen. Or is this simply not possible with the processing and 'safication' the MD text goes through?
I want to read a specific character sequence with Tesseract like this post : Tesseract OCR: is it possible to force a specific pattern? I have tried bazaar matching pattern in Tesseract with the pattern \d\d\d\A\A and OCR still recognize other words which doesn't match. I have tried to use the "tessedit_char_whitelist" parameter but I can't choose the position of the characters with that. I launch the command : tesseract image.jpg result -l eng bazaar And I have this message : Please provide at least 4 concrete characters at the beginning of the pattern Invalid user pattern \A\A\d\d\d Tesserac
Is there any Hive function available to convert from Julian date to calendar date? There are multiple types of Julian date. The Julian date I have takes 15001 for 2015-01-01. I couldn't find any relevant information on this page: Hive Manual - Date Functions
I am writing a website as a collection of all my stuff (blog posts, YouTube vids etc.) and want to have a page of YouTube embeds. I want to have two columns of embeds, but cant figure out how to. If I edit the css and make the certain bits float to the correct side, it changes nothing. This is what my edited css looks like: div.leftBodyVideo{ width: 45%; float: left; } div.rightBodyVideo{ width: 45%; float: right; } I then changed the html to align the correct tags right, but that didn't work either. it put the iframes that are meant to be right aligned in a weird position: https://lh3.googleu
So I've been researching solutions for Caps Lock detection for a form, using JavaScript/jQuery. There is a huge thread on stackoverflow offering many solutions. But the only problem is they don't check whether Caps Lock is pressed directly per se. They detect whether a capital letter has been entered and that the shift key has not been depressed. The drawbacks of this is that my Caps Lock warning message will not toggle on/off until the user starts typing into the form, which is hardly optimal. Here is my code. document.onkeypress = function(e){ e = e || window.event; var s = String.fromCharCo
I have a form with a DataGridView and CheckBox. What I want is when DataGridView index changes it should change CheckBox checked state, or if I press arrow down or up CheckBox should change depending on cell value. Here is my code: Public Sub cellclick() Dim row As DataGridViewRow Dim r As Integer = usergrid.CurrentRow.Index row = Me.usergrid.Rows(r) 'the value of the cell("ACCES1") maybe yes or no If row.Cells("ACCESS1").Value.ToString = "YES" Then CheckBox1.CheckState = CheckState.Checked 'i also try checkbox1.checked=true ElseIf row.Cells("ACCESS1").Value.ToString = "NO" Then CheckBox1.Chec
Hi i am getting the following error which run the server using Node.js and socket.io. Error: Missing error handler on `socket`. TypeError: Cannot read property 'connected' of undefined at Socket.<anonymous> (C:\Documents and Settings\Subhrajyoti\Desktop\Restore \htdocs\video broadcast\server.js:68:13) at Socket.emit (events.js:95:17) at Socket.onevent (C:\Documents and Settings\Subhrajyoti\Desktop\Restore\htd ocs\video broadcast\node_modules\socket.io\lib\socket.js:330:8) at Socket.onpacket (C:\Documents and Settings\Subhrajyoti\Desktop\Restore\ht docs\video broadcast\node_modules\socket.io\li