Newest Questions

Q&A for professional and enthusiast programmers

How to work with ViewPager.OnPageChangeListener

As per this accepted answer, I was able to get my tabLyout as below: What do I need now, is to be able to change the buttons text based on the fragment position, for example if the position is zero, ...

how to group multiple Notification into group notification in android studio

NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns); Notification notification = new Notification(icon, tickerText, when); notification....

os.sep and os.path.join use in python code

while learning python I countered with os.sep and os.join.path, I went through with python helpfile but I could not get what it meant. Can anyone help me with example: I have file in location c:\user\...

Could anyone help me with the pseudocode? I will do the coding myself. I actually dont know where to begin

Objectives: Design a comprehensive program that utilizes inheritance and polymorphism. Details (Changes are displayed in blue)  This project will use classes to create a doubly linked list  The ...

Why do i get linking error for creating basic class?

I created this but i am getting linking errors but i don't know why... SysInfo.h #include <iostream> class SysInfo { public: SysInfo(); ~SysInfo(); private: }; SysInfo.cpp #...

d3.js change the graph to have each node have a label

This is my first question about JS as I have never ever worked with this technology. I had gathered some data using Python and web-scrapper and used dv3.v2.js in order to represent this data: var ...

How to change css style of the navbar-inverse in bootstrap?

guys! I am going to change color and another css in my bootstrap navbar-inverse. Default color is black, and I want to change it in dark blue. My code, I guess, is correct, but unfortunately, ...

I want to display mouse pointer position dynamically in C#

I'm using Microsoft Visual Studio Community 2015. I want to display mouse pointer position dynamically in C#. Should I use the label ? Please teach me this problem. Thank you. enter image ...

I want to block CSS and Style sheets completely in chrome How to do it?

I want to get my pages to load showing the basic html layout. The same way when there is very slow internet connection the pages shows only html content,, I want all my pages to load like that only ...

How can we access variables present inside the docker container from host machine

for example If inside docker container I create a variable as /# token="dsfgkd-sdasdas-fas3ad-ssssad" exit root@testvm:~# echo $token //how to get the result..? root@testvm:~#

Spring Security with sitemash dynamic menu?

I have created with one project with spring security and sitemash. In sitemash the menu are static for now i want to implement i dynamic menu creation from data base any help please most welcome.

Why not run android emulator on ubuntu?

I am new in android studio on Ubuntu system. After created a new project in android studio, i run it on a emulator using x86 image. then a issue "Your CPU does not support required features(VT-x or ...

How can I get pandoc to generate double-spaced output in Word from markdown?

How can I get pandoc to generate double-spaced Word docs from Markdown? My command line is this: pandoc --smart -o foo.docx chap1.md chap2.md I know I can insert a style sheet if I compile to HTML ...

JSON Response count dynamically change in REST Api using jersey

I have created rest api client through that i am consuming data. The code is working fine but whenever i increased "sysparm_limit" more then 1000 onward the json response count get dynamically changes ...

Periodic snapshot fact table - Possibly missing some captures

I am tracking employee changes daily in a DimPerson dimension table, and filling up my fact table each end-of-month and counting Hires, Exits, and Headcount. For this example, let's say I will be ...

Open native share facebook with Javascript or uri URL

Hi I have an web app and I have webview on for that app on android and iOS. I want to share some pages for example http://en.stack.aiseen.org/ using native app. How can I do that, I need solution for ...

Offline (no internet connection required) internactive regex exercises application

I am looking for an interactive regex windows or linux application for practicing my regex skills. There a lots of those on the net like: https://regexone.com/ but I am looking for some that will ...

Pdflib: how to create drop cap using add_flowtext()

I took the cookbook example and modified it to use add_textflow() instead of create_textflow() but I can't get it to work. Instead of interpreting the macros it just writes it as plain text. What am I ...

json4s extract error in scala with map values

