Programmer
on 10 sites

Programmer


2 answers

Could not find or load main class test (again)

Similar question has been asked several times before but none helped me. Please provide solution. This works fine in eclipse but I am unable to run it in cmd(Windows) I have created an jar file with ...

2 answers | 24 secs ago by raghuv on Stack Overflow stackoverflow.com
0 answers

Computation of user input using JTextField?

import java.awt.*; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import ...

3 answers

How does StreamReader read all chars, including 0x0D 0x0A chars?

How does StreamReader read all chars, including 0x0D 0x0A chars? I have an old .txt file I am trying to covert. Many lines (but not all) end with "0x0D 0x0D 0x0A". This code reads all of the ...

3 answers | 41 secs ago by ttom on Stack Overflow stackoverflow.com
4 answers

Needing $.each function to alter json string

myData = {"a1":"tom","a2":"dick","a3":"harry"}; <div id="a1">D1</div> <div id="a2">D2</div> <div id="a3">D3</div> I use: $.each( myData, ...

4 answers | 50 secs ago by fredsmith on Stack Overflow stackoverflow.com
1 answer

What if the best way to return Option types by WCF service

I have a WCF method which search the record in database and return Some(object) if the record exists and None if it doesn't. As I see I can't call the method which returns Type option through WCF (I ...

1 answers | 1 min ago by demas on Stack Overflow stackoverflow.com
5 answers

JavaScript increment last array element

I am in the process of trying to figure out how to increment the last element in an array using pop() and push(). I keep getting the original values after incrementing the pop array. What needs to ...

5 answers | 1 min ago by user2654953 on Stack Overflow stackoverflow.com
0 answers

Unix how to two ways pipe communication

I need basic logic for pipes. I know how to use pipes in the same cpp but I need to do something like; I have to create 2 .cpp files. One of them is parent the other one is child. parent will send ...

3 answers

Java Incorrect syntax near '0'

I'm having problems trying to insert the values into my database. When i do the code below it works insertString = "insert into Players ...

3 answers | 1 min ago by user1879973 on Stack Overflow stackoverflow.com
2 answers

How do I select the elements inside of another in CSS?

I have this HTML code as an example: <body> <div class="jumbotron"> <h1>Bootstrap Example</h1> <p>Just another crazy blog</p> ...

10 answers

Can I use jQuery with Node.js?

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

10 answers | 1 min ago by John on Stack Overflow stackoverflow.com
0 answers

Lua: Get Keyboard Input Without Blocking

I've started working on a little project in Lua that involves making a text-based interface that updates constantly, and allows keyboard input for interaction. I need a way to get keyboard input, but ...

1 answer

javadoc: how to add product name and logo?

In the JDK javadoc, on the left panel above all-classes, there is a product name like: Java™ Platform Standard Ed. 7 It is also in the header and footer of every page. How to add product name in ...

1 answers | 2 mins ago by Dave on Stack Overflow stackoverflow.com
0 answers

Can someone explain to me the step by step approach in solving iteration?

def soh(x): counter = 0 for i in range(x): if i%2 == 0: continue for j in range (i): counter = counter + i return counter print(soh(5)) How to do ...

1 answer

Creating a jQuery plugin with getJSON inside the function

I am not sure if this is due to the fact that getJSON is asynchronous or not. I think that would be the most obvious reason, but I don't have a clear understanding of how that works. In my js file, I ...

2 answers

How to use one activity with multiple possible values

So I have one activity with a list of profile names which needs to link to another screen with an extended profile description. So is it possible to use the putExtra() and getExtra() methods of an ...

0 answers

Parsing some json ios

im need some help. I have a json that im trying to prase and i have some difficulties with. this is the url of the json: http://appschool.co.il/seeu/medit_sea.php my goal is to heve an array that will ...

2 answers

List view items changes position when scrolling android?

In my application i used custom list view adapter. In the list view item i added another layout. because in my service one order have any number of order items. For showing the order items i added ...

0 answers

I have to “fudge” a change in /etc/exports in order to get mount -a to execute, what's the issue?

Whenever I have to reboot server1, the only way I can get NFS mounts back up on server2 is to change one of the "fsid" integers in the /etc/exports file on server1. Otherwise, the mount -a command ...

0 answers

Error compiling mex file: “undefined symbols” despite functions being defined

I am trying to compile a mex file from the Matlab boost graph library as follows: mex -I../libmbgl/include/ -v -O mst_mex.c This results in an "Undefined symbols for architecture x86_64" error ...

0 answers

Convert MSAccess Text Field to Datetime

I have one field name as statusdate this field in Text datatype in my ms access table and i stored value like '01/03/2015' I was stored more values in this field if i was executed query 'Select * ...

0 answers

cannot get affixed sidebar to stay fixed as screen size reduces

I know it must be something in my media querie, but as soon as the screen hits below 979 pixels in width, the side bar stops being fixed and scrolls above the top navbar. I want to keep it below. Can ...

0 answers

Display name attribute won't work when use MetadataType

I'm Working with ASP.NET MVC 5, database first. But entities in the edmx file, I can't add attributes, as that file will be overwritten every time I update it with database changes. I used ...

3 answers

R: from wide list of tags to long list of connections

I have a data frame with individual preferences for tags indicated by 1 or 0: mydata <- data.frame( ID = c(1:4), tag1 = c(1, 0, 1, 0), tag2 = c(0, 0, 0, 0), tag3 = c(1, 0, 1, 1), ...

3 answers | 2 mins ago by arumbay on Stack Overflow stackoverflow.com
0 answers

Inner join with 4 tables creating duplication

SELECT DISTINCT Analysed.resultId,bugOwner,Analysed.bugId as BugDet,bugType,testCaseName FROM Bug INNER JOIN Analysed ON Analysed.bugId=Bug.bugId INNER JOIN Results ON ...

2 answers

Grails findAll closure combine query with hasmany field

As per the below Domain Classes VisitSchedules{ Visit visit static hasMany = [users: User] ... } Visit{ DateTime startTime ... } I want to query VisitSchedules for visits that ...

0 answers

Detecting collision between circles drawn in an array c#

I am drawing 10 circles in an array, these circles are moving around and bouncing across the screen. How would I take these drawn circles and detect when they collide with each other. When they ...

8 answers

How to convert Persian Calendar date string to DateTime?

I use these codes for converting current datetime and minus it with the date time which users type in a textbox. But it gives an error while converting. PersianCalendar p = new ...

8 answers | 3 mins ago by aliboy38 on Stack Overflow stackoverflow.com
0 answers

How to deploy a Yeoman project to a sub directory?

I am using the grunt-aws-s3 plugin to deploy my dist folder, and it seems that when I deploy it to a sub-directory, all my assets fail aren't linked properly. For example, it keeps trying to retrieve ...

2 answers

New Blank Activity Android Application Not Working

I'm just getting started with Android application development and am following Android's Getting Started documentation. I followed the steps and got to the point where you finish your blank activity ...

2 answers | 3 mins ago by JT Nolan on Stack Overflow stackoverflow.com
2 answers

THREE.js Migration r60 to r70: now cannot write: mesh.position = myVector3()

I am migrating a THREE.js app from r60 to r70. Amongst other changes I notice that r60 constructs of the following form no longer work in r70. mesh.position.set(0,0,0); myVector3 = new ...

15 30 50 per page
1 2 3