I applied a custom date format to a column in excel (the format yyyy-mm e.g. 2014-01) But when I create a graph out of three columns of data (date-in above format |heading|value) the graph shows the date as 2014-01-31 2014-02-28. How do I get the graph to display the date as I have formatted it 2014-01 only without changing the data type to text and pasting values?
How do you deal with svn vendor branches when releases from the 3rd party vendor come out-of-order in their version number. eg, consider releases in this order: 1.0.0 2.0.0 alpha 1.0.1 (minor point release) 2.0.1 beta 1.1.0 (new features added) 2.0.2 final We merge to the trunk various versions from any of the above, depending on what stage the project is in. What's the best way to handle this in svn for vendor branches? Should each release be committed to \current? Would the history be preserved properly? Also, depending on the amount of changes, a lot of space would be wasted going back and
I am looking to implement a calendar with month view & to be able to add appointments to day, as in attached image. Suggest me with some example to approach this, Thank you in advance!
I have a HTML with lots of data and part I am interested in: <tr valign=top> <td><b>Total</b></td> <td align=right><b>54</b></td> <td align=right><b>1</b></td> <td align=right>0 (0/0)</td> <td align=right><b>0</b></td> </tr> I try to use awk which now is: awk -F "</*b>|</td>" '/<[b]>.*[0-9]/ {print $1, $2, $3 }' "index.html" but what I want is to have: 54 1 0 0 Right now I am getting: '<td align=right> 54' '<td align=right> 1' '<td align=right> 0' Any suggestions?
Am trying to find the loops in my hierarchies. I have 250k+ which defines Hierarchies. I have created below procedure to print loop in hierarchies we have fix them. =========================================== DECLARE STMT1 VARCHAR2(5000); RESULT1 VARCHAR2(3000); CHILDREN C_REL_PARTY_XREF.S_ROWID_PARTY_CHILD_FK%type; CURSOR C1 IS SELECT DISTINCT S_ROWID_PARTY_CHILD_FK FROM C_REL_PARTY_XREF A , C_REL_PARTY B WHERE B.ROWID_OBJECT = A.ROWID_OBJECT AND B.HUB_STATE_IND =1 AND ROWNUM<50; --238 K CHILD'S BEGIN FOR FIND_CHILD IN C1 LOOP --CHILDREN := TO_CHAR('''' ||FIND_CHILD.S_ROWID_PARTY_CHILD_FK|| '
I am giving my first steps in bash and would like to create a associative array and iterate it. My instinct would be to do this: declare -A FILES=(['SOURCE']='Source/Core/Core.js' ['DIST']='dist/Core.js') for file in "${!FILES[@]}"; do echo $file - $FILES[$file] done But output is: SOURCE - [SOURCE] DIST - [DIST] and no path as expected. What am I missing? and btw, is the declare -A required? Demo: https://ideone.com/iQpjmj Thank you
I want to use Regex non-capturing groups in scala, briefly worded "?:". After hours of testing various cases I came here to search for a solution. I found this question and its answer, but it didn't worked for me. Is it possible to make non-capturing groups work in scala regexes when pattern matching So I wrote a minimal example to test the statement of the thread above. val test = ("""(?:<.*>)(.*)(?:<.*>)""".r findFirstIn ("<test>hello</test>")) getOrElse "" println("DEBUG MESSAGE (test): " + test) Expected Output: hello Real Output: <test>hello</test> So what is wrong with my code?
Como eu poderia localizar novos amigos utilizando FQL Query, utilizando como filtro a o nome da escola de graduação? Não funciona: select uid, name from user where education.school.name = "Universidade de São Paulo" porque tem que usar um campo indexado, como código ou fazer uma subquery com amigos que são meus amigos.
I'm using Python 3.4.1 64 bit on Windows 7. When I tried to install scikit-image using pip, I ran into the popular problem: "unable to find vcvarsall.bat". I made sure that I have both Visual Studio 2009 and 2010 redistributable installed and also added VS90COMNTOOLS and VS100COMNTOOLS to environment variable. But that didn't help. The same error persisted. Then I decided to give MinGW-w64 a try. So I installed it. Add the bin folder to PATH. Then create a distutils.cfg file that has this code [Build] compiler = mingw-w64 Then I get this error message: "don't know how to compile C/C++ code on
Is it possible to convert a Sketch file to an SVG without actually having Sketch or DrawIt? I know it's theoretically possible since they're both vector, but I use Windows and Linux, so I don't have a Mac to open the files with.
I need to be able to highlight cells that are modified and before the sheet is closed, remove the highlighting. Typically the cells that will be changed are always in one column. I've been reading the developer reference and playing in vba all day. Despite my best efforts I can't seem to figure this one out. I have a string of code that highlights any targeted cell: Target.Interior.Color = RGB(181, 244, 0) I was thinking of making an array that recorded targeted cells and on a BeforeClose event, clearing the formatting based on the arrays values. Is that even possible? Thanks in advance!
I have written the code below to send headers, post parameters. The problem is that I am using SendAsync since my request can be GET or POST. How can I add POST Body to this peice of code so that if there is any post body data it gets added in the request that I make and if its simple GET or POST without body it send the request that way. Please update the code below: HttpClient client = new HttpClient(); // Add a new Request Message HttpRequestMessage requestMessage = new HttpRequestMessage(RequestHTTPMethod, ToString()); // Add our custom headers if (RequestHeader != null) { foreach (var ite
I'm creating multiple instances of tomcat using opscode chef cookbook. I see that tomcat.conf was not written into my instance of tomcat but is only in the base instance. I created a softlink to the base instance tomcat.conf file. When I tried to start the server, I get the following error with no logs. There are no logs in /var/log or tomcat folder. Please provide hints on how to debug. [root@centosclient2 ~]# service tomcat6-obi_sandbox_tomcat start Starting tomcat6-obi_sandbox_tomcat: Error code 4 [FAILED] I saw below in /var/log/tomcat6-obi_sandbox_tomcat-initd.log -sh: /usr/sbin/tomcat6-o
How can I display the dynamic content of PHP with bootstrap pagination.The result is displaying using ajax call in div id 'msrResult', how to relate with bootstrap pagination code. Here my code: <script src="//code.jquery.com/jquery-2.0.3.min.js"></script> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <script src="//raw.github.com/botmonster/jquery-bootpag/master /lib/jquery.bootpag.min.js"></script> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> </head> <div id="content2">Dynamic Content goes here</div> <d
I have an Android application. I want to scan for all classes within a package for a specify annotation. I have: package com.sample.package; import com.sample.core.Controller; import com.sample.core.ProtocolId; @Controller public class OtherController implements ControllerInterface{ @ProtocolId(id=100) public void doSomething(){ //do something } } I'm finding for classes annotated with @Controller for a specify @ProtocolId number. I'm using Google Reflections library. Here is how I'm scanning: package com.sample.package; import org.reflections.ReflectionUtils; import org.reflections.Reflection
The question is a little bit long but I wanted to supply all the information in advance I have the following class: package test.api.soap.server; public class TestClassA { public TestClassA() { } public String doA() { System.out.println("Start doA()"); return "In do A"; } } I want to expose it as web service but not directly so i created wrapper class: package test.api.soap.server; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class MyClientApiV2_5 { public MyClientApiV2_5() { } @WebMethod public TestClassA getTestClassA() { return new TestClassA(); } } I creating
I want to monitor JVM performance on my production environment. I have installed only JRE, not JDK, Hence I can't use jstat, jconsole etc. to monitor the JVM performance. Can somebody please help to understand how can I monitor JVM performance in this scenario? Is there any way to achieve this? (Please note that I don't want to monitor it remotely through JMX or something else. I would like to install local agent in each machine which will send the metrics to server at the interval of 1 minute.)
How can I get the server name using a query in Teradata? That is, if I am writing a query on the 'dev' server, it should return the dev server name. For example, in Sybase we will be using select @@servername.
How can I get the server name using query in Teradata? That is, if I am writing a query on the 'dev' server, it should return the dev server name. for example, in Sybase : we will be using select @@servername.
When I go to websites like Codecademy or JSBin, I notice that they allow you to see console output. How does that work? Just to clarify, let's say a user types this in a textbox console.log('hello'); How can I make the output on the actual web page and just not the browser's console?
My CXF JaxWs Endpoint is hosted on a weblogic through a war. I'm trying to access an operation from a Stand-alone JaxWsDynamicClient. The Client is getting created but the following exception is thrown while trying o access the operation. I've pasted the Server Side and Client Side Exception, SEI, client code and the respective Service and Client pom(s). Didn't find any luck researching over this issue, mostly there seems to be no answer. Server Exception java.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.jav
I validate my form with jQuery validation plugin. I change style dropdown menu with jQuery select2 plugin. If validate callback throws an error my input shows/adds a class error box (red border). Otherwise it shows/adds a class success box (green border). This worked in normal input but won't work in select2. When I choose any value for select box, the error box (red border) does not hide/switch to success box. select2 worked after click submit button. JS: $('form').validate({ rules: { firstname: { minlength: 3, maxlength: 15, required: true }, lastname: { minlength: 3, maxlength: 15, required
I have a simple Criteria, like this: final Criteria players = session.createCriteria(Players.class).add(Restrictions.idEq(1)); final Criteria team = players.createCriteria("team","team").add(notDeleted()); i need a player with ID=1 and the team is not deleted this is working OK but i need the Owner of the team and the address of the owner. strangely this is not working.. team.createCriteria("owner").setFetchMode("address",FetchMode.JOIN); This is not working neither: team.createCriteria("owner").setFetchMode("owner.address",FetchMode.JOIN); here i have the owner but i dont have the address. bu
I am trying to convert TIF / TIFF images to JPG which works fine but for few TIF images I am getting an IllegalArgumentException: Bad endianness tag (not 0x4949 or 0x4d4d). Exception : java.io.IOException: Bad endianness tag (not 0x4949 or 0x4d4d). at com.sun.media.jai.codecimpl.CodecUtils.toIOException(CodecUtils.java:76) at com.sun.media.jai.codecimpl.TIFFImageDecoder.getNumPages(TIFFImageDecoder.java:98) at com.sun.media.jai.codecimpl.TIFFImageDecoder.decodeAsRenderedImage(TIFFImageDecoder.java:103) at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140)
I am creating an application using cordova: openDatabase('testname', '1.0', 'Database display name', 5 * 1024 * 1024) I am using a plugin to sign in with Facebook https://github.com/wizcorp/phonegap-facebook-plugin. After a successful login I am calling the following function: facebookConnectPlugin.api("<user-id>/?fields=id,email", ["user_birthday"], function (result) { alert("Result: " + JSON.stringify(result)); /* alerts: { "id": "000000123456789", "email": "[email protected]" } */ openDatabase('testname', '1.0', 'Database display name', 5 * 1024 * 1024) }, function (error) { alert("Failed
I want to delete all completed orders in WooCommerce using a single MySQL query. I am having a performance issue with the WordPress admin dashboard: when I try to view completed orders, the page goes blank (likely memory exhaustion due to 7,823 completed orders). Is there a safe way to delete all completed orders directly using a MySQL query in phpMyAdmin?
I am passing a text file into Apache Solr and am getting the exception: SolrException: An invalid XML character (Unicode: 0xffffffff) was found I want to skip indexing the full content of this text file as a result. How do I find if a text file has this character in Java? To find Unicode 0xffff to fix a similar issue, I am currently using: File file = [somefile]; String contents = getContentsAsString(file); if (contents.contains("\uFFFF")) { [skip it] } I need to determine if a text file contains Unicode: 0xffffffff.
At the place where I am working, proxy settings are not allowed. Is there any way by which I could record HTTP sessions and use them in JMeter during replay?
I am trying to download a pdf file from a website using urllib. This is what i got so far: import urllib def download_file(download_url): web_file = urllib.urlopen(download_url) local_file = open('some_file.pdf', 'w') local_file.write(web_file.read()) web_file.close() local_file.close() if __name__ == 'main': download_file('http://www.example.com/some_file.pdf') When i run this code, all I get is an empty pdf file. What am I doing wrong?
I'm developing SMS application which sends a lot of SMS's from a database.But when I'm sending SMS appears a popup "Messaging is sending a large number of SMS messages. Do you want to allow this app to continue sending messages?".How I can avoid this poup??