Dhruv Patel

1

votes
1

answer
47

views

Change layout on slide up and down in Android

I want to implement up and down a layout that shown in attached GIF but also I want to change the layout as shown in the expected view. You can see in Google Pay app there is bezier curve layout and when we slide-up layout changes to the straight line and when to slide-down then again curve appears.
Dhruv Patel
1

votes
0

answer
28

views

Customized captive portal with external DHCP server

I am stuck in one issue for which I need your help on this. Actually its bit complex to explan about my situatuion but I will try my best. I am working on customized captive portal on arm processor board with embedded linux os. For which I need to run this captive portal server on my arm board. I go...
Dhruv Patel
1

votes
2

answer
1.5k

views

PHP $_REQUEST Sometime empty

$_REQUEST is coming empty sometimes even though log says that $_SERVER['CONTENT_LENGTH'] is non zero. Below is some of the information from $_SERVER: [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS125268; .NET CLR 2.0.50727; AskTbARS/5.17.0.25589) [CONTENT_L...
Dhruv Patel
1

votes
1

answer
897

views

How to pass a docopt argument where the argument is a string with spaces in python

How do I crate a docopt in python where my argument needs to be a string with spaces. I tried putting single and double quotes around it but it doesn't work. This is my docopt string so far. ''' Parser Usage: parser.py ''' parser.py myfile.py 'This is an Orange' #doesn't work
Dhruv Patel
1

votes
1

answer
2.6k

views

In python, How to import a module by user input string of a module name [duplicate]

This question already has an answer here: How to import a module given its name? 12 answers I want to allow the user to import a module based on their string input argument. i.e $python myprogram.py --import_option xyz.py In python I want something like this after parsing an argument. arg = 'xyz.p...
Dhruv Patel
1

votes
2

answer
937

views

tf.exe authenticate for vsts

I am trying to list all the workspaces and trying to authenticate tf.exe with vsts using the below commandline. tf workspaces /Collection: https://[account].visualstudio.com/defaultcollection /login:USername,Password The vsts account is backed by Azure Active Directory synced with an on-prem AD. It...
Dhruv Patel
1

votes
3

answer
89

views

How to continuously read a File in Java?

There is a file that contains 5 sets of 8 numbers. Each set are the 'scores' for contestants (5 contestants total). My task is to read the file to get each set, cut out the highest and lowest scores, and then calculate the average score for each contestant. The task also requires us to use a method...
Dhruv Patel
1

votes
1

answer
2.1k

views

Watir - Find elements using partial text

Is there a way to find an element by the text it contains? Given: foobar browser.div(text: contains('foo')).present? # => true
Dhruv Patel
5

votes
2

answer
3.2k

views

jQuery Countdown not working with IE 8

I have one countdown embedded in my website. Its working fine in Mozilla / Chrome / IE9, But not working in IE 8. http://jsfiddle.net/FVsGa/ $(function () { var ts = 1359647999000; if (ts > 1356524873000) { $('#countdown').countdown({ timestamp: ts }); } });
Dhruv Patel
2

votes
1

answer
1.4k

views

Deploy a .aspx page to the Sharepoint 2010

I am new to sharepoint and have a scenario 1) I have a aspx page which displays some data from a xml. 2) The data is populated in a table in the aspx page using a code behind .cs file. 3) I use some dll's which I have made to access the data. Note:- This things are done on my local pc which does no...
Dhruv Patel
2

votes
4

answer
40.1k

views

How to declare the Char array of char variables already declared in class?

#include #include using namespace std; //char* b[6] = new char[6]; char a[6] = {'b','c','d','e','f','g'}; char c[6] = {'a','b','d','d','f','g'}; int main() { char d[][6]={*a,*c}; for (int x = 0 ; x < 1; x++) { for(int y = 0; y
Dhruv Patel
3

votes
1

answer
7.7k

views

how to wait for a spawned thread to finish in python?

I am quite beginner with threads in python. I need some help with how should I go about: - spawn a thread - do some useful work - wait until the thread finishes - do some useful work I am not too sure if I am safely spawning a thread. May need some help with that as well. import threading def m...
Dhruv Patel
2

votes
1

answer
1.5k

views

Multiple (Tomcat + ActiveMQ + Mysql) Transaction Management

We have Multiple Tomcat providing web services for our internal product. Tomcat, Active MQ servers are different Web services call sequence Tomcat Receive request Start DB Transaction (Spring Transaction) Execute some business logic Generate certain events & push in queue (Active MQ) Start JMS Tran...
Dhruv Patel
2

votes
1

answer
5k

views

How to get packet capture in Amazon AWS?

I am currently working on a project involving use of AWS. I have a setup in which there is a VPC with 3 EC2 instance running in it. -2 Redhat serve CLI. -1 Ubuntu server converted to GUI and Wireshark install on it. My question is, I need to get the network traffic between 2 redhats To be captur...
Dhruv Patel
2

votes
2

answer
1.9k

views

Reconcile Workspace for TFS 2015 vNext Builds

We used to get notification from the tray of our windows machine for a finished build while using the xaml build definitions, it also had an option to reconcile workspace. The same functionality is not available for the vNext builds. The BuildNotification App is available with VS 2015, but it seems...
Dhruv Patel
2

votes
2

answer
117

views

Saving Data from multiple android activity to one Firebase Database

Below is the code for both of my activities. By coding like this, the data get stored like this in firebase. This is a snapshot of the stored data: But I want to store data in firebase like this, I want to store them under enrollment number field like this: I want to store data from multiple activit...
Dhruv patel
1

votes
2

answer
157

views

When is “_.” used in python [duplicate]

This question already has an answer here: Underscore _ as variable name in Python [duplicate] 3 answers Sometimes I have seen people using the expression _. in python code. For example, _.objectName = 23 Can someone help me out what exactly does '_.' mean? Can someone give me more examples of thi...
Dhruv Patel
2

votes
0

answer
1.3k

views

Failed to create COM object `Excel.Application': “Access is denied”

I am facing problems in creating com object for excel on my server, my program is ended up with throwing an exception Failed to create COM object `Excel.Application': 'Access is denied' In event logs I see following error 'The machine-default permission settings do not grant Local Activation permis...
Dhruv Patel
1

votes
2

answer
5.5k

views

How do I send telnetlib control + c command in python

I am trying to send control + c command in python using telnetlib library. Currently I am doing tn.write('^]') But the code above doesn't seem to work. Any clue on What I should use?
Dhruv Patel
3

votes
1

answer
875

views

AppDomain.DoCallBack returns System.Runtime.Serialization.SerializationException

I keep getting An exception of type 'System.Runtime.Serialization.SerializationException' occurred in IRCBot.exe but was not handled in user code from AppDomain.DoCallBack My code is object result = null; try { Console.WriteLine('Attempting to run in sandbox'); sandbox.DoCallBack(() => { Console.Wr...
Dhruv Patel