Lounge<C++>

Today we're daydreaming about C++26 reflection
Oct 2, 2013 01:21
@Pawnguy7 - Off topic, do you have anything to do with pawnshops, or is that just your handle?
Aug 3, 2013 23:26
forgetaboutit, I'll seek help somewhere else, bye
Aug 3, 2013 23:25
no, most are account managers
Aug 3, 2013 23:24
I own a company with 320 workers, some telecommute
Aug 3, 2013 23:23
gee, thanks for the help guys, i'mn glad i dont hire people like you
Aug 3, 2013 23:21
@Tony, well, the strategy anyway
Aug 3, 2013 23:20
Any hint as to how should I structure code?.. recursion? brute force? randomization? etc..
Aug 3, 2013 23:17
Could you please examine and advise me which lang or tool is best for accomplishing the objective, thanks
Aug 3, 2013 23:17
@Borgleader I dunno where to even start with this monstrous problem!
Aug 3, 2013 23:15
CAn someone tell me if I can accomplish this problem with cpp? stackoverflow.com/questions/17833851/…
 

Java

Dedicated to the discussion of the Java programming language a...
Aug 9, 2013 02:34
Can someone tell me whats the security problem with Java Deployment Toolkit add-on for Firefox? Everytime Java releases a new update, Firefox disables it within a couple of days or so. It seems like Java has a lot of security issues!
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Aug 9, 2013 02:33
I thought Javascript was what browsers run?
Aug 9, 2013 02:31
Can someone tell me whats the security problem with Java Deployment Toolkit add-on for Firefox? Everytime Java releases a new update, Firefox disables it within a couple of days or so. It seems like Java has a lot of security issues!
 

 bin

It's a bin, for binning things.
Aug 3, 2013 23:21
4
Q: How can I generate a "Social Golfer" matrix for worker seating arrangement?

FrankThis challenge is a Social Golfer Problem scenario. I have a company with 320 persons. I recently implemented a Management By Objectives (MBO) program where each worker is assigned goals to be completed on a monthly basis. One of the recurring goals is to arrive on time at work to attend a 30 mi...

 

C#

General discussions about the c# language, Squirrels | gist.gi...
Aug 3, 2013 23:13
Can someone tell me if its possible to accomplish the following problem with c# ? stackoverflow.com/questions/17833851/…
 
Dec 14, 2012 07:04
Why until 2018-03-01?
Dec 14, 2012 07:02
Yes, makes a lot of sense, I tested your equation and it works. However, 2012-12-13 minus 1994-12-13 gave me 6575, so no Y2K problem in that date arithmetic, but if you use YMD2- then it thinks 12-12-13 is 1912-12-13. There's no DBCENTURY for 4.10, so I use YMD4- for entering, displaying and calculating all dates.
Dec 14, 2012 06:00
In 4.10, maybe I could say pseudo If age >= 17.97 and age <=17.999 then let age = 18?.. close enough?
Dec 14, 2012 05:56
Interesting results!.. I'm glad 11.70.xC5(6) resolved many issues with date arithmetic. The U.S. Credit Act of 2009 mandated several changes to how intervals are calculated for billing cycles and interest payments.
Dec 14, 2012 05:25
I'm long overdue to migrate the 22+ yr ole pawnshop app and need a Single-user Win-based DSS app with a 128GB dbsa.. In 4.10, I'm still using my handy date fact lookup table (01011900:12312050) for many date calcs.
Dec 14, 2012 05:20
Does IBM-Informix have any plans to market a "Lite" version of isql, i4gl and dynamic server for Windows?
Dec 14, 2012 05:18
As to the pawnshop app, its still running on SE 4.10 so I'm SOL on those new features :(
Dec 14, 2012 05:17
As to onconfig, the default values were set for an OLTP instance, however the DSS params were set to 100%, but buffer pools looked low. I reduced MAXQUERIES to 3.
Dec 14, 2012 05:13
I had a new customer that when I added his birthdate in the birthdate column, my app said he was not 18 years old and by law, is not allowed to pawn his property, yet he really turned 18 on that day. My app does (TODAY - dob) / 365.25 = age DECIMAL(3.2). The result of that was 17.93, however he was born on the same month and day, 18 years ago! How to solve this?
Dec 14, 2012 05:05
Interesting, now we can sample the ~13M customers to see which is the most frequent birthday. BTW, I noticed the onconfig.instance file in FC6 now includes DSS parameters. How can I tune onconfif for maximum query performance? I'm the only one executing DSS queries, have 4GB's of RAM (need 1GB for Windows), 1TB disk, dual processors.
Dec 14, 2012 05:05
Well, the query is to determine one week before, which of the ~13 million customers have a birthday comming up so we can send them a $100 gift! :-) How did you arrive at 35,000 birthdays per year if there are only 365 or 366 birthdays per year? The birthday distribution for ~13 million customers doesn't distribute equally.
Dec 14, 2012 05:05
It would be preferrable to use an index, as there's ~13 million rows. I'm wondering what is the cost of querying on MONTH(birthdate) and DAY(birthdate), versus adding 3 separate integer columns and populating them with the month, day and year, while retaining the original date column. Birthdate is a value that seldom changes unless a data entry error was made.
 
