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
I am creating generalized images of a Windows 10 machine for my company and some of the software we use requires setting up for each user account. I have a script (.cmd) that can do all of the setup automatically. Is there a way to make the script run each time a new user logs on, but only the first time they log on? Every guide I have found explains how to assign a script to a user, but I want to have the script automatically assigned and run the first time a new user logs in, without having to go back and assign the script to their account. The company uses Active Directory to manage user ac
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
I've been developing a .NET Web Application that connects with a SharePoint Online instance. Everything was going well until I suddenly started getting the following error Could not load file or assembly 'Microsoft.SharePoint.Library, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. This is a file or assembly that I have never added into the project. I've only added the following SharePoint packages via NUGET JohnHolliday.Caml.Net.SharePoint SharePoint.Client SharePoint.Client.Runtime SharePoint.Client.Se
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 =
My Environment has more than 4000 tables. I want to export only 2000 tables. I tried using par file using Include clause. But the export is failing. Details are mentioned below Tool: EXPDP | Oracle Database version:11g R2 | Number of tables to be exported: 2000 Code used: directory=pump dumpfile=EXP_FULL_GOLD.dmp logfile=EXP_FULL_GOLD.log COMPRESSION=ALL schemas=GOLD include=TABLE:"IN('T1','T2','T3','T4'..'T2000') Error: With the Partitioning, OLAP, Data Mining and Real Application Testing options ORA-39001: invalid argument value ORA-39071: Value for INCLUDE is badly formed. ORA-00920: invali
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
I want to use Jenkins CI to execute my automated end2end tests. My tests are running with Nightwatch.js. I want to run my automated tests in a self created docker container via a shell script. This shell script runs on local machine perfect, but if I start this shell script in Jenkins CI the shell script has to return a value, if the tests pass or fail. If they pass the Jenkins job has to pass too. And when the tests in Docker container fail then the Jenkins job has to fail, too. Here is my current shell script: #run the end2end tests headless in docker container from local with remote reposit
I have a simple application in React + TypeScript. I'm trying to use the BrowserRouter from react-router-dom. This is my code: import * as React from "react" import { Popular } from "./popular" import { BrowserRouter as Router, Route } from "react-router-dom" export interface AppProp { } export interface AppState { } export class App extends React.Component<AppProp , AppState > { render() { return ( <div className='container'> <Router> <Route path='/popular' component={Popular} /> </Router> </div> ) } } export default App I'm getting the following errors: ERROR in [at-loader] ./node_modules/@t
I'm trying to some 3D stuff with PCL 1.6.0 on Visual Studio 2010 x64. I've started my coding: pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>); int iRet = pcl::io::loadPCDFile<pcl::PointXYZ>("fileout.pcd", *cloud); boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer (new pcl::visualization::PCLVisualizer( "3D Viewer")); viewer->setBackgroundColor(0, 0,0); //viewer->addPointCloud<pcl::PointXYZ>(cloud, "sample cloud"); When I compile this code, it is OK without any problems. But when I try to compile with the commented line, I've serveral external non resolv
I'm trying to some 3D stuff with PCL 1.6.0 on Visual Studio 2010 x64. I've started my coding: pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>); int iRet = pcl::io::loadPCDFile<pcl::PointXYZ>("fileout.pcd", *cloud); boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer (new pcl::visualization::PCLVisualizer( "3D Viewer")); viewer->setBackgroundColor(0, 0,0); //viewer->addPointCloud<pcl::PointXYZ>(cloud, "sample cloud"); When I compile this code, it is OK without any problems. But when I try to compile with the commented line, I've serveral external non resolv
I'm trying to some 3D stuff with PCL 1.6.0 on Visual studio 2010 x64. I've started my coding : ` pcl::PointCloudpcl::PointXYZ::Ptr cloud (new pcl::PointCloudpcl::PointXYZ); int iRet = pcl::io::loadPCDFile<pcl::PointXYZ>("fileout.pcd", *cloud); boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer (new pcl::visualization::PCLVisualizer( "3D Viewer")); viewer->setBackgroundColor(0, 0,0); //viewer->addPointCloud<pcl::PointXYZ>(cloud, "sample cloud");` When I compile this code, it is OK without any problems. But when I try to compile with the commented line, I've serveral external non resolv
I am trying to learn how to set file permissions on Linux/Unix with .NET Core. I already found a question on here that points me in the direction of System.IO.FileSystem, but I can't seem to find any documentation on how to use it. In a nutshell, I'd like to chmod a file 644 from a .NET Core application that only runs on Linux, but am at a loss on how to proceed.
When I tried to hit the request through postman, I encountered a problem. I set this in the AWS authentication in postman: "Access key:- xxxxxxxxxx Secrete key:-xxxxxxxxxx Aws region:- ap-south-1 Service name:- execute-api". while POST I got this error: { "message": "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.\n\nThe Canonical String for this request should have been\n'POST\n/dms/api/v1/filestore/file\n\ncontent-length:29940\ncontent-type:multipart/form-data\nh
I want to load data from Sharepoint to Azure Blob Storage using Azure Data Factory. Although I don't know anything about OData but seems it is possible using Odata as mentioned in following tutorial Copy data from OData source to Azure Blob I have setup everything as per the tutorial but it is not working. Please help/suggest if I am missing something. Below is the configuration I am using for OData linked servce in Azure Data Factory. { "name": "LS_OData", "properties": { "hubName": "adf_hub", "type": "OData", "typeProperties": { "url": "http://flic.xyzc.com/Sites/WYST/Lists/RAZXE/AllItems.as
I'm working on a training a neural network model using Python and Keras library. My model test accuracy is very low (60.0%) and I tried a lot to rise it, but I couldn't. I'm using DEAP dataset (total 32 participants) to train the model. The splitting technique that I'm using is a fixed one. It was as the followings:28 participants for training, 2 for validation and 2 for testing. For the model I'm using is as follows. sequential model Optimizer = Adam With L2_regularizer, Gaussian noise, dropout, and Batch normalization Number of hidden layers = 3 Activation = relu Compile loss = categorical_c
I have a statement that looks like this: Insert into table (value1, value2, value3) Values (%s, %s, %s) Could I do something where it will attempt to insert, but on conflict update value2 and value3 where value1 = value1 (i.e., value1 equals the duplicate primary key that is trying to be inserted against)?
if i have two commits with a distance of many commits between them, with many files committed in both of them, how is it best to move a hunk from one to the other, for example: in commit 100: i have many files changes and many changes in a file "aa.txt" and also this one: - aaaa - bbbb + cccc 10 commits later i have another commit changing a lot of files and also "aa.txt": +dddd I want to move the line change -aaaa from the former to the later. Is there any CLI/UI tool that helps you to easily do it? (i obviously have no problem with history rewriting)