EVERYTHING

EVERYTHING

• All Sites

## Multidimentional java array issues

New and confused about how to print a table type of scoreboard with scores in it as they come in. This is how I'm starting; public class Table { public static void main(String[] args) { …

7 secs ago

## When does a rational function pass through the horizontal asymptote/how do I know how it behaves?

Sorry if this is a bit simple compared to everything here, but I can't really seem to find an answer. If I have $$f(x) = \frac{(x-2)(x-4)}{x(x-1)}$$ 1) When is the horizontal asymptote is crossed? …

## Convert string (T,T-1,T 1 ) to DateTime in C#

I have a control where pass me date selection in string format(T or T-1, T+1 etc ) and considering T as today date. I want to convert this string selected Date(T or T-1, T+1) to DateTime. Could you …

17 secs ago

## conditionally bootstrap app in angularjs

I have an angularJs web app that uses google maps api v3. I'm using ui-map from angular-ui. My issue is this, the app needs to function with poor connectivity. I've got offline storage working ...

## JavaScript: convert ex to px

So I'm reading elem.style.width, and getting something like "3.1415926ex". I would like to convert this to "px." Does JavaScript have built in functions to do this? I'd prefer that chopping off last …

27 secs ago

## How to call java method in JSTL

i declared these method in JSP as follows: <%! String getAmPm(Date d){ String am_pm = "AM"; String hour = String.valueOf(d.getHours()); if (hour.length() == 1) { hour = "0" + hour; } String …

31 secs ago

## How to download a file from TestResource using JAVA OTA (COM4J)

Actually I need to download the XLS file from Test Resource using Resource ID in java Can any one help me out Please I tried with below pece of code but m missing something on it ...

## Get the data which in two dimensional array

Hello This may looks to be simple task but I am getting struck... In my application i am getting an array which would be like Array ( [0] => Array ( [home_id] => 1 ...

43 secs ago

## What does that mark indicate in eclipse

I downloaded the code from GIT and was trying to set up the androids code but I faced this problem ,an annotation on the project and subsequent files . Plz let me know what does that mark in the ...

44 secs ago

## DrRacket/Scheme: Contract violation, number expected?

So I have 3 functions defined in scheme, sumlist adds up all numbers in a list, and mean gives me the mean of the list. mean2 calls mean and does the same thing, but i get an error. It says the error …

## ManualResetEventSlim Wait() doesn't work after Set() is done once

What I want to do I have some threads (e.g. Thread 1, Thread 2, Thread 3), and a queue of integers (e.g. 1, 2, 3). Every one second, I want to pause currently running thread, and pop from a queue, …

45 secs ago

## Solr Dataimport is not indexing excel file stored as BLOB in DB

Hi I have configured Solr with TikaEntityprocessor to index BLOB type from DB. My problem is when the contents of an excel file is stored as BLOB in DB nothing gets indexed into SOLR.There is neither …

46 secs ago

## How can i function two Onload functions at the same time?

Hi i want to see if it is possible to create two onload functions at the same time. e.g <body onload="alert('test')"> <script> alert("test") </script> This does not result 2 alert …

50 secs ago

## Show a list of applications like alt-tab in Win7

I am trying to print a list of running applications like alt-tab would give me. Here are what I have done so far: 1.In the beginning I tried EnumWindows, but I got hundreds of entries. 2.I found ...

50 secs ago

## Is there a polynomial, in terms of $x^4$ and $x$, whose graph is not below the graph of the function $y=x^3$

I tried several coefficients before $x^4$ and $x$, but I didn't get it unless adding a constant term.

51 secs ago

## Split sql parameter on comma

Below code works for 'Main Stream' or 'Premium' as parameter, however I am trying to make it work for both of them as you can see below, but it doesn't return any results. How can I make the below ...

56 secs ago

57 secs ago

## How to run the processes of fetching the data from DB and displaying it in a browser simultaneously using PHP and Smarty MVC architecture?

I'm using PHP, MySQL, Smarty, jQuery, AJAX, etc. for my website. Currently, I'm fetching a large amount of data (matching question IDs) from the MySQL databse, do processing on it, assigning this data …

## how to implement in matlab with a fortran source code that uses c header files and fortran libraries?

I have a Fortran code that useses C header files a Fortran library and the compiled code needs some dll files to be in the same directory. I don't have access to the source code of the Fortran ...

## How to visually sort the order of Points with QGIS, GDAL, …?

The following Points layer is the basis of a rendering in a Android application. Android allows to draw a shape from the provided points. I cannot use LineStrings. However, the order of points …

## 2D array Similarity

I am given two 2-dimensional arrays each of size N*N .Two 2D sub arrays of these arrays are said to be similar if atleast K% elements of these subarrays are having same value and same position in both …

1 min ago

## Android Log - causing application crash

Well I am working on an android application, to upload photos on FTP server. The application was working fine, I tried to modify the code and get the user data in log file using Log.v. Now here my …

## After unsubscribe my subscription keeps running

I'm trying to learn RxScala. I'm using Observable.interval(1 second).buffer(10 seconds) and doing a subscription to print the values, but can't get unsubscribe right. After I unsubscribe a ...

## PrimeFaces 3.5 and DataTables (multiple selection)

I am currently experiencing a lot of troubles with the new release of PrimeFaces (3.5). Here's an example piece of code: <p:dataTable var="obj" id="objDataTable" value="#{backingBean.objects}" ...

## When using Java's FileLock, is it ok to let close() to automatically do a lock.release()?

As most should know close() also closes any streams uses. This allows the follow code: BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(...))); ... br.close(); This …

1 min ago

## Unity environment way too slow in Ubuntu 13.10

Unity and its apps open too slowly whenever I open one. It takes a while for them to appear completely. Everything works properly when the window is already open. The biggest problem is with the dash: …

1 min ago

## Behat eating memory

I'm using Behat for testing a Symfony2 application. Whilst each Feature test runs happily when run in isolation, trying to run the whole test suite in one go leads to PHP running out of memory - even …

1 min ago

## Android Mapsforge out of memory when starting 2 or more activities with map

I created app with mapsforge library. I have 3 activities with MapView on each activity. When I start two or more activities the app crashes with out of memory: 12-09 10:42:59.005: ...