Liam

1

votes
1

answer
32

views

lua <eof> expected near end

I'm trying to make a keycard door in minecraft using computercraft and it gives me an error at line 23 saying expected rs.setOutput('bottom', true) while true do if disk.isPresent('top') then if fs.exists('disk/.cardauth/authkey') then f = fs.open('disk/.cardauth/authkey', 'r') p = f.readAll() if p...
Liam Kelly
0

votes
2

answer
18

views

How do i convert for (i = 1, I <= n, i ++) into a while loop?

I need to convert this loop into a while loop for homework: for (i = 1, I
liam cassidy
1

votes
4

answer
26.8k

views

Wine32 Kali linux error [closed]

Today I was looking at ways to install windows ( .exe files ) on Kali Linux. The most common way of doing so was to install wine. However, here is my problem. My Kali Linux system says I have wine installed. However I need to run apt-get install wine32, when I do this, it results in the error below:...
Liam lawson
1

votes
2

answer
88

views

c++ two objects with const pointers to each other

I have two objects, A and B, which are both derived from a common base class, and both contained within a separate parent class. I want A and B to have access to pointers or references to each other, so that they can call each others' member functions. Ideally, those pointers / references would be c...
Liam Goodacre
1

votes
4

answer
5k

views

Passing a large array between pages in PHP

Is there any way to pass an array between two pages intact? I am building a huge array, and the building of it uses masses of memmory. I would like to be able to store the array intact and then reaccess it from another page? If I use $x = print_r($array,true); and write it to a file, how could I the...
Liam Bailey
0

votes
0

answer
6

views

Discord.py after pyinstaller I get RuntimeError

Making a Discord bot using Discord.py[voice] the bot joins, leaves, plays youtube audio in channels all that perfectly when I run it inside of PyCharm, but when I convert it to an .exe using: pyinstaller --icon=icon.ico Bot_Spud.py And then run the .exe, join a voice channel and I get this RuntimeEr...
Liam McCullough
1

votes
1

answer
39

views

Tab System: JS Slide Up on current tab

I am trying to make my content inside the tab slide up when you chose the tab. So when you click on a tab the text inside that tab will slide up from the bottom. $(document).ready(function() { var selectedtab; $('ul.tabs li').click(function() { var tab_id = $(this).attr('data-tab'); $('ul.tabs l...
liam geary
1

votes
2

answer
224

views

How can I change the outline colour for my button?

How can I make the blue outline colour be #D5A021 instead of blue when the users clicks on the button? I think it may have something to do with btn-primary HTML Find Out More CSS .btn-xl { padding: 1rem 2rem } .btn-primary { background-color: #D5A021; border-color: #D5A021; } .btn-primary:active,...
Liam Docherty
1

votes
0

answer
374

views

Automatically update npm version number during bitbucket pull request

I want to automatically increment a version number in my package.json as I merge in a pull request (to master). This will trigger a build and deploy using the correct version number. Having to manually set the version number is irritating as multiple branches could expect to have the same version n...
Liam Steele
1

votes
2

answer
189

views

How to get Selected Listbox Items using devexpress in winforms app?

I am trying to get selected item text. I used this below code MessageBox.Show(listBoxColumnHeaders.SelectedItems); Output Devexpress.XtraEditors.BaseListboxControl+SelectedItemCollection But my text is Country Update I add listbox items from another class. That class called FilterColumnHeader using...
Liam neesan
1

votes
0

answer
196

views

How to include regex choices in python ArgumentParser.add_argument()?

How would I go about including regex expressions in the choices kwarg for Python's ArgumentParser.add_argument() method? For example, lets say I wish to create my own custom mount program: # file: my_mount.py from argparse import ArgumentParser # some simple choices to help illustrate option_choice...
Liam Deacon
1

votes
1

answer
65

views

Would a google cloud platform machine with many different CPUs allow me to run API requests through several differen IP addresses?

I am trying to query public utility data from an API (oasis.caiso.com) with a threaded script in R. Apparently this API will refuse requests from certain IP addresses if too many are made. Therefor I need to run many different API requests in parallel across different IP addresses, and am wondering...
Liam Purvis
1

votes
1

answer
488

views

How to pass array parameter to stored procedure in my case without changing C# code?

I have to pass the multivalue parameter to a stored procedure. The datatype which is passing from C# code is string[]. This is my stored procedure CREATE PROCEDURE spRecords @Department VARCHAR(MAX) = NULL AS BEGIN SELECT ItemDetails, Total, Department FROM ItemRecords WHERE (Department.Name IN (@De...
Liam neesan
1

votes
0

answer
368

views

How to make the datetime column shown correctly on the ms excel?

I was using below api to generate the excel file. var ws2 = XLSX.utils.json_to_sheet(dataForSheet, {skipHeader: true}); In the createtime column, only the date was displayed by default. Only when I click the cell, the datetime will be displayed. How can I resolve this issue? I hope the time displaye...
liam xu
1

votes
0

answer
58

views

Label 3D PCA with gene names

I am implementing a 3D PCA plot using this as a guide https://python-graph-gallery.com/372-3d-pca-result/ . The result gives me an idea how different gene sequences cluster together, in this example I've used 5 different genes, but this must be flexible. Everything works fine except the legend does...
Liam McIntyre
1

votes
1

answer
101

views

Capturing pointer by value in nested lambda leads to segfault

First of all, this is the most obscure problem I have ever had and thus is the hardest question to ask. I'll try make this question as articulate as possible by posting minimal code and providing some context. First of all here is the code where the problem occurs: // Before lambda, pointer variable...
Liam Rogers
1

votes
1

answer
207

views

Font loader postcss

I cannot get fonts to load up with postcss. I have the font files in my src directory like so: https://i.stack.imgur.com/KYCym.png My css file looks like this: @font-face{ font-family: Boxley ; src: url(./fonts/Boxley.ttf), format('ttf'); } @font-face{ font-family: Boxley-Bold; src: url(./fonts/Box...
liam paris
1

votes
0

answer
49

views

Using Gaussian Filter in C++ AMP returning wrong colours

I'm trying to use a Gaussian filter on a generated Mandelbrot set, and I have a solution that will work sequentially. However, I do want to have a solution that works using GPU processing. I'm using C++ AMP to use GPU processing. An issue with storing the individual color channels of the pixels is...
Liam_Foth
1

votes
3

answer
277

views

How to insert multiple rows into MySQL

I am new to MySQL (have just been using SQL Server) and I am wondering how to create multiple rows easily! I am looking to create about 300 rows, so the methods I have found online just don't seem practical enough.. When using SQL Server, you can just use a GO statement, and then enter a number afte...
Liam Broughton
1

votes
1

answer
174

views

Pass object via parcelable or load from DB [duplicate]

This question already has an answer here: Is it more efficient to pass large parcelable or pass id and query db? 1 answer I am practicing the MVVM model along with the Room and LiveData libraries. One implementation question bothers me is while I starting a new activity (for example, product list...
Liam.L
1

votes
0

answer
173

views

JSON Parser to TXT files

I use a programme called FIBA LiveStats, which records basketball game statistics and processes them in links like this. What I want to be able to do is use the data on our livestreams. OBS Studio only uses .txt files to import text that can be updated live. It doesn't work with JSON etc. I would li...
Liam Collins
1

votes
1

answer
41

views

Want to have multiple <div> elements in the same space, disappearing and reappearing on selection [closed]

Basically what I would like is to have on the left a panel of selectors and on the right the content. When you tap a link on the panel, the right updates with that content EDIT: Forgot to add code. Sarcastic clap At the moment I am using Bootstrap, but it does not work. This is how the selector look...
Liam Doyle
1

votes
2

answer
469

views

@RequestBody mapping complex json object

I need to convert below json to java object of @RequestBody. { 'entity': { 'id': 3, 'name': 'james' }, 'conjunction': 'OR', 'conditions': [ { 'operation': 'equalTo', 'dataKey': 'department', 'dataType': 'string', 'value': 'abc' }, { 'operation': 'notEqualTo', 'dataKey': 'ID', 'dataType': 'number', '...
liam xu
1

votes
1

answer
45

views

Add 1 to each cell in every row of two columns until a blank cell is reached - Google Spreadsheet

All I'm looking to do is add 1 to a range of cells until it reaches a blank cell. I'm also minus 1 from a another range of cells until it reaches a blank cell. I've currently codded each cell individually but the number of cells with data in changes so isn't really practical. Here is an extract of c...
Liam Sheppard
1

votes
0

answer
400

views

Android Studio - Creating a Loading/Splash Screen for WebView

I have followed through this tutorial (I am completely new to Android Studio): Loading/Splash Screen Tutorial and I am unsure why my code isn't working correctly. I get the loading circle come up on the app I have created, but it does not go away when the app loads the webpage. I have gone over my c...
Liam Broughton
1

votes
0

answer
898

views

Hive tblproperties (“skip.header.line.count”=“1”) not working with select distinct

We have a little problem with our tblproperties ('skip.header.line.count'='1'). If we do a basic select like select * from tableabc we do not get back this header. But once we do a select distinct columnname from tableabc we get the header back! Of course we do not want this for obvious reasons. Did...
Liam
1

votes
1

answer
37

views

Stoping a Regex String after a certain point

I am trying to get a regex string working, i have been playing around for a few days and seem to be hitting the lovely fu wall. I need a way to stop the regex from matching after @username my Regex string looks like this (app plex) ?(?:@(.*)|) so say the input was app plex @zycore look at this, the...
Liam Moore
1

votes
1

answer
73

views

Running code every x seconds using map from database

Using golang's time.NewTicker, I am trying to run each record from a database (consisting of text and a timer, i.e the number of seconds before it repeats) but it is only repeating the first record it grabs func LoadTimedCommands() map[string]time.Duration { database := InitializeDB() rows, _ := dat...
Liam Murnux
1

votes
1

answer
40

views

Simple math formula bringing back Null/Zero

I'm struggling with what should be a simple formula in SQL, however it's proving to be difficult as it's bring back Zero/Null. The formula should bring back the difference from one number to another The simple line is - ISNULL ((b.BilledSupplies - b2.BilledSuppliesPreviousMonth) / nullif (b2.Billed...
Wil-Liam
1

votes
0

answer
29

views

Do Spring cloud server and client versions need to match?

In a project I am working on, I have a server running Spring Boot 2.01 and Spring Cloud Finchley release. Can this server communicate with a Spring Cloud config server running Sping boot 1.5 and Spring Cloud version Edgware SR4? Is there any dependency between Spring Cloud client and server versions...
Liam Carr
1

votes
0

answer
132

views

Pusher/Chatkit: InstanceID in the path and access token don't match

What? I am currently building a react native app with chatkit, however the authentication seems to fail and keeps bringing back the following message: Instance ID in the path and the access token don't match I'm using Laravel as a backend and have the following route: Route::post('/chatkit-auth-user...
Liam Maddison
1

votes
1

answer
111

views

How to correctly logout when using roles

when using roles in TestCafe I can't seem to get roles to correctly logout. Or, more importantly I can't get two consecutive tests to execute using the same Role. A little background: I am testing an enterprise website (Sorry, cannot share) that requires a login. When using t.useRole(account) the lo...
Liam
1

votes
0

answer
345

views

About classpath:/META-INF/resources in spring

I am using below content to configure the swagger in springmvc.xml. But I does not understand the internal. Why can i visit http://localhost:3333/swagger-ui.html? There are so many jar files in my project. Why the path swagger-ui.html will point to the content under springfox-swagger-ui-2.6.1.jar!\M...
liam xu
1

votes
0

answer
493

views

Is setTimeout() in JavaScript synchronous or asynchronous? [duplicate]

This question already has an answer here: non-blocking setTimeout in javascript vs sleep in ruby 2 answers Wait 5 seconds before executing next line 12 answers I have the following function that utilises the setTimeout() function someElement.addEventListener('click', function () { someElement.clas...
Liam
1

votes
1

answer
538

views

Locust passing headers

Is it possible to have Locust pass a header command with a secure token to load test an API? I am trying to test our api for an encoder with a header flag for a token as the server being tested has to receive a token with the request, ie. curl -H “Authorization: Token token string” http://somese...
Liam Douglas
1

votes
0

answer
39

views

UILongPressGestureRecognizer Not Running Action or Is Not Recognized Despite Being Added to Views GestureRecognizers and Being Configured

I am using swift for an ios app, and it (of course) uses various gesture recognizers. I have not had too many problems with them up until now: I am using a UILongPressGestureRecognizer, and I think it is configured correctly (I just looked in the documentation and set my instance of UILongPressGest...
Liam Keeley
1

votes
0

answer
78

views

Too few arguments to constructor using ConfigFactoryInterface

I'm trying to use ConfigFactoryInterface in a class constructor function this way: use Drupal\Core\Config\ConfigFactoryInterface; class MyClass { /** * @var \Drupal\Core\Config\ConfigFactoryInterface */ protected $config; /** * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory...
Liam Arbel
1

votes
0

answer
295

views

iOS shortening a firebase dynamic link returning an error

I have an iOS app that creates a firebase dynamic link based on a url passed to it. Creating the link works fine but when I try to shorten it, the completion handler return the error: Error Domain=com.firebase.durabledeeplink Code=0 'API key is missing.' UserInfo={NSLocalizedFailureReason=API key i...
Liam
1

votes
0

answer
107

views

How to change directory when activating conda environment in Windows

Based off of this Q&A (answered by Nehal J Wani) it seems that it's possible to create and then modify a certain config file in order automatically change directories when activating a conda environment. Does someone know how to do this in Windows and/or can just translate the below code to Windows-...
Liam Hanninen
1

votes
0

answer
11

views

Google Places API Search, Instead of 20 Results can I get lower than 20 so 10 etc?

So i'm currently loading in the places from the google places API, and obtaining the 20 results with the next page token. However is it possible to obtain say 10 results instead of 20? Thanks!

View additional