Peterk.

1

votes
0

answer
25

views

Angular Reusable component error

Cant get all four rows to collapse individually. Only 1 is collapsing currently. Easy collapse and expand list view in card layout by clicking on up/down chevron. Also cant separate the ID and Name pair to each drop down. That data is coming from the back-end My Employees Name= {{employee.name}} ID...
PeterK
1

votes
0

answer
271

views

Apple TestFlight provide old build

When i update/upload the new release at Apple TestFlight my testers, and me, get an old build of my app. I have removed the old version from TestFlight but still receive that version. The weird thing is that it states that they have installed the current build but it is the old they get. There is a...
PeterK
1

votes
0

answer
17

views

Is there a way in Ruby to request priviledge escalation for the current process in windows?

That is without spawning another process. Request it, and have it pop up the 'do you wish to allow this to alter this computer' requester. This is for a large build script that has an 'install' target. Yes it works if I run the initial shell 'as administrator'. It would be nice not to require thi...
peterk
1

votes
1

answer
177

views

Add script to GameObject, can not find the script [duplicate]

This question already has an answer here: Can't add script component because the script class cannot be found? 1 answer I am creating a GameObject with script and add components like: card = new GameObject(); card.AddComponent(); ...which works well. What does not work is to add the script.s I have...
PeterK
1

votes
0

answer
11

views

In ubunto 10 LXDE, can I configure LXtreminal it to open a bash --login shell

In ubunto with LXDE desktop there is an icon for LXTerminal when clicked on, it does not run a login shell. I would like to set it up to run a 'bash -l' shell. Is there a way to do this?
peterk
1

votes
1

answer
71

views

Is there a specified enumeration order for hash keys as with hash values?

The Ruby documentation makes a statement about Hash#values: Hashes enumerate their values in the order that the corresponding keys were inserted. This also appears to be true for Hash#keys, but that is not documented. Is this likely to remain true? And is it true for all key sets?
peterk
1

votes
0

answer
133

views

How do I run a docker private registry with letsencrypt in ubuntu.18.04

I am trying to get a docker private registry running on a server. I am running Docker version 18.06.1-ce build e68fc7a for this setup both server and test client. (Note: I replaced the real domain with my.domain.com in all code below) From bits and pieces of blogs my config.yml for the registry is...
peterk
1

votes
0

answer
49

views

How do I enable webGL 2.0 API libs in emsripten C++?

I am working on trying to get the webGL2.0 features working with emscripten C++ program, and for now running on the latest firefox nightly. I am trying to test using a GL_UNIFORM_BUFFER object and hopefully make it shared by several shader programs. I set the flag -s USE_WEBGL2=1 on the compiler and...
peterk
1

votes
0

answer
57

views

Is there a “best practice” matrix convention for openGL shaders (GLSL)

So there is a difference between 'column major' and 'row major' matrix notation conventions, which everyone seems to say 'pick the one you like'. OpenGL seems to want it's input matrices represented in memory as 'column major' and there is the difference between pre-multiply and post-multiply. So in...
peterk
1

votes
1

answer
48

views

How does one declare an out of class binary operator for a templated class? [duplicate]

This question already has an answer here: What are the basic rules and idioms for operator overloading? 7 answers I have a situation where I have math operations that make sense to overload for convenience. But some of them operate on other types. Like vec3 * type and type * vec3 One way for the r...
peterk
1

votes
0

answer
21

views

Re-index SQLite do not understand how

This is my first time with SQLite and I am trying to reindex my SQLite DB, after deleted record, but always get the max nr of records in each 'id' row. 'id' row should be 1, 2, 3 etc. When I have deleted a record I want to reindex the whole table so 'id' starts with 1 and ends with max records numb...
PeterK
1

votes
3

answer
1.6k

views

Run custom Django management command over SSH

I have a Django application with a custom management command in one of the apps. If I log in over SSH I can run it without any problems with python manage.py sitedir/mycommand However, if I try to run the command as a oneliner from my local box like this: ssh myserver python manage.py sitedir/mycomm...
PeterK
1

votes
3

answer
91

views

memory management just curious

Yes i know i should read more about memory management, did try to find and understand, but i still not really get why this bit of code crash when i release the NSMutableArray's (see code). I do alloc/init initially. - (void)readSelectedPlayers { //Prepare File Manager NSString *filePath = [self data...
PeterK
1

votes
1

answer
225

views

ActionScript - same opcode for two distinct instructions?

Looking at the AVM2 specs (here, page 66-67) i found out that there are two instructions which do something different but they have the same opcode: greaterequals, 0xAF greaterthan, 0xAF Both have the same format (no arguments). Both have the same stack transition. Since these instructions do someth...
PeterK
1

