tim_tim

10889 questions
1

votes
0

answer
59

views

Haskell - can't generate and use Image file in threepenny

I will try to be as specific as possible. I am trying to make a graph visualization GUI using Haskell, Threepenny and DOT I have created buttons that modify the graph, and I am trying to save the modified graph in the image and load that image Every Time the graph is modified However, I can run the...
Tim Bill
1

votes
1

answer
178

views

SVG linearGradient mask not working since Firefox Quantum

https://codepen.io/timbarden/pen/wpqGYE In Chrome, this works as intended - it should display a purple/green gradient masked by another vertical gradient. This used to work in Firefox, but since Quantum has stopped working. Any ideas?
Tim
1

votes
1

answer
20

views

JPA Query with Joins and a Custom Obj that is not Table

I am doing a join with a native query. The returned object is a new object that contains all the attributes in the query. But it throws an error saying it can't bind object[] to CombinedObj. What do I do? public interface SettingsRepository extends JpaRepository { @Query(value = 'select s.some_va...
Tim Nuwin
1

votes
0

answer
129

views

Python selenium: Need help in selection using ActionChains

How to select these 2 devices using ActionChains? Click and hold some place near B1 and dragging the selection till some offset after B2 to select B1 and B2. Need to select 2 devices BL1 and BL2. Xpath for them: BL1: dropdown = driver.find_element_by_xpath( './/*[@class='n9k healthscore90 sb-node']...
Tim
1

votes
0

answer
283

views

Why is Instagram not using signed URLs?

I was just dabbling a little with the Instagram API and noticed that all the media links (e.g. image / video URLs) that point to the fbcdn are publicly accessible. I usually try to use signed URLs for user-generated content and was wondering why Instagram apparently is not choosing to do that? If...
Tim Specht
1

votes
0

answer
456

views

Excel for Mac - Macro crashing Excel - Works on Windows

For our work-planning we created an excel document with integrated macro, so the document can be exported in a specific format for importing it in another program. The document was created on a windows pc with the latest version of Excel. The macro works perfectly on Windows. At home I use my Mac. I...
Tim Vervaet
1

votes
0

answer
52

views

How can I print the entire webpage at this url to a pdf file?

I would like to download and convert https://spring.io/guides/gs/maven/ into a pdf file But I tried several options of wkhtmltopdf in the following commands, and they can only print the beginning part of the webpage wkhtmltopdf https://spring.io/guides/gs/maven/ 'Building Java Projects with Maven.p...
Tim
1

votes
1

answer
58

views

Mock rootView of Caliburn.Micro WindowManager

Given I have a method like this: public void ShowDialog() { TestViewModel vm = new TestViewModel(); _windowManager.ShowDialog(vm); DialogResultTest = vm.CoolText; } Now I want to write a test. In that test I want to inject a prepared TestViewModel into the ShowDialog(vm) method. My code looks like t...
Tim Kathete Stadler
1

votes
0

answer
90

views

R Markdown code chunks missing code after site build and serve

I built a static website in RStudio using blogdown. I'm using the Even theme. When I publish a post, using R Markdown, that includes a code chunk, such: ```{r, echo = TRUE} #linear model car_lm
Tim
1

votes
0

answer
57

views

Intermittently get blank screen when opening code file

Sometimes in Visual Studio 2017, when opening a code-behind file, the page is empty. If I close all the tabs, and reopen the same file from the Solution Explorer, the code will display. Is there something about the way the project file is being saved, when tabs are left open, that might be causing...
Tim
1

votes
1

answer
71

views

DbContext returns wrong id after add

I have Pin Model public class Pin { [Key] [Column('pin')] public int Id { get; set; } [StringLength(50, MinimumLength = 1)] [Column('desc', TypeName = 'varchar')] public string Description { get; set; } } I have MyDbContext public class MyDbContext : DbContext { public MyDbContext() : base('DbName')...
Tim
1

votes
0

answer
202

views

invalid argument '-mmacosx-version-min=10.12' not allowed with '-mios-simulator-version-min=7.0'

I am building llvm-3.4 with clang in Mac OS 10.12, but after I successfully configure it with cmake-3.8.0(LLVM_ENABLE_PIC=FALSE,LLVM_TARGETS_TO_BUILD=ARM;Mips;X86,CMAKE_INSTALL_PREFIX=/my/install/path/) I build the program with Xcode 9.0, but I get this error message: clang: error:invalid argument...
Tim.He
1

votes
0

answer
208

views

Illegal reflective access to method java.nio.DirectByteBuffer.cleaner()

I am using jpdfbookmarks with 2.5.2 version. $ jpdfbookmarks_cli spec.pdf -dump -o orig.jpdf WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.lowagie.text.pdf.MappedRandomAccessFile$1 (file:/home/t/program_files/document/bookmark/jpdfbookmarks-2....
Tim
1

votes
1

answer
521

views

Owin/Katana UseJwtBearerAuthentication Always Returns 401

I need to implement JWT Bearer Authentication in both a .NET 4.6.1 Web API project, as well as a .NET Core 2.0 web project. I successfully got the core project up and running with the this sample from Microsoft. I'm following this sample from Scott Allen for the .NET 4.6.1 project. My 4.6.1 code lo...
Tim_Cardwell
1

votes
1

answer
394

views

Typescript Currying and Async Functions

[email protected] In typescript writing definitions for manually curried functions. They work when the final return value is a non-promise, but fail when it is a promise. For example, this works: function test ( a: number, ): ( b: number, ) => number function test ( a: number, b: number, ): numbe...
Tim Hope
1

votes
0

answer
37

views

PyInstaller: Support cmd and Gui mode?

Is there a way to make my PyInstalled Pythoncode run either in CMD or in GUI mode? My intention is: If the user drops a file to my .exe file, I want to immediately start processing it (and therefore show the results within the CMD window as usual), if the user does not drop a file, I want to show a...
tim
-1

votes
0

answer
27

views

Swift, Xcode - Open ViewController only once per use

My intention is to add a tutorial to my app, which is supposed to show only once per user. So far my approach has been to create a func which is being called when viewDidLoad: func checkInitialVc() { firstTime = defaults.bool(forKey: 'firstTime') if firstTime { let initialData = self.storyboard?.i...
Tim Fuhrmann
1

votes
2

answer
36

views

How do I center an inline list to fit all screen sizes?

Here is CSS: .wrapper{ display: inline; line-height: 2em; width: 100%; height: 100%; min-width: 1000px; min-height: 1000px; text-align: center; } ul{ list-style: none; } li{ list-style: none; } .craftbeers{ color: white; margin-top: 85px; display: inline-block; } .craftbeers h2{ margin-left: 40px; }...
Tim
1

votes
0

answer
40

views

Text en/decoding issue

I'm hoping someone can relieve me of my ignorance here: I'm using python 3.6.4 currently and I'm trying to convert strings to simple alphanumerics. I've got the how mostly sorted until I get to characters with diacritics. It involves football team names so I'm looking to convert, by way of example,...
Tim Hamilton
1

votes
1

answer
56

views

How to pass data between two contexts in MVC with Entity Framework

In my MVC app with Entity Framework, I have 2 contexts. One is for my business data (DemoPoolEntities) and the other is for the ASPNet identity data such as ASPNetUsers and ASPNetRoles(ApplicationDbCcontext). The data is all stored in the same database. I have them split into two different models...
Tim
1

votes
0

answer
45

views

Python - API / wrapper function design pattern

I'm implementing API which takes users' code and execute at my server. For instance, user submits the code as following push('item') then I want to execute this string code in the users's context, such as users_stack.push('item') What would be the design pattern and how do I convert user's code this...
Tim Park
1

votes
1

answer
95

views

C++ function accepting any callable of a given templated signature

If I understand it correctly, the standard way to write a function that accepts any callable as a parameter is: template void myFunction(Fn&& f) { ... } I would like to do something similar, except I want to be able make Fn conform to a certain signature and I need to know the type of its parameter....
Tim
1

votes
1

answer
64

views

How do I wait for third part application to finish updating. GUI

I'm using the unmanaged windows automation api from C# to automate a third party application. I use this to select a list item in list A in the third part application. This causes the third party application to change the list items in list B. List B items are logically child elements (not in terms...
Tim Galvin
1

votes
2

answer
33

views

str_replace usage — MYSQL result to create CSS/HTML class

I am attempting to create semi-dynamic CSS classes in my HTML page, drawn from the results of a MYSQL fetch. Specifically, I am trying to do something that ultimately outputs something like this: This would be relatively easy if there was just one word involved. e.g.:
Tim Gallant
1

votes
1

answer
313

views

Electron js: use npm internally/programmatically

I wrote an app with Electron js that encapsulate Ionic apps for editing them live. So i use a child process to cd {ionic app path} && ionic serve/npm install/npm update for serving and updating packages of the live Ionic app in my Electron container. No problems with this technique on my side. But w...
Tim
1

votes
1

answer
594

views

Why can't opam install the graphics package?

I tried to install the ocaml graphics package, but it fails. Any suggestions for how I can fix it? ~/Documents/Work/Code/OCaml with graphics: opam update =-=- Updating package repositories =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫 [default: http] Command started [default: http] Command starte...
Tim Leonard
1

votes
0

answer
15

views

Python with statement rename as none(context manager)

Is there a way to implement with statement rename as none? For instance, class MyClass(object): def test(self,s): print s then I want to execute this string code in the users's context, such as with MyClass(a): test('hello') then it will print out 'hello' What would be the design pattern and...
Tim Park
1

votes
0

answer
34

views

Loop through itemprop values on a page output as a datalayer

We utilize 2 different vendors for our auto websites. What I'd like to do is create a Google Tag Manager Custom html tag that normalizes the datalayer for each vendor so when we track vehicle display pages (actual cars) we can track the Year, Make, Model, etc. etc. across both vendor platforms consi...
Tim Archambault
1

votes
1

answer
147

views

BizTalk 2010 : SharePoint REST with claims based authentication

I'm trying to call one of the standard REST (ODATA) services to get data from a list in SharePoint. But I have issues with the claims based authentication. I'm using BizTalk 2010 with the REST starter kit extension. The sendport I'm using is a WCF-Custom with webHttpBinding. The error I get is the f...
Tim D'haeyer
1

votes
0

answer
533

views

setup.py post-install scripts and pip install extras

I'm developing a package which has a few optional dependencies and 'extras'. Goal: I want the following two things to work: Execute my post-install code Allow for 'extras' installation Status: Currently I have been able to: Use python setup.py install or python setup.py develop to execute post-insta...
Tim
1

votes
1

answer
57

views

this.start() doesn't run threat online server

I have the code below. When I run it on a local server (windows 10 & Tomcat 8.0.47 ) it all works fine, also on a second computer (ubuntu & Tomcat 8.5) itn runs wothout problems, As soon as I deploy it on an external server (Digital ocean, Linux 4.4.0-112-generic, Tomcat 8.5.27) it doesn't seem to...
Tim DJ
1

votes
0

answer
37

views

Import CSV data in a rails app using collection select

I am trying to allow the importer to select a collection select option during import. Right now the importer works, how ever it does not select the model type during import. My schema: create_table 'hardwares', force: :cascade do |t| t.string 'serialnumber' t.string 'modelnumber' t.string 'location'...
Tim R
1

votes
2

answer
72

views

Check existence of an entry in C pre-processor list

Is it possible to check for the existence of an entry in a list defined by X-macro? Given the example code below, I'd like the #if defined(GEORGE) condition to be true. EDIT: without doing an explicit #define GEORGE, of course. I am hoping to have a way to check an entry in the list (in the pre-pr...
Tim
1

votes
3

answer
63

views

Laravel PHPExcel - Row Length Limitation Issue (xls)

Found an interesting issue with Laravel and PHPExcel. Given the code below: \Excel::create('TestingXLS', function($excel){ $excel->sheet('TestingSheet1', function($sheet){ $values = []; for($i = 1; $i download('xls'); What this should do is generate an .xls document with 5 rows of 257 columns, but w...
Tim Lewis
0

votes
1

answer
33

views

Method which accepts both EventHandler<T> and EventHandler

Assuming you have a method like this private void FireEvent(EventHandler eventHandler, T eventArgs, string name) { var handler = eventHandler; if (handler != null) { Console.WriteLine(String.Format('Sending event {0}', name)); handler(this, eventArgs); } else { throw new UnconnectedEventException(na...
Tim Meyer
1

votes
0

answer
248

views

Submitting GA UTM Variables to Pardot via Form Handler

Has anyone ever managed to get GA UTM tracking variables into Pardot via the API? If you use the iframe, then all of the GA variables are picked up automatically, but when you submit directly via a form handler, the information doesn't get set (presumably because it can't read the cookies). Pardot s...
Tim
1

votes
1

answer
478

views

Using the Watson SDK To Do Continuous Speech To Text

I have previously been using the IBM Watson speech to text service to transcribe full audio files that have been pre-recorded. However, I am now trying to do live transcription while using the speaker identification feature. This means that I cannot send each short file (recording audio in about 30...
Tim
1

votes
2

answer
121

views

Using Typescript object in HTML

I'm new to Typescript, and I would like to be able to run a method when I click on an element. I've created a project and process ts file with awesome-typescript-loader with webpack. I've created a TS class : export class MyApp { myMethod(myParam: number): void { console.log('I'm here'); } } export...
Tim
1

votes
1

answer
27

views

UITableViewController inside UITabBarController = unwanted padding on iOS 11

I need to have a UITabBarController hosting UITableViewControllers. My controllers are organised this way: UITabBArController UINavigationController for tab 1 UITableViewController for tab 1 UINavigationController for tab 2 UITableViewController for tab 2 UINavigationController for tab 3 UITableView...
Tim Autin
1

votes
1

answer
90

views

Tkinter and Twisted - creating a deamonic reactor in Python#

I am trying to use tkinter and twisted in python 3. I have followed this answer, Threading With Twisted and Tkinter and it allows me get it to run. But the issue is that when the code crashes or it is closed by the user, reactor is not stopped. How can I set it so that reactor is a deamon to the tki...
Tim.101

View additional