I started to setup spring project by following this spring-boot article. But suddenly application could not start successfully, instead I am getting the following stack trace: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: ERR Unsupported CONFIG parameter: no
While executing teradata query in proc sql (SAS), I am getting this error ERROR: Teradata row not delivered (trget): Numeric overflow occurred during computation. I am using SAS EG 9.3. I tried increasing the spool space and I tried with mode=teradat The query is large and has a lot of sum, max and count functions. Can anybody tell me how to troubleshoot this?
Most POSIX-compatible systems provide a function to get or set one of high-resolution timers: int clock_gettime(clockid_t clock_id, struct timespec *tp); Documentation for each system usually lists several symbolic names as possible clock_id values, but actual numeric values are never mentioned. It turns out that not only the numeric values are different across various systems, but symbolic names are also not the same for the same meaning. Even more so, not all the clocks actually supported by a system are defined in time.h (bits/time.h) — some are only defined in, let's say, linux/time.h. Th
I just start to use IAR Embedded workbench and meet an issue now. What I need to do is to make a project via IAR with some specific file(.h and .c). In Eclipse I can add a directory, and then when it compiles, it will scan every sub-directories in the directory to find the included files. I did the same in IAR, but it didn't work. The IAR only scans the directory I added in the 'preprocess' TAG, and it never scans the sub folders in it. Is there any way that can help me to let the IAR scan the 'entire directory', not only the current path? I'm not sure if my description is accurate or not. Ple
I am working on converting something from Oracle to PostgreSQL. In the Oracle file there is a function: instr(string,substring,starting point,nth location) or as it is in my file instr(string,chr(10),instr(string,substring),1) In PostgreSQL this does not exist, so I looked up an equivalent function. I found: position(substring in string) but this does not allow the starting position and the nth location parameters. Is there anyway to make this function start at a given point? Or is there a better function to use in PostgreSQL where I can specify starting position and the nth location? This wou
I observe a problem with net-snmp while retrieving a subtree with snmpwalk locally: On the Target Host itself I got a Unknown Object Identifier Error Message. snmpwalk -v3 -m ALL -M /usr/share/snmp/mibs -n "" -u admin -a SH A -A "12345678" -x AES -X "12345678" -l authPriv localhost TAINY-MIB::tainyMIBObjects TAINY-MIB::tainyMIBObjects: Unknown Object Identifier (TAINY-MIB::tainyMIBObjects) The same snmpwalk from a remote Host to the Target is just working fine: snmpwalk -v3 -m ALL -M /home/graute/snmp/mibs/ -n "" -u admin -a SHA -A "12345678" -x AES -X "12345678" -l authPriv 192.168.1.8:161 TA
I have a range with several cells, and I want to copy that range's font colors and interior colors to another range of the same size. I'm using this code to test: Sub testColorCopy() Dim sht As Worksheet Dim rng As Range Dim rng2 As Range Set sht = ThisWorkbook.Sheets("Sheet1") sht.Range("a1").value = "abc" sht.Range("c1").value = "def" sht.Range("a1").Font.ColorIndex = 3 sht.Range("b1").Interior.ColorIndex = 4 Set rng = sht.Range("a1:b1") Set rng2 = sht.Range("c1:d1") rng2.Interior.color = rng.Interior.color rng2.Font.color = rng.Font.color End Sub This doesn't copy the correct colors, though
The new null coalescing operator in PHP is surely a great feature, somewhat comparable to JavaScript's usage of || for getting default values. I already read some documentations and articles about this feature, but some things are still not quite clear to me. 1. Can I use this operator with any number of operands? For example, would this be valid? $a = $p1 ?? $p2; $b = $r1 ?? $r2 ?? $r3 ?? $r4 ?? $r5; 2. What is about falsy values, which are not null? $test = false ?? 0 ?? 'test'; - what will be $test now? If it doesn't work with falsy values other than null, how can we achieve, that it works
I have a spring rest app.It is configured with annotations. When I add spring-data-jpa dependency the application is falling with error on Tomcat 7(jdk 1.7): Jun 22, 2015 5:05:18 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /var/lib/tomcat7/webapps/springRest-1.1.war Jun 22, 2015 5:05:19 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/springRest-1.1] startup failed due to previous errors I add logging.properties file to WEB-INF/classes: org.apache.catalina.core.ContainerBase.[Catalina].level = INFO org.apache.catalina.c
I am new to Selenium. Trying following code and it works for Firefox. When I try for Safari, getting error. package MyTestPkg; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.safari.SafariDriver; public class MyTestClass { public static void main(String[] args) { //WebDriver driver = new FirefoxDriver(); WebDriver driver =new SafariDriver(); driver.get("http://only-testing-blog.blogspot.in"); String i = driver.getCurrentUrl(); System.out.println(i); driver.close(); } } OSX 10.10.3 Selenium 2.46 Safari 8.0.6 ERROR Jun 22, 2015 5
We are trying to use one of the existing weblogic 12c domain and It's DataSource passwords been expired. Since AdminServer is not responding correctly I tried to re-start AdminServer as well, Now I have changed the DB passwords and wanted to set the new passwords starting the AdminServer, but I cant start AdminServer it's failing complaining passwords are expired. (I could have get a way with this issue if i keep the admin server running and set the new passwords) I can see DataSources are targeted to Admin Server and I thought if I untarget DS from AdminServer I could start AdminServer correc
I am trying to use SASS in my project. I open this link and follow all command. I create a project and setup SASS. http://learn.ionicframework.com/formulas/working-with-sass/ I got this directory structure scss | |—>ionic.app.scss www | |->css | |——>ionic.app.css In index.html file I imported ionic.app.css in style tag. So whatever I change in ionic.app.scss file it comes ionic.app.css file and reflect in view . If I add some element in index.html, for example I added Paragraph tag in <ion-content>: <ion-pane> <ion-header-bar class="bar-stable"> <h1 class="title">Ionic Blank Starter</h1> </ion
I'm new to Unix, however, I have recently realized that very simple Unix commands can do very simple things to large data set very very quickly. My question is why are these Unix commands so fast relative to R? Let's begin by assuming that the data is big, but not larger than the amount of RAM on your computer. Computationally, I understand that Unix commands are likely faster than their R counterparts. However, I can't imagine that this would explain the entire time difference. After all basic R functions, like Unix commands, are written in low-level languages like C/C++. I therefore suspect
Im having a problem with a spring-mvc project. The @autowiring is not creating the beans required. Ive worked on this for over 4 days and followed all the search results. But nothing has worked. Can someone please take a look. Thank You The error stack is this: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productsController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.davis.ty.service.ProductsService com.davis.ty.controller.ProductsContr
I use eclipse and I have written the following code: package JUnitTestPackage; import static org.junit.Assert.*; import org.junit.Ignore; import org.junit.Test; import JUnit_Test.BankAccount; public class BankAccountTest { @Test public void testDeposit() { BankAccount account = new BankAccount(); account.deposit(1000); account.deposit(100); assertTrue("Test Deposit", 1100 == account.getBalance()); } @Test @Ignore public void testWithdraw() { fail("Not yet implemented"); } @Test @Ignore public void testGetBalance() { fail("Not yet implemented"); } } So, I work with Eclipse and JUnit for the fir
I am trying to free a char pointer which was allocated by the function copyCharNumber. The first time the free call in the function works fine. The second time it doesn´t work any more and Visual Studio throws an error. I don't get it why there is an error the second time. The second time calling free on the char pointer returned by the copyCharNumber anywhere in the code always throws an error. Code: char *copyCharNumber(char *oldNumber, char *newDigit, int newLen) { char *newNumber = malloc(newLen * sizeof(char) + 1); if (oldNumber != NULL) { strcpy(newNumber, oldNumber); free(oldNumber); }
I am using JAXB 2.0. I have various elements and types defined in an XSD file. Here's an example: <xs:element name="Person" type="Person" /> <xs:complexType name="Person"> <xs:attribute name="name" type="xs:string"/> </xs:complexType> <xs:element name="Musician" type="Musician"/> <xs:complexType name="Musician"> <xs:complexContent> <xs:extension base="Person"> <xs:attribute name="instrument" type="xs:string"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="People" type="People"/> <xs:complexType name="People"> <xs:sequence> <xs:element name="person" type="Person" minO
I am using Doxygen 1.8.6 on Ubuntu 14.04 to generate API documentation from C/C++ header files. I have a main page in markdown format (file mainpage.md) and want to embed an image (file logo.png) into that page. Currently, I have that working for HTML output, with the following directory structure: work ├── mainpage.md ├── resources │ └── logo.png └── html └── index.html The way the markdown in mainpage.md embeds the image, is:  This works, but it depends on the fact that the HTML output directory is one level down from the work directory, and (fwiw) that is n
I am using webMethods from the SAG and it seems if the service pub.client.http throws an exception on status code 401 "Unauthorized". This leads me to the problem that I cannot handle the status code because nothing is written to the pipeline. getLastError does contain the string "Unauthorized" but not the status code. Except that I do not want to start parsing exception messages... Any ideas?
My language is Portuguese, so i need to write a method doSomething(), which in Portuguese is façaAlgo(). Java allows me to use special characters in the code, but is it safe? What are the disadvantages of doing so? Or can i use it without worrying?
I want to copy data from one spreadsheet and paste to another, one row below the last paste. I need to copy data from E2:P2 on sheet "Dividends" and paste firstly on C11:N11, then tomorrow if I run again paste on C12:N12 and always one row below. The code pastes the data on C111:N111, and if I run again it pastes on the same range. Sub Copy_range() ' edit line below to change where data will be copied from Worksheets("Dividends").Range("E2:P2").Copy ' copy the value ' select the first cell on the "Draft" sheet Worksheets("Draft").Select ActiveSheet.Range("C11").Select Dim count As Integer coun
I am installing oracle forms and reports in standalone system. After that I installed Oracle Fusion middleware 12.1.3. Then, I tried to install oracle forms and reports 11.1.2.2.0 and hit the error. All are 64-bit and even my laptop is 64-bit. Presently I have installed JDK 8u45 and Middleware software. Java version: C:\Windows\system32>java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) Can anyone help me with the problem?
I have a monolith of a feature branch. Instead of one massive PR into master I would like to split it up into 3 prs. Ideally I want to pull out some standalone code from the feature branch into a PR by itself. This code is in a new directory and isn't called into yet so it would be a relatively safe PR. However instead of just copying the directory and creating a single commit and PR I would like to retain all the commit history of the changes for the new PR. Is this possible using Git? I've looked into filter-branch but it seems like that is for splitting a repo into two, not for splitting a
I built a registration form for a mobile game using Unity 5.1. To do that, I use Unity UI components: ScrollRect + Autolayout (Vertical layout) + Text (labels) + Input Field. This part works fine. But, when keyboard is opened, the selected field is under keyboard. Is there a way to programmatically scroll the form to bring the selected field into view? I have tried using ScrollRect.verticalNormalizedPosition and it works fine to scroll some, however I am not able to make selected field appear where I want. Thanks for your help !
I'm using DOMDocument to find and strip out some HTML elements I don't want in the PHP variable $table_data_for_db. The raw version of $table_data_for_db comes with some HTML tags I don't want. So, I'm using the code below to get rid of some tags (and the content in those tags), then saving the remaining HTML to my DB. Here's the code I'm using to create $table_data_for_db... $table_data_for_db = $_POST['table_data']; $dom = new DOMDocument; $dom->loadHTML($table_data_for_db); $xPath = new DOMXPath($dom); $nodes = $xPath->query('//*[@id="problem_header"]'); if($nodes->item(0)) { $nodes->item(0
In my sql-server, the field DATE are saved in float format (es: DATADOC = 42155) I want to import the field in mysql DB as DATETIME. I try on sql-server to cast the field with this query: SELECT CAST(DATDOC as DATETIME) -2 FROM FATTURE where id=25460; And the result is correct. Now, I want to translate it in JPA Query: TypedQuery<DateTime> convFattura = emI24.createQuery(" SELECT CAST(dataFattura as DATETIME) -2 FROM FatturaI24 f where f.id = :idFattura", DateTime.class); But I obtained this error: 09-06-2015 14:32:00 ERROR: org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler
I have this string and hash: Input data: my $string = 'GATGCAGTTAGGCGTAGCAGAGTGAGACGACGACGATATTAGGACCCGGTAAGGCACAATATAGC'; my %coord_colors = ( 10 => "red", 48 => "orange", 60 => "purple", ); I want to "open" the string at each hash key position, and insert the key-value. See the desired output to have an idea about what I'm trying to explain: Desired output: GATGCAGTTAredGGCGTAGCAGAGTGAGACGACGACGATATTAGGACCCGorangeGTAAGGCACAATpurpleATAGC I know about the substr and split functions, but I'm not sure about how to divide a string into several parts "simultaneously" and then introduce another str
I am pretty new to shell scripting . I am trying to write a script to check for logfile for errors (error strings are hardcoded), and i have to print the lines containing the error . i am able to write the logic but need pointers to read a file from user input. Appreciate the help thanks. Logic: Accept the logfile patch from user Check if the logfile is present or not If present search the file for lines containing the error string (eg. Error, ORA) Print the lines containing error strings , also write the output to a logfile Read the log file from user Set error strings search="ERROR" set a pa
When running the macro I am getting the following error: "Runtime Error '5941' The Requested Member of Collection Does Not Exist" The line below is highlighted in Yellow; This Macro works on the majority of users and the error has only been reported off two users. Windows(DestTemplateName).Document.Bookmarks("fCustomer").Range.Fields(1).Result.Text = Windows(SourceTemplateName).Document.Bookmarks("fCust").Range.Fields(1).Result.Text Any Help Would Be Much Appreciated. Sub PopulateBookingForm() Dim SourceTemplateName As String, DestTemplateName As String ' Set Method Statement Name SourceTempla