0
votes
0answers
2 views

How to test method which uses Random() but can't pick the same number twice

I'm creating a little java game which randomly picks from a list of Primitive data (using Random().nextInt()) types and asks which type is larger (or if they're both the same). I've also made it so ...
0
votes
0answers
2 views

Why dispatch.fetch is very Slow in Hunk while retrieving data from Cassandra?

I am connecting my hunk application(6.4) to datastax cassandra 3.1 to get the results for monitoring and the results took consistently 5 seconds to render though the table has data in hundreds. I have ...
0
votes
0answers
2 views

adobe flex - how to get mobile total internal storage size

In flex 4.6 (flash builder) How to get total internal storage size? I tried Capabilities, System, etc. but failed. help me please.
0
votes
0answers
3 views

How to get data from nested parentheses?

I have the next String with nested parentheses: String a = "(red(blue))grey((orange)green)"; And I want to fill an array with the value of each parentheses that prints out: (red(blue)) (blue) grey (...
0
votes
0answers
7 views

How to access methods inside of data table

Before i had a similar question but i did not get answer: How to get column values from a data set? I have made a data set and inside of this data set there is one data table with 2 methods first ...
0
votes
0answers
3 views

Matplotlib can't save eps format figure if include LaTex codes.(Can't convert 'bytes' object to str implicitly)

Here are my codes: mpl.rcParams.update({'font.size': 18, 'font.weight': 'bold'}) mpl.rc('text', usetex=True) plt.figure(figsize=(8, 7)) some data process plot the data use pyplot.plot(x, y) plt....
0
votes
0answers
2 views

Spark Streaming - Error when reading from Kinesis

I'm new with Apache Spark Streaming. Trying to build Spark to read value from Kinesis Stream. This is my python script import settings from pyspark import SparkContext from pyspark.streaming import ...
0
votes
0answers
2 views

how to post images on instagram using google chrome extension

Hi im writing google chrome extension i can do follow, unfollow, like without use instagram api. My question: how can i post images use ajax. I also read all upload style , Thank you
0
votes
0answers
5 views

JavaScript to flip texts horizontally

