Android studio version :2.3.3 The code below is not working and it should hide the keyboard but its not.Please help. InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); public void setImm(InputMethodManager imm) { this.imm = imm; } public InputMethodManager getImm() { imm.hideSoftInputFromWindow(urledit.getWindowToken(),0); return imm; }
I am trying to connect to Hive2 through a Java application but I am getting the following error - Exception in thread "main" java.sql.SQLException: [Simba][HiveJDBCDriver](500310) Invalid operation: Peer indicated failure: Unsupported mechanism type PLAIN; at com.cloudera.hive.hivecommon.api.HiveServer2ClientFactory.createTransport(HiveServer2ClientFactory.java:224) at com.cloudera.hive.hive.api.ExtendedHS2Factory.createClient(ExtendedHS2Factory.java:38) at com.cloudera.hive.hivecommon.core.HiveJDBCConnection.connect(HiveJDBCConnection.java:597) at com.cloudera.hive.jdbc.common.BaseConnectionF
I am getting below error [DEBUG] Writing tracking file /root/.m2/repository/org/codehaus/mojo/resolver-status.properties [DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/root/.m2/repository) [DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/root/.m2/repository) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.391 s [INFO] Finished at: 2017-08-21T04:57:47+00:00 [INFO] Final Me
I'm working a script which need to restrict video download for users, they only allow to watch online, I'm currently use "video.js" script for the player, I already restricted right click function, jQuery('.video-js').bind('contextmenu',function() { return false; }); also added dynamically load videos like https://exmaplle.com/loadvid.php?video=fire.mp4&seskey=1a2asasd125asdasdasdasdas but when i check using some FireFox extensions. those give ability to download the video file. Is there anyway to prevent download videos using browser extensions, or are there have another players which support
I want to print an 'echo' command output which has fields that is separated by '|' into columns with a fixed same width for all column. Number of columns may vary hence, the width should be a global setting applicable for all columns. Sample input 1234|sdan:active:running|sdax:active:running|sdbh:active:running|sdcv:active:running|sddf:active:running|sddp:active:running|Total paths 6 : OK 1235|sdc:active:running|sdm:active:running|sdw:active:running|sdbk:active:running|sdbu:active:running|sdce:active:running|Total paths 6 : OK 1236|sdam:active:running|sdaw:active:running|sdbg:active:running|sd
I am trying to upload my adobe air app to Google Play. I have opted in for Google Play App Signing and cannot opt out now. They provide me with .der certificate which I wish to convert to p12 in order to use it in my adobe AIR app. I know this can be done through openSSL but I did not get any perfect tutorial to do so. Can anyone point me to the right steps to make this conversion?
I have a field and apply datepicker on it using jQuery. it is currently getting time from system/browser. I want it to get time from a specific time zone e.g. America/new_york. The endDate param is the key to setting the calendar, which means the user should not be able to select the date from the future. Currently, it is looking like this The code snippet is : jQuery('#convo_start_date').datepicker({ format: 'dd M yyyy', endDate: '+0d', autoclose: true, showButtonPanel: true, todayBtn: 'linked' }).on('change', function () { jQuery('.datepicker').hide(); jQuery('#convo_end_date').attr('value',
I have a base64 image and i have to convert it into Image. I am doing this using this code: public static Image ConvertBase64StringToImage(string imageBase64String) { var imageBytes = Convert.FromBase64String(imageBase64String); var imageStream = new MemoryStream(imageBytes, 0, imageBytes.Length); imageStream.Write(imageBytes, 0, imageBytes.Length); var image = Image.FromStream(imageStream, true); return image; } Then i have to convert this Image into base64 again. Im using this code: public static string ConvertImageToBase64String(Image image) { var imageStream = new MemoryStream(); image.Sav
I need to edit a xml file in a server. How can I navigate to the path where the file is present in the server and edit it using putty commands. I am new to unix so if anyone could help me out.
I'm trying to draw the best fitting line for given (x, y) data points. Here shows data points (red pixels) and estimated line (green), I obtained using the following library. import numpy as np m, c = np.linalg.lstsq(A, y)[0] Documentation for the used library module. We can see data points are roughly symmetrically distributed. The problem is why is this line not having the gradient similar to the long symmetric axis through the data points? Can you please explain can this result is correct? Then, how does it give a minimum error? (The line is drawn correctly using gradient returned by the ls
This is a social engineering method. The government takes background checks very seriously. A person's moral standing is not only determined by the actions of the person themselves, but also by his/her relatives (parents, grandparents, siblings, aunts/uncles, etc.) If one family member screws up, others are negatively affected in the eye of the government and society. Background checks (for criminal activity) usually go from sibling to parent. It would go to further generations depending on the situation and the results of such a check for someone are publicly available upon request. Here is a
I am new to Jmeter and have been struggling to get it working to test my POST API. It works fine for a GET API call where I pass the parameters through the Parameters tab. Details here: server name: localhost port: 8080 path /registerMobileUsingCode In the request body, I am sending the following: { "clientName": "DemoOrg", "code": "9880007615", "languageId": "1" } My Jmeter setup looks like this: And my HTTP Request Header looks like this: The API is in production and works fine with postman. I am just unable to get it working through JMeter. It is obvious that I am doing something wrong but
I have this code in SystemVerilog where I have to use hex numbers in a for loop. I am trying this syntax: genvar i, j; localparam int i_d = 1; localparam int j_d = 134; generate for (i = 8'h01; i <= MAX1; i = i + INCR) begin add_bit[i_d] = (creg_add == i); i_d = i_d + 1; end for (j = 8'h86; j <= MAX2; j = j + INCR) begin add_bit[j_d] = (creg_add == j); j_d = j_d + 1; end endgenerate But, I am facing this error: Error-[SE] Syntax error Following verilog source has syntax error : "creg.vs", 715: token is '[' add_bit[i_d] = (creg_add == i); ^ How do I fix the error?
I am giving an input field with type datetime-local, <input type="datetime-local" class="form-control" name="booking_checkin"> In which after filling and viewing it, the format is like this, 2017-08-06T02:32 . It looks like awkward and i need this pattern to be changed, I would like to have format like this, 2017-08-06, 02:32. I apologise for not posting what i have tried because i don't even have a start up idea to get it after searching a lot here.. Kindly help me to solve it..
I have working url to mp3, and I am trying to send audio to Telegram by this url. It works from time to time, but most of time it gives error "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body: [b'{"ok":false,"error_code":400,"description":"Bad Request: failed to get HTTP URL content"}']" And I can't understand why, because I've checked the size and type, everything is clear, I can't find no more limitations in documentation of Telegram API. Who knows what is the reason of error? link to mp3 - http://data3.api.xn--41a.ws/vkp/cs9-5v4.userapi
How can I edit a xml svg with a visual tool? Any online tools out there? I have this svg in xml format that I copied it from somewhere: data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E I want to change its colour to black or other colours. .item>a::after { content: ""; display: block; width: 20px; height: 20px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F
I have a Session var that has a List such that: Session["roles"] = UserManager.GetRoles(uid) as List<string>; That totally works. But now I want to use it in my layout such that: @{ List<string> rolz = Session["roles"] as List<string>; }@ And unfortunately I keep getting this err: using the generic type "system.collections.generic.list<T>" requires 1 type arguments I see examples of passing lists over, but how do I use a preexisting session var that is already a list? Update 1 Please note: I'm interested in retrieving the Session["roles"] IN THE VIEW, not in another controller. As such the vie
Have been through official site, the whole process is very well documented for publishing extension. My doubt is regarding publish Language server (LSP) in VS Code as file structure for LSP is different from that of Extension i.e extension just have Client but LSP has both Client and server directory separately as in LSP Code and Extension code. Do I need to run vsce publish separately in client and server directory? Have been through various answers in Stack Overflow as How should I package my Language Server with my client?
I'm using Spring Tool Suite, with embebbed maven, I get this problem creating a new Maven Project. I have tried every answer given in similar posts; cleaning repository and rebuilding, proxies in settings.xml, pointing to the correct xml, using own maven and so on, what am i doing wrong? Full description of the problem: Could not calculate build plan: Plugin org.apache.maven.plugins:maven- resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven- resources-plugin:jar:2.6 Plugin org.apache.maven.plugins:maven-re
I am getting below Exception while running test scripts. geb.driver.DriverCreationException: failed to create driver from callback 'script1501516684770944233575$_run_closure1@6601cc93' java.lang.NoClassDefFoundError: Lorg/openqa/selenium/remote/html5/RemoteWebStorage; failed to create driver from callback 'script1501516684770944233575$_run_closure1@6601cc93' OS: Windows 10 64 bit Chrome browser: v60 (latest one) Selenium :-2.43.1 Chrome web driver:-2.24.417431 geb-version:0.10.0 geb-testng-version:0.13.1 geb-spoc-version:0.13.1 Thanks in Advance...!
I am following the code in Chapter 3 of "Learning Linux Binary Analysis". The code is, "A simple ptrace-based debugger". I am trying to write this in my Raspberry Pi 3, which has an ARM processor. I know that the error means that I have not included the correct header file, but I cannot find what the correct header file is. I get this error message: field ‘pt_reg’ has incomplete type struct user_regs_struct pt_reg After doing some research, I found asm/ptrace.h, which includes some macros for the registers struct specific to ARM. Am I on the right track? How in the world can I make this work w
Is there a way to generate XSD from a WSDL file in eclipse IDE.It's a project requirement to generate the XSD from the WSDL and then auto generate all the java classes using jaxb. I also use eclipselink in my project. Can eclipselink be used for this task?
I'm trying to call jasper report from Oracle ADF. I've include below jar files into the class path apache-ant-1.7.1.jar groovy-all-2.0.1.jar itext-2.1.7.js2.jar jasperreports-6.1.0.jar jasperreports-fonts-6.1.0.jar jasperreports-javaflow-6.1.0.jar jcommon-1.0.15.jar jfreechart-1.0.12.jar poi-3.10.1.jar Below is the code I'm using to call the report HttpServletResponse response = getResponse(); ServletOutputStream out = response.getOutputStream(); response.setHeader("Cache-Control", "max-age=0"); response.setContentType("application/pdf"); ServletContext context = getContext(); InputStream fs =
Whenever I shop at airports abroad, I always get asked to choose between the currency options while paying via my credit card. One is the local currency and another one is the currency of the country where the card is issued in[India(INR) in my case]. Why are there two options? And what are the benefits of choosing one over the other?
I'm trying to get the sum of a specific field that's inside an array. The problem is, that array is also inside another array. My documents are as follow (simplified): { "nome": "test-1" "notas": [{ "numero_fiscal": "0001", "valores": { "portal": 1000, "arquivo": 1000 }, "abatimentos": [{ "valor": 250, "tipo": "TIPO 1" }, { "valor": 250, "tipo": "TIPO 2" }] }, { "numero_fiscal": "0002", "valores": { "portal": 2000, "arquivo": 2000 }, "abatimentos": [{ "valor": 500, "tipo": "TIPO 1" }, { "valor": 500, "tipo": "TIPO 2" }] }] } I want my output to be something like: { "_id": "resumo", "total_nota
I am trying to connect HANA database which is running in Google Cloud Platform. Here is my Java code, try { Class.forName("com.sap.db.jdbc.Driver"); String url = "jdbc:sap://myhost:39015/?"; String user = "MYUSER"; String password = "PASSWORD"; System.out.println("Connecting to HANA..!"); Connection cn = DriverManager.getConnection(url, user, password); System.out.println("Connection to HANA successful!"); ResultSet rs = cn.createStatement().executeQuery("select * from \"TWEETS\""); rs.next(); System.out.println(rs.getString(1)); } catch (Exception e) { e.printStackTrace(); } The TWEETS table
I try to run my first Angular 4 js web project. so I have installed node.js for my npm manager and I am using visual studio code as an editor. After following the below steps. I get the blank screen as a result. kindly help me to solve this Issue. Steps I followed: npm install -g @angular/cli ng new PROJECT cd PROJECT ng serve After performing the above steps server is up. but when Navigate to http://localhost:4200/ . it shows blankpage. app.components.ts import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.compon
I deployed the Rest.ear file in the \jboss-eap-7.0\standalone folder. The .ear file is deployed successfully. I checked the server http://localhost:8080 and the Application Platform is running, but when I try to run my application http://localhost:8080/Rest, it's showing (404 - Not Found) error. Could you please help me find out my url in jboss server? Do we need to configure any other file?
As i am deployed Rest.ear file in the \jboss-eap-7.0\standalone folder.And .ear file is also deployed successfully, checked the server http://localhost:8080 is Application Platform is running,but, try to run my application http://localhost:8080/Rest , it's showing -(404 - Not Found) Error. Could you please help me,how to find out my url in jboss server (or) we need to configure any other file. Thanks