parthiban

1

votes
4

answer
49

views

Why overriden toString is not called while printing null reference [duplicate]

This question already has an answer here: Why does null reference print as “null” 3 answers I Know while printing the object, java calls the toString() method internally. But after overriding the toString() method, Java not calling the overriden toString() method for the null reference. Please...
parthiban
1

votes
1

answer
250

views

Connect Oracle cloud DB in JAVA using SSH with Local port forward

I want to connect to an Oracle db in JAVA which hosted in cloud. I have server private key and remote details to connect. I can establish SSH connection to server with private key authentication and created SSH tunnel. Now using this tunnel, I can connect to remote server and forwarded session to lo...
Parthiban
1

votes
0

answer
671

views

Yocto: Add custom user to custom group

I have created a custom group e.g 'grp1' in my application recipe say 'app.bb'. GROUPADD_PARAM_${PN} = 'grp1' I am trying to add my custom user e.g: 'user1' to this group 'grp1' in 'space.bb'. USERADD_PARAM_${PN} = '-d ${localstatedir}/lib/space/ -s /bin/false -G grp1 -U user1' The useradd command f...
Parthiban
1

votes
0

answer
197

views

c3.js chart data is loaded but graph does not render while page load and refresh

I tried some examples of c3.js Followed this link. And i got success in that. But i have one problem when i'm trying to load graph first time in any browser, it doesn't show me the graph. And if i reload page once or twice it shows graph but data is loaded. I'm using latest version 0.6.1 library in...
Parthiban.S
1

votes
0

answer
28

views

ui-select it is possible to load data while typing

i'm new to angularjs. it is possible to load a data while typing in ui-select.Me having record more that 9000. can anyone help for this {{$select.selected.Short_name}}
parthiban
1

votes
0

answer
31

views

Does Embedded Cassandra supports jdk10?

Could anyone please confirm whether Embedded cassandra supports jdk10 ? My spring boot application test cases were working fine in jdk8, but now it is not working. If anyone using Embedded Cassandra using jdk10, could you please share a sample code.
Parthiban
1

votes
0

answer
24

views

convert celery worker file to binary using pyinstaller

Is there a way we can convert a celery tasks file using pyinstaller and run it. i am using pyinstaller --onefile taskfile.py But how do i run this with celery worker command
Anand Parthiban
1

votes
1

answer
57

views

how to use gpio pins in nRF52840 development kit?

The GPIO pins are like P0.00, P0.01, P1.01, P1.02 and so on. I didnt know how to use this. I would like to know, how to use the GPIO pins in nRF52840 for simple LED and push button circuit? It would be really helpful.
1

votes
0

answer
76

views

High Eigen values always for Edge detection

I am trying to understand Harris detector, using the explanation here. As per explanation, I understand, if we calculate the eigen values, then, However, when I try to calculate the eigen values are always high. Below is my main image from which I extract parts to calculate eigen values. For a fla...
1

votes
1

answer
47

views

How to plot vector field on image?

In order to understand visually the involved vector, scalar fields of an image operation which involves calculating, gradient, divergence, laplacian etc, I am trying to plot them also on the image involved. I started with gradient as below, but 1) getting the arrow set rotated (looks like so), comp...
1

votes
1

answer
59

views

Export Code Attribute

I want to create a function which can be imported and used as a code attribute. I am using Sub::Attribute to create the attributes. The example given uses inheritance but I want to export and use it. Hope my question is clear. Code snippet to create an attribute: package attpkg; use strict; use Su...
1

votes
1

answer
196

views

Selenium webdriver onmouseOver - click() events are not working in virtual machine