I want to change direction of web page, I could change it using CSS method like below: .flip { -moz-transform: scaleX(-1); -webkit-transform: scaleX(-1); -o-transform: scaleX(-1); transform: scaleX(-...
0
votes
0answers
3 views

Create a new virtualhost with phabricator virtualhost

I have one virtualhost in site available (etc/apache2/sites-available/phabricator.conf) Alias /phabricator/ /var/www/phabricator/phabricator/webroot/ <VirtualHost *:80>` ServerName test.net ...
0
votes
0answers
16 views

Java: What does the first index represent in 2D array?

In java, say for example I have char[][] board, what does board.length and board[0].length represent? Is board.length the length of the x axis and y axis for the board[0].length? Thank you
-2
votes
0answers
12 views

Works in Windows, but in Linux - RuntimeException: Failed to initialize BridJ

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/BridJExtractedLibraries581503555289441792/libbridj.so which might have disabled stack guard. The VM will try to fix the stack ...
0
votes
0answers
2 views

Is there a way I can get an image of a location using native Android's Google Maps application?

I'm trying to figure if I can get a static map image using native Android's Google Maps application. I used the Google Maps Intents to link to the native application and display a map. But now I wan'...
0
votes
0answers
4 views

Generate getters and setters dialog in Eclipse: select all non-static fields

When in dialog 'Generate getters and setters' in Eclipse, I can select fields one by one or select all, unfortunately, the 2nd option selects and generates getters for public static final fields as ...
0
votes
0answers
4 views

AS - Translation Editor - How to delete string in all languages at once?

I have few strings that translated to 4 languages, but interface changed, and now I'm wondering, if there are any possibility to delete string in all languages at once? (I'm using Android Studio 2.2) ...
0
votes
0answers
8 views

pass a loop as parameter to a stored procedure

This is my stored procedure. It takes INT as input which is essentially an staff id. CREATE PROCEDURE [dbo].[spMonthlyPayroll] @StaffId int AS BEGIN SET NOCOUNT ON; SELECT StaffId, ...
0
votes
0answers
2 views

Scale resolution of image keeping point locations

Consider the point at coordinates 821, 435 on a 1920, 1017 pixel image, landing somewhere in the middle of it. Now, scale the image down to 1243, 633 pixels large. Obviously, our point is no longer at ...
0
votes
0answers
10 views

How to scale the html contents of an iFrame to fit the iFrame size

I am trying to display an html page inside an iframe, specifically for browsers on Android. So far I have been using the built in browser and chrome. The challenge is that I want the entire content ...
0
votes
0answers
14 views

Update field only if supplied data in not null mysql.

I want to update my password field only if there is password available(not null) in input but the same time, 'username' can update in the table. UPDATE `my_tbl` SET `username`= '".$...
0
votes
0answers
3 views

On the implementation of Boost Graph A * in adjacency_list using bundle property

I want to implement A * for the adjancy_list set in BundleProperty, but I do not know how to code it. Could you please tell me? I would be saved if you could write the sample code. typedef boost::...
0
votes
0answers
6 views

WebAPI Attribute Routing Not Working in OWIN

I have an issue with WebApi throwing 404 errors for my routes. An example of a controller is: [System.Web.Http.RoutePrefix("test/categories")] public class CategoriesController : ControllerBase { ...
0
votes
0answers
3 views

PostgreSQL - how to sync table between two database (not all fields)?

I have two PG database A and B. From Table1 of A I need take 5 columns and sync them with Table1 of B every time when they are changing (or adding new) in DB A. Not all columns, just specified.
0
votes
0answers
4 views

ADHoc Distribution Provisioning profile with one UDID is working in two devices

I have to do one POC in ADHoc Distribution provisioning profile to find whether my profile get invalid after adding new devices. But finally stuck with a strange issue. I have created one ...
0
votes
0answers
9 views

Resolving path with bash

On I am on MacOS, but looking for a cross-platform solution that will also work on *nix. Simple question, how can I resolve this path with bash a script? /Users/Olegzandr/.nvm/versions/node/v7.2.0/...
0
votes
0answers
8 views

C# Adding together the values of similar cells from Excel

Suppose I have one workbook with the records of a bunch of employees. Now, I managed to bring this data into C# successfully making it read by a Data Grid View. Now I have a similar workbook with the ...
0
votes
0answers
5 views

Error when i load my aspx login page

When i run my home page then i got this error. What was the solution of this error? Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (...
0
votes
0answers
14 views

Advice to build a notification app [on hold]

I'm trying to build an app that sets alarm according to the travel time before appointments. I just finished tutorials and reading basic APIs. Here is what I have in mind right now as a plan. [1] ...
0
votes
0answers
3 views

Debugging and tracing from userspace to kernel in Android

I am trying to get understand of how to debug (or trace) a flow of execution from android executable to kernel driver. My end goal is actually to turn off display from shell, but I could not a find ...
0
votes
0answers
2 views

Import XSD from URL

i have to import XSD files from a extern Link. It is the same namespace. The Problem is that the main XSD can't load the other XSD files. I have checked the Link and i refers to a download of the XSD ...
0
votes
0answers
5 views

executing a pathonscript via function return TypeError

i have the following code for the execution of a pythonscript in a function: def start_dokschrank(self): exec(open("/Externe/Besteller-Tool/dok_schrank.py").read()) This is the Error is get: ...
-2
votes
0answers
10 views

What is difference between pytest and py.test?

I just curious to know the differences bewteen py.test and pytest.
-1
votes
3answers
22 views

Python - Delete items in list with more than one space

Say I have a list with multiple strings. Take for example: ['dirty room', 'do to i', 'dormitory', 'dry to or i', 'i to rod', 'or to i dry', 'rod to i', 'room i dry', 'root i dry', 'to rod i'] Is ...
0
votes
0answers
11 views

Code that compiles in java 7 does not compile in Java 8. Please provide an explanation

Why does the following code do not compile in Java 8. I know type inference is the culprit here, But I would like to have an explanation. public class LambdaTypeInferenceProblem { class ATest<...
-4
votes
0answers
28 views

making a boolean array off of another array in java

Create a fourth parallel array of type boolean to store the outcome of the election in each state. This array should be created using the new keyword and should have the same number of elements as the ...
0
votes
0answers
30 views

Can not select with Jquery

I'm making a simple form which contains bootstrap and quill editor same time. And when I click the "Send" button Jquery selects the value of bootstrap form fields but not quill editor's. Also I will ...
0
votes
0answers
2 views

Runtime error using socket.io in typescript bundled by webpack

I was trying to make use of web-sockets via socket.io in a typescript written node server with expressjs. Bundled with webpack. The server code Looks as follow: import * as Express from "express"; ...
0
votes
1answer
16 views

C# - Cleaner way to instantiate different derived class based on collection size?

Ive been trying to make a flexible method where it will fill a single collection with different derived objects. I want this method to also expand its capability based on a collection of types. ...
0
votes
0answers
5 views

mvc how to Convert SQL to LINQ

select a.Dep_id,a.Dep,a.Quota, (select COUNT() from BB as c where c.dep_id = a.Dep_id ) as Assign_Count, Quota_Valid=(a.Quota-(select COUNT() from BB as d where d.dep_id = a.Dep_id )) from AA as a
0
votes
0answers
3 views

How to implement document explorer using mvvmcross Xamarin Android

i am new to MVVMcross and android, i have to create dialog of file explorer on button click.and it will store file path in viewmodel
2
votes
1answer
6 views

Multiple formatting of parts of text in a textblock

When using chat app like WhatsApp text can be made bold, italics, underline among other text formatting features. For instance: This is a boy who can sing very well if you only allow him to do so. ...
-2
votes
3answers
29 views

Can we have class name with alphanumeric character?

Can we name class using alphanumeric values ?like class Tier1, Tier2 and so on.Is this come under good practice. What is the recommendation around naming class. I know this is very generic question ...
0
votes
0answers
12 views

AngularJS With ASP.NET MVC-Confused

Please Note: I have read some questions like this in Stack Overflow but did't get the clear concept that I wanted from those answers. So please don't mark as duplicate!! .................................
0
votes
0answers
3 views

Delphi 7 Close MDI Child By Using Standard Button

I'm using below code to close mdi child form, by click the system close button of course, and it works fine. procedure Tfrm_main.FormClose(Sender: TObject; var Action: TCloseAction); begin Action ...
0
votes
0answers
11 views

Make an IPV6 virtual network to test DDOS

we are currently working on a project to find a way to improve DDOS Threat signaling, to do so we need to be able to emulate a virtual IPV6 network before proceeding to the next part where we'll do it ...
0
votes
0answers
4 views

Prevent Nginx rewrite URL decoding

I have the following location block location /kodi{ #rewrite ^ $request_uri; rewrite ^/kodi/(.*) /$1 break; proxy_redirect http://localhost:5555 /...
0
votes
0answers
10 views

HttpRequestServlet - getting body (getInputStream) in Exception Handler - java.io.IOException: Stream closed

I have some problem with getting body of HttpRequestServlet. Using this: @ExceptionHandler(MyException.class) public void myExceptionHandler(HttpServletRequest requset ...
0
votes
0answers
3 views

service worker android Failed to load resource: net::ERR_INSECURE_RESPONSE

I set up a https server on my machine and service sorker on that server.When i'm opening the site through desktop chrome browser after adding the certificate in the browser it opens fine.But when i ...
0
votes
0answers
8 views

SQL - Column to Row conversion in Report

I have a table with student-name and student-city only. This table is used to find out which student has enrolled online-course from which city. Table - StudentCity Name City Anand ...
0
votes
2answers
24 views

Stuck in infinite loop when trying to break a while loop

So I am making a calculator with a main menu that I want the operation to continue until the user presses $ and then goes back to the main menu. When I test it, it throws my code in an infinite loop. ...
0
votes
0answers
6 views

How to encrypt some fields in mongodb using Python?

I have a developed application with tornado and MongoDB. Some of the fields in some collection may contain sensitive information about the user like user's medical history, bank details etc. So I want ...

15 30 50 per page