Abacus

1

votes
2

answer
83

views

How do I assign a sdt::function type to sigevent.sigev_notify_function (POSIX timers)

I'm using a POSIX timer to call a function that is defined with std::function template: typedef std::function functionCbType; I get the following error in assignment to field sigev_notify_function of struct sigevent: error: cannot convert ‘functionCbType {aka std::function}’ to ‘void ()(sigva...
abacus
0

votes
0

answer
5

views

QtCreator: not able to select manual kit for a new project

I have a QtCreator installation including Qt5.3 as autodetected kit. Now I need to add a Qt4 kit for some project. I think I added Qt4 kit correctly: kit Qt4 When I create a new project, I am not able to chose this kit, only the 5.3 shows up for selection: Kit selection Am I missing anything in the...
abacus
1

votes
1

answer
4.9k

views

.Net useLegacyV2RuntimeActivationPolicy not working in IIS 7.5

I have a .Net 4.0 application that references third party DLLs, which apparently do not support 4.0. Using useLegacyV2RuntimeActivationPolicy='true' in the config file makes it work when running locally, but not when running on our server in IIS 7.5. The third party software is from http://crystal-d...
Abacus
1

votes
1

answer
53

views

In Python2.7 how to use variables from main script and other user defined functions

A bit background of the problem. I am writing a code in Python2.7 which is working fine. But I decided to break it into modules for usability and maintenance purposes which is new to me hence getting some issues. Although I have been able to make it work through hit and trial method but not sure if...
Abacus
1

votes
1

answer
39

views

Placement of IF RIGHT logic in excel formula

In the below image, I use the following formula to get the New York scores of students (the specific version pulls Laura's NY score of 36: =INDEX(A:B,MIN(IF((ROW(A:A)>MATCH('New York',A:A,0))*(LEFT(A:A, 5)='Laura'),ROW(A:A),'')),2) However, the one amendment I want to make is to say if the name cell...
Abacus
1

votes
3

answer
0

views

different result about bitwise operator in C

in order to realize logical right shift in c , i search the web and got the following C code int a, b, c; int x = -100; a = (unsigned) x >> 2; b = (0xffffffff & x) >> 2; c = (0x0 | x ) >> 2; now both a and b were logical right shift result(1006632960), but c was still arithmetic shift result(-25),...
abacus
1

votes
2

answer
43

views

What qualifies collection of strings to become a line?

Following code is taking every character and running the loop as many times. But when I save the same line in a text file and perform same operation, the loop is only run once for 1 line. It is bit confusing. Possible reason I can think off is that first method is running the loop by considering 'a'...
Abacus
2

votes
0

answer
341

views

Decimal “ToString” returns extra decimal values

I have decimal type variables which, depending on how it is set, yields a different value on a ToString() method. How can I make a ToString() always return the string with the trailing zeros after the decimal point removed? Wanting a good numeric type answer, not string manipulation after the fact....
Abacus
2

votes
2

answer
7.7k

views

Euclidean Distance Matrix Using Pandas

I have a .csv file that contains city, latitude and longitude data in the below format: CITY|LATITUDE|LONGITUDE A|40.745392|-73.978364 B|42.562786|-114.460503 C|37.227928|-77.401924 D|41.245708|-75.881241 E|41.308273|-72.927887 I need to create a distance matrix in the below format (please ignore th...
Abacus
1

votes
1

answer
408

views

Getting jQuery plugins to work with one another (Specifically Jrumble and Masonry)

I've recently started playing around with jQuery (I have no JavaScript experience BTW) and I'm having a little trouble getting jQuery effects to play nicely together. Any help would be greatly appreciated. hello $$(function(){ $$('#container').masonry({ itemSelector: '.box', columnWidth: 100 }); });...
abacus
2

votes
0

answer
197

views

SugarCRM: Get lead for quote custom pdf template

I want to create a custom pdf template for quotes in SugarCRM 7. The template with footer, logo etc. is working, but I cannot output the adress, name etc. of the lead which is in relationship with the quote. I can choose a lead in edit view and the quote is associated to the lead correctly. So, how...
abacus
3

votes
1

answer
860

views

Online SDK / IDE for Open-Source Projects [closed]

Is there any online, editable, code base that can also compile the code? This is more of an 'I wish' than a question, since I've tried to find one with no success. It seems to me that there are a number of open-source, very popular systems which could be integrated for a great benefit to the open-so...
Abacus
4

votes
1

answer
1.7k

views

create new column in dataframe using fuzzywuzzy

I have a dataframe in pandas where I am using fuzzywuzzy package in python to match first column in the dataframe with second column. I have defined a function to create an output with first column, second column and partial ratio score. But it is not working. Could you please help import csv import...
Abacus
3

votes
1

answer
3.8k

views

schema of flatten operator in pig latin

i recently meet this problem in my work, it's about pig flatten. i use a simple example to express it two files ===file1=== 1_a 2_b 4_d ===file2 (tab seperated)=== 1 a 2 b 3 c pig script 1: a = load 'file1' as (str:chararray); b = load 'file2' as (num:int, ch:chararray); a1 = foreach a ge...
abacus
3

votes
2

answer
505

views

Unable to sync the gradle for firebase in android

I am using firebase sdk in android in which i am getting an error as unable to load class 'com.google.Gson.JsonObject'.Even i have changed the jdk from 1.7 to 1.8 but it didn't works.Anyone knows why it is not synchronized. apply plugin: 'com.android.application' android { compileSdkVersion 23 buil...
Abacus Rathu
8

votes
4

answer
2.7k

views

Increment Guid in C#

I have an application that has a guid variable which needs to be unique (of course). I know that statistically any guid should just be assumed to be unique, but due to dev/test environment reasons, the same value may be seen multiple times. So when that happens, I want to 'increment' the value of th...
Abacus
2

votes
1

answer
537

views

Father-child and sales rollup

I have table of employees and column called managedby. I want to roll actual and target figures up from employee to lead to manager to director and etc. create table ( empid int ,Name varchar(255) ,actual decimal(38,2) ,target decimal(38,2) ,managedby int ) and below is what have done so far: with e...
Abacus
4

votes
2

answer
6.8k

views

How do I get the size of an array in Cobol?

I want to get the length of a table (by which I mean the number of elements in an array) in COBOL. The convention I have seen is typically to hard-code it to match the occurrences in working storage. But I want the code to get the length, so that if the working storage is changed and the program rec...
Abacus
0

votes
2

answer
3.2k

views

Unable to resolve symbol storageRef in firebase

I am using fire base to store the images in that i am getting a error in storage Ref unable to resolve the symbol please help. public class Sample extends Activity { public static final String GridViewDemo_ImagePath = Environment.getExternalStorageDirectory().getAbsolutePath() + '/Pencilrulerlearner...
Abacus Rathu