Sep 25, 2012 04:27
I also recall that with Informix FLOAT and SMALLFLOAT datatypes, sometimes values can become skewed from one computer hardware architecture to another.
Sep 25, 2012 04:22
Hi, was this problem resolved?.. It appears as if the Informix DBMONEY environment value could be set to use periods instead of commas for the thousands delimiter, but that still should not affect the value when its transferred into SQL Server. Have you testing other values to see if there's a pattern?
 
Jul 10, 2012 05:48
BTW, rank is a native-SQL func in many data warehouse DB's like Informix, Oracle, etc. :)
Jul 10, 2012 05:45
yw
Jul 10, 2012 05:45
kay, good luck!
Jul 10, 2012 05:44
nope, its a UDF
Jul 10, 2012 05:43
package com.example.hive.udf;
02 import org.apache.hadoop.hive.ql.exec.UDF;
03
04 public final class Rank extends UDF{
05 private int counter;
06 private String last_key;
07 public int evaluate(final String key){
08 if ( !key.equalsIgnoreCase(this.last_key) ) {
09 this.counter = 0;
10 this.last_key = key;
11 }
12 return this.counter++;
13 }
14 }
Jul 10, 2012 05:42
Jul 10, 2012 05:41
I think you have to create a user-defined func for rank?
Jul 10, 2012 05:41
sorry, wrong link.. twas the other link I had previously commented on
Jul 10, 2012 05:39
yes!.. RANK() was what I saw in karmasphere.com/20101004185/Karmasphere-Analyst/…
Jul 10, 2012 05:37
which is?.. maybe doing several SELECT INTO TEMP statements with LIMIT 10 and passing the buyer_id into $buyerid variable, or whatever?
Jul 10, 2012 05:34
OK, I was thinkin perhaps using ROWID or COUNT in some form or another to achieve your goals..
Jul 10, 2012 05:32
understood, is their only one flavor of Hive or are there others which perhaps might have more functionality?
Jul 10, 2012 05:30
Yes indeed!.. Are you limited to using Hive or could you use an ORM like Hibernate?
Jul 10, 2012 05:28
I dunno, then you might have to use several SELECT INTO TEMP queries with LIMIT = 10, one for each buyer_id, or some other workaround?.. In looking at HQL syntax, it appears to have considerable limitations!
Jul 10, 2012 05:23
Could HQL LIMIT 10 or using COUNT work?.. see karmasphere.com/20101004185/Karmasphere-Analyst/…
Jul 10, 2012 05:23
not sure.. there must be some equivalent for obtaining the FIRST/LAST 10 rows of the result set in hive?.. perhaps some other ORM, like Hibernate, provides examples of how to obtain FIRST 10 rows?
Jul 10, 2012 05:23
I think using TOP 10 will do the trick! ragrawal.wordpress.com/2011/11/18/…
Jul 10, 2012 05:23
then you can cast that string to a DATETIME. The STRING is in proper DATETIME YEAR TO SECOND format!
Jul 10, 2012 05:23
I'm not familiar with Hive, this example works for Informix, however not much different for other DB's.. remove buyer_id qualifier from the WHERE clause and ORDER BY buyer_id, created_time DESC.