votes
3

answer
1k

views

Problem with Core Data, after a rename of the app?

I have been trying to develop a Core Data piece of code and have been running into problems. In one version of my code everything works but after i have been trying to polish the code, i have the old version, and suddenly it does not work. I have not changed this class, which is why i am puzzled. I...
PeterK
1

votes
3

answer
2.4k

views

My UITableView do not scroll

I cannot get my UITableView to load data as i am scrolling. I do have subview in the cell (two lines). It display the first screen correctly but when i scroll only the lines that is on the first screen displays, nothing to scroll. I have two arrays cellArray1 (main line) and cellArray2 (second line)...
PeterK
1

votes
1

answer
956

views

Objective-C / Can't access (read) file in “Resources” folder

This is probably a very easy problem to solve but i have not succeeded. I have copied the file 'questions_famquiz_easy_110326.txt' to the resources folder and now want to access (read) it and NSLog it to see that i am able to read it. The code below is from one of the tests i have done based on exa...
PeterK
1

votes
2

answer
2.2k

views

I want to know how to make a makefile for iOS “fat” library

I want to create a (non-xcode) makefile to create a fat library (emulator + device(s)) that can be imported into an XCode project using a makefile that calls the basic command line tools directly (not running XCODE from the command line, but the MAC Gcc and it's related utilities) - this is for .m,...
peterk
1

votes
0

answer
9

views

Pass Tensorflow Seq2Seq output back as input at inference time

I would like to create a Seq2Seq model to forecast time series data. I am using the InferenceHelper and I am struggling with the sample_fn parameter. I would like to pass the decoder output of each cell through a dense layer in order to generate a single output at each time step. So I'm providing a...
peterk
1

votes
1

answer
611

views

Retina graphics vs non-retina graphics management

I am about to launch a new app and would lik eto increase quality of the graphics. In my case the graphics is the logo and the custom buttons. I do not know if this impact Core Plot but that is also part of the package. There is quite a few posts about this but there are still things i do not fully...
PeterK
1

votes
1

answer
177

views

How does one create a multiple “syncronous” repository remote GIT branch in intelliJ

I have a large intellij project that has 12 git roots and have it set for 'synchronous' repository/git root management. I can easily create a new local branch on all the repos, but I can't figure out how to push out the new branch to a *new*remote*branch* on all the corresponding remote repositories...
peterk
1

votes
1

answer
1.4k

views

How to reuse the same prefab with unique name & tag and Add into a C# List

I am new to Unity3D and C# and have been struggling to find a convenient way to reuse the same prefab, with unique name & tag, and Add it to a List. I have the following test code: public class testScript : MonoBehaviour { public static List cardDeckBackListNames = new List { 'HAB', 'H2B', 'H3B', 'H...
PeterK
1

votes
1

answer
94

views

SourceTree: did you forget to merge?

I have the following: I get the following messages when trying to commit: I guess the reason why i got the 'default' track is that i reverted to an earlier backup. At least that is what i think. Could someone please give me some advise how to proceed so i can push the current commit i have and opera...
PeterK
1

votes
1

answer
107

views

Can one call an inheritng superclass's method overridden by a interface “default” from the interface?

I did looked at the suggested possible duplicates. They don't ask this but related things. I have this desired structure in Java 8: class BaseClass { int method(int arg) {...} // does 99% of the work } interface MixinInterface { // intended only for subclasses of BaseClass default int method(int a...
peterk
1

votes
2

answer
337

views

In intellij can one set the “path” environment variable relative to the output root when debugging a java app

To refine this I spawn an ant task that builds native DLLs and puts them in a 'artifact' area relative to the project output directory. So I want to set the path variable for the debug process to contain the path to the DLLs so the java code can load them and do so properly wherever the project fold...
peterk
1

votes
1

answer
47

views

How do get Msys or Mingw utilities and msysgit to work together?

I have a windows dev environment our team members download that has an older version of msysgit and a bunch of the unix msys utilities ( zip, awk, bison, etc ) which we use so our builds run on both linux and windows. Well the git is now old enough that git hub no longer supports it as well as other...
peterk
1

votes
1

answer
17

views

How do I specify adding files in git and “override” CR/LF translation for the repository for just the added files

Of course first can it be done. The desire to specify a set of files or a whole folder to be untranslated no matter what platform the local copy is on. This is for a script that builds docker image files. The docker build copies files from the build platform (windows OR linux) to the docker virtual...
peterk
1

votes
2

answer
319

views

Is there a default port for a docker private registry

This to enable one to use docker tag image:version docker.mydomain.com/image:version instead of explicitly specifying the port
peterk
1

votes
1

answer
122

views

Is there a reasonable way to create a webassembly “static library” in a multi-module build for emscripten

I am converting a large C++ application for run in a webassembly environment. The build is organized into modules and each module sub-project creates a static or a dynamic library. From what I have read there is no 'ABI' yet standardized for 'wasm' modules for dynamic-linking into the browser runtim...
peterk
1

votes
2

answer
0

views

Processing a binary file - templated functions problem

I've created a small tool which is used to process binary files. All the functions involved in reading the files and processing them are templated and are similar to this: template void processFile( const char* fileName ); The template parameter T is used to determine the size of data which will be...
PeterK
1

votes
1

answer
0

views

Core Data, i cannot open my .xcdatamodel, which is red

I have been running tests towards a Core Data model (SQLite3). I now need to do some minor changes in the .xcdatamodel but it is red in XCODE and i cannot open it. I also deleted the sqlite2 database but that did not help. Anyone that could give me a hint why this is and how i can do the changes?
PeterK
1

votes
1

answer
0

views

UIAlertView pops up twice?

I am trying to use two UIAlertViews but both pop up when i trigger one. -(IBAction)continueGame_button:(id)sender { //=====CHECK IF THERE IS AN ON-GOING GAME, IF SO CONTINUE=====// AccessCurrentGameData *isThereAnOngoingGameFunction = [AccessCurrentGameData new]; BOOL ongoingGame = [isThereAnOngoing...
PeterK
1

votes
5

answer
0

views

Memory leak problem and i need help #1

I am very new at this and seems to have a leak in this piece of code that i cannot fix: The Instruments shows on this line with a 100%: NSMutableArray *read_Question = [[NSMutableArray alloc] initWithCapacity: 0]; I have tried all kind of things but not been able to fix it. Anyone nice that can advi...
PeterK
1

votes
3

answer
0

views

Can not read file in XCODE 4.2, worked in 4.0?

I have upgraded from XCODE 4 to 4.2 and now i have problems. The following code worked pre 4.2 to read the file in 'filePath': // Fill myString with questions from the .txt file and then read .txt file NSString *filePath = whatFile; NSString *myString = [[NSString alloc] initWithContentsOfFile:file...
PeterK
1

votes
2

answer
26.7k

views

How can I open a Java console output window for Applet debugging in a browser (windows)?

I have firefox 11 or the windows XP version of IE - and the browser has jre6 and I have a 6 month old jsdk but the browser doesn't use that for runtime. nice if log window had history and a scrollbar if there are a lot of prints. I'm using log4j to do the prints. Thanks.
peterk
1

votes
1

answer
1.4k

views

More than 10 instances of ADBannerView or ADInterstitialView currently exist : using ARC

I am using Xcode 4.5 with ARC and get the following message using iAd: WARNING: More than 10 instances of ADBannerView or ADInterstitialView currently exist. This is a misuse of the iAd API, and ad performance will suffer as a result. I have read this post: Iad WARNING: More than 10 instances of ADB...
PeterK
1

votes
1

answer
944

views

Is it possible to create an IntelliJ plugin to create a new “Module Type”

Is it possible to create an IntelliJ plugin to create a new 'Module Type'? I want to create a new module type in a project that can be dependent on other modules of any type in the project, and be a dependency for any other modules in the project, and when building the new custom module type execute...
peterk
1

votes
1

answer
279

views

In ant exec task can one supress the \t[exec] prefix added to all output from the child process?

In ant when running a command with the exec task anything written to stdout or stderr in the child process has ' [exec] ' prepended to every line written to both the console and the log file. Is there a way to suppress this behavior or explicitly supply the prefix? (ie: to '' or maybe just an in...
peterk
1

votes
1

answer
53

views

Why is the object always position itself @ 0.0 and not were it is originally spawned

Use this code to spawn: GameObject goX = Resources.Load ('Apple') as GameObject; GameObject goY = Resources.Load ('Orange') as GameObject; GameObject goZ = Resources.Load ('Banana') as GameObject; GameObject go1 = GameObject.Instantiate (goX, Spawn3.transform.position, Quaternion.identity) as GameOb...
PeterK
1

votes
1

answer
155

views

If deploying apps on a world-wide basis, what about China, Japan, Korea etc.?

I am thinking of creating an application that i would like to sell on a world-wide basis that would include the normal languages, including Chinese, Japanese, Korean etc. and would like to submit so also these countries would understand what it is. Given this what would be the best way of doing this...
PeterK

View additional