Joe Joe Joe

0

votes
0

answer
5

views

Formatter parameter is being passed null after setting a new model to List

In my XML for a List object I have made use of a formatter: {path: 'Erdat', formatter: '.formatter.dateFormatter'} This works as expected and I can see the bound value for Erdat passed into dateFormatter and then formatted appropriately. However, on my app I have an option to re-call the back-end ga...
Joe
1

votes
2

answer
1.6k

views

Cloud SQL using mysqli error

I'm trying to output the results of a simple query using a Google Cloud SQL with a mysqli connection. I've properly set up a Cloud SQL instance and imported a SQL database. However, when I run my app, it seems to connect to the database - no errors are triggered there - but the logs show the followi...
Joe Lowery
1

votes
2

answer
1.4k

views

Canvas Bar Graph Animation

I'm trying to get up to speed on the canvas tag and I'm getting stuck when it comes to basic animations. I've searched around and I can get most of the tutorials I've found working, but I've had some trouble translating that into what I'm trying to do. I have a bar graph that I'm building for my por...
Joe Burton
1

votes
1

answer
2.2k

views

Tweaking a photoshop smart object JavaScript

I found a JavaScript that will make every layer in Photoshop a smart object, which is awesome, but I am wondering if anyone can tweak it for me. I use this injunction with AppleScript. Due to not know much about Javascript I was hoping some kind person can tweak this to select all layers and make on...
Tim Joe
1

votes
2

answer
913

views

How do I render text along an arc in an image?

I have the following code in Delphi 7 to draw Copyright text along the curved edge of a DVD. We are using an old version of Graphics32. We are switching to Delphi XE5 with the latest code from Graphics32 and this code no longer compiles; in particular LoadArcCurve and drawingBuffer.RenderFittedText...
Hobo Joe
1

votes
1

answer
403

views

WMI Code Creator for Bitlocker Status - where did i go wrong?

