Updating a MongoDB collection with Java Spring Repositories
I’m having a bit of a problem working with Java Spring Repositories (these ones). I have a collection that has a custom ID field (because there is a constraint in my application that prevents me from...
View ArticleIntrospection in C# on java library in unity
I’ve used IKVM to convert a java library into a .dll to use in my unity application. How do i write this java line in c#: ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);...
View ArticleReentrancy in static method with static variable
Recently my company has begun the process of upgrading to Visual Studio 2015 from Visual Studio 2010. The problem we’re currently running into apparently seems to stem from a change in the behavior of...
View ArticleReentrancy in static method with static variable
Recently my company has begun the process of upgrading to Visual Studio 2015 from Visual Studio 2010. The problem we’re currently running into apparently seems to stem from a change in the behavior of...
View ArticleUIAlertController memory leak
I am not using ARC. Testing for leaks through Instruments gives me the following when presenting a UIAlertController: It seems to be complaining about this block of code when I examine the call tree....
View ArticleSSRS report slow on initial query of the day
I am trying to fix an issue where an SSRS report is slow for the initial query of the day. I have tried using the solution described here to no avail. I know that it seems to be an SSRS issue, but I am...
View Articlecontent_main.xml vs activity_main.xml
I have recently updated android studio to 1.4 and noticed that there is now a content_main.xml and an activity_main.xml. It seems that content_main deals with what goes into the app and activity_main...
View ArticleHow to algebraically expand a mathematical operation String
Lets say I have String equation = "-2(3u-x)-v" from user input I want to know if there is a library that would convert this into: -6u+2x-v I can’t seem to find any thus I have tackled this on my own...
View ArticleUWP File Picker Contract / Provider
I’m looking for a point in the right direction. We’re thinking of building an app in our office, and one of the features we’re looking at is to be able to open and save files from our app in other apps...
View ArticlePDF to formats like DOC or RTF in Java?
I am currently making a document in Itext 5 and need to convert it to other formats. I would like to keep as much layout as possible. More specifically I have a ByteArrayOutputStream with a finished...
View ArticleThymeleaf and Spring4 configuration
I’ve been trying to utilise Thymeleaf in a web that I’m playing with and can’t quite seem to get my head around the configuration / setup. Previously I’ve used the web folder for storage of assets and...
View ArticleHow do I get the Julian Day (or similar) in Android?
I need to store a day as an int and then periodically compare it to today as an int. if(today - trialStartDay > 30)... I’ve come across the Julian Day in my research and that seems like a fine...
View ArticleAdroid Activity Variable types
In the android main activity I have seen two type of variables: instance variables declared at the top, and what seems like global variables also declared at the top, because they are not referenced...
View ArticleDROOLS Stop Evaluation if one of the conditions doesn’t match
I have the following rule: when not FixedClient(service == null) and not FixedClient(service.statusCode == "CU") and $client : FixedClient(lastChargeDate > 3) then ... From the logs it seems that...
View ArticleHow do you create rawStoreDaemon threads in embedded derby db?
The code creates embedded derby connections in my implementation of PoolableObjectFactory. conn = DriverManager.getConnection(jdbcProtocol+"database/CacheDB;", user, password); The connections are...
View ArticleUsing ->diff to get the time difference
I need to get 24 hour time difference between $dtA and now. This is what I did so far but something seems to be wrong. $dtA = new DateTime("01-12-2015 12:35am"); $dtB = new DateTime('now'); $diff =...
View ArticleReferring to Object of Object of Object
Assuming we have an object inside an object, inside another object, what is the best way to retrieve the value of a private variable outside the two objects? The simplest way seems to be to do...
View ArticleLeft Outer Join with Multiple On Statements
I’ve been on this for hours now. This is what I’ve tried: List<SoccerTeamsModel> incompleteFootballTeams = (from fbt in db.footballTeams join fbct in db.footballCustomTeams on fbt.team_id equals...
View ArticlePrint to label printer if paper size x > y?
I have a problem when trying to print to an Epson TM-C3500 printer. I’m doing a program that prints labels (I don’t have a fix height for the labels, it should be variable depending on the labels...
View ArticleOpening a new JFrame with an argument
I have a serious problem that i need to solve today . I need to code a simple app that loads a file , read it’s content create objects from these informations and add them to a linkedlist . Everything...
View Article