I use json4s native,with a json string like this val myjson = """ { "normative":"C", "prefixType":{ "cod":["smallint", "int", "varchar(5)"], "des":["varchar", "string"], ...

Django Rest Framework: writable nested serializer

I need to manage a JSON like this: { "name": "drink_type", "description": "A type of drink", "values": [ { "value": "Coca-Cola", "synonyms": [ "coca cola", "coke"...

Post request cakephp

I'm trying to send a post request that header is json and the response also is json. What i have tried so far. This always return a status code 400. what i'm doing wrong?Thanks private function ...

Extract certain numbers from string

Given the following vector: v = c("A/5 21171", "PC 175959", "STON/O2. 3101282", "113803", "373450") How can extract the last 5 or 6 digits from each element? This the desired output: v_processed = ...

Can resource-id be passed in get_attribute function in appium python

I want to see what are the values/attributes of webelements present. So that i can pass them in assertequal to verify the TC. I also know via uiautomatorviewer that my webelement does not have a text ...

Expressions to assembly code

I am writing a compiler and I am trying to convert expressions to assembly code. The problem occurs in expressions having parentheses or order preference when it comes to */. What would be the best ...

Azure app openid connect issue with azure ad login in azure portal

I have enabled the Authentication / Authorization setting which Authentication Providers is Azure Active Directory . After config i could sign in the app , but when i enter /.auth/me endpoint , i only ...

Upload File from Angular Client to Spring Rest

I am trying to upload a file with Angular and send it to my rest backend Spring. For my angular service, I used the settings here.But I am having 2 issues: The first one: when I send large zip file: ...

Renci SSH.net 2016.0.0 (sftp) - resolve specific nuget install error in c# PCL app in vs2017

I get the following msg inside a VS 2017 C#7 PCL project, as I would like to install and use this well-known lib for reading out a server file via sftp without downloading- my error msg: "Could not ...

How to design my controller in storyboard, if it should I have a navigation bar?

This is image our UI give me, the Login interface. You see it have a navigation bar. In my storyboard, because the LoginAndRegister.storyboard is new created by me. Other view controller should push ...

Why i use @Async in a method will have a org.apache.ibatis.exceptions.PersistenceException

Following is my method: @Async @Override public void managerSmsBlackListExportTxt(SmsBlackImportInput input) { String blackMobile = input.getSmsBlackPhones(); String regex = "\r\n"; ...

Get user specified long date format in UWP

I want to convert a date to the user set long date format. The Current Culture is en-US, but the user is able to set a long date format of his/her choice in Control panel -> Region -> Long Date. In ...

woocommerce add custom input field to product page

I'm trying to add input field in product page. How can I implement this? I'm using woocommerce plugin. I already add select option on variations but don't have option for input field. Need help on ...

Codeigniter and Ion Auth: Cannot make specific register field unique

Trying to make email field unique throws the following error: 'The Email field must contain a unique value.' But the parameter not exist and it's unique so, what's worng? The code $this->...

Open file as many times as user like

I am trying to allow user to open the file they need and copy the file to the workbook as many times as they want. This is because the number of files that are needed is always changing. I created a ...

How do you create a database table using JSON data?

Right now i have this JSON data d={"db_table_name":"form_for_hub_trooper_in_store_feedback_form_20160829174321","Date of Audit":"","Name of Auditor":"","Store Location":"","Name of Staff":"","...

Spring Security Multiple Entry Points Login Process URL Not Found

I rewrite the security configuration class from this tutorial. http://websystique.com/springmvc/spring-mvc-4-and-spring-security-4-integration-example/ Try to enter the entries without login, the ...

Python - Split array into multiple arrays dependent on array values

I have a list which needs to be split into multiple lists of differing size. The values in the original list randomly increase in size until the split point, where the value drops before continuing to ...

Draw multiples lines with PyQt4 with updates.

I'm trying to draw with PyQt4 but I've problems. I want to draw a circle (it's ok) and after that I want to add lines (it's for simulate a particles moving), but I didn't find how to draw something ...

What is Goal In Google Analytics and how we can use?

What is Goal Set and Goal conversion in Google analytics. how we can create and use goal?

MVC Core WebAPi FileUpload

i create a method for upload images with web api Question Is How I Can Write This Code Better ? Is It enough ? I mean ِDo You Have A better alternative solution? ClientSide Code <script ...

Rounded button not working on lower version of android

i was trying to make a rounded and a transparent button and it works fine on the emulator which is running on android 6.0 but when i try it on my phone which is running android 4.0 the app crashes ...

MySQL Failover, MHA or Pacemaker

I'm looking at a HA failover solution for mysql. Looks like there are some interesting combinations used out there. Has anyone got any experience of the above and any views on the pros and cons of ...

aarch64 MMU: skipping first/second level tables

on armv7 [1] / aarch32 [2] MMU, when using Long descriptor, when the virtual space described by ttbr0 is small enough (1Gb here), the level 1 translation can be skipped, leaving only two levels of ...

PHP video streaming isn't seekable

I wrote a streaming code in PHP that changes the URL of the video being streamed and on the other side I decode that link to get the right URL and start to stream video and that works very well. the ...

Verify a variable contains Valid Range address in excel VBA

I have tried to get a value Range address value in to a variable. searchWrd = InputBox("Please enter the column name of first word/token's", "Search String", "J1") I need to verify the variable ...

Round up time to the nearest 10 minutes, Typescript

How to round the Date() up to the nearest 10 minutes? For example: (hours/minutes/seconds) 07:12:11 => 7:20:00 05:00:23 => 5:10:00 04:54:46 => 5:00:00

Encrypting configurations in app.config

I need to encrypt data in my app.config file. I am looking at Protected Configuration as described on MSDN here. I have to encrypt passwords for connection strings (not the entire connection string, ...

Creating Invoices Line Items via REST

I can sucessfully create an Invoice - but it seems I can't create the LineItems for it. From where would I take the products, listed on the line items? At the moment I'm doing: $aProductResult = $...

How to add Embedded link in UILabel swift 3?

I need to add link in particular word in UILabel.For example click to data.here i want to add link for data.

The modifier “private” in not valid for this item c#

I dont know what to do, im new to whole coding and the project im working on is going quite well, tried adding more commands and this problem jumps to the first private part here. If needed i can send ...
15 30 50 per page
Translating... 0%