text stringlengths 15 59.8k | meta dict |
|---|---|
Q: Define functions in structs Can we define functions in structs in C programming language?
A: No, as functions are not data. But you can define function pointers inside a struct.
struct foo {
int a;
void (*workwithit)(struct foo *);
}
A: No, you cannot have functions inside struct in a C program. I wrote a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9871119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Moving from Gulp/Grunt to Webpack for an AngularJs 1.x project I have a two-year-old AngularJs 1.x project, which is built with Gulp for development and Grunt for production (don't ask me why; I don't know either).
The build process is basically:
*
*Compile all scss files into one css file
*Merge all JS files in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50083914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to launch an application from a link in a webpage on mac I am trying to have an application open when a link is clicked on in a webpage. Lets say if I clicked the link that says iTunes it would open iTunes. I am not sure if this is similar but if you go to an album link for iTunes that opens in the web browser, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14415012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Sum and Count by Two different group by in SQL Server I want to print the total order and transaction amounts and counts of each account.
When I run the query below I get the following error:
Column 'orders.order_amount' is invalid in the select list because it is not contained in either an aggregate function or th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60766287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Separate nameserver for certain hostnames On my home LAN I have a number of computers. They are connected to a router which connects me to the internet and acts as DHCP server and nameserver on the LAN.
Some of my computers are Ubuntu machines, and I'm trying to set up a good /etc/resolv.conf on them. The problem is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11350868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How could I detect when an unauthenticated user leaves a public channel in laravel websockets? I have a Laravel/Angular application that doesn't require any Authentication to use (An online Scrabble game) Whenever a guest connects with a username (the only constraint is that the username is unique) I register him to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73019310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Behaviour of goto statement #include<stdio.h>
int main() {
int i;
goto l;
for(i = 0; i < 5; i++) {
l:printf("Hi\n");
}
return 0;
}
The above code gives output three times Hi . I don't have any idea how it happens, please expalin it. If i reducde value of 5 to 3 then only once the H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27842921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Qt3d Slow rendering of thousands of curves From qt3d, I would like to pick an arbitrary number of face normals drawn at each facet of a mesh.
Once the number of normals (drawn as individual lines each with its own VBO and attached QObjectPicker) exceeds a couple of thousand instances, the rendering speed slows to a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53808577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is std::string() the same as std::string("") Suppose I have a function that returns a std::string. Certain circumstances mean that the string is not populated with anything.
Is returning std::string() exactly equivalent to std::string("")? For example, would c_str() or data() give you the same character sequence? Pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26866438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can we create two columns with same name but different case in database? Can we create two (or more) columns in Postgres/ MySQL with the same name but a different case? As in does case-sensitivity matter in column names?
For e.g., Can a table contain two columns with names - COL and col?
Linked post: can we create t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74795411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fluent NHibernate Mapping Compent with Many-To-Many and Extra Fields I have been spinning around in the same place trying to figure this issue with a many-to-many table with extra columns. I am swallowing my pride and asking more experienced Fluent NHibernate experts if you can help out here.
I have been trying to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8066335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Web (xbap) using WCF Service throws System.Net.webPermission exception I have an xbap application running with partial trust on my local machine's IIS 7.5. I published the WCF service to the same directery as the xbap.
After jumping through some hoops I could get it working through Visual Studio for debugging pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3762520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Having a relative path in a module relative to the file calling the module Let's say I have the current file structure :
*
*app\modules\module.py
*app\modules\somefile.txt
*app\scripts\script.py
*app\main.py
modules\script.py :
import sys
sys.path.append("..\\")
from modules.module import module
[...]
main.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30508146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Session Flash - Play Framework 2.6.2 I am currently having an issue getting a flash value from a Java controller to a Scala view.
As a simplification of the code base and an example of the controller:
public Result viewAccount(final String accountNo)
{
return ok(
ViewAccount.render(
ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70243260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unity, editor-time script, On GameObject Added to Scene Event Say you have a trivial prefab, "Box", which we'll say is nothing more than a standard meter cube.
*
*1 - The prefab Box is in your Project panel
*2 - Drag it to the Scene
*3 - Obviously it now appears in the Hierarchy panel also, and probably selecte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52070070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to Custom Position the Jquery dialog box On click of a button , i am opening a jquery dialog box as shown in this code
<div class="editButton">Chat</div>
<div id="dialogContent" title="This is a dialog box">
<textarea rows="14" cols="40" name="comment"></textarea>
</div>
$(document).on("click", ".editButton... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34432340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scss not loaded with Vite The build with Vite and Vue works like a charm (so ist the path correct). However, it does not with storybook.
Here my config:
vite.config.js
import { defineConfig } from 'vite'
import { resolve } from 'path'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71064299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to use SSO for PWA? Is it possible to use SSO for PWAs for standalone display?
I can login to my app through email but if I try twitter/fb/google SSO, it opens to a new browser since they are out of the scope. This makes it pretty useless...
Is the only solution to just wrap the app?
A: The short answer is, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50538147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I was creating a sticky notes website using html, css, javascript. i made the website but the problem is i want to store the data in a mongo database I was creating a sticky notes website using HTML, CSS, and javascript. I made the website but the problem is I want to store the data in a Mongo database
I m able to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71820168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating an Ad-hoc iOS build to test on other devices using an existing CSR / organization account Okay, I have put a day in this and am super - confused ( hail Android, it's super easy ). A client of mine has an organization developer account on apple, and uses his public-private Key Pair to look after development ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35154192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Static table view cells: Clear color not corresponding I have the below controller with the cell's, content view's, and table view's backgroundColor set to .clear, however, there is still a white background which I can't figure out what it is corresponding to.
A: It is due to Your table view cell colour.
Select t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50615306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to display current date in textbox using placeholder in html <html>
<body>
Date: <input type="text" id="txt" placeholder=" "/>
</body>
</html>
What should i specify inside placehoder quotes so that i can view current date in my textbox
A: These are one of the soultions how to display current date in textbox:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27670288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: return the image file from GetoutputmediaFile method Good Day I'm working in app that captuer image and display it in Gridview but when I click the button I get the following error
java.lang.NullPointerException: file at android.net.Uri.fromFile(Uri.java:452) at CameraFragment.getOutputMediaFileUri(CameraFragment.ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35521030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coloring rectangle in function of distance to nearest edge produces weird result in diagonals I'm trying to color a rectangle in ShaderToy/GLSL in function of each pixel's distance to the nearest rectangle edge. However, a weird (darker) result can be seen on its diagonals:
I'm using the rectangle UV coordinates fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48792209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Send POST request with Pillow image I get an image from pymongo like this:
def get_my_photo(self, user_id):
res = self.db.find_one({'user_id': user_id})
image_data = BytesIO(res['photo'])
image = Image.open(image_data)
image_data = BytesIO()
image.save(image_data, "JPEG")
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54611872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: sqlite transactions do not respect delete I need to modify all the content in a table. So I wrap the modifications inside a transaction to ensure either all the operations succeed, or none do. I start the modifications with a DELETE statement, followed by INSERTs. What I’ve discovered is even if an INSERT fails, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23495065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When parsing a string in to DateTime, parse the string to take data before putting each variable into the DateTime Object I have checked all answer related to this error but I couldn't solve it.
I have an admission form. They are fields like DateOfAdmission, PhoneNumber **, **TimeOfAdmission and other things . When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50955195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Multiple git subtree of same repo In a repo called apps I'm stuck with using a folder structure like
/apps
- /app1
- /shared
- /app2
- /shared
- /app3
- /shared
where shared is a separate repo. How do I use git subtree such that changes to any app1/shared, app2/shared, app3/shared take effect in each ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28705190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: STM32CubeMx: How to add your own "USER CODE BEGIN / END" section? I have a project where I need to add a few lines to one of the generated C files. However, the place where I want to add the change does not have a "USER CODE BEGIN / END" section. So whenever, I regenerate code, the changes are overwritten. I tried a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55934599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Empty file when using sprintf and system function on C I want to save some information in a file text, I wrote this program:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc,char *argv[])
{
FILE *fichier;
char buffer[20];
char command[200];
char command1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39978821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Core ILogger does not log to Trace unless a debugger is attached I am having a weird situation where I cannot receive any Trace from ASP.NET Core ILogger<T> unless a debugger is attached (even if I am running in Debug configuration). First let me explain:
I need to write logs to files by date, and I previous... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58211042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Efficient way of calculating minimum distance between point and multiple faces I have multiple faces in 3D space creating cells. All these faces lie within a predefined cube (e.g. of size 100x100x100).
Every face is convex and defined by a set of corner points and a normal vector. Every cell is convex. The cells are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72857322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to take a ECS TaskDefinition as an input to a CloudFormation template? I am new to AWS CloudFormation. I have been testing out automating deployments of containers using this service. However, as of now, I am manually adding the name of my TaskDefinition to the YAML file of the CloudFormation template... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61233033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the simplest way to sort the array of object? I want to sort an array like this
[
{
'type': 'apple',
'like': 3
},
{
'type': 'pear',
'like': 5
},
...
]
I was using lodash lib for the sorting.
Is there a any more simple way to sort an array by like valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61812559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Giving each subset of records a group ID I need to assign a rank to a subset of records.
Sample data:
Colour Code Size Code
DWMUL040 7
DWMUL040 8
DWMUL040 9
DWMUL040 10
DWMUL040 7
DWMUL040 8
DWMUL040 9
DWMUL040 10
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13982661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Correct concurrency handling using EF Core 2.1 with SQL Server I am currently working on an API using ASP.NET Core Web API along with Entity Framework Core 2.1 and a SQL Server database. The API is used to transfer money from two accounts A and B. Given the nature of the B account which is an account that accepts pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53584812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Get count of an item in a column when values in other column are equal to some value for i in range(0,9):
num = training_data[training_data[i]==row[i]&training_data[9]==1].groupby([i,9]).size()
print num
count_equals.append(num)
DataFrame
0 1 2 3 4 5 6 7 8 9
314 1 1 1 1 1 1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42882632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Query with a data frame and a database I'd like to know if it's possible to make a query between a data frame and a database like this :
test <- sqlQuery(ch,"
SELECT *
FROM table_from_database as A, dataframe as B
WHERE a.id=b.id ")
A: Use the RODBC package t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16015106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Execution failed for task ':app:compileDebugJavaWithJavac'. Error:(2055, 52) error: ';' expected Error:(2055, 59) error: expected I am new to android, my project was compiling and running properly a few moments ago but after I try to implement a navigation drawer, its giving me this error
FAILURE: Build failed wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34537910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read and write NFC tag at once Is it possible to read/write NFC-tag simultaneously with Android API?
For example I have the counter in NDEF message and would like to read it, increment and write it back. Or read authentication key and update it.
I can see only one operation as per example.
A: Android’s Near Field ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39393639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Smaato custom banner view could not be instantiated (Android) I tried to use Smaato ad in my app. For first look it's simple to use, but in practice I got a problem. I put in main view XML a Smaato banner. The problem number one is that Eclipse shows me in GraphicLayout tab the next error message:
*
The following c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8569710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keycloack share same session between to client ID I'm not expert on this subject.
On Keycloak on the same realm we have defined two client ID.
My client ID are configured with OpenID connect and authorization code flow.
Like this a user can be authenticated with its credentials over these clients.
I have a problem. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64350905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Please specify the assembly explicitly in the type name I have a umbraco site where i wish to add a fileuploader from a separate working VS project. I have added it to my umbraco VS project with Add existing project.
I have then moved the code from default.aspx to a usercontrol so i could add it to my umbraco.
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17816500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Identify offset of a value in numpy Given a flatten NxN array in numpy, I'd like to find the minimum value, and its offset in the array. I've managed to find the minimum value, but is it possible to identify the offset (which row and which column)?
In the example below, a = 0.5, how can I know if it is 0.5 from [1,0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22894076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: export c++ classes to DLL, including external DLL So I am trying to export into a dll a class that uses a class from another dll. An example will explain the situation better.
//aclass.h
class __declspec(dllexport) aclass{
public:
void amethod();
};
_
//aclass.cpp
#include "aclass.h"
void aclass::amet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17853382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to have two modules which use functions from one another in Perl? Unfortunately, I'm a totally noob when it comes to creating packages, exporting, etc in Perl. I tried reading some of the modules and often found myself dozing off from the long chapters. It would be helpful if I can find what I ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/580418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tkinter OptionMenu arguments I like to explicitly specify arguments. For example:
def func(a, b):
return a+b
Anytime I call it I write:
func(a=6, b=7)
Instead of:
func(6, 7)
I can't do this with the OptionMenu class in Tkinter. The following example is within a custom class
self.var = tk.StringVav()
choices =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38536999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scrapy for eCommerce with Selenium Infinite Scroll, Help Returning Values I am rather new to programming. I've done a few small projects on my own and have started getting into making webscrapers with Scrapy. I'm trying to make a scraper for Home Depot and have run into issues. The problem this is trying to solve is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67083509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: homebrew Formula to install package As part of new joinees, we provide the FAQ for running internal homebrew formula, that installs from zip/tar.gz files, we install using " brew tap ..." . However, we are separately running "brew install mariadb@10.2" as well as running "brew tap...". Question - wanted to consolid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64457082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to connect to PayPal Sandbox to verify message received by IPN listener I am testing my IPN listener using the IPN simulator. After sending IPN on the IPN simulator, my log shows that my IPN listener receives the IPN but when it sends back the message with cmd=_notify-validate added to it, the sandbox does no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15921181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I make large rightBarButtonItem in Swift? What I have:
self.title = "Title"
navigationController?.navigationBar.prefersLargeTitles = true
self.navigationController?.navigationBar.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor : UIColor.white]
navigationItem.rightBarButtonItem = UIBarButtonI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63791874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working with ampersands in $_GET functions If I have a URL like asdf.com/index.php?a=0&b=2, then using $_GET for a would be 0 and for b would be 2. However, the term I put into a single $_GET function has an ampersand in it already, like a=Steak&Cheese. Is there a way to make ampersands work without the $_GET variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5228924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asp.Net Core 5 Docker container exit (1) I'm trying to run a docker container for my api application. The application is asp.net mvc (.net core) 5.0. I'm publishing the application to a /publish folder like:
dotnet publish -c Release -o ./publish
The Dockerfile contains:
FROM mcr.microsoft.com/dotnet/sdk:5.0
WORK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66104704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: windows 2008 server how to get ASPEmail to send to own domain I have a friend who runs his website on a windows 2008 server. I have set up an asp classic form to email page on his website (hisdomain.com) which takes the input from a contact form and sends it out by email.
The problem is that it only works if the ema... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51513741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compile OpenGL with a python C++ extension using distutils on Mac OSX? When I try it I get:
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/cscalelib.so, 2): Symbol not found: _glBindFramebufferEXT
Referenced from: /Library/Frameworks/Python.framework/Ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2754460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Ansible consume AD command output i got a problem how to consume the following command output in Ansible
basically im trying to get the list of Active Directory OUs and loop over that list to search for specific name. My script works well when multiple OUs exists but i have an issue when only single OU exists. Expla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59122026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# XmlSerializer Deserialize Date format I need to bring (among others) a date from an XML file to a PostgreSQL table in my C# application.
My problem is that if I declare the field as a string like this:
[XmlAttribute("startDate")]
public string StartDate { get; set; }
it doesn't get deserialized at all (the valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39368083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pod OOM - Xmx not beeing respected I am starting a Java app as follows
JAVA_OPTS=-Xmx7g -Xms512m -Xss1m -XX:+UseCompressedOops -XX:-OmitStackTraceInFastThrow
The pod I am using for this, has
resources:
limits:
cpu: 4096m
memory: 9Gi
requests:
cpu: 102... | {
"language": "en",
"url": "https://stackoverflow.com/questions/57991719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Duplicated metrics using prometheus federation What happened?
The duplicated metrics appear on main prometheus server:
namespace_workload_pod:kube_pod_owner:relabel{cluster="sample-eks", job="federate", namespace="cert-manager", pod="cert-manager-848f547974-xkg8j", prometheus="monitoring/k8s", prometheus_replica="pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69493485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FLutter check if Textfield controller is empty i have a question in flutter about a Textfield and the controller attribute.
I have a site add_new_currency_screen.dart,
for the beginning i have textfields like:
name, amount, price, startDate and endDate.
Now my problem.
The endDate is always "empty" if i open the "ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67780007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring WebFlux How to get Flux execute result? I want to use WebClient in Spring WebFlux to call some urls, and then put all the monos to flux. when I call Flux.blockLast, I can not get the results.
@Test
public void reactiveGetTest() {
long start = System.currentTimeMillis();
List<String> re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55514202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the prohibited numbers in android dialer app? Learning the source code of Android Dialpad Fragment I've noticed quite strange thing - you can not call several numbers.
if (number != null && !TextUtils.isEmpty(mProhibitedPhoneNumberRegexp)
&& number.matches(mProhibitedPhoneNumberRegexp)) {
Log.i(TAG,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35768835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python Regex with split Method I am trying to create a list from a csv file. However, I'm having a tough time using the split method because some of the attributes in the csv file has comma's that are within parenthesis. for example:
csv file:
500,403,34,"hello there, this attribute has a comma in it",567
So for e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31258629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: autoincrement in a mysql update query String textbox1=request.getParameter("textbox1");
String textbox2=request.getParameter("textbox2");
String textbox3=request.getParameter("textbox3");
String textbox4=request.getParameter("textbox4");
String textbox5=request.getParameter("textbox5");
String textbox6=request.getPa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20901516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't figure out why angular binding won't work in codepen script I'm trying to use angular in codepen, which it seems to support, but I can't bind to my controller's $scope object for some reason. I've tried a couple different versions of angular via cdn and there are other pens I've seen that are able to successf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35763369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Populating parameter list with a query I have a custom big query that functions correctly, but I would like to add a parameter to that query. I would have expected to be able to populate the drop down list with another query but cannot see how to do it. Is this possible?
A: You cannot populate a BigQuery query para... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67340036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Required String parameter 'newPassword' is not present SOLVED
We've solved it. The form that the backend requires data was param, so the form that the vue sends was changed to param, not data!
I'm making a password change page.
Meanwhile, I got an error that there was no old password, new password data but I defini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68524837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pyglet: how to handle heavy resources loading I'm learning pyglet in order to write a game, and I've trying to create a loading screen/scene while loading all game resources (static images and image sprites), to avoid window freeze while loading. I wonder what are the best practices to handle heavy resources loading... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69349107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to indicate to Netty after a Bind occurs to timeout within a period of time if no client connects If I bind to a specific address/port is there a way to force it to unbind if no client has connected within a period of time and is there a way to be notified by a listener if there is an option?
A: Ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65362411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vapor 4 Authentication Issue [User is not authenticated] I have an iOS client with OAuth 2.0 as an authenticating mechanism.
When a user signs in, I authenticate him with this method (Google sign in for example):
func processGoogleLogin(request: Request, token: String) throws -> EventLoopFuture<ResponseEncodable> {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73449861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MS SQL Server connection using ODBC Driver from Python This question may be repetitive as I checked this forum for the same issue and did as suggested in the forum for my issue. But my issue seems to be not going.
All, I am trying to connect to MS SQL Server installed on an ETL Server from my PC using python pyodbc ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59991483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Entities not mapped when persistence unit is on EAR level I need an EAR java application in which I can define a persistence unit and use that persistence unit in different components. For example: I define 2 JAR's in my application.xml: my-product.jar and my-product-module.jar - both of the JAR files should be able... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12969089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: setTimout function # tag? Can someone please help? I have some jQuery code which is working perfectly, however there is an element within it which is: "#"+ and I don't understand what it does. Please see below JS.
setTimeout (function() {
$("#"+toneId2nd).animate({ backgroundColor: 'red'}).animate({ b ackgr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28939571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: same img size across browsers Do you guys know how to show same image size across browsers. Or similar size. I'm working on a site and the image i included in a div shows too different in size, especially for Safari, it looks too tiny. The image occupies 90% of the page in most browsers but in Safari it uses about 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28313299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to update trained LSTM model by online data? I'm doing a time sequence predict task, first, I trained the LSTM model by previous 50% data, I want to update the model by new data, I just simulate the online predict, Can I use one new data to update the model? the flow just like predict update predict update and r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63546133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GUI for Dialog-design for WiX WiX is great in that there is no GUI, you just write the installer you want it to be. No fiddling with GUI-wizards!
However, drawing GUI is actually one thing I prefer to use a GUI for.
So, is there any Dialog-drawing program which exports WiX-data?
(I suppose else-wise perhaps I could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2569707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Swift: Setting progress of NSProgressIndicator I have tried to setup my own NSProgressIndicator with the following method.
class ProgressViewController : NSViewController
{
override func loadView()
{
let view = NSView(frame: NSMakeRect(0,0,300,120))
view.wantsLayer = true
view.layer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42862161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Return only the items in php array that equal to my custom field month (array_filter) I am returning all of the Fridays for the current month and next month in a dropdown, which works fine.
I have an additional step where I want to only show the months in that dropdown that equal to the month in this field: $product... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67502154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Logical operators in jinja template Been pulling my hair out trying to use the "or" logical operator in a cloud-init jinja template.
When I use:
{% if distro == 'centos' or 'redhat' %} {% set group = 'wheel' %}
cloud-init just ignores the directive.
If I use separate if statements, (see below) then I get the desired... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75537000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Submit datefrom html form to controller I want to submit a date to my controller using html form, I tried this but doesn't work:
<form action="/Home/Index" method='get'>
<input type="date" name="Choisir une date"><br>
<input type="submit" value="Submit">
<input type="reset">
</form>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50118459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using 'map' object in Jupyter notebook environment
'map' object of python doesn't work in jupyter notebook. But It works well in python shell. Can you explain why? Thanks for your answer.
A: It looks like map is still a value, but not a callable. Most likely, you assigned a value to it earlier in the Jupyter noteb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65200968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: App with playerduel functionality doesn't get push notification I am developing application which support playerduel framework. In which two players can play with each other. Person can send challenge to another one.
i follow the documentation following. https://docs.urbanairship.com/display/DOCS/Getting+Start... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12383383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: discordjs using base64 image in webhook embed How do I insert an image into a discord embed using webhook.
I have the image saved as a base64 string which I get from database. I have tried this but
I only get an empty embed
const data = b64image.split(',')[1];
const buf = new Buffer.from(data, 'base64');
const fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64834944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the return type of address-of (&) operator? int main(){
int i = 0;
int *p = 123;
return 0;
}
The error message is: invalid conversion from 'int' to 'int*' [-fpermissive] int *p = 123;
I know int *p = &i; could make this work, but how the complier convert the &i type to int * type (what return ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65067467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to increment integer and return new value? I would like to have a table that stores sequences for objects that have too many types for each of them to have a dedicated table with their own auto incrementing primary key. Is there a way to have a single query increment the sequence by one and return the resulting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70333812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update url when change slide I installed this cool demo http://tympanus.net/codrops/2014/06/26/draggable-dual-view-slideshow/ on this website http://wedding.halocommunication.com
What I try to do, with no success, is to update url (like in this site wild.as) when a slide changes.
This demo use dragdealer plugin skid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25134847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoid Matrix copy constructor I have a situation like this:
using JacobiSVD = Eigen::JacobiSVD<MatrixXcd, Eigen::FullPivHouseholderQRPreconditioner>;
class Foo {
public:
MatrixXcd matrixU;
MatrixXcd matrixV;
Foo(const Ref<const MatrixXcd>& mat);
}
Foo::Foo(const Ref<const MatrixXcd>& m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58866557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting the column "number" and column name to make it easier to select several - not always adjacent - columns in a large df in pandas I have a large df that I'd like to do calculation and predictions from, the problem is that I can't find a way to get a list of all column names TOGETHER with the column "number". I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58523129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flash Pro CC HTML5 Canvas & CreateJS - how to update the lib files to latest versions? I'm using Flash Pro CC, and publishing as HTML5 Canvas. This incorporates & uses the CreateJS JavaScript libraries. I notice that, when the HTML file gets generated, the versions of the lib files are a bit older than what's availa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28569092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to do i18n while using react-templates react-templates is a good solution to separate template and logic code,however,if i have multiply templates but referrer to one logic code,like i18n requests.
eg.
post.js //which is the logic code
post.en.rt //which is the template for english
post.es.rt //for spanish
how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37318727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When and where should I drain the NSAutoreleasePool? I understand how to add items to an NSAutoreleasePool and how to drain the pool afterwards. But what's missing in my education is when and where this should be done.
Clearly just doing it in Main makes no sense because that's no different than never releasing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9793128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Docker on AWS filling up its thin pool while running somehow? I've got a server on ElasticBeanstalk on AWS. Even though no images are being pulled, the thin pool continually fills for under a day until the filesystem is re-mounted as read-only and the applications die.
This happens with Docker 1.12.6 on latest Amazo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43061333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WHMCS Remove "Country" selector from checkout page i work on WHMCS customizations, and want to hide Contry selector field. I tryed to comment county from template, and field are not shown, but when try to checkout, i got this error:
Please correct the following errors before continuing:
Please choose your country fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49032685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display Monday as first day CalendarView With:
Calendar cal = Calendar.getInstance();
cal.setFirstDayOfWeek(Calendar.MONDAY);
you just set Monday's integer value to 0, but I want to have Monday displayed as first day (at the left end, and Sunday at the right)
A: Use xml parameter android:firstDayOfWeek with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15218983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: using puppeteer with headless_shell I am using: https://www.npmjs.com/package/puppeteer-pdf which has puppeteer as a dependency.
Heroku is angry about my >500mb slug size, so I am trying to reduce it.
It looks like if I can setup puppeteer to use headless_shell instead of the full chromium download, then I can great... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68639229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Suggest a JPA Unit test framework How to unit test JPA code? is there any way to generate Unit Test case itself?
Note: I am lazy and new to Unit Test code.
A: Check this out, Unitils. Here is a related discussion, with some example codes.
Here is the example, showing DBUnit, Spring and OpenJPA together. You might ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/452630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to show one table a time when you have many in Angularjs? Following html code will show some tables (all at once) with 4 rows in each. I want to show them one by one on showNext button click. The id is generated automatically.
I need help with jQuery code.
<div ng-init="outerIndex=($index)" tableId="{{'table'+ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45159678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should Erlang filter the elements in the list, and add punctuation and []? -module(solarSystem).
-export([process_csv/1, is_numeric/1, parseALine/2, parse/1, expandT/1, expandT/2,
parseNames/1]).
parseALine(false, T) ->
T;
parseALine(true, T) ->
T.
parse([Name, Colour, Distance, Angle, AngleV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65084224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change row color using GridMvc How can I change the background color of a row using GridMvc? I've looked at the posting here:
Changing Background of GridMvc Column on Condition
I've tried using the SetRowCssClasses property (see below) but nothing happens. So, I don't know if I'm using it incorrectly or I need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63695480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change the precedence of the swagger-ui.html handler mapping When using springdoc-openapi-ui 1.6 in a spring boot 2.7 project, the handler mappings for the /v3/api-docs and /swagger-ui.html urls have different precedences.
While working on a project that uses spring-integration-http, I noticed that its inbound compo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75617367",
"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.