on-internet

STS(Spring Tool Suite) Not opening

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

Join the discussion →

Auto height rectangle in detail band

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

Join the discussion →

frm-40039 can't attach library while opening form abc

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

Join the discussion →

Chrome://inspect displaying device though not displaying any opened tabs

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

Join the discussion →

Merging Two Columns in Pivot Table

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?

Join the discussion →

socket_bind() : Only one usage of each socket address (protocol/network address/port) is normally permitted in php

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

Join the discussion →

Nested rows with bootstrap grid system?

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?

Join the discussion →

getting values from a modal using jquery

-----------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)

Join the discussion →

SSRS Best practice for multiple result sets from Stored Procedure

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

Join the discussion →

Enable/Disable Item based on the value of the List Item

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

Join the discussion →

Why is this passed as function parameter of a constexpr function not a constant expression? [duplicate]

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:

Join the discussion →

Is there a way of preventing a Jenkins string parameter defaulting to the name of the parameter if empty?

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 "" """" "''" " "

Join the discussion →

After input in text box how do cause AfterUpdate event to run?

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

Join the discussion →

Automatically download sources in Gradle project

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)?

Join the discussion →

Gradle Error: No value has been specified for property 'buildConfigPackageName'

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

Join the discussion →

Error occurred while setting parameters

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

Join the discussion →

Why does this code to convert PT#H#M#S timestamps to HH:MM:SS in PHP drop the seconds from the output?

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?

Join the discussion →

Filtering a std::set based on specific data

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

Join the discussion →

How to sort records in grid view on click of header of a column

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

Join the discussion →

Clear form input fields after submit in jquery

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

Join the discussion →

Draw route directions using Google Maps iOS

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

Join the discussion →

Set default value to tag in Struts 2

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.

Join the discussion →

How do I fix event not found error in Bash?

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

Join the discussion →

How do I fix Getopt::Long event not found error?

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

Join the discussion →

How to Apply Pagination for Dynamically Created HTML Table in Asp.net MVC

I Have dynamic HTML table in MVC like: <table id="dt_basic" class="table dataTable"> <thead style="text-align: left;"> <tr> <th><i class="fa fa-lg fa-plus-circle"></i></th> <th style="text-align: left">Name</th> <th style="text-align: left">Resource Type</th> <th style="text-align: left">Week Start Date</th> <th style="text-align: left">Week End Date</th> <th style="text-align: left">Status</th> </tr> </thead> <tbody role="alert" aria-live="polite" aria-relevant="all"> @foreach (var item in Model.GetContractorNotEnteredDetails) { <tr class="trList"> <td class="tdEmpId"><a class="text-success a

Join the discussion →

How to save changes made to DataGridView?

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

Join the discussion →

org.hsqldb.HsqlException: user lacks privilege or object not found: DATABASECHANGELOGLOCK

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

Join the discussion →
Older stories