Home » Web Development » Page 6743
Upload to Artifactory using Java client
11/12/2014 5:40 pm by Trevor Dickson in Web Development

I use Artifactory Java client, and cant upload file to Artifactory. My code is very simple, taken from Artifactory Java Client test folder:

artifactoryClient = ArtifactoryClient.create("localhost:8081",
"admin", "admin");
InputStream content = new ByteArrayInputStream("I want to test my
UploadableArtifact apAtrifact =  artifactoryClient.repository("ext-snap

Exact comparison between two numbers with ZEROFILL
11/12/2014 5:40 pm by nobodyzzz in Web Development

I have a PHP script where I want to compare two numbers.

$usernumber = $_POST['usernumber'];

$sql = "SELECT password, isadmin, disabled FROM user WHERE usernumber = " .
$usernumber .";";

Everything is working fine but there is one more or less cosmetic problem.

The usernumber is saved as a DECIMAL(5,0) with ZEROFILL. If I compare

Appcombat based ActionBar theme not working on newer devices
11/12/2014 5:40 pm by surfsatwerk in Web Development

I've created a ActionBar Style Using the tool ActionBar Style Generator ( http://jgilfelt.github.io/android-actionbarstylegenerator );I selected appcombat at the style compatibility selection list, because I need my app to be compatible with Android 2.3 devices; but when I downloaded and implemented the theme

How to test reports?
11/12/2014 5:40 pm by jason166 in Web Development

We are developing a Rails app, that has quite a few pages with data reports. A typical reporting page is based on a relatively big SQL query, usually involving 5–8 table joins.

The cornerstone question we've stumbled upon is – writing integration tests reports pages. A common integration test of ours looks like this:

  1. creating a bunch of records in the DB via

SQLite Java Android no such table, program crashes
11/12/2014 5:40 pm by cjdavis in Web Development

I'm trying to make database for my program and I'm having a lot of dumb problems... It's fragment of main activity:

Database db = new Database(this,editText.getText().toString());
String text = db.printRow();

Now database class:

String nickname="EmptyNick";
public Database(Context context, String name) {

ORB/Bruteforce Hamming Good Matches Inaccurate
11/12/2014 5:40 pm by luger in Web Development

I have this android program that would take a source images which will be matched with a template image. Using ORB, I was able to detect keypoints and extract descriptors as well. For matching, I used Brute-force hamming as suggested by some OpenCV tutorials that would fit for ORB descriptors. Based on the initial results, Brute-force hamming was able to match descriptors between a source image

Avoid multiple similar foreach - C#
11/12/2014 5:40 pm by Jouni in Web Development

I apologize if I'm posting into the wrong community, I'm quite new here.

I have multiple methods using the same foreach loop, changing only the inner method I call:

    public void CalculationMethod1()
        foreach (Order order in ordersList)
            foreach (Detail obj_detail in order.Details)

fprintf and fwrite (written bytes to fp)
11/12/2014 5:40 pm by denis280 in Web Development

I have question about fprintf and fwrite. How many bytes are written when this code runs (assuming fp has been correctly set up).

int i = 10000;



When I checked then 5 bytes and 9 bytes respectively. Maybe I am wrong. I thought it is 4 bytes since int. Can someone explain please??? Thanks.

Can't use DateTime in simple c# program
11/12/2014 5:40 pm by jasonmoo in Web Development

I have this really simple code in Microsoft Visual Studio C# 2013:

//all stuff I include
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient; //sql DB
using System.Media; //media player

Regular Expression in JS for numbers
11/12/2014 5:40 pm by oferrer in Web Development

I'm looking for a regular expression in javascript that takes care of this:

Accept only numbers between 6 and 15 digits, 6 is the minimum. Numbers cannot contain groups of repeated digits, such as 408408 or 123123 Numbers cannot contain only two different digits, such as 121212

I started with this, then I was loss


Typed arrays not supported : LibGDX + GWT
11/12/2014 5:40 pm by Matthieu Bozec in Web Development

I am using LibGDX to deploy a HTML5 game thanks to GWT. Currently I am having some issues with a random error that just appeared:

uncaught exception: java.lang.UnsupportedOperationException: typed arrays not supported

It works on Chrome, Safari but not on Firefox. It was working a couple versions ago so I went back on GIT and recompiled and I still g

SQL - Create view with SUM of the first N row of an ordered group
11/12/2014 5:40 pm by Pure Pandemonium in Web Development

I've this table in my MYSQL db, and I want to create a view as the title. Table:

ID | Result
1  | 10
3  | 7
1  | 4
2  | 5
1  | 3

The view should select group by ID, SUM(result), and consider only the best 2 results for each ID, and order everything by the result. So.. View:

ID | Result
1  | 14
3  | 7
2  | 5

Fetching DataKeyValue of selected row (upon radiobutton checked) of RadGrid
11/12/2014 5:40 pm by cmt95 in Web Development

I am new to Telerik controls. I have a RadGrid on my web page with RadiobButton next to each row inside RadGrid. I want to fetch the Datakeyvalue (primary key) of the selected row when particula row's RadioButton is checked.

I tried below code:

<telerik:RadGrid ID="RadGrid1" runat="server"
AllowPaging="True" AllowSorting="True"

Replace placeholder value with innerHTML of span tag clicked
11/12/2014 5:40 pm by Dopey in Web Development

I would like to have a hidden search form on my page to allow users to filter tags onclick. I think I started out on the right track, but I may have fallen down the rabbit hole.

As of now I can replace the value in the form, but I don't know how to run the loop so that it only returns the innerHTML of the item that is clicked. It currently runs through all of the options and stops at t

Java Managed VMs Tutorial: When app uploaded HTTP ERROR: 404 accessing guestbook.jsp
11/12/2014 5:40 pm by Thomas Gueze in Web Development

I am trying to follow the Java Managed VMs Tutorial at https://github.com/GoogleCloudPlatform/appengine-java-vm-guestbook-extras and running into problems.

Everything works fine on my local development server, but when I upload stage1 of the sample to appengine and try to access it I g

How to exclude hidden/system sharepoint files when enumerating a document library
11/12/2014 5:40 pm by Tennessee in Web Development

I'm trying to enumerate all the files in a SharePoint document library but I want to exclude things like the forms and the document templates, plus any other unexpected items that are not normally shown on the AllItems view.

When using explorer view they appear as hidden files or folders so I want to be able to ignore them somehow.

    IEnumerable<SPFile> GetAllSub

Are loggers considered global mutable state
11/12/2014 5:40 pm by TheMoo in Web Development

First let me say that by "logger" I mean any class of object that is responsible for reporting diagnostic or progress information to the user or the programmer. By this definition a "logger" would include feedback on the GUI such as a progress bar.

We have been repeatedly told to avoid global state, and global mutable state (GMS) especially. Since loggers are inhere

Java Array Size Initialization
11/12/2014 5:40 pm by Anubis in Web Development

I'm reading a book "Java: A Beginners Guide (5th Edition)" by Herbert Schildt and I keep noticing a peculiar method of declaring arrays.

Here's my own example to personify this practice:

void generateArray(int size) {
    int[] x = new int[size+1];
    return x;
int[] y = generateArray(3);

Now, what this author is doing is ALWAYS creating the array wi

JDO - Configure the meta-data descriptor
11/12/2014 5:40 pm by seigel in Web Development

Is it possible to configure the JDO XML meta-data descriptor file in a dynamic way ? (For example, depending on an external flag, etc) ?

To be more precise, I want to add an index to a table, but the client should "approve" before altering the table.

Thanks !

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .