Крис

1

votes
2

answer
56

views

WiX property not found in uninstall log

Property change from the UI disappears from uninstall log. If I install my app with default property values and then run uninstall the property appears in the uninstall log. If I change the property value from the UI on uninstall it does not appear in the log. This is the reason why the apppool and...
Kris
1

votes
2

answer
81

views

seeing the true value of a float in a python program

The python cmd line shows the true value of a float readily >>> 1.5-1.4 0.10000000000000009 The obvious way to see it from within a python program is to print it >>> print 1.5-1.4 0.1 which seems to automatically round it? Is there a way to see the true value of a float from within a program?
Kris Mclean
0

votes
1

answer
26

views

Embedded script not working with Angular 7

My name is Kris Chery. I am new with angular and am loving it so far. I am trying to add an SEO audit tool on my website but I cant seem to get it work. Even with some of the approach I found on this site. So here it is The problem: embedding this script in to an angular view. It works fine when you...
Kris Chery
0

votes
0

answer
3

views

How does a TURN server send data to peers behind a NAT?

I understand in TURN there is a client, a TURN server, and peer(s). The client itself creates an Allocation on the TURN server, after which a relayed transport address is returned back to the client in order to send data to one or many peers. I understand how the client can get around its NAT, howev...
Kris
1

votes
1

answer
37

views

How to extract specific value between slashes in a URL? [duplicate]

This question already has an answer here: How Do You Parse and Process HTML/XML in PHP? 29 answers I'm working on *.xml file containing pictures. https://images.example.co.uk/products/1835/1835776/large2/29203852.jpg|https://images.example.co.uk/products/1835/1835776/large2/29203856.jpg|https://ima...
Kris
1

votes
2

answer
743

views

Streaming Jpeg Resizer

Does anyone know of any code that does streaming Jpeg resizing. What I mean by this is reading a chunk of an image (depending on the original source and destination size this would obviously vary), and resizing it, allowing for lower memory consumption when resizing very large jpegs. Obviously thi...
Kris Erickson
0

votes
0

answer
5

views

I'm not executing anything and it's still saying Cannot close a connection while a transaction is still active

