text
stringlengths
15
59.8k
meta
dict
Q: How do I set the QComboBox width to fit the largest item? I have a QComboBox that I fill with QString using: comboBox->addItem(someString); When I start my GUI application the width of the QComboBox is always 70, even if the smallest item is much larger. How can I dynamically set the width of a QComboBox, for insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/3151798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Watson Speech to text could not resolve host I'm trying to use the ibm watson speech to text service. Using Curl and the appropriate credentials i'm getting an error and don't understand why. I'm new to this so i need some help I'm using this command-lines to get the text out of an audio file: curl -u username:pas...
{ "language": "en", "url": "https://stackoverflow.com/questions/35104090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: convert string hours:minutes:sec.milisec to seconds An absolute time is given in stored in this format: time = "000:03:07.447" How can this string be converted to seconds in an elegant way? Update: As suggested by Harper89 3600*#1 + 60*#2 + #3 & @@ ToExpression[StringSplit["000:00:04.424", ":"]] Szabolcs suggested...
{ "language": "en", "url": "https://stackoverflow.com/questions/9278771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to check ReactDOM.render method to be called with a react component argument? Code here: index.tsx: import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export function Loading(props) { return <div {...props}>loading...</div>; } export class MyComponent extends Component { static sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/66594037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the max datetime for particular date among multiple dates, data example is as below Table has this value: Heading 1 Heading 2 xyz 01-APR-2022 12.11.21.000000000 AM xyz 01-APR-2022 12.11.29.000000000 AM xyz 01-APR-2022 12.12.21.000000000 AM xyz 02-APR-2022 12.09.21.000000000 AM xyz 02-APR-2...
{ "language": "en", "url": "https://stackoverflow.com/questions/72160581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm getting Error in typeof(x) : object 'ParcelArea.m2.' not found I am getting this strange error {I'm getting Error in typeof(x) : object 'ParcelArea.m2.' not found } even though I see the variable name in my dataframe. > names(Cadastral) [1] "CadastralZoneNameAB" "CadastralZoneCode" "ParcelCadastra...
{ "language": "en", "url": "https://stackoverflow.com/questions/51517179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collision detection with rotated sprites, how to get correct bounding Rect? I am currently creating an android game and implemented collision detection a while back. I am simply drawing a Rect around sprites using their position, width and height and seeing if they intersect other Rects. However, my sprites now rota...
{ "language": "en", "url": "https://stackoverflow.com/questions/14468793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to paginate listview in jQuery-Mobile? I will like to display a long list in jQuery-Mobile, but I will like to split the list into multiple pages with previous - next buttons similar to gmail applications. The number of items per page will depend on the page height and will be different. Even the answer on how t...
{ "language": "en", "url": "https://stackoverflow.com/questions/6766842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: problem converting calendar to java.util.Date I need to create a java.util.Date object with an Australian timezone. this object is required for tag libraries used in downstream components (so I'm stuck with Date). Here's what I have attempted: TimeZone timeZone = TimeZone.getTimeZone("Australia/Sydney"); GregorianCa...
{ "language": "en", "url": "https://stackoverflow.com/questions/4129906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Old Session id not available app.py file having flask application. test_app.py file having code related request module to invoke flask app url with id values. Both app.py and test_app.py i am ruing in two different command prompt. when request is sending 2nd time with id="10122" from the test_app.py the old session ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58040155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: django css setup not working I followed some tips from related questions in here, and tried the documentation but failed so far to get css file working. Note that css (obviously) works perfectly fine if I place it within the template, but I can't import it from static folder. So in my app folder, I created a static ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39168010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sqlite3 "OperationalError: near "(": syntax error" python simply put i am trying to make a sql database table and input data into it. I have it working in a simpler way, but when I put it into my script it results in this error. I'm hoping its something simple I missed. Any help/advice would be greatly appreciated. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30257826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to read large xlsm files using apache POI I am trying to read a large xlsm file for which i am getting heap space error,i am using XSSFWorkbook for the large file but still i am getting this .And also i have set the VM argumets -Xmx1024m to eclipse.Here is my code public class TestSJXLSX { public static void ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/48764425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reassign the values to a textbox after navigating to the backpage in Windows8 metro apps I have created two Pages Page1.xaml and Page2.xaml in windows8 metro apps. I have created one textbox and Hyperlink in Page1.xaml. Clicking that Hyperlink button after entering some text in textbox in Page1.xaml. Then its...
{ "language": "en", "url": "https://stackoverflow.com/questions/11189908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Socket.io like PHP Implementation I am working on a little personal project on Ionic2 framework, and one part of my application requires a chat to be implemented. So I went and read about Socket.IO and it's implementations and it is really awesome. But the drawback for my project is that the frontend will not be abl...
{ "language": "en", "url": "https://stackoverflow.com/questions/41705473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Slow debugging with VS2015 and Trend Micro anti-virus in our corporation we are using Trend Micro Anti-Virus. I noticed that when debugging, the "Manages the Trend Micro unauthorized change prevention" process hogs up to 50% CPU usage every time VS is hanged while debugging, and drops down to 0.x% when VS is freed. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40717049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can a static class be resolved by the Unity Framework? I wold like the unity framework to resolve a static class "MyStaticObject" specified in my config file. As my class is static, I am getting an error "The type StaticObject does not have an accessible constructor." My config file looks as below: <unity> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2562285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to capture a stringified text "2,000.00" in bytes without the "," and convert it to float64? My goal is to capture a stringified text "2,000.00" in []byte without the , and convert it to float64. The problem is the regex captures Group MUTASI with the , The code package main import ( "bytes" "fmt" "...
{ "language": "en", "url": "https://stackoverflow.com/questions/73558835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to run Openstack-Swift java api? I try to run Openstack-Swift java sdk sample. I have swift and keystone project to use swift only. I found this project : https://github.com/woorea/openstack-java-sdk But, I don't know how to run this project in Window Eclipse. Should I build all project(nova, etc..) in maven? Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/19784740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent the user data from being inserted in DB every time the page reloads? I have this function where I check if user can join a channel and then I insert this data to DB. The problem is it gets inserted every time I reload the page. How to prevent this from happening? Broadcast::channel('chat', function ($...
{ "language": "en", "url": "https://stackoverflow.com/questions/58129046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identify a set of strings and remove them from a column I'm trying to loop through a column and remove any characters from the start of the row, that falls under my predefined set of strings. Reproducible Example df <- data.frame(serial = 1:3, name = c("Javier", "Kenneth", "Kasey")) serial name 1 1 Javi...
{ "language": "en", "url": "https://stackoverflow.com/questions/55803099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access GH ACTIONS_STEP_DEBUG from an SSH command / environment variable As far as I understood, the "secret" ACTIONS_STEP_DEBUG is set to true when you relaunch a workflow in "debug mode" on Github Actions for a repository. Now I'd like to hook onto this like a switch to print additional information from python comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/72963161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: monitor kuberntes cluster which created using kops with prometheus running on different vpc I created a kubernetes cluster on aws using kops so it created the certificates on its own. so next is to add kubernetes api server in prometheus configuration. I used the below prometheus configuration. - role: node api...
{ "language": "en", "url": "https://stackoverflow.com/questions/48584896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to center a string in a batch file I'm making a batch game, and i want the player write the name of your character, and that name appears on the screen inside a text box. Like this: @echo off color 0a setlocal Enabledelayedexpansion mode 80,30 set /p nickname=Enter your nickname: pause cls echo. echo +--...
{ "language": "en", "url": "https://stackoverflow.com/questions/34729834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validation Summary for Collections EDIT: upgraded this question to MVC 2.0 With asp.net MVC 2.0 is there an existing method of creating Validation Summary that makes sense for models containing collections? If not I can create my own validation summary Example Model: public class GroupDetailsViewModel { public s...
{ "language": "en", "url": "https://stackoverflow.com/questions/2466480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Salesforce to SAP connection inside Azure I am trying to connect Salesforce to SAP inside Azure. So far I've come across three ideas to do so. * *Generating IDOC messages in SAP using logic Apps? Is it possible, if so what configs do we need here? *Using FTP/SFTP *Using APIs/Web Services? If you have tried to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/68501778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Issue Writing/Reading Dates when using MS Excel VBA to MS ACCESS Database I'm developing an app in MS Excel (2019) in which I'm trying to write/read a date to MS Access (2019, same suite) via MS Excel VBA code, then retrieve it. But no matter how I enter and format the date, all I get back from MS Access is gibberi...
{ "language": "en", "url": "https://stackoverflow.com/questions/74946478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Example of using scoped try_shared_lock and upgrade lock in boost I have a thread pool that is using shared mutexes from the boost library. While the answers to my other question were helpful, Example of how to use boost upgradeable mutexes What I have realised that what I actually need is not to block if a shared l...
{ "language": "en", "url": "https://stackoverflow.com/questions/3963771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP OOP: Parenting objects/functions? How is parenting functions in PHP done properly according to the following example? Can I make sure that my array isn't overwritten and the previous values inside array lost, on each addArray call? function arraybase() { $this->array = new ArrayObject(); return $this; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/2930345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to restart SoapUI's JVM? I am currently testing some changes to SoapUI JRE's settings on 'Preferences -> SSL' tab and to apply changes I close and then open again a SoapUI instance. (Windows 10; SoapUI 5.3.0) Is there a better (smarter) way of restarting SoapUI's JVM? Preferably the one without closing the insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/45818212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Templates {{each}} - How to address the underlying objects individually? I got the data collection: var messages = { 0: {who:'aaa', age: 33, id: 2}, 1: {who:'bbb', age: 44, id: 3}, // ... }; I got the template: <script type="text/jquery-template" id="chat-message-template"> {{each $data}} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35557282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does one get Properties using Reflection, while ignoring the inherited properties? To get the properties is not big deal, but I don´t want to get the properties inherited from another class. The bindingFlags option doesn´t have any option of this kind. Is that possible ? cheers A: Use BindingFlags.DeclaredOnly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3407767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Validation for form on Button Click I have a form where I have many textboxes which are getting validated through Required field validator, But there is a captcha control also which is not getting validated. However I can validate it through javascript. Here alert gets displayed when I click on 'OK' of alert messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/24166435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access denied exception using C# / UWP The execute() function is linked to a button press. The first time it is pressed - everything runs the way it should/ The second time is is pressed (within the same execution of the app; if I close and re-open it works fine) - on the DeleteAsync line I get this exception: An e...
{ "language": "en", "url": "https://stackoverflow.com/questions/38988937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qt: how to dynamic change the position of other widget? Let's say I have a GUI: When I click the left button, I expect the object would locate at left just like: layout.addWidget(object) layout.addStretch() How can I dynamically change the position? from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.Q...
{ "language": "en", "url": "https://stackoverflow.com/questions/73081149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stretch an iframe with width and height of parent I've got a module in my Nextjs app that shows events that are currently being live-streamed. Within this module I've got an image preview with a play button that, when clicked, takes you to the live event. What I'd like to do, however, is have this preview be the Vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/70793223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between `raw.githubusercontent` and raw in the URL itself When I see URLs like https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh, it contains "raw" in the URL itself. However when you actually go to that URL, it redirects to "raw.githubusercontent", same as when you went to that f...
{ "language": "en", "url": "https://stackoverflow.com/questions/73344633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: css with background image without repeating the image I have a column (lets assume the width is 40px) and there I have some rows. The height of the rows depends on the length of text (if the text is long then there is a break line and therefore the height increases). Now I want to display an icon in each row next to...
{ "language": "en", "url": "https://stackoverflow.com/questions/8039094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do I use axios in vue3 I created a project in vue2 and now I'm migrating to vue3. I had an api service which looked like this: import Vue from "vue"; import axios from "axios"; import VueAxios from "vue-axios"; import JwtService from "@/common/jwt.service"; import { API_URL } from "@/common/config"; const ApiSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/70183784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do Form Customization for Unhiding Fields I am new to Ax,I am doing an customization on form.When I click on show more fields I want to show three more fields on form which are hiding(FieldC,FieldD,FieldF).Please tell me how to achieve this Functionality. A: You can check an example in form VendTable > Desi...
{ "language": "en", "url": "https://stackoverflow.com/questions/55547712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: masm x86 Assembly Is it possible to check if an address is allocated or not? In masm, you can statically allocate memory using the .DATA, and .DATA? directives, and that is great, but what if I needed to allocate a block of memory dynamically? Lets say that I wanted to create a DWORD with the value 10 in dynamically...
{ "language": "en", "url": "https://stackoverflow.com/questions/45247997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery Tools overlay draggable I have an overlay with the apple effect from jQuery Tools. I want to make it so the overlay is draggable, but when I use $( ".overlay" ).draggable(); the background image does not drag with it. I tried appendTo but it destroyed the apple effect. Also the image for the overlay is render...
{ "language": "en", "url": "https://stackoverflow.com/questions/16705573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OMNet ++, SUMO and Veins with or without INET I just successfully accomplished the Veins (with OMNet++ and SUMO) tutorial (http://veins.car2x.org/tutorial/), but noticed that it did not use INET. Other YouTube tutorials on Veins use INET with Veins, almost as if it is a given. What is the benefit of incorporating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74647186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: D3 data processing choice I have a question about which kind of data I should send to client for visualization: I have an web that needs to display both processed data and database-like data(Processed one is from database-like) So now I have 2 choices: * *Send to client Database-like data and process the logic th...
{ "language": "en", "url": "https://stackoverflow.com/questions/36568616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print value of a hashmap? When I execute the below code: map.forEach((key, value) -> System.out.println(key + ":" + value)); I get 15234:[com.org.myprj.Dashboard@18a6be14] as sysout. How to I get object value in hashmap? Here object is a row inserted in arraylist. A: implement overridden toString method in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61522015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to Add External CSS in Laravel 5.4 I am new in Laravel... web.php <?php Route::get('/', function () { return view('method1.home'); }); home.blade.php @extends('dashboard') dashboard.blade.php <!DOCTYPE html> <html class="no-js"> <head> @include('includes.head') </head> <body> do something... </body> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51361225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby find where before updated_at I am trying to search for results where the updated_at on one result is after the created at of another this is my code in a short and sweet version i am getting a syntax error PG::SyntaxError: ERROR: syntax error at or near "13" LINE 1: ...ERE ((group_id = 14 and created_at >= 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/41270689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dicom data training failed by pytorch I've got a problem about training the Pytorch models. I'm trying to train my Pytorch model using dicom data and nifti GT However, the size of the weight file is ridiculously small because model training is not performed normally. I used network model Unet++ I think there is a pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/70091655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP: How to get timezone value (ex: Eastern Standard Time) from timezone name (ex: America/New_York)? Is there a PHP function anywhere which converts between the timezone name (such as those found here: http://php.net/manual/en/timezones.america.php) and the "value" such as Eastern Standard Time, or Pacific Daylight...
{ "language": "en", "url": "https://stackoverflow.com/questions/37146226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unity: How to represent grid map data in ECS I have been trying to work with Unity's pure ECS approach to make a basic nxn grid of tiles. Before using ECS I would just use a 2d array Tiles[,] grid where I can simply index (x,y) to find the tile I want. Now moving into ECS, I want to create an entity for each tile us...
{ "language": "en", "url": "https://stackoverflow.com/questions/51905153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add T-SQL in maintenance plan in SQL Server How can I set a T-SQL statement as a part of a maintenance plan in SQL Server? Since I can see options of backup etc but not the possibility of adding T-SQL A: I am not sure why you are looking to set up a maintenance plan.But, the alternate approach would be to set up a...
{ "language": "en", "url": "https://stackoverflow.com/questions/55528827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: position:sticky does not leave parent How can make an element sticky, so it stays at the top of the viewport? I want the element to remain sticky even if it leaves it's container. I tried this HTML <div class="page"> <div class="parent"> <div class="child-sticky"> <p>i want to be sticky, even when I'm ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/46913063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Draw Hexagonal Shapes using jQuery Is it possible to draw hexagonal shapes using jQuery, HTML and CSS? If yes how can we do that? A: jQuery doesn't draw things. You could do this using CSS + HTML only. Here is a cool tutorial showing one way it could be done: http://jtauber.github.com/articles/css-hexagon.html Note...
{ "language": "en", "url": "https://stackoverflow.com/questions/15274867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to Compile Consumer-Producer-ApI in Linux I want to ./waf consumer-producer-api but it show some error CXXFLAGS error and onChanged() error. please help me... I use linux-mint and set up complete ndn-cxx and openssl $./waf configure Setting top to : /home/ndn/ntorrent/Consumer- Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/47470381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React: Absolute Position In Child Components Introduction: I have a React component structure that looks like this. -- ParentComponent.tsx -- <div>Some Content Here</div> <ChildComponent/> <div style={{ position: "relative", zIndex: "1" }}> Some Other Content -- should be covered when the absolutely positioned c...
{ "language": "en", "url": "https://stackoverflow.com/questions/74542463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nstimer count down not working as expected I am using nstimer to show count down timer in a label. I am able to start the timer and show the count down in the label but the timer jumps to next second rather than showing every second. If the count down timer is set to 10 sec then it shows only 9,7,5,3,1 in the count ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40741035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Discord.py bot events formatted exactly the same yet one runs and one won't run I've recently been experimenting with discord bots and the discord API, but I have come to a problem with bot events. When made two events using the discord.py module, only one would work while the other one did not, yet both were forma...
{ "language": "en", "url": "https://stackoverflow.com/questions/54337435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: New Relic Plugin with Custom Page Since New Relic is a kind of “heart” of the operation of our IT Infrastructure, I would like to add static pages that has links to our Knowledge Base system, javascript based live debugging, etc. I imagined something like to a Plugin that, instead of having graphs, it is HTML sectio...
{ "language": "en", "url": "https://stackoverflow.com/questions/18787024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a dynamic grid with jquery I'm trying to create a dynamic grid using jquery where it will eventually change with user input (i.e. 16x16, 32x32, etc). My logic is to create 16 rows and then 16 squares within each row, but I'm having trouble getting the squares to append the correct amount. $(document).ready(fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/38964952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not sure how to add image variance to php/sql population of HTML table Situation I am currently populating an HTML table using PHP, which is working just fine using this code: <?php while ($row = mysqli_fetch_array($result)) { $lineID = $row['lineID']; $ediShipDate = $row['ediShipDate']; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26939627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable CheckedListBox Autoscroll on item checked? Situation: I have a CheckedListBox with a horizontal scroll bar enabled with CheckOnClick set to true. The size of the CheckListBox is such that two column of items is shown. Issue: When the user clicks on an item in the second column to check it on or off, the hori...
{ "language": "en", "url": "https://stackoverflow.com/questions/23370714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparing columns in a list I have done splitting on the csv file(link given below) and my data output is given below. I need little help in comparing country column and return only the movie names that are made in the USA only. How do I do that? data = open("movie_metadata.csv", "r").read().split("\\n") movie_data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51430857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Download table generated independetly in renderTable output in R shiny I am trying to generate a table using the renderTable function in R shiny and then use the downloadHandler function to download that table/data.frame as a csv file. Somehow I keep getting the following error: An error occured during download: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50590056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gitlab-ci reference environmental variables in ssh command I have the following command in my gitlab-ci.yml file: - rsync -v -e ssh /builds/Sustersic/untitled-combat-game/build username@1.1.1.1:/var/www/html I tried re-writing this command with environemntal varibales: - rsync -v -e ssh /builds/Sustersic/untitled-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/60064869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a symlink in WAMP server on Windows I am working on a downloaded version of an application and am getting multiple errors due to: ( ! ) Warning: include(/home/USERNAME/public_html/dir/includes/functions.php): failed to open stream: No such file or directory in C:\wamp\www\dir\includes\db_connection.php on l...
{ "language": "en", "url": "https://stackoverflow.com/questions/35648882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Getting web.config error when publishing my ASP.Net website I'm trying to publish my first ASP.Net website, but I'm getting this error when I try to visit the homepage. Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. Here's the section of the web.config file it is referen...
{ "language": "en", "url": "https://stackoverflow.com/questions/41278584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use of Local_policy.jar and US_export_policy.jar and What is the use of these jars: Local_policy.jar US_export_policy.jar I have seen other SO questions where they are asking how to upgrade. My question is what's the use of these jars. It seems they come as a violation in open source. A: THEY ARE OBSOLETE (at lea...
{ "language": "en", "url": "https://stackoverflow.com/questions/65221732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rails atttr_accesible not working as documented In rails 3.2.1, I have a model: class Player < ActiveRecord::Base attr_accessor :password attr_accessible :email, :password attr_accessible :email, :password, :confirmed, :as => :admin end I keep getting a ActiveModel::MassAssignmentSecurity::Error for the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/9743232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does bootsfaces work with jsp servlets? I am trying to migrate a project which has been working of JSF1.2 to JSF2.1 and have succeeded in doing so ,now we want to use bootsfaces1.0.2 in the project to enhance look and feel of the application. Our codebase is pretty old and we want to stick to JSP to avoid complexi...
{ "language": "en", "url": "https://stackoverflow.com/questions/42792325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why can't update my form even though my session is working php So i want a very simple update page like this example: <?php $sql_article = "SELECT* FROM articles WHERE article_unique_id = '". $_SESSION['article_unique_id']."' "; $result_article = $conn->query($sql_article); if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42447475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add known_hosts for passwordless ssh within docker container in docker-compse.yml? I want to have passwordless ssh within two docker containers. How to add known_hosts entry for that using docker-compose.yml file I want to implement ansible on docker env. To deploy and run rpm on deployment node, I need passw...
{ "language": "en", "url": "https://stackoverflow.com/questions/48258546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it a good practice to use alternate exchange in RabbitMQ as dead letter exchange? I know that RabbitMQ has alternative and dead letter exchange types. Since we don't have mapped queues for some message, from my perspective it is some kind of problem when we don't know what the message is. In this case we use alt...
{ "language": "en", "url": "https://stackoverflow.com/questions/47463274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where do I merge or add the drop down menu script on the header. Jsfiddle I'm trying to merge 2 codes. I found the two codes I'm looking for. I'm really new @ this so please under stand. This is the header footer & background: http://jsfiddle.net/F6dez/ This is the drop down menu: http://jsfiddle.net/Mrdel/Wxs5n/2/...
{ "language": "en", "url": "https://stackoverflow.com/questions/24541818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Server to Server communication with IBM SBT I would like to use the IBM SBT for server to server communication instead of displaying data from , for instance, connections at the user. In this particular usecase I would like to have data updated in Connections whenever a user saves or edits data. Because we are not...
{ "language": "en", "url": "https://stackoverflow.com/questions/21525351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JS - function take a double result I got problem with this script: <script> var start = 400; var interval = 40; function counter() { return start -= interval; } var stop = setInterval ( function add() { if (counter() > 0) document.getElementById("test").innerHTML = counter(); else clearInterval...
{ "language": "en", "url": "https://stackoverflow.com/questions/28355577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Git merge to master delete unchanged files? I have a two branch first one "master" second one "newFeature" In the master branch, I add some file and change some functions it does not exist in newFeature branch and the same in newFeature have added some new files/code AND Change file it exists in two branches a...
{ "language": "en", "url": "https://stackoverflow.com/questions/60791476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Symfony All blank pages after cache clear I recently was making changes to my Symfony 2 site and then did a clear cache command on the site. Afterwards when I returned to the site the pages were blank. Here's the command I ran app/console cache:clear --env=prod I've heard that it might be related to file permission...
{ "language": "en", "url": "https://stackoverflow.com/questions/17729973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I test this async piece of code in Flutter using Mockito? I am trying to write some test for an app, but I can't test values stored in a provider. I am relatively new to testing, so there might be something that I am doing wrong, but anyway. What I want to test is to verify is two values are not the same, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/75493892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVVM Sync Collections Is there a standardized way to sync a collection of Model objects with a collection of matching ModelView objects in C# and WPF? I'm looking for some kind of class that would keep the following two collections synced up assuming I only have a few apples and I can keep them all in memory. Anoth...
{ "language": "en", "url": "https://stackoverflow.com/questions/1256793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: ui-grid columnDefs error I have a general purpose angular controller, which displays a grid view of data. I use it in multiple places of the page by providing different data. I want to customize the column definition in html using ng-init like this: <div ng-controller="DataTableController" ng-init="setColDefs([{fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/34796280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to display a picture function rpsGame() { var textAnswer = document.createTextNode('You chose a paper'); document.getElementById('this').appendChild("textAnswer"); } <img id="paper" src="./paper.jpg" height=150 width=150 onclick="rpsGame()"></div> <div class="answer"> <div id="this"></div> </div> </di...
{ "language": "en", "url": "https://stackoverflow.com/questions/64260045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does chrome sometimes fail to redraw the page when I expand the browser window? I'm currently working on a responsive design site prototype. So far so good, but for one really strange thing which I can only seem to reproduce in Chrome. When expanding the window, sometimes the browser seems to get trapped between...
{ "language": "en", "url": "https://stackoverflow.com/questions/11633023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Read JSON data in JavaScript I Have method in my controller which returns json data. public JsonResult Data() { return Json(model, JsonRequestBehavior.AllowGet); } Now how do i read and store above returned data using jQuery? I am trying belwo $("#btn").click(function () { $.getJSON("Controller/Data", funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/30570421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Class name is marked as 'not covered' while running code coverage in Android Studio I have tried AndroidStudio's code coverage feature and I have met a strange issue: It is marks the tested class's name as 'not covered' code. How is that possible? Is that a bug? Picture here: As you can see it has one method with 4...
{ "language": "en", "url": "https://stackoverflow.com/questions/42348077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Post a Facebook Story as map with C# is not working I am trying to post a Facebook story with a map attachement. I can post the story successfully, but the attachement is not shown as map. I am using the Facebook C# SDK (http://facebooksdk.net/). This is how I set up the story: The custom object is set up with a cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/21140975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: custom taxonomy sort order not working I have created a custom taxonomy named product_categories. It has three fields : * *for banner image *for category image and *for sort order. I have added 10 categories in it giving its sort order input also. Now i want to show this in sorting order but it is not workin...
{ "language": "en", "url": "https://stackoverflow.com/questions/36277018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Optimize Animation.Sample I'm trying to optimize the animation. As I see in profiler, about 20% of my CPU used for 'Animation.Sample'. Is there any way to reduce the sampling accuracy to gain performance. A: Unless you want to write your own animation system for Unity, which would be probably slower due to U...
{ "language": "en", "url": "https://stackoverflow.com/questions/26249029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print result if statement to exec is an expression In python, if I exec a statement which prints a value, I will see the output, e.g., exec("print 10") gives me output 10. However, if I do exec("10") I got nothing as output, where as if I type 10 in the interactive shell I got 10 as output. How do I get this output ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42684108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wix Bootstrap prevent temp directory use I have builded "HelloWord" installer with the Bootstrapper Project for Wix v3 project type. My bundle.wxs is <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52977390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sequelize: can attribute have value from relation attribute data? i don't know if this is possible, there are 2 models which are associated through relation, and models are defined this way: sequelize.define('account_has_plan', { account_id: { type: DataTypes.INTEGER(10), allowNull: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37369931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: handle null from database I need to round and print a price like below, but this does not handle null values. How can I handle null values on one line of code? DBRSet is an SQLDataReader and the price is money type in SQL. <%= Math.Round(DBRSet("price"))%> I have about 200 .aspx pages of this so I could also use so...
{ "language": "en", "url": "https://stackoverflow.com/questions/5486185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to collect a List to a Map> using Java lambdas? I have an object Foo that has references to Bar and Baz objects: public class Foo { private Bar bar; private Baz baz; public Foo(Bar bar, Baz baz) { this.bar = bar; this.baz = baz; } } I have a List<Foo> that I'd like to convert into...
{ "language": "en", "url": "https://stackoverflow.com/questions/53732841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to add `alt + mouse left click` as shortcut key in key map of android studio 3.0 (Ubuntu 16.4 LTS) I am trying to add alt + mouse left click as shortcut key in keymap but it only take alt or mouse-click and It takes nothing when try to add both. Please help to resolve this issue.Below is the screen: A: You sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/48060177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Angular CLI: Generate htaccess using base-href With Angular CLI the base href in index.html can be set on build, e.g. ng --base-href /folder/someproject/. This is very useful for automatic deployment processes. But projects like this may require a .htaccess also setting a base like so: RewriteRule ^(.*) /folder/some...
{ "language": "en", "url": "https://stackoverflow.com/questions/45420646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Serilogs not working in linux server in aspnet core 2.1 I'm creating dotnet core 2.1 project.I used serilogs.In my windows machine it's working fine.But after hosted it,serilogs not working.Not creating logs folder and log file.I hosted it in ubuntu 18.04 version server. I tried it by creating logs folder manually a...
{ "language": "en", "url": "https://stackoverflow.com/questions/53906470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Modify PDF file uploaded in the request body in nodejs I'm trying to modify a pdf file that I get from the request then saving it in my server, I achieved to save it first as I received it from the request body and then modifying it, and once more saving it again with the modified version, but I was looking for anot...
{ "language": "en", "url": "https://stackoverflow.com/questions/75393620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to combine basename and filepath into a specialized list - R? I have a folder containing a variety of .img files. I can list all of the files in the folder using the following method: files = "C:/imagery/Landsat" rlist=list.files(path = files, pattern="img$", full.names=TRUE) > rlist [1] "C:/imagery/Landsat/...
{ "language": "en", "url": "https://stackoverflow.com/questions/29303419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add internet permission to a Winform app in visual studio for windows Hello I am developing a Winform app, but I can't seem to see how to add internet permission to the app. Or does Winform have automatic default internet permission? A: Any desktop app (including WinForms) has access to the network by defa...
{ "language": "en", "url": "https://stackoverflow.com/questions/67137786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: change an ascending sort to descending I have the following code to sort a list but I need to make it a descending sort, List list = new LinkedList(thismap.entrySet()); Collections.sort(list, new Comparator() { public int compare(Object o1, Object o2) { return ((Comparable) ((Map.Entry) (o2)).getValue())...
{ "language": "en", "url": "https://stackoverflow.com/questions/12755736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to exclude a jquery event for a popover I am facing an issue where a generic javascript in my appliaction is causing my popover to hide. Below is the generic code. $(document).on('mouseenter mouseleave', '.popover', function(event) { if (event.type == 'mouseenter') { //Code abc } else if (eve...
{ "language": "en", "url": "https://stackoverflow.com/questions/50976556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }