text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Split list of student according to their mark - haskell There is a list of students where
data Student = Student {
name :: String,
mark :: Mark
} deriving Show
data Mark = F|E|D|C|B|A deriving (Show, Eq, Ord)
I need to split it like that [(mark,[students with this mark])]
I made something like this:
splitToG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70294286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing data to collectionViewCell I'm want to use some custom struct in my collection view cell. I get the data from my API service and trying to pass it to my custom collection view cell.
I found couple answers but I still couldn't figure out how to do
Here is where I get the actual data:
func FetchFormData(l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49402387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android - rendering bitmaps from native code - nativeCreate bitmaps are not cleanedup from memory I am streaming a video in android and I decode frames in native code and then copy the pixels to a bitmap, then display the bitmap in Java using canvas.unlockandpost with a while loop for all the bitmaps.
Everything is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5082255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET web pages code behind So does the new ASP.NET web pages (also called razor pages) framework using the Razor view engine (referring to this: http://www.asp.net/webmatrix/tutorials/1-getting-started-with-webmatrix-and-asp-net-web-pages) not actually have any code-behind file? I looked on the samples and could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6797492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Populate a JComboBox with file names of a specific directory I want to populate a JComboBox with file names of a directory. Then, if selected, each field has to show a JList. How can i implement this?
Thanks
A: You can use File>>listFiles()
http://download.oracle.com/javase/1.4.2/docs/api/java/io/File.html
to get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5181410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Specflow 2.0.0 What is the alternative to using ScenarioContext.Current? I have upgraded to Specflow 2.0.0. with NUnit 3 (also tried with XUnit) and I want to be able to execute test cases in parallel in an attempt to reduce the elapsed time it takes to run the tests.
On attempting to execute the tests in parallel a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35128274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SalesForce REST API INVALID_SESSION_ID error using v38.0 I am using SalesForce REST API For my PHP Application
But, when I send request at "instance_url/services/data/v38.0" along with the access token , I get this error:
[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
I have a develope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51781035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java: changing the order of lines with while-loop I am new to programming and I would like to ask what should I do so that the final value of k will appear before the values of a, when I try to put it inside the loop it repeats the statement and when I put it before the loop, its value is 0.
System.out.printf("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69657048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript/jquery: focus() not working I want to focus a special id (in roundcube) by a keyboard shortcut. The html is
...
<div id="mainscreen">
<div id="messagetoolbar" class="toolbar">
<div id="mailview-left" style="width: 220px;">
<div id="mailview-right" style="left: 232px;">
...
I trie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23261224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: remove code duplication in java with custom getter This question isnt about selenium, but java in general
I have the scenario below, while trying to setup an automation framework using selenium and page object model -
public class SigninPage {
WebDriver driver;
private By emailInputSelector = By.id("user_e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68645012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML5 Dynamic Video Background here is my code
$("body").prepend("<div class='fullscreen-bg'><video loop muted autoplay class='fullscreen-bg__video' ><source src='https://www.iresearchservices.com/wp-content/uploads/2018/03/bgvideo.mp4' type='video/mp4'></video></div>")
<script src="https://ajax.googleapis.com/aja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51476316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get a regex to check that a string only contains alpha characters [a-z] or [A-Z]? I'm trying to create a regex to verify that a given string only has alpha characters a-z or A-Z. The string can be up to 25 letters long. (I'm not sure if regex can check length of strings)
Examples:
1. "abcdef" = true;
2. "a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/990364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to set unique for specific field from specific table? I have this where i have all features from database:
$features = Feature::all();
User can add new additional feature that will be added in this table, but i want to validate so if user enter something that is already in databse to get a message. So name need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41381582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: is there Material increment/decrement Button implementation for Android? is there by any chance a Material design implementation for increment/decrement button ? image for illustration
A: No, but it's quite simple to implement, you only need a linear layout with horizontal orientation, containing a button, a textvi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72383559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSOUP parse for android force closes I am trying to use JSOUP to get the menu data from a website (http://hdh.ucsd.edu/mobile/dining/locationdetails.aspx?l=11) but whenever I try to fetch the links, my android app crashes. What is the reason? This is the code I have
public class SixthFragment extends Fragment {
Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33975210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change Ruby and Rails version for the Rails base Docker image? Docker base image rails provides a full environment for Ruby on Rails. It pulls from the ruby upstream image. The rails base image specifies Ruby and Ruby on Rails versions.
What if we want to use different Ruby and Ruby on Rails versions?
Do we e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35353186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I download the oldest file of an FTP server? How can I download the oldest file of an FTP server?
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://192.168.47.1/DocXML");
request.Method = WebRequestMethods.Ftp.ListDirectory;
request.Credentials = new NetworkCredential("Igor", "");
FtpWebRespon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30280333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is SICP still recommended? I have some experience with python, I asked for a new language, and said that i am having a hard time implementing what I have learned. they suggested I learn SICP. Saying it uses a great language and teaches great programming fundamentals.
But I notice it was published in 1984. Do you gu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7431861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Normalize samples with ffmpeg I am writing application for music analysis. I wrote resampling module relying on ffmpeg. Currently, I have AV_SAMPLE_FMT_S16 but later I have converting to float, which can be time consuming.
Because I need samples to be in some reasonable interval I need to do some kind of normalizat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43213388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error on string literal jsp So I want to create charts from jsp using fusioncharts. I'd choose fusioncharts then JFree, canvasjs or any other because I'd experiences using it in php language. It should be no problem in jsp because jsp and php are literally same, mapping above html, with only differences is their syn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49504406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: Modify the internal behavior of a function by using decorator I'm learning to use python decorator.
def my_dcrtr(fun):
def new_fun():
return fun()
return new_fun
I realize the decorated function 'fun' acts like a black box inside the decorator. I can choose to use fun() or not at all inside ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47625767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Balance between use of Ajax on $.ready() and loading data already I have a page which has several independent sections. Data is to be populated in each section by different queries to the database.
In order to lower the page load time, I have ajaxified the loading of each section (following the Amazon.com philosophy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8708115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Constructor parameter in configuration class required a bean of type 'StratusAuthenticationEntryPoint' that could not be found Parameter 0 of constructor in ResourceServerConfiguration required a bean of type 'StratusAuthenticationEntryPoint' that could not be found.
I am using spring boot 2.6.6
Here is the code:
@C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72137263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Maven build war doesn't work properly on Tomcat 7 I've been working on a web app that and here's me configuration before I get started telling my story.
Configuration: IntelliJ IDEA 11 + Java 7 + (Maven + Jetty 8.0.1).
When I clean and build my app on intelliJ, everything works as expected and nothing goes wrong; p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13446101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I determine the start and end of instructions in an object file? So, I've been trying to write an emulator, or at least understand how stuff works. I have a decent grasp of assembly, particularly z80 and x86, but I've never really understood how an object file (or in my case, a .gb ROM file) indicates the sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24945174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does QFE_Richmond actually mean? I am developing a VBA add-in for Excel that uses the RefEdit control.
One of my testers pointed out that he couldn't use keyboard shortcuts while selecting cells. And I found the solution to this problem here: http://support.microsoft.com/kb/291110
Set the magical value QFE_Rich... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12428816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Assign a new column in pandas in a similar way as in pyspark I have the following dataframe:
df = pd.DataFrame([['A', 1],['B', 2],['C', 3]], columns=['index', 'result'])
index
result
A
1
B
2
C
3
I would like to create a new column, for example multiply the column 'result' by two, and I am just curio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66967545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python dictionary printing first word behaviour I'm learning python and am on the topic of dictionaries. I wrote the following dictionary:
Team={
('projectmanager','Asma'): 'Sara',
('ba','Richard'): 'Steve',
('tester','Asma'): 'Rob',
'developer1': 'Misbah',
'developer2': 'Mariam'
}
I then wrote ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43027477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect if a particular command has executed in terminal I need to detect if a particular command has run. for example if I do a git push I need to execute a build script in my fedora machine. Is there any way to do this.? we can use any facility in linux. Any help will be greatly appreciated.
A: You can try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37112531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: pkg-config file openmp dependency I want to write a pkg-config for a library that uses openmp internally.
My .pc file reads
prefix=/usr/local
exec_prefix=/usr/local
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: LightFEM
Description:
Version: 1.0.0
Requires: openmp
Libs: -L${libdir} -lLightFEM
Cflag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71926507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Spreadsheet node.js move a row or sort table Edit: I saw that I am not using the official google api. This is a package based on v3 of the google api. Here is the npm that I currently use.
I saw that google api v4 exists and has many more features than the npm package I currently use, would it be possible wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57201334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I change the width of a ScrollBar? I would like to change a TFrame's ScrollingBar width.
I know I could change all ScrollingBars in the system by:
SystemParametersInfo(SPI_SETNONCLIENTMETRICS,....
But how do I do it for a specific WinControl?
A: A lot of the code within Delphi depends on the width of scroll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1432704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NullPointerException in Silk4J Object Map Editor when pressing the Tab key After creating a new Silk4J Object Map entry manually (right click, "Insert new") and enter the item name, I press the Tab key to move to the Locator path input field.
In this case, a series of "Object not set to an instance of an object" err... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30995413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: functional usage of IDS Camera (pyueye) I am using IDS camera functions which I need to capture some images whenever the camera receives an external trigger.
"ueye.is_SetExternalTrigger(hcam, ueye.IS_SET_TRIGGER_HI_LO)"
I can able to connect the camera while it was triggering but I could not save the images to my lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75309908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular Service to Express API Route + Posting Data I am in the process of converting one of my sites (http://maskedarmory.com) from LAMP (using Laravel 4 MVC) over to the MEAN stack and it has been quite a journey thus far.
I have managed to get the landing page up and running and the input POSTing to Angular contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25101735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows push notification service using Pushsharp giving Notification Failure var push = new PushBroker();
push.OnNotificationSent += NotificationSent;
push.OnChannelException += ChannelException;
push.OnServiceException += ServiceException;
push.OnNotificationFailed += NotificationFailed;
push.OnDeviceSubscriptionE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31781924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace Wordpress text with custom text I created a Wordpress site and I want to replace every occurrence of the word Wordpress example:
Wordpress => MySite
Is there any plugin to do what I want or any function that should I create?Or should I replace all the words manually?
A: There's a Wordpress Search and Repl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18634221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to access Build properties on waterfall page inside buildbot stages? How can I access the build properties like event.change.id etc that are displayed on buildbot waterfall page, inside one of the buildbot stages, cbuildbot_stages.py?
-Pratibha
A: Buildbot offers a mechanism to access those properties. It is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22545177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQLite Syntax error while compiling: INSERT INTO I'm getting this RuntimeException when executing an AsyncTask:
Caused by: android.database.sqlite.SQLiteException: near ",": syntax error: , while compiling: INSERT INTO 'infrastructure' (lift,name,type,status,_id) VALUES ('2130837612','none','-','2130837600',0),('21... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47000831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSqueeze changing double quotes to single quotes and causing problem I am trying to use JSqueeze to minify some javascript and I can see that Github owner has now marked the code as readonly (and therefore (?) will not support raising Issues), but I am running into a problem with the result from the following test:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75187071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access to Backlog unavailable post TFS 2017 RC1 upgrade The tfs backlog page throws the following error : "TF400898: An Internal Error Occured." after upgrading to TFS 2017 RC1 from TFS 2015. All the other contents are in tact (ie Code, Build and Test). This error occurs for all the team projects in the Team Collect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41938501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Kafka SASL Auth with Kerberos: How to clear credentials cache I have a Java application that connects to Kafka through KafkaAdminClient. I'm using SASL authentication with GSSAPI mechanism (Kerberos). I am providing the krb5.conf, jaas.conf, principal, and keytab. When the application starts, if I provide the correc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70888898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Application Logging into Azure Blob Storage or use log4net into SQL I'm quite new in Development for Azure, I have a asp.net mvc 4 application in a Azure Cloud Service.
I have a application that has a considering quantity of transaction providing by API and I need to implement some applications loggings for improve ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24261487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why won't my text in a Love2D game update? I finally fixed the problem regarding the text not showing up in my game, now the next problem was it won't update. What was supposed to happen is that when I press the up and down arrow keys, the selected text would change, then pressing Enter would bring me to a new state... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64074746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Git log graph, display how two branches are diverging We would like to view a graph of how two branches are diverging. Running git log --oneline --graph displays only the current branch. How do we include both branches in the graph?
A: git log takes zero or more commits as arguments, showing the history leading up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26784396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Appending HTML to specific DOM after ajax call In my php page, I've three lists ul#line, ul#comment, ul#vote.
I'm going to make an ajax call, something like
$.ajax({
type: "POST",
url: "ajax.php",
data: dataString,
cache: false,
success: function(html){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5211528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC using more than 1 DataContext Insert Method So i recently want to try using more than 1 database
my main problem is the attribute on 1st and 2nd entities is different, so for example in 1st entities sample_table1 contain: "member_id" and "member_code" and the 2nd entities sample_table_2 contain "student_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26333249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using NServiceBus and EventStore from High Level So I've been reading about EventStore and NServiceBus and I like the idea of having a transactional log of my data that can help me build views based on that data.
What I don't understand right now is how to distinguish between an event that will write to your read st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11852033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get index of a specific value (in second dataframe) based on the same value in first dataframe I have 2 data frames, df_ts and df_cmexport. I am trying to get the index of placement id in df_cmexport for the placements in df_ts
Refer to get an idea of the explanation : Click here to view excel file
Once I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70498582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Garbage collector and Spring Integration we have a huge problem with our J2EE application.
Every day at 11am, our application starts to be very slow because of the garbage collector's activity.
We don't have any batch tasks that runs at that hour but we have a particular functionality (written using Spring Integrati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29966084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is it possible to add extras to browsable intents from HTML Let's take per say the following manifest:
<intent-filter>
<data scheme="myscheme"
host="myhost">
</data>
<action name="android.intent.action.VIEW">
</action>
<category name="android.intent.category.DEFAULT">
</category>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38832048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Uncaught ReferenceError: __VUE_HMR_RUNTIME__ is not defined I am trying to add vue.js to a project with webpack, when I run I get an error 'Uncaught ReferenceError: VUE_HMR_RUNTIME is not defined' in console.
App.vue
<template>
<div>
<h3>{{text}}</h3>
</div>
</template>
<script>
export default {
name: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68567276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: New ways to update my windows application over internet I am aware of "Click once approach", I find a problem with its one year certificate, and if I want to have more than one year certificate, I have to purchase the certificate from them.
I want to know, If there is any way to address this, So i can have my client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20798042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Matlab adding rgb to binary image side by side I'm supposed to add another image next to my threshold image with its original color like so: expected image
But I'm unsure how to do it having only achieving the binary image threshold on matlab. How do I show images side by side?
my result
clear all;
close all;
clc;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53895318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel statement to return a grade based on two values
I want to create an excel formula that will take the value in column B (Proxy score) and column D (Broker score) then use the calculation in shown in picture 2 to give a grade either , , ✔, , . The values on the left are the Proxy scores (column B) and the value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52646642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Updating last 4 in each beautifulsoup I have a html file containing (its created from PrettyTable python lib):
<table>
<tr>
<td> 1 </td>
<td> 1 </td>
<td> 1 </td>
</tr>
<tr>
<td> 2 </td>
<td> 2 </td>
<td> 2 </td>
</tr>
<tr>
<td> 3 </td>
<td> 3 </td>
<td> 3 </td>
</tr>
</table>
I would like to update the last 2 c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62842864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do I make a chrome extension that reads the text in the website I'm visiting? I'm trying to make a chrome extension that analyzes the website I'm currently visiting, but I'm not sure how to proceed. I believe I use chrome.pageCapture.saveAsMHTML() and FileReader, but I wasn't able to find any help online.
For i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54166544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft.WindowsAzure.Storage.dll version mismatch error in azure functions I am using a dll (MyApp.dll) which references azure storage dll version 7.2.1 through a nuget. I have added a project.json file to my azure function with "WindowsAzure.Storage": "7.2.1" .
I have also uploaded Microsoft.WindowsAzure.Storage ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41358642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Run HTML as PHP in PHP8 on Azure App Service Linux Not Working I need to parse HTML through PHP. This works fine on PHP 7.4 with the following added to the .htaccess file:
AddType application/x-httpd-php .html .htm
However as soon as I upgrade to PHP 8 on the app service, the code is displayed rather than parsed. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69506361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Placing a div over advertising instead of below I have this code:
<div class="c1">
//code that makes a div move downwards
</div>
<div class="banner">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20747079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle - update only one row without using rowid I am trying to update a view table, but only the first result from it.
I cannot use rowid - not working on view table.
Is there a way to update only the first row? as I said using rowid
solutions could not work.
select query example:
select addr
from addrView
where (t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37318136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mac Xcode Zlib Linker Errors I could use some help. I am just getting into Mac development a bit. This is a port from Windows and I am so close to finishing. I am trying to link to ZLib as I have an application that depends on it. I am creating multiple libraries with a fairly simple hierarchy. Anyways, the imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6604544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add a "Buy now" button BEFORE to "Add to cart" button (WordPress/Woocommerce) I wanna add a "Buy Now" button BEFORE to "Add to cart" button. I already tried with an others solutions here, but they all are for buttons after to "Add Cart" button.
Example:
A: you can use woocommerce_before_add_to_cart_quantit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52205990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Chrome bug? Cannot capitalise label following file input Using the following code, I am unable to capitalise a label that directly follows a file input field in chrome:
CSS
label {
text-transform: capitalize;
}
HTML
<label for="book-file">file</label>
<input type="file" name="a_file" id="a_file"><label for=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8341624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: why can't I set an ascii reference in an img title attribute using js? I'm having trouble using an ascii character reference (®) in an image title. It works fine when you set it via the html body, but when trying to do the same thing via javascript does not work.
check the sscce:
<style type="text/css">body {bac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5890510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get the users tag relationship through posts I'm building a Laravel Blog application for learning purposes.
In this applications I have posts that are associated with one users, and tags that are associated with posts (and later videos).
The database structure that I have:
users
- id
...
posts
- id
- user_id
...
t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66551697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine if a websocket send() is finished Is there a way to get notified if a certain send() has finished? As i noticed the send() function is not blocking and the code continuous. Is there a simple way to either make it blocking or getting somehow notified if the send is finished?
A: You could rely on Socket.buf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18189144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: IDEA's "Missing require() statement" inspection highlights "JSON" When writing Node.js apps in Intellij IDEA, the "Missing require() statement" inspection complains about any use of JSON.
For example, the following line is flagged: var some_object = JSON.parse(some_json_text);
It then recommends adding var JSON = re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45316279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery fire event when element is shown I need to fire an event on the following conditions for an image:
1) The image has been loaded (the following function takes care of that)
2) The image is shown. (if the image has not been shown yet, height() and width() return zero, meaning I cannot resize the image.
The main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4293773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linphone-web-plugin build stuck on OSX I'm trying to build linphone-web-plugin on OS X 10.9.3 with Xcode 5.1.1 installed. I have followed instructions in their README file. I have tryied to build it using XCode 4.6.3 (with xcodebuild command, not directly from the Xcode). Linphone-web-plugin is using firebreath-1.7.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24575486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Net Core: Swashbuckle Set operationId Automatically on to Controller Action Method We are trying to override Swashbuckle/Swagger IO CodeGen naming conventions, when its creating Angular API Service Proxies, for existing 500+ controllers and the corresponding methods.
Currently linking Net Core 3 APIs with Angular Ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63144598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Decision Tree Classifier I keep getting NaN error I've a small decision tree code and I believe I convert everything to int, and I have checked my train/test data with isnan, max etc.
I genuinely have no idea why its giving that error.
So I'm trying to pass Mnist dataset from Decision Tree and then I'll attack usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56318601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: (AChartEngine) How to set default zoom rate? How to set custom font style? I use AChartEngine with my android project.
I have 2 questions when I implement a bar chart.
First question
Here is my bar chart when I just run on an emulator.
first picture
It seems work perfectly, but It's view looks better when I press d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11810209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to increase number of clicks per second with pyautogui? I am developing a bot for timed mouse clicking game. I am using pyautogui. The aim is to click most times on a button in a minute. My code is:
import pyautogui, time
time.sleep(5)
while True:
pyautogui.click()
The infinite loop is not the problem, sinc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35805649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What's the cheapest way to filter a Core Data populated TableView with Sections? I've got a tableview populated by Core Data with multiple dynamic sections and I want to use a UISearchController to search for specific records. Every tutorial I've found says to use an array of fetched results, combined with a filtere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30764537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add dumping to JS Pendulum There is a good JS Canvas example of Pendulum. It works fun.
http://rosettacode.org/wiki/Animate_a_pendulum#JavaScript_.2B_.3Ccanvas.3E
But it works as a "clock" pendulum - it never stops.
How can I stop it, like a simple pendulum usually stops in time ?
Thanks a lot!
A: This realizes the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23857158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In grafana dashboard how to set alert mail configuration?
*
*Grafana version 4.0
*Datasource influxDB
Please consider me as a beginner.
For this, how to set alerts in Grafana dashboard? alerts send to emails.
/etc/grafana/grafana.ini
I wrote SMTP config like this:
[smtp]
enabled = True
host = localhost:25
user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45582955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: switch case on class type java I want to create a function that returns a value of the type passed as an argument.
for that I wanted to use a switch on the type of the argument, but I didn't have to do the right thing.
what is the correct way:
public <T> T threadLocalRandom(Class<T> type){
switch (type){
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73549393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass props into createTheme() in Material-ui theme object I have used the docs to create a theme object in /theme.js and I'm importing it in a wrapper component in _app.tsx. I can't figure out how to pass props (i.e. a 'darkMode' prop) that would be able to be accessed in the theme file. Here's how it's setup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69059768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Import JSON data to typescript Map type? I am trying to import json data that might include present or absent mappings within one of the properties, and figured the correct data type to represent this was Map<string, number>, but I'm getting an error when I try to do this.
My JSON file, data.json, looks like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71682828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use a date in another feild of other date field is blank in Excel I have a data set of close to 2000 in an excel file. I have two date fields. I need to get a count on Date field one based on different date ranges however if date field one is blank, I need to use Date field two to add to the count. I'm not su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69351802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Laravel pluck fails to get value from load relationship I need to return just an array of the name values for each of my roles. My roles is a hasMany relationship. This is currently how I'm trying to do it, but the returned result is unchanged, what am I missing?
/**
* Display the specified resource.
*
* @param ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75458593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to join datasets with values between other values? I have a use case where I need to join 2 data-frames.
ID view
ID BookTime
1 2
1 5
2 8
2 3
3 4
FareRule view
Start End Fare
1 3 10
3 6 20
6 10 25
Output is a result of join by checking the BookTime from the ID table. The Fare is computed b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53400521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I install GNUHealth? I am following the installation steps mentioned below but have encountered a python problem.
https://en.wikibooks.org/wiki/GNU_Health/Installation#Installing_GNU_Health_on_GNU/Linux_and_FreeBSD
At the step where the initialisation of the database instance is to be performed, I have encou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57470881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I daily reorganize my one-year-data? I am a beginner both at programming and obviously also at using Python language and I am really struggling when trying to perform the following task. I have a dataframe (in the picture, see the link "Data") made of glycemic and insulin values recorded every 5 minutes for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73295957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: cloning submodule fails I am trying to clone a submodule for my drupal installation. I run the following command:
git submodule add http://git.drupal.org/project/token.git /sites/all/modules/token
This throws this error:
The following path is ignored by one of your .gitignore files:
/sites/all/modules/token
Use -f ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7765361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Realm Clone RealmQuery in different thread How to clone RealmQuery in different thread?
Problem:
*
*Create RealmQuery in X Thread.
*Query for RealmResults is same thread.
*If Empty Results, get data from Server in Y Thread.
*Insert data to Realm in background thread (Y). <-- New Instance of realm
*Re-query wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44035272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is cleaning your code not required anymore in C++? I was reading an article that stated due to something called RAII, you no longer needed to cleanup your code.
What prompted this research was I am currently coding something that requires cleanup before exiting the function.
For example, I have created a file, and m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20891100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Access website from browser in vagrant On windows 10 I have ran my vagrant up and then ssh into my vm successfully. Installed apache2 php5-cli php5 libapache2-mod-php
Now when i access localhost:8080 it is showing me apache default welcome page. How can i access my site in the browser ?
Here are the contents of my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33916238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how android device identifies which layout to use In my android app, I have set the layout resources for both large and x-large screens, viz:
layout-large and layout-xlarge. When I open run it in an device emulator with "large" screen, it gets the layout from the "layout-large" folder, which seems to be correct. But... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11541627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Export variable label for SPSS with haven I would like to export a data set I work on in R for my colleagues to use in SPSS. When I export the data set I would like to include variable labels (i.e. the column below), I am not asking about value labels which describe the levels of the variable:
Is there an option in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46954098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: adding @Transient over MappedSuperClass attributes Currently I have a MappedSuperClass called BaseEntity, which I am extending over all my entity classes
@MappedSuperclass
public abstract class PersistentObject extends BaseEntity {
/**
*
*/
@Transient
private static final long serialVersionU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12088078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to calculate the mixed color (in RGB) from n (n>1) RGBA colors in a specified order in JavaScript? Say I have a svg like this:
<svg>
<rect id="background" x="0" y="0" width="100" height="100" fill="rgba(10,10,10,1)" />
<rect x="5" y="5" width="100" height="100" fill="rgba(255,125,0,.25)" />
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68124812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not implemented alter command for SQL ALTER TABLE "annotator_annotationmodel" ADD COLUMN "hospital_id" int NOT NULL I'm getting this error after doing migrate in Django rest framework backend server.
models.py file
class Hostipal(models.Model):
hospitalId = models.CharField(max_length=15, unique=True)
hospit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69903529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Euler.js Layout - Cytoscape I have deployed this layout to my application and is working fine, but I have two questions:
*
*"Ramdomize" parameter must be always "true" so that the browser won't run into "Memory Out of Space" error. But, my question here is how can generate the same graph orientation very time when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66595314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to hide text in html page source? I wanna show some text (and images) in browser but this text shouldn't be able to select in page preview or page source :
*
*At first i tried to use canvas, but managing text and also images in canvas is not easy and for this case i can't use canvas.
*I tried to use image bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9109434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Optional try for function with no return value Could it be that when using try? (optional try) for the call of a throwing function with no return value the errors are just ignored?
func throwingVoidFunction() throws { . . . }
try? throwingVoidFunction()
I expected that the compiler does not allow a try? in front o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41751089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Java Collection-Within-Collection Concurrency I'm trying to make a class which utilizes a set-within-a-map thread-safe. I'm unsure of what particularly needs to be synchronized.
The map is defined as something similar to Map<Class<K>, Set<V>> map;. The following is a reduction of the way the map is being used inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12101619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does SQL's EXISTS function select duplicates? (Oracle SQL) t1 has all the credits of each person in a given ORACLE database. Each person is identified by ID. t2 contains the people I need to select from t1.
To do this, I tried the following:
select
ID,
capital,
balance
from
t1
where
exists (
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61036765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails - undefined method "" for - Nested forms with select multiples i cannot find how i can fix my "undefined method "banks" for" in my dealsController.
My models :
class Deal < ActiveRecord::Base
has_many :pools
accepts_nested_attributes_for :pools,
reject_if: proc { |attributes| ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35102570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.