I keep on getting this error and I'm not sure why. Here is the code. Im not even executing any sql and it's still saying "Cannot close a connection while a transaction is still active" DataAccess da = new DataAccess(); int param = Integer.parseInt(request.getParameter("geoAreaID")); try (Connection...
Kris
0

votes
0

answer
9

views

Browser doesn't respect new css settings till drag action is not finished

I have a problem with ng2-dragula. I try to use it on mobile device, so I need to stop scrolling when element is dragged. On ng2-dragula GitHub users suggest to use touch-action: none on element with scroll. I try to add this property into my body element, so I use: this.dragula$.add(this.dragulaSer...
kris_IV
1

votes
2

answer
1.5k

views

Eclipselink how to lazy load @Lob

According to documentation @Basic By default, EclipseLink JPA ignores the fetch attribute and default javax.persistence.FetchType.EAGER How do you change the default so that it will lazyload? http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Mapping/Basic_Mappings/Lazy_Basics
Kris
0

votes
0

answer
3

views

In an Ansible playbook, what is a better way to iterate over a list of objects and call a different role depending on that object's data?

I am using Ansible to read in a YAML file containing a list of dictionaries. I then need to iterate through this list and call a different role depending on data within each list object. I have a solution that is working, but it seems so kludgy to me, that I wanted to find out if there was a better...
Kris
1

votes
5

answer
2.8k

views

Getting no space between image and div

I just wanted to create a newsbox just by using CSS without so many IMG or TABLE crap. It works quite well but there will always appear a space between my image and the colored bar under the picture which should be directly under the picture not with some space between. Here is my code : #mainbody {...
Kris
1

votes
1

answer
65

views

PHP Regex throwing error messages

I have looked at the documentation that PHP provides on PCRE Patterns. I am using a third party plugin to handle some text from the user, and the following preg_replace is failing because of missing terminating ] char. (preg_replace(): Compilation failed: missing terminating ] for character class...
Kris.Mitchell
1

votes
1

answer
513

views

MySQL three table join for user favorites system

I'm trying to create a user favorites system but having a difficult time creating a query that accomplishes what I need. I'll use fruits as an example. First, here's my fruitsinfo table: id | color | rating apples red 8.4 oranges orange 9.1 blueberries blu...
Kris
1

votes
2

answer
14.5k

views

comparing element in arraylist with an integer value in java

I have loaded the contents of the database in an ArrayList named countList. The contents loaded are of int type. I created countList using the command ArrayList countList = new ArrayList(); Now, I need to check if each contents of the arraylist is greater than three. I wrote it like for(int i=0; i<...
Kris
1

votes
1

answer
53

views

How to define a method to show up when subclassing a custom class

I'm not sure the title makes much sense, I'm having problems asking (and google searching) for a solution to the below question in a single coherent sentence. I've created a custom class with the sole intention of subclassing it. I have a single method that I'll need to override when writing a new s...
Kris
1

votes
3

answer
266

views

DIV height : 100% - 55+1px?

Hi I created a simple template for a "Backend"-Solution. It looks kinda this : *{ margin:0; padding:0; } body { background-color:#FCFCFC; } #topnavi { width:100%; height:55px; background-image:url('randomurl'); background-repeat:repeat-x; margin-bottom:1px; } #mainnavi { width:200px; display:table-c...
Kris
1

votes
1

answer
464

views

Error in mysqli_close in php

I've done something stupid T_T I was rewrite scripts for making pagination in my code, I've tried to make all the scripts that I was googled to make it works. But accidentally I overwrite the original scripts and save it. Actually I've already rename the files for my backup but I was paste the scrip...
Kris
1

votes
3

answer
11.9k

views

Search for string in CSV Files using python and write the results

#!/usr/bin/python import csv import re string_1 = ('OneTouch AT') string_2 = ('LinkRunner AT') string_3 = ('AirCheck') #searched = ['OneTouch AT', 'LinkRunner AT', 'AirCheck'] print "hello Pythong! " #def does_match(string): # stringl = string.lower() # return any(s in stringl for s in searche...
Kris
1

votes
2

answer
123

views

fprintf that uses constant space

I have the problem with fprintf. What I want is to use as much of space as possible staying in the same column but that means changing amount of decimal floating numbers. I have a bit problem to describe it so maybe just example: 0.001234 0.123456 1.234567 12.34567 123.4567 I tried to play with g...
Kris_R
1

votes
1

answer
2.1k

views

Set Title in ActionBar - Screen with Tabgroups - Titanium Alloy

I'm using Titanium version 3.1.3 and alloy framework. I implemented the action bar in my app; but in the screen with tab groups in it, the title is missing from action bar. Only the icon is getting displayed in it. From this - https://jira.appcelerator.org/browse/TIMOB-11645, I can see that, this is...
Kris
1

votes
1

answer
120

views

Why does the Angular JS Route require you to cite a controller?

Why does the Angular JS Route require you to cite a controller? Coulnd't you just cite a view and then have the view directive link to to the controller?
kris kaman
1

votes
1

answer
88

views

Checking for missing data in SQL

I am having a hard time with this not knowing if there's a solution for this. I am trying to detect missing hourly data. Sample: Table HRLY_DATA: NAME HOUR Me 0 Me 1 Me 2 Me 3 Me 6 Me 7 You 0 You 1 You...
Kris Edison
1

votes
3

answer
810

views

excel vba on cell change error

Private Sub Worksheet_Change(ByVal Target As Range) If Target.Range = Range("A1") Then If Range("A1").Value Range("A2").Value Then Range("C1").Value = Range("C1").Value + 1 Range("A2").Value = Range("A1").Value End If End If End Sub that's the code however when i copy paste a set off cell, let's sa...
Kris
1

votes
1

answer
939

views

Featured Products overlapping and showing diagonal

I've been trying to figure this problem out, but no luck. There's probably a simple solution that I'm missing. I'm working on a Home Page template that has 4 featured products. The featured products end up showing diagonally and the images also overlap the title, price, and add to cart buttons. If a...
Kris
1

votes
1

answer
1.4k

views

Mocking a repository with Moq

To mock a repository, I use the code below. I don't understand why the variable empl is always null. Do you know what I missed ? Thanks, [TestMethod] public void Test() { var employee = new Employee { EmployeeID = 1, Code = "Code", FirstName = "MyFirstName", LastName = "MyName" }; var employeeReposi...
Kris-I
1

votes
3

answer
73

views

Copy Constructors and Move Semantics by Following Objects

I've read countless articles on copy constructors and move semantics. I feel like I 'sort' of understand what's going on, but a lot of the explanations leave out whats actually occurring under the hood (which is what is causing me confusion). For example: string b(x + y); string(string&& that) { dat...
Kris
1

votes
1

answer
1.2k

views

What are some common admissible heuristics for distance? [closed]

What are the most common heuristics used to estimate distance in intelligent search problems? In particular, I'm interested in metrics that can (usually) be used as admissible heuristics for A* search. I came across straight line distance and Manhattan distance but are there any others?
kris
1

votes
3

answer
58

views

Centering multiple div's inside a div

I have a DIV and inside that there are multiple div's that i want to center. Right now all the div's are aligned to left. The CSS is: #statusInfo { background-color:#CCD8F5; color:black; clear:both; text-align:center; padding:5px; } #statusBox { padding: 2px 20px; background: #84B88F; width: 30px;...
Kris
1

votes
1

answer
1.5k

views

RSA private Key decryption giving “InvalidCipherTextException” using bouncy castle

I am creating a encryption/decryption method using bouncy castle for j2me. I have created private / public keys using openssl and hard coding into the code. Encryption is working fine (I am getting encrypted string), but when I try decryption for that ciphertext I am getting below exception org.bou...
Kris
1

votes
2

answer
168

views

where clause based on a select statement from another table

I need help with a query I am writing. I basically want to select all GRNID's from one table but they have to be between dates in another table. So I want all GRN's between two dates found in the ABSPeriodEndDate table. To find out the start date for the between clause I need to find the MAX Period...
Kris
1

votes
1

answer
779

views

SQL Server Migration Assistant for Access: Date data type

I have been using SQL Server Migration Assistant for Access to migrate an access database to SQL Server. However, I need to convert data type "Date" in access to the type Date in SQL Server. When looking at the data type mappings options in SSMA I only have the options for datetime, datetime2, datet...
Kris Van den Bergh
1

votes
1

answer
1.9k

views

Node.js + ExpressJS + Socket.IO TypeError: obj.on is not a function

I have unfortunately hit a roadblock in my work. I have a node.js+ExpressJS back end hooked up to a front end via Socket.io and have created the server and client as follows: app.js: var express = require('express'); var app = express(); var server = require('http').Server(app); var io = require('s...
Kris Molinari
7

votes
1

answer
197

views

3D rotation in 2 directions?

Background I'm trying to create a FPS game in Java using LWJGL 3.0. I've set up a camera class, that has a pitch and yaw (roll is not being used). The camera itself extends Entity, as it has a model. This model I would like to appear to always be "in front" of the camera, wherever the camera is poin...
Kris Rice
1

votes
1

answer
79

views

Custom Login System with Cloud Endpoints [closed]

I know what I'm asking is quite vague, but Google has run up dry on this. I'm trying to build an API in Cloud Endpoints that hooks into a React frontend. The application requires authentication and authorization - so naturally I've got a few options: 1) Custom Login 2) Third Party via OAuth2 3) Both...
Kris
1

votes
3

answer
1.6k

views

Using ChoiceType with Integers as choice values

Running into a minor problem on Symfony 2.8. I have a couple of db fields, one is an integer and one is decimal. When I build my form, these fields are dropdowns so I'm using ChoiceType instead of IntegerType or NumberType. The form actually works fine, the difference internally between the two appa...
Kris White
0

votes
0

answer
10

views

change colors of merged map in r

How can I change the map colors in a merged map file? Did I miss installing/calling a package? and at which point to I insert the command I need? library(ggplot2) library(rgeos) library(plyr) library(rgdal) library(RColorBrewer) ph
Kris
2

votes
2

answer
26

views

Get memory percentage usage using pgrep and not ps

I have a bash scrip that is getting the memory percentage using the ps command as follows: g_var_mem=$(ps -aux | grep myproc | grep -v grep | awk '{print $4}') The output is 0.3 for my particular process. When I use ShellCheck to check the script, I am gettin a SC2009 message stating "Consider using...
Kris
2

votes
0

answer
9

views

Restore Redux store from Angular app in ReactJS application

I have app where I combine Angular 7 and React 16. I need pass only part of data between Angular & React, so I create Redux store for this data. For Angular part I use NgRedux and this part work good. Now I need access for this store from React components. Now I have only one idea, to inject store i...
kris_IV
2

votes
1

answer
2.9k

views

Getting <LoadError: no such file to load — factory_girl> with Rails 3 and factory_girl_rails

I know I'm missing something fundamental, but I'm at a lost. After looking at the factory_girl site, I've installed the factory_girl_rails gem in Gemfile: group :development, :test do gem 'webrat' gem 'rspec' gem 'rspec-rails' gem 'factory_girl_rails' gem 'annotate-models', '1.0.4' gem 'spork', '0.8...
Kris Robison
1

votes
2

answer
53

views

In Non-ARC calls to undeclared methods with first parameter as double results in data corruption.

In Non-ARC calls to undeclared methods with the first parameter as float results in bad behavior. Try this out. Create a class with method : - (bool) methodWithDouble:(double)value andArray:(NSArray*)ary { if (!ary) NSLog (@"Array is nil"); return true; } Now call the method. Pass in nil for the arr...
Kris Subramanian

View additional