Newest Questions

Q&A for professional and enthusiast programmers

Grails, horizontal scroll of page, how can I do that

I have a view where a lot of data is displayed in a table. I have to have a big screen to see it all but can not count on that users always have that size as I have. But unfortunately my grails ...

python split by “\t” is not showing all elements in it

I am trying to split by "\t" but it is not printing all the elements in it import sys reload(sys) sys.setdefaultencoding('utf8') s = ['A\t"Ravi"\t"Tirupur"\t"India"\t"641652"\t"arunachalamravi@...

cannot load html file when using angularjs with webpack

I'm webpack beginner. I want to build angular project with webpack but when I set route with angular-ui-router ( like '/home' ), 'home' page was empty. Nothing loaded. I use 'raw-loader' of webpack ...

Hidden lines(nodes) in the webpage how to get this through java?

The webpages like Ex. https://www.churwalden.nl/ contains hidden source codes(nodes) which cannot be viewed in the html source file but i see it in the mozilla firefox(source view). What it is and ...

Doctrine Symfony3 update forein key

I'm working on a Symfony project with a Many to Many relationship on my tables. I have a problem with the update on doctrine. In fact I have a list with checkboxes, which one can checked or not. I ...

(Python) Reuse format string which is in list [duplicate]

I defined a format string in list and got unexpected results. fmt=['123','45%i'] xx=fmt xx[1]=xx[1]%(6) This gives xx as ['123','456']. However, it changes fmt as ['123','456'] at the same time ...

SQLAlchemy Relationships No Foreign Key

I've reflected an existing database and overwritten some columns. Can someone tell me what's wrong with the following? metadata = MetaData(engine) class User(Base): __tablename__ = 'users' ...

JavaScript ES6, backticks or quotes?

Now we have the template literal in ES6 for example: const str = `this is a string`; or const str1 = 'string'; const str2 = `this is a ${str1}`; So I feel like it is more consistent to always use ...

Calculating the probability of the UUID to be Unique

I don't have the possibility of using Boost, hence I wrote a rather simple code to generate a UUID. However, I don't know how to calculate how unique a UUID generated by this code is! Can someone ...

To have the records of all the data without writing the segments again and again in the code while adding in the database

In a table I am having 292 records, for these 292 records I wrote 63 segments of parallel asynchronous in DynamoDB. If the records increases again I am writing segments in the code. Without writing ...

Python parent process is not catching SIGTERM/SIGINT signals when launching subprocess using os.sytem()

I have two python scripts as below - parent.py import os import signal shutdown = False def sigterm_handler(signum, frame): global shutdown shutdown = True if __name__ == '__main__': ...

<p:ajax> Unable to attach behavior to non-ClientBehaviorHolder parent jsf - file preview

I use JSF 2 , primefaces 5.3 and i try to use rotate and resize images like Jpg, png or any other image format. But this error occurs. Unable to attach behavior to non-ClientBehaviorHolder parent jsf ...

Static Method Java copies contents [duplicate]

I have 3 classes with private arrays are declared. How can I create a static method that copies the contents of one q[ ] into another? class A { private char q[] = {'a', 'b', 'c'}; } class B { ...

What is the difference between gnustl_shared and gnustl_static in Android NDK library .a file?

I want to android library using c++ stl. my build tools are visual studio 2015, Visual GDB. source code is .cpp #include <jni.h> #include "AndroidProject2.h" #include <vector> double ...

Entity framework core jsonb collum type

I am using entity framework core with npgsql postgresql for entity framework core. My question is, using migrations, how do I mark a class property to generate a JSONB collum type? For example: ...

Protractor headless Chrome

I am trying to run protractor tests with jenkins, but I couldn't get it working. The tests are started but all fails with one of the following exceptions: from unknown error: page could not be ...

c# Finding place where will be inserted new item [on hold]

Okay, so let's say I have a List wich is Sorted and I have another list List. I`m facing problem with finding index in list that should be inserted item from List

Setting an option selected in a combobox as a variable that changes as the option selected in the combobox does

I am trying to set the option selected in the dropdown of a combobox as a variable, however, the label I am using to represent the variable is currently just reading .!combobox . For example if I ...

File operations in Jenkins Pipeline

I have a pipeline flow defined as: node("linux_label") { println("hostname".execute().txt) def filename = "${WORKSPACE}/submoduleinfo.txt" stage("Submodule info") { def ...

Entity Core: Select Anonymous Type and Count Error : No value provided for required parameter _outer

I have some problems with Entity Core 1.1 when I try to select and count into Anonymous Type Error: InvalidOperationException: No value provided for required parameter '_outer_ProductCategoryID'. ...

I am using react and axios. Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response

axios. post error. Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response. I am using the axios, react and redux. My code is: ...

How to locate pseudo element like ::before via selenium2library

code image I do not know how to locate the pseudo element ,while using robotframework-selenium2Library to do web test. Any help is useful.Thanks.

How to set updated apps to System apps?

So i'm gonna be as elaborative as much as I could.. I have a Xperia L with latest firmware and I was trying to set some third party apps to system apps, and I succeeded after some time I thought that ...

Recommended style of coding

I am learning scala and want to know, what is preferred style of writing a function for a trait. First: sealed trait Expression final case class Addition(left: Expression, right: Expression) ...

tomcat deploy module war to sub url path

I have a multi-module maven project whose structure looks like this: app // parent/root project folder |- src |- target |- app.war // common features |- app-payment ...

Python.Selenium. Can't find existing element

I wand to get feedbacks from page url = 'https://ru.aliexpress.com/store/product/Gillette-Fusion-blade-4-pc/2671035_1000003578539.html?spm=2114.12010612.0.0.xL0ySy' I wait until page loaded. And I ...

Resolving variables in XSLT

I'm having problems with resolving variables in XSLT. I have a working XSL file with fixed values that I now want to make dynamic (the variale declarations will be move outside the XSL-file once it ...

Setting eclipse plugin start level using p2.inf file

I've been following the instructions here and here to try and control the bundle start level using a p2.inf file. I have written the p2.inf file and confirmed that the repository content.xml file now ...

Angular 2 Microservice send out own html page

I have an Angular2 Microservice that has to send his own html to a spring boot REST-server which takes it and put it into a frame. Now there are two ways that I see a solution. The one way is to ...

Boost program_options with tokens, repeatable

I am trying to implement boost::program_options with a repeatable argument with tokens. Briefly, my binary takes coordinates and returns, for each of these coordinates, a line with data. For instance, ...

How do I upgrade a sqlite3 database using Python?

I have a sqlite3 database named USERS.db with a table named USERS. The USERS table have two columns username and password. Now I want to add a column named email in USERS table in USERS.db, can I use ...

Hide legends in Chartjs

I want to hide legends in Chart.js in label and tooltips. I am using v2.5.0 I am trying this way but its not hiding legend in tooltips <canvas id="myChart" width="400" height="250"></...

C/C++ memory allocator with explicit heap/arena support (and traversable)

I am not looking for a replacement for libc malloc/free. I am looking for a memory allocator for profiling/checking: 1. Explicit heap/arena API. e.g. special_malloc(size_t, Arena *), or arena....

MongoDB: Find all documents except those where a date range condition matches

Requirement: I want a collection of all customers who did not perform the "View" event in last 5 hours. Data: { name: "Sheldon", events: [ { event: "View", ...

python extend list by incremental values

Is there a nice simple method for extending a list n times, and doing so incrementally based on the existing values? Basically I'm extrapolating a gradient, but don't want to invoke numpy/scipy if I ...

Is it possible to interact with a Linux Command line interface (CLI) through a Graphical user interface (GUI)?

I am quite a beginner, any advice is much appreciated. I have a linux application “OpenBTS” used to simulate and run a GSM network on a software defined radio device e.g USRP. I want to build an ...

Unknown column 'User.first_name' in 'where clause' cakePHP

I have tutor_students and users table. tutor_studentscontains id, tutor_id, student_id and created. users contain id, user_id, role_id, email, first_name, last_name. tutor_students table is connected ...

I need to clone a tr with angularjs

I have the following code in javascript and I need to pass it to Angujarjs, but I am not able. Could anyone help me? Thank you very much $('#panel-detalles table').on('click', 'button[name="clone"...

Linq return NullReferenceException when list have null values [duplicate]

I want to get a list of Customer details,and some customer's Mobile_No is null,when I run the below code its throws a NullReferenceException because of null values,haw can I get this list with null ...

Add column to sql table with c#

Hello I got a big problem I am trying to add a new column to my MSSQL Database Table and i tried it like thousand times but it wont work. My destination is to press a button then use the function "...

String companion object in scala

Given a type which has a "converter", I would like to have automatic conversion on method call using this type's companion object. That is, given the following definition, case class Converted(name: ...

Resolving a hostname become resolving localhost?

I want to download a file using wget command, but it resolving hostname redirected to localhost wget https://releases.rancher.com/compose/v0.12.2/rancher-compose-linux-amd64-v0.12.2.tar.gz --2017-03-...

Google Maps API V3 same event lister to multiple arrays of markers

So basically I have something like this var arrayOfMarker1 = [...], arrayOfMarker2 = [...], ... arrayOfMarkerN = [...]; and I want to use a eventListener able to close the current open infoPanel to ...

How can we improve Azure DocumentDB?

DocumentDB currently limits the total number of databases per account to 100. How to increase this limit on DocumentDB. may be there also limit on collection so need to increase that one also.

Getting my facebook friends IDs for javafx desktop application

Developing a desktop application(javafx) where I need to retrive a list of my Facebook friends ID - what I know so it'is imposible to do by just sending ".../me/firends" (with version 2.3+) because ...

Tableau Map view Continent List

I have been trying to clean my data and have a column represent the various continents and ultimately have them represented on map view. But it doesn't consider that column to be Geography and even ...

When are Crashlytics custom logs sent?

I have a BaseActivity that I use as a parent for all my Activities. I'd like to log Activity events (onCreate(), onStart(), onResume(), etc.) to Crashlytics, so when a crash happens, I know what the ...

Wrong symfony configuration

I have a problem with configuration of my project and I can't see where is the mistake... AppKernel.php ... class AppKernel extends Kernel { public function registerBundles() { $...

How to store a Table control in ASP.NET

I'm completely new to ASP.NET (and Web programming in general). Here's my problem : I want to create a web form that contains a matrix calculator, so initially the user specifies the number of rows ...
15 30 50 per page
Translating... 0%