I am working with the WMI Code Creator and the code looks to work properly from the app. HOWEVER, It comes up with errors internal of my code that I cant seem to shake. Am I supposed to have a reference for this to work? if so where can I get it? public class MyWMIQuery { public static void Main()...
Joe Pearson
0

votes
1

answer
8

views

Can a header file be included in multiple source files, without duplicate protection

Most header file wrap their content as such: #ifndef MY_HEADER_H #define MY_HEADER_H // header body... #endif MY_HEADER_H If this was removed, would it cause issues when including the header file in multiple source files? or is the preprocessor smart enough to ignore it? (I know it causes issues whe...
Joe
11

votes
6

answer
818

views

Using an anonymous struct vs a named struct with typedef

When should one of the following statements be used over the other? typedef struct Foo{ int a; } Bar; and typedef struct { int a; } Bar; and use it like Bar bar1 = {5}; I understand the second on is an anonymous struct but not sure when should one be used over the other.
Joe
1

votes
1

answer
791

views

How to get boolean value from the database and add it to a TextView?

I have boolean values stored from a checkbox in my Firebase database and I'm struggling to pull the values from the database. If the user checked the checkbox it will store that value in the database as true or false. What I'd like to do is to then get that value and put it in a TextView. I've bee...
Joe
0

votes
1

answer
31

views

Using a macro with a defined body in C++

I am learning C++ and have come across this code snippet and cannot understand the syntax: . . #define DO_MUTEX(m, counter) char counter; \ for (counter = 1, lock(m); counter == 1; --counter, unlock(m)) #define mutex(m) DO_MUTEX(m, UNIQUE_COUNTER(m)) int main(){ mutex(my_mutex) { foo(); } . . . }...
Joe
0

votes
1

answer
25

views

Popping or dismissing a ViewController

I have a Feedback View Controller that is accessed in 7 locations across 4 different screens. One way it's presented in a navigationController via pushViewController. The other 6 times it's presented modally. Here's the function that opens the Feedback VC's struct Constants{ static func openFeedback...
Joe
0

votes
0

answer
4

views

CORS Error When Trying To Access Golang Backend With Ember Frontend

So here is my problem. I am writing a simple application that posts data to an API. Unfortunately I cannot get data to post. Every Time I try to post I get the following error: Access to XMLHttpRequest at 'http://localhost:8000/api/v1/users' from origin 'http://localhost:4200' has been blocked by CO...
Joe Alvini
1

votes
4

answer
2.7k

views

create-react-app my-app …command not found

I ran npm install -g create-react-app and everything seemed install correctly. I then run create-react-app my-app and in return get -bash: create-react-app: command not found I then tried changing my ./bash_profile $PATH but yet I still get the error. The location of all my packages is Macintosh H...
Joe
1

votes
1

answer
22

views

How to reset a pointer

After playing with a pointer given by malloc. uint8_t* mem = malloc(10); uint8_t* rst = mem; *mem++
joe.garage
0

votes
0

answer
10

views

Adding an src from an API in Angular7

This is my component.ts where when it's loaded I get the data from the api, which I can see in the console.log, I do infact get my array of 10 objects (they come in groups of 10 on the api). I have the correct path in the API for the source code of the first image in the array of 10 which I typed to...
Random Joe
0

votes
0

answer
3

views

Is there a JPA annotation equivalent of jackson's @JsonAnyGetter/@JsonAnySetter?

With jackson, I can use @JsonAnyGetter and @JsonAnySetter to serialize/deserialize a Map into extra fields of a json object. Is there a JPA annotation that will do similar things with extra db column values being get/set from/into a member Map? Specifically, I'd like to use jooq's .fetchInto(Pojo.c...
Joe
1

votes
1

answer
132

views

How to format the NameNode?

I have followed the instructions to set up a hadoop cluster in pseudo-distributed mode, as per the instructions on apache.org: Hadoop: Setting up a Single Node Cluster; I am using Hadoop 2.7.7 and everything works OK except for the formatting of the NameNode. The instructions say: $ bin/hdfs namenod...
Joe King
1

votes
1

answer
118

views

Is it possible to use a single typedef to define a block that takes no parameters and returns a block?

Similar/Follow-up to this question: Syntax to define a Block that takes a Block and returns a Block in Objective-C I understand that this wouldn't be something that I would want to do but I want to understand why I can't use a single typedef to define: typedef void (^XYZSimpleBlock)(void); typedef X...
Joe Susnick
0

votes
2

answer
32

views

How to split a string by comma that is only followed by an alphanumeric character

I am trying to separate a very large .cvs (255 columns) by using a BufferedReader that grabs each line and stores it in a string. I'd like to be able to split it by a command and letter. Ex: 1,2,3,5,6 will split into 1 | 2 | 3 | 4 | 5 | 6 | 7 hello,world,good day to you, Sir,test will split into hel...
Joe
0

votes
0

answer
5

views

Batch clear operation not work under RBAC mode with airflow 1.10.2

I find batch task instances clearing from web UI not work when I enable RBAC . I just upgrade airflow to the latest stable version 1.10.2, and enable the RBAC mode . But I cannot clear the task instance from web UI. e.g. there are 10 failed tasks in DAG A, and I can't clear all of them once. the o...
joe xu
-1

votes
2

answer
46

views

In SAP scripts, is it possible to select a column by name instead of by row position?

I have a script that successfully creates a layout variant. I choose the columns that I would like to be in the report by choosing the row number of where the column name is in the list, like this: session.findById("wnd[1]/usr/tabsG_TS_ALV/tabpALV_M_R1/ssubSUB_DYN0510:SAPLSKBH:0620/cntlCONTAINER1_LA...
Joe Messingschlager
-1

votes
0

answer
16

views

How to launch system app without rooted phone?

I don't know much about this, so my question might not be 100% clear, but let me try. So I have one system app and the one I'm using. From that main app, I open this system app via "su" command (which I believe is the only way to launch system app once the phone is rooted). Now to make it work witho...
joe
-1

votes
0

answer
11

views

Create formatted array from spark dataframe

I have a spark dataframe with the schema: |-- Dest_ID: long (nullable = false) |-- Src_ID: long (nullable = false) |-- Source: binary (nullable = true) |-- Dest: binary (nullable = true) |-- ip: string (nullable = true) And I am trying to convert it to an array with a format of: val edgeArray = Ar...
Joe S
1

votes
5

answer
8.2k

views

Celery “Received unregistered task of type”

I have read quite a few posts that are similar to this but none seem to make sense to me. I am trying to configure a Celery PeriodicTask to fire every 5 seconds but I'm getting hung up on a Celery configuration issue (I think) comm/tasks.py import datetime from celery.decorators import periodic_task...
Joe Fusaro
1

votes
2

answer
4.1k

views

Native SSH in Python

I have done some searching on connecting to servers and running commands on servers using SSH in Python. Most, if not all, recommended using Paramiko. However the servers on which the script will be running are heavily secured and it is near-impossible to install custom python libraries. Is there a...
Joe Smart
1

votes
2

answer
2.2k

views

Session callback expects true/false return value

My php script, sometimes, give me the following error: Warning: session_start(): Session callback expects true/false return value in C:\xampp\htdocs\verifica.php on line 10 verifica.php line 10: if (session_status() == PHP_SESSION_NONE) { session_start(); //this is line 10 } what is wrong? why I ha...
Rick Joe
1

votes
2

answer
1.7k

views

Can I convert soft returns into hard returns in a MS Word document using Python?

I now have a MS Word document containing soft returns. I'd want to convert all the soft returns into hard returns. Is Python capable of doing that? I'm using Python 3.4.
joe wong
1

votes
1

answer
1.7k

views

How To Overcome CORS issues with Redux React Express and Node?

I have a React App that uses React Router and Redux as its state manager. The server side of the app uses Express and Node. I am making API calls to an external service. I do not have the ability to enable CORS on the external service. Therefore, I need to use my app's server side to make the calls...
Joe C
0

votes
0

answer
20

views

Nested subscriptions sets variable before it recieves the value

I'm using Angular 7 and I want to wait for a response with a response from my service, but the value gets set before the response arrive. Why is that? Here this.inEditing gets set to false because this.foretagsprofil.id is not yet set. But shouldn't that if-clause only run when it has recieved a res...
Tuxedo Joe
0

votes
0

answer
4

views

Drools timed rule execution via Java API

I want to create a time-based rule that is being triggered every 5 minutes, and Drools documentation states that: Conversely when the Drools engine runs in passive mode (i.e.: using fireAllRules instead of fireUntilHalt) by default it doesn’t fire consequences of timed rules unless fireAllRules is...
D. Joe
1

votes
3

answer
3.1k

views

Import Errror for python pg module

I am having trouble using the pg module in my code. I've installed it using pip. But when I go to run it I get the following error: Traceback (most recent call last): File "Contract_gen.py", line 2, in import pg File "C:\Python27\lib\site-packages\pg\__init__.py", line 1, in from .core import ( Fi...
Joe
1

votes
3

answer
307

views

Performing projections on multiple databases with only one dbContext

We are using EF.Core for a current project. The project has three databases which is a real nuisance that can't really be avoided. The databases have the same structure. So we are able to swap contexts and use the same EF Model to do CRUD operations. We have one particularly complex query that we ar...
P.Joe
1

votes
2

answer
191

views

How do I turn off the View | Reading pane for Outlook folder?

I have this code to create a folder in Outlook from Excel. How do I set the View | Reading pane to 'off'? Set olFolders = olSourcefolder.Parent.Folders olFolders.Add "Audits-Actuals"'how do i set the reading pane to off?
Joe Patrick
1

votes
1

answer
1.8k

views

Convert an Eigen::TensorMap to Eigen::Tensor

It's possible to convert an Eigen::Map to a Matrix by assignment: vector v = { 1, 2, 3, 4 }; auto m_map = Eigen::Map(&v[0]); Eigen::MatrixXf m = m_map; cout
Joe Antognini
0

votes
3

answer
38

views

I cannot edit the style of my JavaScript link

I have a conditional statement that creates a link in an empty id tag ("demo"). The link appears fine on the page when the conditions are met but I am un able to edit is using CSS. I have tried setting an a tag and doing this in CSS: a { text-decoration-none; } I have tried the same for the id (#de...
Joe Abele
0

votes
0

answer
4

views

How to bind a dynamic @Named binding

I'd like to create a configurable Module that will bind a few different @Named things. Applications/injections that use the module will know the @Name ahead of time, but the module itself won't know until it's instantiated at runtime. I'm using kotlin in my example code, but happy for java answers....
Joe
1

votes
2

answer
3.3k

views

PowerShell Export-Csv No Headers

I'm attempting to create multiple CSV files with no headers using Export-Csv within a PowerShell script. I've read a few posts about using the Select-Object -Skip 1 trick, but I haven't gotten it to successfully work on my code. Here's how I tried to call it: $DataSet.Tables[0] | Select-Object -Skip...
Joe
1

votes
1

answer
1.5k

views

Configuring the index.html basehref at ng build time

I deploy my angular app to a subfolder at the server so the URL serving the app ends up as http://www.example.com/folder-name/ - which means the basehref has to be pointing to that folder at the index.html. As a result of this fact, after running the ng build --prod, I have to modify the generated i...
Average Joe
1

votes
2

answer
71

views

android - update @string/app_name with unique hash for each build

I would like to be able to quickly visually verify that a new build has been installed on my emulator. One way I'm considering, is to have the @string/app_name value be updated upon each new build with a unique hash, or maybe just a random four char value. Then when I see the application icon on the...
ether_joe
1

votes
1

answer
1.5k

views

Vuejs browser extension without using 'unsafe-eval' in CSP

I have built a browser addon using Vuejs and used Laravel Mix as my build process. All of my vue templates are in single file components, and everything works absolutely fine...Until I remove 'unsafe-eval' from the CSP in my addon manifest. Firefox shows the error: Content Security Policy: The page'...
Joe

View additional