Newest Questions

Q&A for professional and enthusiast programmers

Trying to use CONTAINS on the views in CRM Dynamics, but Full text not allowed

I do have small situation with my query, I do have solution but was just wondering is there any better way of doing this. Here is my Admission Table Here is my Service table (1:N) I am trying to ...

Select Item Where Second Item With Condition

I have the following XML: <Test> <parent> <child> <Qualifier>S</Qualifier> <Number>11</Number> ...

Symfony redirect to route passing url slug

I've searched this on SO previously, but it seems that the only answers given are when parameters are passed as a query string, which is not what I want. I have a page in my Symfony 3 CRM with a ...

Most efficent way to scale down an image while maintaining aspect ratio?

So I have a field where my image displays and my max height can be 375 and max width is 775. I want it to be as close to as one of these values as possible to get the maximum size while maintaining ...

angular js csv string to json array

I have some comma-separated data; "HotelName","Remained","Date" "Maxx","4","Jun 26 2016" "Voyage","3","Jun 24 2016" I need to convert this to a json array like below. How can I do that in my ...

Hibernate Inheritance, parent classes should be child or parent based on decider

Trying to achieve inheritance in Hibernate. Following is schema Here is What, Classes are, //Grand Parent Class @Entity @Table(name="grand_parent") public class GrandParent{//consider @id} //...

Best practice JavaScript: Multiple event-listeners for the same event or one listener to rule them all?

I've got a lot of modules in my application that run independently of one another and most of them listen to the $(document).ready() event to start. These modules handle, for example, datepickers on ...

Default featured image for 'POST' type only (exclude 'page')

Hello I am trying to have a default featured image set for 'Post' type posts only excluding 'page' type. I wrote the following code in the functions file of the child theme but i keep getting this ...

SQL 2012: Is There a Way to Select Columns Dynamically WITHOUT sp_executesql?

I'm pretty sure the answer is going to be 'No', but just wanted to double check. I have a website that allows users to select which columns they want to see on reports. These columns are stored in a ...

webBrowser not loading sites

Hey would love to ask you guys what can be the problem if web browser in Windows Form app is not opening sites other then google. Tried multiple using www. http:// etc. but nothing really worked (didn'...

Spring Integration Multiple consumers not processing concurrently

I am using Spring Integration with ActiveMQ. I defined a DefaultMessageListenerContainer with maxConcurrentConsumers = 5. It is referenced in a . After an int-xml:validating-filter and an int-xml:...

Using WebClient to read a zip file from UNC path gives an error

I am trying to read a .zip file via a given UNC path like so: string UNC_PATHpath = "\\\\server\\projects\\App\\Updates\\v26.zip"; WebClient client = new WebClient(); client.OpenReadCompleted += new ...

Is it possible to create a timer that records how long a user has been using an external link to another website?

Is it possible to create a timer that records how long a user has been using an external link to another website whilst using php or javascript?

VizFrame: dataPointStyle properties aren't applied to data

I'm working with VizFrame (sap.viz.ui5.controls.VizFrame) of SAPUI5 and I'm trying to get a line of a time series line chart (timeseries_line) dashed. My dataset (shorted): <viz:dataset> &...

How to send Command prompt output to android

I am creating an app in which it will send some command to server and i want to get the output of that command on client (android). Basically i am sending command "systeminfo" and the output is too ...

Input type for iOS numpad keyboard with comma

I know this is an old question.. but I can't find any valid answer. I need to trigger the numpad on iOS device with comma, the keyboard type is UIKeyboardTypeDecimalPad, you can ...

Fixed point implementation of Kalman filter behaving strangly

I have implemented several implementations of a linear Kalman filter tracking a sine wave, I have a python and C implementation that both work. However I have also developed a version that uses a ...

scroll bar blinking / disappearing in winform application

in different environments (OS) if i am using an application on windows server 2012 R 2, drop down control when scrolling down the scroll bar is disappearing / blinking but,if n on windows 10 ,scroll ...

Issues in Training Custom Named Entity Recogniser in Apache OpenNLP

I am trying to build a custom NER model to extract Indian names. However I lack training data (I only have the list of names). So I thought of creating my own corpus, using each name to be replaced ...

Compute Engine OAuth tokens are invalid to App Engine

I've noticed that service accounts on GCE instances now have a much longer token than before, and I suspect they are causing AppEngine applications to be unable to work with them with an ...

Taking Screenshot of Full Page with Selenium Python (chromedriver)

after trying out various approaches... I have stumbled upon this page to take fullpage screenshot with chromedriver, selenium and python. code in here: http://seleniumpythonqa.blogspot.com/2015/08/...

Is changing/editing the url of a web shortcut impossible with Microsoft Edge?

Over a decade ago I remember being able to edit a web shortcut with Internet Explorer. I can do the same today with Firefox and have always done as far back as remember using Firefox. The well ...

Reload a specific tab after call ajax

I would like reloading my page after a call Ajax. It works with location.reload() but i'm redirect to the first tab. How can i just reload my tab ? HTML <div class="tabs"> <a class="tab" ...

How to add string placeholder for int uimask

<div layout="column"> <md-input-container class="md-block" flex-gt-sm> <label translate>Company Phone</label> ...

Missing images in PDF generated by OpenOffice when fetching data from server with HTTPs

