METALHEAD

1

votes
1

answer
24

views

Bootstrap 4 tool-tip appearing from the second hover on a dynamic element

I have a dynamic element on which the Bootstrap tool-tip need to appear upon the hover. So I've used Jquery delegates as below. But the issue is tooltip not appearing on the first hover, but from second hover it is appearing. Can you please point out the mistake? HTML for dynamic element Jquery $(do...
METALHEAD
1

votes
1

answer
179

views

Amazon Cognito login approach and token validation?

I am reading lot of cognito documentation but the thing which is confusing is the limited documentation for build Hybrid applications(cordova mobile app). This is my understanding so far: I can develop my own sign-in and signup screens but use the cognito user pools as a backend authentication datas...
Metalhead
1

votes
1

answer
1.5k

views

Unable to use Response.Write in VBScript

I am supporting an old Classic ASP application and I've read that the code we write within is VBScript and is working fine , but when I write in the following format, Response.Write is not working Response.Write 'VBScript' also Response.Write is not getting executed in an button click event functi...
METALHEAD
1

votes
1

answer
194

views

FTP File Transfer C# [duplicate]

This question already has an answer here: Upload and download a binary file to/from FTP server in C#/.NET 1 answer I need to transfer files on FTP from one server to other. I have used the below code. Out of many files this is transferring only a single file partially. For ex. I have a source file...
METALHEAD
1

votes
1

answer
2.7k

views

FTP File Transfer using Batch Script

I am trying to transfer multiple files through FTP from a local directory - C:\Users\Documents\FTP\*.* to the Domain. I've approached like the below. First I've created a batch script DISCH.BAT as below :: open ftp://[email protected]/outbound/Pre/Release/ USERNAME PASSWORD binary mput C:\Users\...
METALHEAD
1

votes
1

answer
129

views

Codename one - Android build error

I encounter an error when trying to send my app to the server for building (android). Netbeans outputs the following message (actual username removed): Prompting for password Building for username: /home/user/NetBeansProjects/OPKP/build.xml:338: The attribute can't be empty BUILD FAILED (total ti...
MetalHead
1

votes
1

answer
31

views

Codename one - clickable bars in bar chart

I want to implement a bar chart that has clickable bars. To create a custom bar chart I created a class that extends BarChart. Class BarChart has a method that might be useful: clickableAreasForPoints(java.util.List points, java.util.List values, float yAxisValue, int seriesIndex, int startIndex) I...
MetalHead
1

votes
1

answer
136

views

C# console application - Unhandled exception while finding the Available and free Ram space.Getting exact answer in windows forms application

Unhandled exception while finding the Available and free Ram space.Getting exact answer in windows forms application while displaying details in a textbox but getting exception in console application.I've added all possible references..Not showing any error during compile time... using System; using...
METALHEAD
1

votes
1

answer
679

views

Save what's inside of a circle detected by a Hough Circle on OpenCV

I'm using Hough Circle Transform from OpenCV to detect circles from some images passed by command line parameter. Now I need to save the information inside from a determined circle (shape and all colors), defined by a specific color. My actual code is the following: // Read the image while(*argv){ i...
metalhead_6666
1

votes
1

answer
213

views

Require specific version of CocoaPods to be installed form Podfile

In our project we want to ensure that all developers are using the same version of CocoaPods by adding a version verification within the Podfile as a prerequisite check when a developer attempts to perform pod install or pod update. Is it possible to achieve this from within the Podfile?
metalhead
1

votes
1

answer
361

views

Getting Truncation error in SQL SERVER while executing Stored procedure