Im using python with selenium webdriver my scripts running properly in Ubuntu 14.04 OS, the same script im trying to run in an virtual machine (ubuntu 14.04 OS) which is running on Oracle sunVirtualBox but onMouseOver click() events are not working. driver.get(url) driver.find_element_by_id('email...
parthiban
1

votes
2

answer
650

views

To pass an integer variable which varies dynamically from an adapter class to an activity

I'm trying to pass an Integer variable from listView Adapter Class(extends BaseAdapter) to an Activity(ActionBarActivity). This should be done inside an onClickListener. Can anyone please help solving this issue. holder1.companyName_textView.setOnClickListener(new View.OnClickListener() { @Override...
Parthiban M
1

votes
1

answer
195

views

To create a walkthrough page that appears only when the application is installed

I'm developing an mobile where the walkthrough page about the application should appear only once the application is installed. Can anyone help me resolving this issue with a clear example.
Parthiban M
1

votes
2

answer
40

views

To change the image in a adapter on onClick with respect to the response from Json

I'm trying to change the image in my adapter on onClick. I need to change the icon of the particular row with respect to the response from Json. Can you please help me fixing the issue. Here's my code for reference holder.favourites_imageView .setOnClickListener(new View.OnClickListener() { @Overrid...
Parthiban M
1

votes
4

answer
684

views

date picker showing error

I'm trying to add a Date Picker to my code, but an error is being shown over 'pickerListener' inside the 'fromDate_textView.setOnClickListener' saying: pickerListener cannot be resolved to a variable Can anyone please help me solve the issue? fromDate_textView.setOnClickListener(new View.OnClickList...
Parthiban M
1

votes
1

answer
23

views

On accessing External applications such as Device Gallery and getting back to my application OnCreate() is called again

I'm trying to create an application where there is a need of uploading images from my mobile. In this case, when I open my Gallery and choose a image and come back to my application, onCreate() is called again due to which the TextView, EditText and the booleans which I've used earlier are cleared....
Parthiban M
1

votes
3

answer
234

views

Android, Image Cache is not clearing in Picasso

I'm using the following code to load an image from Json into an imageView. Picasso.with(Sell_Preview_Activity.this) .load(Httppost_Links.imagePath + ConstantVariables.sellDetails_stringURL) .resize(size, size).centerInside() .memoryPolicy(MemoryPolicy.NO_CACHE) .into(viewImage_imageView); But still...
Parthiban M
1

votes
3

answer
6k

views

How to reload page in angularjs

I need to reload a page in the ionic app. I am using {reload:true} methods, but does not work for me. So any one give an idea to solve this problem? And also how to remove localstorage item value in ionic?
PARTHIBAN M
1

votes
1

answer
35

views

Launch pdf files from shell script

script 1 - it generates pdf file into the path //c:/documents/xxxx script 2 - launch pdf file generated by script 1 from Adobe Acrobat Reader. I need a solution(i.e shell script) for script 2. Some one please advise me. Thanks in advance.
Parthiban
1

votes
1

answer
59

views

How to specify a rectangle from the CGPoint Start and End?

I have a rectangle bounds (10, 20, 100, 200) and the CGPoints are StartPoint (0.5, 0.5) and EndPoints as (1, 1). From these points how needs to calculate the segments bounds ? I need to apply this bounds for CGGradient for start point and end points. Eg Code : GradientColor gradientColor1 = new Gra...
Parthiban
1

votes
1

answer
59

views

How to avoid time gaps while aggregating OHLC in mongoDB

I am trying to extract ohlc 5 min interval from a 1 min interval DB stored in mongoDB. Below is my current query. myModel.aggregate([ {'$project': { 'data': { '$let': { 'vars': { 'mints':{'$arrayElemAt':[{'$arrayElemAt':['$data',0]},0]}, 'maxts':{'$arrayElemAt':[{'$arrayElemAt':['$data',-1]},0]} },...
Parthiban Rajendran
1

votes
1

answer
219

views

Oracle DB link is not working

We have 2 Oracle db. Let's say A & B. Need to create DB link from A to B. A is cloud DB which installed in private network, through SSH and local port forward we can access A. B is also installed in private network, through VPN we can access B. Both A and B DB's cannot access directly. I created D...
Parthiban
1

votes
1

answer
0

views

BeautifulSoup writes html successfully but find_all returns nothing

I am using BeautifulSoup to create and write html file . I am able to create a simple html as shown below for MWE. However, all find functions return nothing, so unable to perform further operations (insert, append). What is happening? How do I set a style to one of the divs alone? (for eg, div2...
Parthiban Rajendran
1

votes
1

answer
0

views

Nativescript error while building the project

I'm trying to build a simple project in iOS. While I'm trying to run the project through nativescript sidekick it throws the following error: [19-03-12 16:25:01.990] Error detected during LiveSync on c02e202ca17e88465b0a195dc79072a9b6ab04a6 for /Users/bvibes/Parthi/ManiBurs. Error: Build failed....
Parthiban M
1

votes
3

answer
86

views

To Parse A Json Array

I'm trying to parse a json array, where a partcular node, under some conditions comes as a array and sometimes as object. Example: { 'children': { 'id':'3', 'subject':'dddd', 'details':'dddd', 'beginDate':'2012-03-08T00:00:00+01:00', 'endDate':'2012-03-18T00:00:00+01:00', 'campus': { 'id':'2', '...
Parthiban M
0

votes
1

answer
8

views

Why overriden toString is not called while printing null reference

I Know while printing the object, java calls the toString() method internally. But after overriding the toString() method, Java not calling the overriden toString() method for the null reference. Please see the below code for reference, public class Sample1 { public static void main (String args[])...
parthiban
1

votes
3

answer
50

views

Is it Possible to get the multiple set result into single set of result in SQL Server?

My SQL table looks like this CREATE TABLE [CONTENTS].[ID] ( [ID] NVARCHAR (20) NOT NULL, [NAME] NVARCHAR (MAX) NOT NULL, [CONTENT] NVARCHAR (MAX) NULL, [PARENT_ID] NVARCHAR (20) NOT NULL, [TYPE] INT NOT NULL, [SHARED] INT NOT NULL, [CREATED] DAT...
Parthiban Kannan
1

votes
1

answer
334

views

Getting undefined result for getSVGDocument in Chrome, works fine in Firefox

HTML page SVG definition Javascript : //var eID = document.getElementById('ENV'); var S = document.getElementById('sv'); var SD; S.addEventListener('load', function() { SD = S.contentDocument; SD = S.getSVGDocument(); // Operate upon the SVG DOM here }); as you see, my SVG is defined by an embe...
Parthiban
1

votes
1

answer
62

views

Need of EnumSet / EnumMap over generified Set / Map

EnumSet/EnumMap can be created by specifying the defined enum to produce set/map instance as shown in below sample code. So far I read, difference between EnumSet/EnumMap with that of Set/Map is that we cannot add objects other than the specified Enumin the EnumSet/EnumMap. If this is the case, then...
parthiban
1

votes
4

answer
135

views

Unable to hide action bar

I tried to create a new Android application and I tried to hide the action bar in the constructor of MainActivity, using the line requestWindowFeature(Window.FEATURE_NO_TITLE); I've done this previously many times and there wasn't any problem in this. But when I try the same now it throws a error me...
Parthiban M
1

votes
1

answer
193

views

TextView in my getView() inside a adapter class throws null pointer exception

I'm trying to create a android application, in which I try to setText() for a textview dynamically. But it throws null pointer exception @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder1 holder1; // LayoutInflater inflater = (LayoutInflater) context.getSys...
Parthiban M
2

votes
1

answer
47

views

To make a particular part of my text clickable

I'm tring to make a particular part of my text clickable. Please see the below image for example: In this image 'www.google.com' is placed inside an expandable listview. Can anyone please help me how I can make this text clickable so that it re-directs to its corresponding web page ArrayList groupI...
Parthiban M
2

votes
1

answer
9.7k

views

Function Declarations and Structure declarations in C

int f(struct r); struct r { int a; int b; }; The above snippet in a source file throws an error that warning: its scope is only this definition or declaration, which is probably not what you want for the line int f(struct r) and the following snippet somewhere in the same source file but before th...
parthiban
2

votes
1

answer
3.2k

views

How does one get Python to find `libusb`? `pyusb` needs it for a backend

I am trying to use Python 2.7 with PyUSB to talk to a National Instruments DAQ board. I am using a MacBook Pro and running Yosemite 10.10.4. I have been able to install Python and the PyUSB package without any obvious problems, but when I try to use PyUSB, it cannot find a backend library: >>> impor...
Parthiban Santhanam
2

votes
1

answer
512

views

Android: improve the image quality on upload to the server

I'm trying to upload an image to server in my Android application by converting it to a base64 string. In this case when I try to upload an image taken from my camera the quality of my image is largely reduced and is very much blurred. Can you please help me overcome this issue. Here's my code: Inte...
Parthiban M
2

votes
1

answer
300

views

How to Invoke an OSGi Service from outside the OSGi Framework.?

I've planning to develop a web application using Java and based on some MVC framework. This application should support plugins. So, I planning to create plugin using OSGI container(apache felix) and expose plugin as a service (using service registry feature of OSGI). Both(web application and OSGI...
parthiban
1

votes
2

answer
2.7k

views

How do I convert german words to english using Python?

I am trying to scrape a German website and I am in need to convert the scraped data from German to English. Now, What I did is I have hitted third party website to do this process for me. Hereby I have attached the code i tried as below: from bs4 import BeautifulSoup, SoupStrainer import urllib2 imp...
2

votes
1

answer
683

views

Unable to Upload Video File using Multipart Entity

I'm trying to upload an video file using Multipart Entity. For using Multipart Entity method, it was mentioned that I should the following jar files httpclient, httpmime, httpcore. But on adding the httpcore jar file I couldn't run my project and it throws the following error in my console. On remo...
Parthiban M
1

votes
2

answer
1.6k

views

To set custom date in DatePicker

I'm trying to create an application in which there are two fields, 'fromDate' and 'toDate'. The constraints are the 'fromDate' should be more than or equal to current date and the 'toDate' should be more than or equal to fromDate. I want the DatePicker to be opened with this constraints. Can anyone...
Parthiban M

View additional