OpenOffice cannot fetch a file from a server which is configured with HTTPs. I'm using these steps: On Windows 7, I'm configuring a local Apache Tomcat server with HTTPs (created a self-signed ...

OpenVPN and TLS Handshake Timeout

I am trying to setup a basic vpn (going to harden it later, just want it to work right now... I will take suggestions though!) When I attempt to connect to it I get a TLS Handshake Timeout Wed Jan ...

SPServices to build data table with URL

The problem is that I'm getting different results eachtime when I change the quotes. I have to use this method as downloading a KML file with other methods opens the KML in a new tab and displays the ...

How to popup image in CSS and PHP?

I tried to do popup image in window in css and html that was successfully. But I tried to popup one among images from database by using PHP it pops up only the first image while I clicked to different ...

Set data of the first option in a drop-down list

I have this option: <select id="options"> <option val="n_0" data-option-code="code_0">option 0</option> ... </seclect> When I do: $("#options option:first").data('...

How to find TAB in string using %SCAN in RPGLE

How can I use %SCAN built-in function to find first 'TAB' in string ? I ever read function documentation : https://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083586.htm Thanks !

openssl issue while installing apache 2.4

i'm trying to install apache2.4 in centos 6.8 and i'm getting this : ab.c: In function 'main': ab.c:2398: warning: implicit declaration of function 'SSLv2_client_method' ab.c:2398: warning: ...

How to create .csv file, the data will download programmatically from URL in swift

I want to download data from URL and create .csv file in Swift For reference URL is , Download Data from this URl The .csv file output will look like , region_code,weather_param,year, key, value ...

jQuery show/hide corrensponding between popovers

I have some buttons that generate popovers. Their class is .btn-popover-link . When I click I can see new form to be filled. There is also a button "Add different place". When I click it, I get some ...

Regex Find and Replace using line numbers condition in editplus

I have a huge text file with over 20K lines of content. I am using editplus 4.0 version to achieve my desired result. What I want to do is; I want to insert/append a keyword, randomly in the content....

How to use the exclude_files regex in cpplint?

I am using cpplint to check my sourcode agains the google style guide. Cpplint's help says: cpplint.py supports per-directory configurations specified in CPPLINT.cfg files. CPPLINT.cfg file can ...

Visual Studio - Under the hood (NPM/Typescript)

How does Visual Studio (2015) work with external tools like NPM and Typescript compiler (tsc.exe) etc.? I guess, at the time of building the solution or project, something must be telling MSBuild to ...

What language codes are available in manifest file

In my manifest file I have currently just one language setting. Resource Language="en-us" I want to make the app to work in all english stores (e.g. UK), which parameter should I choose? Also, ...

Regular Express validation for Error: a potentially dangerous request.form value was detected from the client

I have a change password form and In Password field i am adding and i am getting this error "a potentially dangerous request.form value was detected from the client". For this i wants add a regular ...

PHP associative array within an associative array - to CSV

I'm looking for a simple way to implant this associative array within associative array - into a CSV file as a table. in every first array cell there is an ID, name and Num that are regular array ...

Integrating Youtube API in android studio

I managed to play a youtube video in android studio, but i cant understand how to create a playlist. in the documentation the code is this POST {base_URL}/playlists?part=snippet Request body: { '...

replacing drools getter lookup for non-pojo

Drools supports the usage of properties of Pojos using a simple name. For example Person(age==10) to match a Person instance that has a getAge() method returning 10. My problem now is that I have to ...

a user bookmark system database design

my user need to bookmark the articles, videos, pictures posted by the others. now I have a user table, an article table, a video table. and I come up with two way to store the bookmark data.. first,...

Upgrade pandas in a specific location

I have both python 2 and 3 installed on my computer. When using python 3, pandas is up to date, but when using python 2 I am stuck at version 0.12.0. When I try "pip install --upgrade pandas," I get a ...

Hide a twig widget

I have created a new page in my module which was created by zend framework 2 & 3 However, In that page I want to hide the side bar. Tried a lot of tricks, but no luck. The widget I want to hide ...

Is it possible to override hibernate.jdbc.batch_size in Grails hibernate plugin?

Is it possible to override hibernate.jdbc.batch_size in Grails hibernate plugin? (Grails 2.4.x/hibernate 3) If yes, how?

Port SPAN similar to MAC flooding?

I wanted to know if a SPAN port on a switch (which is used to monitor all packets passing through the network) is similar to any other port if a mac fllooding attack is performed. I hope you can help ...

flask logging on gunicorn

I am struggling to figure out why my flask app is not logging anything in while running through gunicorn def startingthethings(self): if app.config.get('DEVELOPMENT', False): app.logger....

Realm: Update Object without updating lists

Is there a way to update an object without deleting it's lists with ObjectMapper? For example: I have a User model: class User: Object, ObjectMapper { dynamic var id: Int = 0 dynamic var name: ...

LDAP Search on Active Directory

I'm trying to do a request to find all accounts that will expire in less than 30 days (from a linux server and thus using ldapsearch). Here is the request I send to the AD server : ldapsearch -x -h ...

Setting User Path Variable for Java Path

At my work I have user access with no admin privileges. My environment variable points to an old JDK at the current path: C:\ProgramData\Oracle\Java\javapath From what I read on different posts such ...
15 30 50 per page
Translating... 0%