What are your must have Windows utilities to help you with development? For me it's Unlocker
This is about general Windows utilities, nothing specific to any language.
I want to use Apache Shiro[1] in my JSF-Application to perform URL-based authorization checks, configuration done in shiro.ini As I see in the Shiro-documentation[2] there is a way to use a "perms"-filter
/remoting/rpc/** = authc, perms["remote:invoke"]
In my scenario I want this functionality, but on entity-level[3], where the entity-Id is in…
I last programmed actively in 2002. It is almost 8 years now. I learned C and then moved to Visual Basic for our thesis project in the university. I would like to ask suggestions on what programming language should I learn and put to profitability use in areas such as desktop applications, web development, and database applications.
I am trying to implement the GJK-algorithm but I got stuck instantly.
The problem is to implement the Support-function that isn't O(n^2).
As it is now I'm computing the complete Minkowski difference, and then there is really no point in doing the GJK-algorithm. (or is it?)
What I mean by Support-function is the function that returns the point…
When I change the assembly information to lets say 1.0.0.1 i thought that i could read the version with $(Version) but it seems that it does not change?
Hi,
I'm working on a application manager for embeded platform based on the CVM PhoneME VM. The VM is started by a C++ app which configures the CVM and then triggers the VM itself. This C++ app is called form the command line passing the main class name and the classpath of a java application. There is a main java app (lets call it Manager)…
Hi,
I'm trying to apply OCP to a code snippet I have that in it's current state is really smelly, but I feel I'm not getting all the way to the end.
Current code:
public abstract class SomeObject
{}
public class SpecificObject1 : SomeObject
{}
public class SpecificObject2 : SomeObject
{}
// Smelly code
public class Model
{
public…
Here is the code that I currently have:
SELECT `A`.*
FROM `A`
LEFT JOIN `B` ON `A`.`A_id` = `B`.`value_1`
WHERE `B`.`value_2` IS NULL
AND `B`.`userid` IS NULL
ORDER BY RAND() LIMIT 2
What it currently is supposed to do is select 2 rows from A when the 2 rows A_id being selected are not in value_1 or value_2 in B.…
Hi there!
I'm trying to determine a subset of nodes stored in the variable objs by using a user defined function cube:is_active:
<xsl:variable name="active_cubes" select="$objs[cube:is_active(XXX) = 'TRUE']"/
Since the function does not allow a local context I'm required to pass it as a parameter (denoted by XXX). However,…
We have to delete some directories and their contents using Java running on Windows.
I was worried about running into the directory files being locked.
We could just invoke Unlocker to do the delete. Or is there a more Java centric way to handle this situation?
I am searching for a tool/framework that follows the naked objects pattern and is written in Java. I know about tools like for instance JMatter, Naked Objects and Domain Object Explorer. That's not exactly what I am searching for, though.
Open source would be great, but doesn't need to be. My intention is to use that tool/framework…
Quite simple, I have a network switch with SNMP, and need to calculate the throughput of the switch port, so simply I use ifOutOctets. We transfer a file which is 145MB and if we use the total from the start, subtracted from the value at the end then the value is : 158901842
I simply can't get the value to match, or be anything…
Hi guys, i'm working on a windows phone 7 emulator. I have a web browser which navigates to local host. So my problem i faced was that when i tilt the windows phone 7 emulator 90% right, the screen doesn't. Could there be any advice on how to do so?
using System;
using System.Collections.Generic;
using System.Linq;
using…
Is it possible to customize Bugzilla bug numbers and add a letter designator, to immediately know it came from Bugzilla?
My company is evaluating Bugzilla and has now added many new bugs. We also use 2 other bug databases. This wasn't my decision and I believe they were trying to incorporate better reporting, etc.
I read…
I'm trying to use jquery with a simple php code:
$('#some').click(function() {
<?php
require_once('some1.php?name="some' + index + '"');
?>
});
It shows no error, so I don't know what is wrong.
In some1 I have:
<?php
//Start session
session_start();
//Include database connection…
I would like to have some eventhandler which raise if a new application is started. I've heard that this is possible by using a hook but the only examples I can find are based on mouse/keyboard events.
What is an example link of how I can create such a hook in C#?
Oh and btw: Nope, I don't want to use WMI which…
Some pseudocode from a typical web app:
String a = "A bunch of text"; //UTF-16
saveTextInDb(a); //Write to Oracle VARCHAR(15) column
String b = readTextFromDb(); //UTF-16
out.write(b); //Write to http response
In the first line we create a Java String which uses UTF-16.
When you save to Oracle VARCHAR(15)…
Given this code, where we load a lot of data, write it to a file, and then run an exe..
void myMethod() {
Map stuff = createMap(); //Consumes 250 MB memory
File file = createFileInput(stuff); //Create input for exe
runExectuable(file); //Run Windows exe
}
What is the best way to release the…
i have 4 divs inside of a div like this:
<div id="Wrapper">
<div id="CoreSideBar"><!-- a sidebar to the right -->
</div>
<div id="SystemContent">
<div id="SystemNavigation"><!-- will be some kind of "tabnavigation" in the top of this div -->…
Is there any compiler for C++ that works under W7 and is easy to install, except VC++?
I never get these scripts and linux emulations to work, and really just want to try another compiler.
Hi,
What is your opinion about using non valid attributes on html elements for easier jQuery selectors etc ?
Eg.
<div name="myDiv"></div>
According to Visual Studio the name attribute is not valid for a div element.
I'm new to Java, but have been a .NET developer for years now and I am a bit confused about the point of the RequestListener object as I can't retrieve the results of my asynchronous calls on the UI thread from what I can tell. My research has told me I should not use singletons or the application context…
I'm working on doing calculations in a two dimensional array
but keep getting a nasty error.
i call the function by :
if(checkArray(array))
and try to pass it in like this:
bool checkArray(double array[][10]) //or double *array[][10] to no avail
the error is
error: cannot convert ‘double…