I am not able to open the spring tool suite in the centos. Following is the exception which is causing this problem.: JVM terminated. Exit code=13 /opt/jdk1.7.0_60/bin/java -Dorg.eclipse.swt.browser.IEVersion=10001 -Dosgi.requiredJavaVersion=1.7 -Xms40m -Xmx768m -XX:MaxPermSize=256m //plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -jar /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE -os linux -ws gtk -arch x86_64 -showsplash -launcher /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE/STS -name STS --launcher.library /home/kapil/Desktop/springsource/sts-3.4.0.RELEASE//plugins
I am using iReport. I want to know how to make an auto height rectangle? as per this sample image of detail band. There is two part one is data part on right side which fetch data and show. and left side part is a textarea data which is passed as parameter. I want to make both rectangle same height. It may possible that left side data height is bigger than right side part and vice versa. So I want to make both rectangle height same all the time. For achieving this i use following code. where I don't use rectangles but a lines only <columnHeader> <line> <reportElement x="0" y="28" width="555" h
I have installed oracle forms 10 g on my windows 7 32 bit local machine. Everything is fine, but whenever I try to run the form it gives the error FRM-40039 can't attach library while opening form. BUT it works fine whenever I put my .fmb, .fmx, .pll, and .plx libraries in oracleDEVhome_1\forms. But when I place all .fmb, .fmx, .pll, and .plx files in a separate directory like c:\orion, it gives the error frm-40039 can't attach library while opening form abc. All my .pll, .plx, .fmb, .fmx files are in the same file named orion. The overall configuration that I did is 1)default.env FORMS_PATH=c
What is the easiest way to create 1 link that will re-direct to either the App Store, Google Play Store, or a website, depending on the user agent? iOS device should redirect to App Store. Android device should redirect to Google Play. Any other device should redirect to website.
I am trying to utilize chrome for remote debugging of an android web application. I am unable to get any open tabs from the device to show under chrome://inspect list for remote debugging. I have done the following: Made sure my device driver is installed appropriately. Turned on developer mode and usb debugging on my device via the developer menu. Checked and made sure that my device is listed in adb list via issuing "adb devices" from the command line. My device is displayed under the device list via (chrome://inspect) just cant seem to get any open tabs listed any help would be much appreci
I am trying to reformat my pivot table. Currently, there are two columns called closed and completed, which essentially represent the same thing. I would like to merge these two columns together. How can I do this?
I have copied Client/Server Socket Program from the following source http://www.php.net/manual/en/sockets.examples.php but when i run it in my browser it gives following error message: socket_bind() reason: Only one usage of each socket address (protocol/network address/port) is normally permitted. I have searched and tried different solutions but was unable to found the solution. Please help My code is below. Server.php <?php error_reporting(E_ALL); /* Permitir al script esperar para conexiones. */ //set_time_limit(0); /* Activar el volcado de salida implícito, así veremos lo que estamo obten
I need to know the selenium version the webdriver is communicating with. I think this could be done before with getEval and Selenium.version, but I cannot find now how to do it. Is there a way?
I want 1 larger image with 4 smaller images in a 2x2 format like this: My initial thought was to house everything in one row. Then create two columns, and, in the second column, create two rows and two columns to create the 1x1 and 2x2 effect. However, this doesn't seem to be possible, or I am just not doing it correctly?
-----------SOLVED----------- thanks for taking the time to help me. i managed to make it work now. i think the problem was my negligence. i have to add the getVal on my modal like so id="modal_"getVal. it was calling the wrong modal, thats why the input box returns empty. Im very sorry for this and I appreciate the help people do. thank you i have a simple modal which contains a textbox and button. <input type="text" class="form-control" id="textb" val_A="1"> <button type="button" id="but"> submit </button> i want to get the textbox .val() and the attributes val_A upon button click $(document)
I'm using SSRS 2008 and wanted some advice on the best practices for handling multiple result sets. I have a stored procedure which returns 4 result sets of related data, however each result set has a different number of records returned. Of course in SSRS only the first result set is processed, so I'm left with 2 options, as far as I can tell: Create 4 different stored procedures which return the 4 different data sets Insert all 4 result sets into a temporary table and return the results from that table. The problem with the first option is that the 4 results are all derived from the same bas
I am trying to code a listItem which will have 2 values "New" and "Edit". I also have a search (Push Button) in the same canvas. I want to disable the Search button when I have selected "new" in the list item and enable it when "Edit" is selected in the list item. Here is my code : I am using Oracle Forms 6i , WHEN_LIST_CHANGED Trigger .. begin if :CONTROL.LI_DO='New' then go_item('PB_SEARCH'); SET_ITEM_PROPERTY('PB_SEARCH',enabled,property_false); else if :CONTROL.LI_DO='Edit' then go_item('PB_SEARCH'); SET_ITEM_PROPERTY('PB_SEARCH',enabled,property_true); end if; end if; end; Any help is app
In this trivial example, test2 fails to compile even though test1 succeeds, and I don't see why that is the case. If arr[i] is suitable for a return value from a function marked constexpr then why can it not be used as a non-type template argument? template<char c> struct t { static const char value = c; }; template <unsigned N> constexpr char test1(const char (&arr)[N], unsigned i) { return arr[i]; } template <unsigned N> constexpr char test2(const char (&arr)[N], unsigned i) { return t<arr[i]>::value; } int main() { char a = test1("Test", 0); //Compiles OK char b = test2("Test", 0); //error:
I have a string variable in Jenkins that has a default value of an empty string. When I build my job, the value is set to the last part of the parameter name. So our paramater qa-release that was set to an empty string now has a value of release. Due to the way our code is written, I need to sometimes send in an empty string. We are trying not to install too many plugins so I would prefer a solution that wouldn't require that. I have tried setting the value to the following, but all produce the above results "" """" "''" " "
I have an Excel VBA userform with several text boxes. The user will input a weight in a text box. They can then do other things on the form or click Apply, Update, Previous Event, Next Event or Cancel. After the weight is input, it must be validated, and if it is OK, the form is marked as mbFormChanged=True. This validation occurs in the text box's AfterUpdate event. My problem is that if the user types in a value and immediately clicks Apply, Update, Previous Event or Next Event, the field is not validated and it is as if it was never changed. I.e enter weight: 200[Update] However, if the use
I was making android application project in eclipse. I can't open java files in eclipse. java.lang.IncompatibleClassChangeError editor could not be initialized what I should do?
In Maven projects, there is an option in IntelliJ IDEA to automatically download sources (and Javadoc) for all libraries. For Gradle projects I found no similar option, just to open a class and click "Search in internet". This is very annoying if you have a lot of libraries. Is there any way to automatically attach sources from the internet (Maven repo)?
When I attempt to build my android project after updating to the latest version of android studio/developer tools I have been getting these errors: [Fatal Error] :1:38: A pseudo attribute name is expected. FAILED FAILURE: Build failed with an exception. What went wrong: A problem was found with the configuration of task ':apoAppAndroid:generatePharmoreDebugBuildConfig'. No value has been specified for property 'buildConfigPackageName'. I though Package Name had been deprecated, what am I doing wrong? Here is a shortened version of my gradle file apply plugin: 'android' android { compileSdkVers
I'm trying to call a procedure with MyBatis. This is the procedure signature: PROCEDURE pr_start(io_calc IN OUT TYPE_CALC, in_restart BOOLEAN DEFAULT TRUE, in_user VARCHAR2 DEFAULT NULL); It's in a package named PACKAGE_PP. This is how TYPE_CALC is declared: CREATE OR REPLACE TYPE TYPE_CALC AS OBJECT ( modelField VARCHAR2(5 CHAR), sysField VARCHAR2(5 CHAR), hexField VARCHAR2(5 CHAR) ); This is my XML mapping: <select id="pr_start" statementType="CALLABLE" parameterType="map"> { exec PACKAGE_PP.pr_start( #{io_calc,mode=INOUT,jdbcType=STRUCT,jdbcTypeName=TYPE_CALC}, #{in_restart,mode=IN,jdbcType
I want to convert PT2H34M25S to 2:34:25 (for example). I searched online, and found this code. function covtime($youtube_time){ preg_match_all('/(\d+)/',$youtube_time,$parts); $hours = floor($parts[0][0]/60); $minutes = $parts[0][0]%60; $seconds = $parts[0][1]; if($hours != 0) return $hours.':'.$minutes.':'.$seconds; else return $minutes.':'.$seconds; } but this code only give me HH:MM. Why is that? How can I get it to include the SS values, too?
I have a std::set of a class which stores some master data. Below is how my set looks like: std::set<TBigClass, TBigClassComparer> sSet; class TBigClassComparer { public: bool operator()(const TBigClass s1, const TBigClass s2) const { //comparison logic goes here } }; Now I want to filter data in this set based on some fields of the TBigClass and store it in another set for manipulation. std::set<int>::iterator it; for (it=sSet.begin(); it!=sSet.end(); ++it) { //all the records with *it.some_integer_element == 1) //needs to be put in another set for some data manipulation } Could anyone tell m
I wanted to sort a grid view by column when user clicks on a column header. Here user can click any column and grid view is sorted based on the column clicked. This is my code: <asp:GridView ID="gvEmployeeStatus" runat="server" AutoGenerateColumns="false" AllowPaging="True" PageSize="10" AllowSorting="true" OnPageIndexChanging="gvEmployeeStatus_PageIndexChanging" OnSorting="gvEmployeeStatus_Sorting" > protected void gvEmployeeStatus_Sorting(object sender, GridViewSortEventArgs e) { loginName = (String)(Session["LoginName"]); dsLoginDetail = clsBLogic.TblLogin(loginName); tblEmployeeNo = dsLogi
I have trying to submit a form using jquery. Form is submitted correctly but it do not clear the form after submission. here is my jquery code <script type="text/javascript"> $(document).ready(function(){ $("#save").click(function(){ $("#myform").submit(); $("#myform")[0].reset(); }); }); </script> here is my form <form action="http://localhost/newsletter/index.php/email/send" method="post" accept-charset="utf-8" id="myform" name="myforms"> <p> <label for="name">Email Address </label> <input type="text" name="email" id="email" value="<?php echo set_value('email');?>"> <input type="button" valu
I am getting a GMSPolyline to custom location but I am not getting a route direction (GMSPolyline) from user location to some custom location. What I have done is placed a GMSMapView and kept core location. I am updating the route in core location delegate method (locationManager: didUpdateLocations:). I want to use Google Maps for iOS SDK since Apple Maps don't have directions in the country I need. My code is below: - (void)viewDidLoad { [super viewDidLoad]; waypointStrings_ = [[NSMutableArray alloc]init]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:self.latitude longit
I am using <s:checkbox> of Struts 2.3 the following is the line of code: <s:checkbox theme="simple" name ="Mychkbox" value="R" onclick="Auto_Au('rej');" /> Now in this I need this value in action , but I am not finding any way to set this value "R" because the fieldValue Parameter of <s:checkbox> will give true or false. I need to set the value as 'R' that can be accessed in the action class.
I am using Getpt::Long to take the arguments from the command line and assign them to their respective variables. But, I am getting errors when I am printing it. The code and the error is as follows: #!usr/bin/perl use strict; use warnings; use Getopt::Long; GetOptions( "mount_path=s" => \my $old_path, "var=s" => \my $var, "log_path=s" => \my $log_path, ) or die "Error in input variables\n"; print <<"END_INPUTS"; These are your inputs: old_path= $old_path var = $var log_path=$log_path Press enter twice if all looks GOOD ********************************************************* END_INPUTS The c
I am using Getpt::Long to take the arguments from the command line and assign them to their respective variables. But, I am getting errors when I am printing it. The code and the error is as follows: #!usr/bin/perl use strict; use warnings; use Getopt::Long; GetOptions( "mount_path=s" => \my $old_path, "var=s" => \my $var, "log_path=s" => \my $log_path, ) or die "Error in input variables\n"; print <<"END_INPUTS"; These are your inputs: old_path= $old_path var = $var log_path=$log_path Press enter twice if all looks GOOD ********************************************************* END_INPUTS The c
I thought I knew how to do this, but when I am actually doing it, doesn't seem like I know how to do this. What I am trying to achieve is display a filtered rows of table that is in dataset when search btn is clicked. Allow users to make changes on the datagridview or update selected rows with values provided on textbox on the update panel when Update btn is clicked. But I can't seem to achieve this. private void Display() { bindingSourceDisplay.DataSource=_dsNorthwind.Customers.Where(x=>!x.IsRegionNull() && !x.IsFaxNull() && !x.IsPostalCodeNull()).Take(10); dgvSearchResult.DataSource = bindin
How can this happen. Isn't liquibase supposed to create this table for itself... This is an in memory database created for unit testing. public void setUp(String contexts) { try { ResourceAccessor resourceAccessor = new FileSystemResourceAccessor(); Class.forName("org.hsqldb.jdbcDriver"); holdingConnection = getConnectionImpl(); HsqlConnection hsconn = new HsqlConnection(holdingConnection); liquibase = new Liquibase(CHANGE_LOG, resourceAccessor, hsconn); liquibase.dropAll(); liquibase.update(contexts); hsconn.close(); } catch (Exception ex) { LOG.error("Error during database initialization", e