I am getting the below error while executing a stored procedure USE [Smart2uat] GO /****** Object: StoredProcedure [dbo].[SPJOB_ALLLOC] Script Date: 2/11/2016 12:37:40 PM ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[SPJOB_ALLLOC] AS declare @cardno as varch...
METALHEAD
1

votes
1

answer
202

views

Codename one - BluetoothLE MATCH_MODE_STICKY vs. MATCH_MODE_AGGRESSIVE

What's the difference between MATCH_MODE_STICKY and MATCH_MODE_AGGRESSIVE in CN1 library for BLE? This is the matchMode argument in in the startScan method. startScan(ActionListener callback, ArrayList services, boolean allowDuplicates, int scanMode, int matchMode, int matchNum, int callbackType) I...
MetalHead
0

votes
0

answer
4

views

How to sync props to state using React hook : setState()

I am trying to set the state using React hook setState() using the props the component receive. I've tried using the below code: import React,{useState , useEffect} from 'react'; const Persons = (props) => { // console.log(props.name); const [nameState , setNameState] = useState(props) console.log(...
METALHEAD
2

votes
1

answer
2.6k

views

JMS multithreading concept with MQ

I recently started learning JMS and so far understood some of the concepts. However I would like to know how IBM MQ or any queue provider handles request from a multithreaded application. for example Consider a application which is mutithreaded and configured to send messages to Mainframe host using...
Metalhead
2

votes
2

answer
31

views

Python: calculating subtraction of columns in dataframe

I have a dataframe which is like this: id_A id_B f1_A f2_A f3_A f1_B f2_B f3_B t 1 2 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 0 3 4 7 8 9 8 7 6 1 I want to do a subtraction to produce results like this: id_A id_B f...
Metalhead Prime
19

votes
2

answer
30.6k

views

JSTL Core fmt:message Tag Dynamic message using bundle/properties file

I understand the usage of standard fmt:message Tag i.e we define something like this in the JSP: Suppose error.Value = 'MQ2009' My properties file named 'ValidationErrorMessages' has following entry MQ2009 = MQ time out Now my requirement is to have something like MQ2009 = Mq timeout happened for me...
Metalhead
2

votes
1

answer
650

views

How to find systems cached and free memory using C#

I couldnt able to find the cached and free memory of a system using C#.Help me.......
METALHEAD
2

votes
1

answer
69

views

Functionality of require() in nodeJS [duplicate]

This question already has an answer here: What is the purpose of Node.js module.exports and how do you use it? 11 answers I have a fundamental query of how the require() works in nodeJS application. What does require() actually return ?? For example, say I wanted to use 2 third party packages : lod...
METALHEAD
1

votes
1

answer
97

views

Getting different answer even after using Join() in threads - C#

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Reflection; using System.Runtime.InteropServices; using System.Collections.ObjectModel; using System.Threading; namespace JUSTFORPRACTICE { class Program...
METALHEAD
1

votes
2

answer
360

views

SQL - Cannot print values from 'inserted' table

I have heard that the 'inserted' table automatically stores the last inserted record of any table temporarily.I was able to get the values from this inserted table when using triggers but not manually as insert into samantha (id , name) values (11,'has') select *from inserted I am getting the error...
METALHEAD
1

votes
1

answer
700

views

UIDatePicker not responding properly

I have a UIDatePicker placed in a view, the UIDatePicker doesn't respond properly to touches - only the rightmost column/wheel scrolls for all touches in the UIDatePicker. This is independent on where in the view the touches occur, even when attempting to scroll the date column/wheel the rightmost c...
metalhead
4

votes
4

answer
111

views

Gettin error in SQL Server while finding out max age in a table

We can try to get max age simply by using SELECT TOP 1 age FROM Head1 ORDER BY Age DESC But I've tried using while loop in SQL Server code declare @a int, @m int, @maxo int; set @maxo = 0; while(@[email protected] @maxo = @m; set @[email protected]+1; end print @maxo error Msg 141, Level 15, State 1, Line 5 A SELECT state...
METALHEAD
9

votes
2

answer
240

views

Some Excel Files not moving from Shared Path to SQL Server

We have an application where the data in Excel file (present in shared path) moves to Database. In case of any error, the files moves to error folder by writing the error in a log file.It uses a windows service for the operation. Sometimes the file doesn't have any error still moves to error folder...
METALHEAD
1

votes
3

answer
222

views

Object declaration in VB

I have a small doubt: What is the difference between str and str_obj ; cls and cls_obj. Are all of them are objects..?? (Got this doubt as they are declared in different syntaxes). Can someone please elaborate ? Thanks in advance. Public Class Form1 Public Structure dayplan_str Public a As Intege...
METALHEAD
2

votes
2

answer
1.6k

views

Lazy initialization of Singleton implementation without using Synchronized Key word

I was asked in an interview to suggest a design/implementation of a Singleton Pattern where I have to Lazy load the class and also not use the synchronized key word. I got choked and could not come up with anything.I then I started reading on java concurrency and concurrentHaspMap. Please check the...
Metalhead
2

votes
3

answer
133

views

How does Type T = Type.GetType(“SomeClass”); give me an object?

When I am going through reflection I came across this: Type T = Type.GetType('Somenamespace.someclass'); Is 'T' an object here? If so, it lacks the complete definition of object as: Type T = new Type(); Then how can T be an object? And how can we assign the value of Type.GetType('Somenamespace.somec...
METALHEAD
2

votes
0

answer
176

views

JIRA Connect 1.2.1 imported as CocoaPod results in linker error for armv7

I'm trying to integrate both HockeyApp and JIRA Mobile Connect using CocoaPods, but linking fails for armv7. The CrashReporter framework seems to be in place but it complains about some PLCrashReporter symbol that can't be found for armv7 architecture. The change I made to the project was to replace...
metalhead
2

votes
1

answer
1.8k

views

How to handle TODO comments when sonar error is encountered

We have an application which is big and we have added the TODO rule to the quality gates which gives error if TODO comments are found. If we just removing the TODO comment (which is scary) it works but the whol purpose of adding TODO comment is lost. Is there still a way to keep the TODO comment by...
Metalhead
5

votes
2

answer
1.9k

views

Facing issues installing m2e maven plugin for Eclipse Juno

I installed JUNO Eclipse and then wanted to get the maven plugin for eclipse. After some searching I got to know that I can install the plugin using eclipse market place. So I searched the plugin and installed it successfully but when I restarted eclipse, I cannot see Maven option when I right click...
Metalhead
1

votes
2

answer
37

views

Going a level up in the src path of the <script src=“”></script> tag in HTML

I have folder structure as below. Where I have index.html file in html_files folder. I am using the script tag as below in my index.html file. but the jQuery function hide() is not working. Am I doing anything wrong here..? Kindly help me out. Thanks in advance.
METALHEAD
2

votes
1

answer
67

views

Codename-one sizing/scaling bar chart

I have searched far and wide, but I can't find the answer to a very simple question. I have a vertical stacked bar chart which bars are way to long - you can't see the entire chart on the screen. I just want to scale down the bars so the chart is visible as a whole. How can I do that? I tried sizin...
MetalHead
7

votes
4

answer
13.5k

views

TreeSet internally uses TreeMap ,so is it required to implement Hashcode method when using Treeset

I would like to know what it means when javadocs for TreeSet says 'This class implements the Set interface, backed by a TreeMap instance'? In below example, I haven't implemented Hashcode method and still it is working as per expectation i.e it is able to sort the objects. Notice that I have purpose...
Metalhead
1

votes
2

answer
34

views

Getting error while executing copy command in command prompt

While executing the below command in Command Prompt, copy C:\Users\ADMIN\Downloads\*.* C:\Users\ADMIN\Downloads\SELF STUDY\DOCS\Completed I am facing the below error Syntax of the command is incorrect Can you please let me know where I am going wrong..??
METALHEAD
2

votes
1

answer
27

views

Query on if block helper and custom helper in handlebars

I was unable to execute the below code on the handlebars template. Can you please point out the error in the below code? {{#if (isGreen PARAM1 PARAM2)}} GREEN {{/if}} Where isGreen is custom register helper as shown below : Handlebars.registerHelper('isGreen', function (PARAM1, PARAM2) { //SOME STE...
METALHEAD
5

votes
1

answer
4.9k

views

JSR 303 bean validation unit testing with Mockito and Autowiring

I want to junit test my validator class but my validator class has @autowired service classes. How do I inject these dependencies using Mocikto? I am going to call the validator using below line of code. Set constraintViolationsFromJavaRules = validator.validate(myDomainPOJOObject, Default.class);...
Metalhead
2

votes
1

answer
1.1k

views

javax.el.ELException: Expression cannot be null in stacktrace

I am facing an issue wherein the page flow is working as expected but I am seeing stacktrace on the console. [7/10/14 15:26:35:467 IST] 000000e9 lifecycle W Expression cannot be null javax.el.ELException: Expression cannot be null at org.jboss.el.lang.ExpressionBuilder.createNodeInternal(Expre...
Metalhead
2

votes
1

answer
31

views

Python: how to use merge to perform feature concatenation?

I'm having trouble in performing feature concatenation using pandas.merge. I have a dataframe that is like: id_A id_B t 1 2 1 2 3 0 3 4 1 ... And another dataframe which is like: id f1 f2 f3 1 1 2 3 2 4 5 6 3 7 8 9 4 8 7 6 5 5 4 3 ... I would like to use pandas.merge or jo...
Metalhead Prime
2

votes
0

answer
296

views

WebAPI model binding complex type - JSON object to collection

I have the following method signature on a WebAPI endpoint: [HttpPost] public async Task AddShopping(List shoppingList) { This is example JSON received in the POST body: [ { 'name':'Bob', 'items':{'food':'apple','quantity':1} }, { 'name':'Tim', 'items':[{'food':'orange','quantity':3}] }, { 'name':'J...
metalhead
0

votes
3

answer
1.1k

views

Maven Repository updation and maintenance

I just downloaded a Spring tutorial off the internet and am trying to run it in my local workspace. To do it, I first tried to get all the dependant jars needed by the project. I tried maven build and it failed because dependant jar's were missing from my local repository and those jar's were also m...
Metalhead