text
stringlengths
15
59.8k
meta
dict
Q: How do I use a date function in Access? I'm trying to put items into a table which have been deemed over due. I have the date of when items were completed last in a list, and I know the frequency of how often the items need to be completed. Ex. I have a cleaning that happened on 4/7/17 and it needs to be cleaned 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/44009683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conversion from type 'DBNull' to type 'Date' is not valid on tryparse I am attempting to do a DateTime.TryParse from a date-formatted string, to a new column that I created as part of a DataView table. I am getting this error when the code runs Conversion from type 'DBNull' to type 'Date' is not valid. This is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29392499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generating multiple data with SQL query I have 2 tables as below Product_Asset: PAId Tracks 1 2 2 3 Product_Asset_Resource: Id PAId TrackNumber 1 1 1 2 1 2 3 2 1 4 2 2 5 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36928831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: sending email with Indy to a gmail address message goes to spam Hello I'm trying to send a message from delphi (indy) to a gmail address. When I go to Gmail I found my message in spam folder. If I try to send the same message with PHPMailer from web it works correctly. This is the code. Thanks //setup SMTP SMTP.Port...
{ "language": "en", "url": "https://stackoverflow.com/questions/14482160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problem with random variable elements for Web Scrapping I'd like to create a relative function to access every game report available in this table: https://fbref.com/fr/comps/13/calendrier/Scores-et-tableaux-Ligue-1 I started making a relative URL, but there is an element in the URL that I believe to be random. Here...
{ "language": "en", "url": "https://stackoverflow.com/questions/74180964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which one is better for (mysql) performance? Which one is better for (mysql) performance ? "1500 (300x5) Tables with 365 rows per table" OR "(300x5)1500x365 rows in 1 table" ? (I will get the data(s) with php.) 365 -> days number of the year * *if second: I will use "date" and "x_id" to get the 1 row from (300x5)...
{ "language": "en", "url": "https://stackoverflow.com/questions/3431282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lambda Expression using Foreach Clause Possible Duplicate: Why is there not a ForEach extension method on the IEnumerable interface? EDIT For reference, here's the blog post which eric referred to in the comments https://ericlippert.com/2009/05/18/foreach-vs-foreach/ ORIG More of a curiosity I suppose but one for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/858978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Sort an NSMutableArray / Dictionary with several objects I am having a problem that I think I am overcomplicating. I need to make either an NSMutableArray or NSMutableDictionary. I am going to be adding at least two objects like below: NSMutableArray *results = [[NSMutableArray alloc] init]; [results addObject: [[N...
{ "language": "en", "url": "https://stackoverflow.com/questions/12165525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cant find the file i created on android tablet /data directory in android is empty. I have installed a few applications and i also wrote code to create a file in /data/Myapp directory , I have these lines in OnCreate method , but i dont see any files in /data directory after running the program. File fileDir = g...
{ "language": "en", "url": "https://stackoverflow.com/questions/5458327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to sort parameters with Jenkins parametrized job? Problem: A Jenkins job is starting to have a lot of parameter (over 20). Is there a way to group them, have title, etc...? I looked up and found none. A: There is no way of sorting parameters automatically that I'm aware of. You can arrange them via Drag&Drop in...
{ "language": "en", "url": "https://stackoverflow.com/questions/31683273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I copy dependencies from a library project to the main project? I have an Asp.Net project (Vb.Net) that references a managed dll (library written in C#). That library project has several unmanaged dependencies dlls in a lib folder (copied into bin/Release/lib folder during build). The library is not a part o...
{ "language": "en", "url": "https://stackoverflow.com/questions/51383856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get iframe images to print as part of full document in IE I have two IFRAMEs. Each IFRAME is loaded dynamically as the result of submitting a FORM. The result of each FORM submit is a dynamically generated jpeg image (Content-type: image/jpeg). The following page displays correctly (you can see both images...
{ "language": "en", "url": "https://stackoverflow.com/questions/16324719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Building Framework as "Generic iOS Device" Causes Use of Undeclared Type in Project Using Framework Basically, as stated in the title, when I build my Cocoa Touch Framework for "Generic iOS Device," it causes "Use of Undeclared Type" compilation errors in my XCode project using the framework. However, when I build t...
{ "language": "en", "url": "https://stackoverflow.com/questions/54975976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error using Firebase from Chrome App I am attempting to use Firebase from within a Chrome App (not an extension) and have not been able to work around the following error: Refused to load the script 'https://{my firebase id}.firebaseio.com/.lp?start=t&ser=81980096&cb=15&v=5' because it violates the following Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/29399594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Start SSH daemon in Laravel sail I'm using Laravel Sail and have published the Dockerfile (so I can edit it manually). The reason being that I need to use an OpenSSH server on the container itself for a program I'm using. I am able to install OpenSSH by adding && apt-get install -y openssh-server to the packages sec...
{ "language": "en", "url": "https://stackoverflow.com/questions/71288487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: xcode = I sended data from one view to the other, with prepareForSegue, but can't send it to another view in prepareForSegue I have a problem. First I sended information from textfield with prepareForSegue. I sended from WelkomViewController to TableViewController. There I put the data in a NSMutableDictionary. It's...
{ "language": "en", "url": "https://stackoverflow.com/questions/39002063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: i can't limit a javascript animation in time I have to code an animation for an array. Every box, one by one, will take a white color for 3000 ms. But it's not working. Can you help me? function searchNumber(){ var taille; for(var i=0; i<taille; i++) { tabRect[i].hide("5000"); tabRect[i].show...
{ "language": "en", "url": "https://stackoverflow.com/questions/36249449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Combining Provider with a steam provider not updating I am working on a technique to determine if some has elevated rights to show an edit icon. I am using Firebase for auth and firestore for back end. My thoughts were to have the page do a quick check for a record within a certain section that requires the user to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72045478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I reinstall all Python libraries if I install Anaconda's Python as primary in my system? I have been using Python on Windows for some time to analyze survey data, usually available in the form of Excel files. For this reason I have installed several libraries, including pywin32, holoview, bokeh, pandas, numpy...
{ "language": "en", "url": "https://stackoverflow.com/questions/74209563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make current OAuth User Identity retrievable via IoC in WebAPI project I have an Owin based OAuth 2.0 implemention in ASP.NET WebAPI 2 application. Given that I set a correct claims to a validated identity, In my controller code I an get the currently authenticated user via this.User property. I need to setup Ninjec...
{ "language": "en", "url": "https://stackoverflow.com/questions/28431725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merging a dataframe in a dict with another dataframe in Python I have a dict that currently looks like this: raw_data = {'Series_Date':['2017-03-10','2017-03-10','2017-03-10','2017-03-13','2017-03-13','2017-03-13'],'Value':[1,1,1,1,1,1],'Type':['SP','1M','3M','SP','1M','3M'],'Desc':['Check SP','Check 1M','Check 3M',...
{ "language": "en", "url": "https://stackoverflow.com/questions/43144640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I re-route network traffic using Python? Small apps like Freedom and Anti-social have created quite a stir lately. They cut you off from the internet either entirely or just block social networking sites in order to discourage procrastination and help you exert self control when you really want to get some wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/3960294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why am I getting the record added again after deleting it I have a button, which calls the delete function when clicking on it: deleteRecord = (id) => { return this._entriesRef.doc(id).delete() } And in the DataStore, I have a event listener, which listens for the change of the snapshot: snapshot.docChanges.forEa...
{ "language": "en", "url": "https://stackoverflow.com/questions/48411373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to initialize a property in a category before any category method is called? Is it possible to initialize a property in a category? For example, if I have a mutable array property called nameList in a class. Is it possible to have a category created for this class to add an object to the array proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/21898667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regular expression alphanumeric with dash and underscore and space, but not at the beginning or at the end of the string This regex lets me have a string with alphanumeric, dash, underscore, and space chars in my string: ^[a-zA-Z0-9-_ ]+$ However, I need it to prevent string starting and ending by space. How can I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60655453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can @SuppressWarnings("deprecation") apply to the use of a deprecated interface without applying to the whole class? I have some legacy code that implements a deprecated interface. This particular component will soon be deprecated and removed itself so it does not make sense to refactor to address the root cause of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23820581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Play with numbers problem from hackerearth ....i'm getting time limit exceed problem You are given an array of n numbers and q queries. For each query you have to print the floor of the expected value(mean) of the subarray from L to R. Input: First line contains two integers N and Q denoting number of array elements...
{ "language": "en", "url": "https://stackoverflow.com/questions/62346133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Why composer runs as root even though it's setuid has been changed to another user I am using official docker php image as base image and installed composer on it. Some snippets from my dockerfile has given below. RUN set ex \ # Install Composer && curl -sS https://getcomposer.org/installer | php -- --install-...
{ "language": "en", "url": "https://stackoverflow.com/questions/52911426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to start Sphinx searchd daemon due to already running searchd process, and it restarts just after killing it When I try to start searchd, it gives the following error. bind() failed on 0.0.0.0, retrying... FATAL: bind() failed on 0.0.0.0: Illegal seek I can find a searchd process running root 14863 0.1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9844332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MongoDB aggreagate query to get list of each element and its count for each record In my mongodb, i have few collections, i want to create a new collection by comparing the collection 1 and collection 2 using pymongo. Collection 1 : Object id timestamp Prof_Name subjects1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48495233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Graph API - PHP - Can't post to certain pages Question: Why is it giving this error and how do I resolve it? I am using the Facebook Graph API to post a reply/comment to specific posts that I have already created in specific Facebook groups. I am a currently a member of the group and can reply/comment man...
{ "language": "en", "url": "https://stackoverflow.com/questions/28308884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to get the dual problem of a primal problem in pyomo? I am currently working on robust optimization and here I use the dual problem to make the optimizationn tractable. As I want to start to create larger problems, I don't want to have two optimization programs all the time. Therefore, I was wondering...
{ "language": "en", "url": "https://stackoverflow.com/questions/74396843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is the difference between the addresses of a function's parameters always 4 bytes? I've been doing some pointers testing in C, and I was just curious if the addresses of a function's parameters are always in a difference of 4 bytes from one another. I've tries to run the following code: #include <stdio.h> void func...
{ "language": "en", "url": "https://stackoverflow.com/questions/57084488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: vscode How to change `package scripts` to` launch debug`? package.json "scripts": { "start": "node -r dotenv/config index.js dotenv_config_path=.env", .vscode\launch.json { // https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60164003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: solving assignment error in typescript: «Module parse failed» I'm trying to assign a object to initialState variable, the selectedActivity type is Activity | undefined and after Nullish Coalescing operator (??) the emptyActivity is of type Activity. but when this line execute, it throws an error that says: Module pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74333898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: string.c_str() outputs gibberish - but only sometimes I'm writing a short OpenGL-program, and need to import the shader source, which I use the following code for (OpenGL wants the shader source as a c-string): std::ifstream t("GLshader.vert"); if (!t.is_open()) { std::cerr << "vertex shader open fai...
{ "language": "en", "url": "https://stackoverflow.com/questions/41875076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ms-access 2003: form does not open! help! i have an access db with forms, one of the forms is not opening. i double clicked on it, i tried to open in design mode. nothing happens. there's no error message, but nothing happens. has anyone had this issue before? i am sorry i actually am getting an error now: The error...
{ "language": "en", "url": "https://stackoverflow.com/questions/3258488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error 404 after install gitlab I've installed gitlab on centos 7. I've followed the instructions gitlab instructions , I 've set the external url as 192.168.0.6/gitlab but I got a 404 error when I browse this url. I've never installed Gitlab before but on apache document root there is no Gitlab folder. What can be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50682977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to separate Arabic with alphabetical? If you try this link https://jsfiddle.net/u4bxz74c/10/. Later the result will be like this PART 1 <p id="posttextareadisplay"> <p class="ENGLISH">This is a samplasde textssss</p> <p class="ENGLISH"><b>فَإِذَا جَلَسْتَ فِي وَسَطِ الصلَاةِ فَاطْمَئِن، وَافْتَرِشْ فَخِذ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45339203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 2D SVD and Kabsch algorithm I'm implementing Kabsch algorithm in 2D. Result of algo is: translation, rotation, scale. Combaining them and applying on 1st set of points should "align" them to 2nd set of points. So far my implementation (work-in-progress): // maps points 'A' onto points 'B' public static (Vect...
{ "language": "en", "url": "https://stackoverflow.com/questions/65671675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Write csv data to directly to azure blob in node js I want to create a CSV file using csv-writer , and upload that csv to azure blob, I am able to create the csv, store it on local system, and then read from local and upload to blob using azure-storage npm. But I dont want to create/store the CSV on local filesystem...
{ "language": "en", "url": "https://stackoverflow.com/questions/66653520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: choose stepper in odeint through if statement I want to choose integration scheme through a if statement like this: //stepper_type steppr; ?? if (integration_scheme == "euler") { [auto] stepper = euler<state_type>{}; } else { [auto] stepper = runge_kutta4<state_type>{}; } but stepper is only valid inside th...
{ "language": "en", "url": "https://stackoverflow.com/questions/58353704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python - Datetime's Time is always zero Strange little problem I'm facing with Datetime. Here's what I'm doing: >>> from datetime import datetime, date >>> t = date.timetuple(datetime.now()) >>> t time.struct_time(tm_year=2011, tm_mon=6, tm_mday=14, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=1, tm_yday=165, tm_isdst=-1)...
{ "language": "en", "url": "https://stackoverflow.com/questions/6342102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the Date in stencil bigcommerce I'm setting up a minimum and maximum number of days a customer can return a product. But my problem is that how can I get the current Date on stencil bigcommerce? I tried using the {{moment "now" "MM/DD/YYYY"}} It works great but the problem is that when I change the current ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56558072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to vectorize this code below in Python without joining two dataframes I have two dataframes with multiple columns like below head(df SCHEDULING_DC_NBR COMMODITY_CODE Unload_Start_Time DOW Dlry 0 6042.0 SCGR 15:15 SUN 5 1 6042.0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64345579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF adorned elements flickering I have built a custom timer control that is basically a user control, this control has TextBox controls the have values which counts down while it is working. This control is added as a child to a Canvas, and when start dragging the control it is placed in an AdornerLayer. while dragg...
{ "language": "en", "url": "https://stackoverflow.com/questions/14577298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Render props method without nesting dom element In essence I have the following inside a react functional component: <div className="content"> <div className="filters"> <MyFilter1 data={data}> {(filter1Data) => { return <MyFilter2 data={filter1Data}> {(finalData) => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56606153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Terraform parsing error in Visual Studio Code I am new to Terraform and I'm trying to deploy a resource group using the example from the documentation found here, in Visual Studio Code. I receive a json parsing error when trying to use terraform apply or terraform plan. The commandsterraform init, terraform fmt and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74220252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: keyboard event should fire after filling text box I am working on keyboard events using j query. I have two text boxes one accepting first name and second one accepting last name. I want to alert first and the last name after filling the text box. I am using a(ascii code 65) key to fire event. The problem here is ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/29573636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: echo works twice just for one id but doesn't for the other one There are 2 entries on the table. But it echos 3 entries but it echos twice one of them. If i change it to ASC from DESC, then it echos the other one twice. If i use "where id <> 5" then it just echos id 6 just once. But it is a dynamic site so... And i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27787062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL - create SQL to join lists I have the following table: CREATE temp TABLE "t_table" ( usr_id bigint, address varchar[], msg_cnt bigint, usr_cnt bigint, source varchar[], last_update timestamp ); Add Data: INSERT INTO "t_table"(usr_id, address, msg_cnt, usr_cnt, source, last_update) VALUES (1, '{44.15...
{ "language": "en", "url": "https://stackoverflow.com/questions/58422026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase admin: Cannot read property 'cert' of undefined I'm trying to set up firebase in in my node.js server. In deploy.js I am setting up up like this: const admin = require('firebase-admin/app'); const serviceAccount = require('../serviceAccountKey.json') admin.initializeApp({ credential: admin.credential.cer...
{ "language": "en", "url": "https://stackoverflow.com/questions/73120201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Smoother Keypressed event for paddle object in pong I'm trying to make my paddle movements smoother in my pong game. My player_paddle1 has smooth movements and will stop whenever I let go of the key. However, my other player_paddle2, which incorporates the same keypress algorithm has the other paddle, does not do so...
{ "language": "en", "url": "https://stackoverflow.com/questions/47560867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using RestSharp, how to include a fieldname like "$fieldname" in RestRequest.AddJsonBody()? Using RestSharp, I need to POST a body containing a json string that looks like this: { "$a": "b", "c": "d" } In the past I've created RestSharp requests using code like this: var request = new RestRequest("someApiEn...
{ "language": "en", "url": "https://stackoverflow.com/questions/47721020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass through `IHttpHandler` response on error So, IIS is pissing me off. It keeps on screwing with my error handling. I have a number of IHttpHandlers registered, and they're doing a good job. When I connect locally, I get the response I expect. But when I connect remotely, IIS's CustomErrorModule starts interfering...
{ "language": "en", "url": "https://stackoverflow.com/questions/36227031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: onLoad() jQuery not working correctly because of Uncaught TypeError: Cannot read property 'hps' of undefined My onLoad jQuery function is not working. The HTML starts with a "loading" gif, and the jQuery should fade in the featured-photo while fading out image-loader. The loadImage function is called in the html, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/34169067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cast ConstantDataArray to i8* in LLVM Simple question: "I have a ConstantDataArray of type [7 x i8], how can I cast it to have the i8* type?" EDIT More Context: The ConstantDataArray is created as follows: ConstantDataArray::getString(Fn->getContext(), "Hello", true); And I have created a LLVM:Function that has an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43549707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Options for a file system based Sql database for a multiuser web application that can perform and scale What are my options for a file based sql database (not NoSql) which scales well, performs well, and is designed for handling many hundreds of multiple users (and plays nice with .net)? My requirements I'm accusto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Show popup once? I am trying to show a popup, and if the user clicks dont show again, I want to never show it again. However, the dont show again button is not working. I am using shared preferences: if (dialogPrefs.getBoolean("Show", true) == true) { new AlertDialog.Builder(this) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35687497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Joining Lists using Linq returns different result than corresponding SQL query? I have 2 tables TableA: TableAID int, Col1 varchar(8) TableB: TableBID int Col1 char(8), Col2 varchar(40) When I run a SQL query on the 2 tables it returns the following number of rows SELECT * FROM tableA (7200 rows) select * FROM tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/10805278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Increase json ordered list by 1 using python I have a json file that is similar to this { "items":[ { "item":0 }, { "item":1 }, { "item":2 }, { "item":3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35593406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Setting Table View Cell Image I've set the image for the cells in my table view, but the lines dividing the cells aren't showing. What have I done wrong? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *mbTableIdentifier = @"SimpleTableItem...
{ "language": "en", "url": "https://stackoverflow.com/questions/16640833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make this custom bootstrap navbar responsive to viewport size? I have the following navbar, which works pretty well with my screen (1300 pixels wide by 700 high): When the viewport is smaller, the elements in the navbar go crazy: I've found that switching between any of the typical bootstrap classes jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/60688363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Backbone error when I pass a parameter on URL This is my code: <!DOCTYPE html> <html> <head> <title>Bakbone pushStat</title> <script type="text/javascript" src="vendor/jquery-1.9.0.min.js"></script> <script type="text/javascript" src="vendor/underscore-min.js"></script> <script type="text/javascript" src="vendor/bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/23828825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add bulk hardware access in softlayer using API and nodejs I have below code to add bulk hardware access in softlayer using API and nodejs: slClient .auth(slUserID, slApiKey) .path('User_Customer', userID, 'addBulkHardwareAccess',{"hardwareIds":["XXXXX,XXXXXXX"]}) .post() .then(res => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51010124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I ignore a field when marshalling a structure with P/Invoke I want to marshal a structure for use with P/Invoke, but this struct contains a field that is only relevant to my managed code, so I don't want it to be marshaled since it doesn't belong in the native structure. Is it even possible ? I was looking f...
{ "language": "en", "url": "https://stackoverflow.com/questions/1704282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Find cities within given mile radius from address I'm using CakePHP/mysql to build my app and I'm trying to get a list of cities within a given mile radius around an address both supplied by the user. So far I have a list of all US cities in a database with the long/lat. I also am using a CakePHP plugin to get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7825956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to vertically align a p child of a parent div, with intention to easily text-align the child? My goal is to vertically align a child p of a parent div. Currently, I use Flexbox. But it prevents me to modify the text-align. My expected result: The text is vertically aligned, and can be text-aligned. My actual res...
{ "language": "en", "url": "https://stackoverflow.com/questions/67496692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what does the "Index: 68, Size: 10" means? I am getting an error java.lang.IndexOutOfBoundsException: Index: 68, Size: 10 I know what this errors means.. That I try to read a position of an array where it doesn't exists. I don't know however this Index: 68, Size: 10 what does it means.. that I tried to read the pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/33923445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use one Frame buffer object to both render on texture2d and render on screen in opengles 2.x ios I want to record everything in my game( using opengles ) into movie to user could replay later. I have problem is: I used frame buffer to render on texture2d and get read pixel from it using CVPixelBuffer and CVOp...
{ "language": "en", "url": "https://stackoverflow.com/questions/20117314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSON Web Key (JWK) for IRS E services registration While signing up for the IRS E-services they are requesting a JSON Web Key (JWK). they want the following fields in the JWK kid, kty, use, n, e, x5t, x5c. The "kty" field should be equal to "RSA". In this answer it is shown how to generate the keys but I cannot find...
{ "language": "en", "url": "https://stackoverflow.com/questions/70791460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to safely access every n-th element in a container in a succinct way? Consider an STL container C that is forward-iteratable. I need to access every step element, starting from idx. If C is a vector (i.e. has a random-access iterator) I can just use index arithmetic: template <class Container> void go(const Cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/45823347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Use STL Containers with Struct I want to store the address of each of the items of my linked list represented by this struct: struct Node { int data; Node* next; }; I made an unordered set for this as: unordered_set<Node*> h; I defined the iterator as unordered_set <Node*>::iterator got = h.fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48547958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery loop compare not getting expected result This is my code. I will explain everything step by step : myobj ={ month: 1, total: 2 }{ month: 3, total: 1 } newArray = []; for(i=0;i<=5;i++){ $.each(myobj.function(k,v){ if(i==v.month){ newArray.push(v.month) }else{ newArray.push(0) } }) } Aft...
{ "language": "en", "url": "https://stackoverflow.com/questions/61614818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Product scoped dimensions in Google Analytics and Google Tag Manager I need to pass my product scoped custom dimension throught Google Tag Manager into Google Analytics. I am able to read just first variable in my array of objects of products. And no custom dimension is showing at all (even this first value of all o...
{ "language": "en", "url": "https://stackoverflow.com/questions/40450926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Concatenating all combinations of matrix rows i use matlab and need to combine two 2-dimensional matrices, so that the resulting rows are combinations of the rows from the input matrices concatenated together. I tried ndgrid, but this creates ALL possible combinations. I need the input rows to stay together to creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/17718923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: change Anchor link texts size and color I am trying to detect an anchor link that is being clicked from the previous page. I have a HTML like index.html <a href='test.html#project1'>project1</a><a href='test.html#project2'>project2</a><a href='test.html#project3'>project3</a> bunch of stuff... test.html <a href='#...
{ "language": "en", "url": "https://stackoverflow.com/questions/19147914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: svn post-commit hook : "error resolving case" & "skipped \\ip-address\users\myDir"" messages I've got Collabnet SVN server installed on windows. Additionally, I have implemented a post-commit hook that should update a working copy "B" of a project when I commit to the repository from a working copy "A". Working copy...
{ "language": "en", "url": "https://stackoverflow.com/questions/6732154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extract field of struct array to new array I have a struct, which has 2 fields: time and pose. I have multiple instances of this struct composed in an array, so an example of this is: poses(1) -time = 1 -pose = (doesn't Matter) poses(2) -time = 2 -pose = (doesn't Matter) poses(3) -time = 3 -p...
{ "language": "en", "url": "https://stackoverflow.com/questions/12082746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Serve a static JSON object file in rails How do I serve a static JSON object from a file in rails? (I want to access it in an ajax call)? What is the best method? A: Just place what you want to render in a variable, then use render :json => variable There are sensible defaults for lists, dicts, etc... See this: htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/9348712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Difference between clone remote repo directly and fork remote repo first I work for another project lately, including about 15 developers. We use GitLab as our source control server. What confused me is that we fork the original remote repo first, then clone the forked repo to local repo. When we want to push some...
{ "language": "en", "url": "https://stackoverflow.com/questions/58288217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to Configure search:search options to create cts element query having second parameter as cts-and query with empty sequence? I am using search:search API for searching in Marklogic. I want to form a cts element query as given below cts:element-query(fn:QName("element-name"), cts:and-query(())) What would be the...
{ "language": "en", "url": "https://stackoverflow.com/questions/42022034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: detecting three presses of power button I'm new in Android. I'm trying to make an app that will run in background and detect three rapid presses of the power button. I've looked up a lot, but could not clear my confusion. can anyone please give me some suggestion? TIA. A: Declare the static variable outside the onK...
{ "language": "en", "url": "https://stackoverflow.com/questions/21386629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel: text-overflow:ellipsis does not work with displaying unescaped data I'm having a problem with the property text-overflow:ellipsis. In particular, the three points at the end of the broken line are not displayed. Since I don't want to escape the data, since I use ckeditor (hence formatted text), I use the fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/74310029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't validate my APP with iTunes, which names and identifiers must match itunesconnect? I have an tvOs App on iTunes, and I am now trying to upload (validate) an improved version of that App. I get the error message: iTunes Store Operation Failed. Unable to process the app at this time due to general error When I...
{ "language": "en", "url": "https://stackoverflow.com/questions/40369346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to change css transition start? I'm trying to rotate each of these 2 cards when I click on them, but it doesn't work properly. I wanna the transition to occur only when I click on the card, not at the beginning. And if there are any ways to enhance this code plz let me know, I'm still a beginner * { margin: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57728221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to mark other components invalid in a custom multi-field validator I refer to one of BalusC's answers: JSF doesn't support cross-field validation, is there a workaround? I follow the same way, and come out with code as below: in .xhtml <h:form id="form1"> <div> <p:messages globalOnly="true" display="text" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14376875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Print PDF using GhostScript I am in need of your support on the following issue since its pulling me for a while. We have a small c# utility, which print given PDF using GhostScript. This print as expected but fail to retain the page formatting’s. However, pages are printed as expected when I switch Adobe Acrobat in...
{ "language": "en", "url": "https://stackoverflow.com/questions/20524323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Emulator Settings Menu doesn't work Using the level 11/3.0 emulator, the 'Settings' menu doesn't work. Click on any item eg. 'Sound' or 'Screen' and nothing happens beyond the momentary high-lighting of the item. In eclipse, a logcat entry appears INFO/ActivityManager(73): Starting: Intent { act=android.intent.actio...
{ "language": "en", "url": "https://stackoverflow.com/questions/5098345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Handling changes in an interface shared across multiple solutions? Our "main" solution is the development code: shared libraries, services, UI projects, etc. The other solution is an integration and automated tests solution. It references several of the development projects. The reason it is separate is to avoid int...
{ "language": "en", "url": "https://stackoverflow.com/questions/2493145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why don't you need to pass arguments to a qsort comparator function? Code below taken from here. * qsort example */ #include <stdio.h> #include <stdlib.h> int values[] = { 40, 10, 100, 90, 20, 25 }; int compare (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main () { int n; qsort (...
{ "language": "en", "url": "https://stackoverflow.com/questions/11353260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Heroku timing out when using sequelize As of yesterday (04/24/20) Heroku bumped the standard node version to v14. If you are using sequelize this can cause any call to sequelize to hang without an error until heroku times out. A: You can fix this by downgrading to v13 of node. add: "engine": { "node": 13.x.x } to...
{ "language": "en", "url": "https://stackoverflow.com/questions/61393954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what does super really do in python I have just read Method Resolution Order by GvR, but I wonder if the following statement holds true(I agree with this) in Python's Super is nifty, but you can't use it. So super() causes the next method in the MRO to be called? Also noted in this comment. One big problem with 'su...
{ "language": "en", "url": "https://stackoverflow.com/questions/20393543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printing as a dictionary in python I have a problem in python. I want to create a function to print a file from user to a new file (example.txt). The old file is like this: {'a':1,'b':2...) and I want the new file like: a 1,b 2(the next line) But the function which I made can run but it doesn't show anything i...
{ "language": "en", "url": "https://stackoverflow.com/questions/32420612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery append html element but with a different class name each time I'm creating a sitemap function for my website what I have a function which appends a new select box which multiple options and I have a remove function which will remove the select box. Well I say remove the select box but what it actually does i...
{ "language": "en", "url": "https://stackoverflow.com/questions/18785132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CUDA shared memory, does gap-access pattern penalizes performance? I am dealing with a CUDA shared memory access pattern which i am not sure if it is good or has some sort of performance penalty. Suppose i have 512 integer numbers in shared memory __shared__ int snums[516]; and half the threads, that is 256 threads...
{ "language": "en", "url": "https://stackoverflow.com/questions/23897760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to form str.decode line? With this line str(hex(int(207))).decode('cp1251',errors='strict') I get 'str' object has no attribute 'decode' What is the correct way to format the line? A: Problem The decode method you want belongs to Bytes and BytesArray objects. So you need to convert your hex string to Bytes (o...
{ "language": "en", "url": "https://stackoverflow.com/questions/62968536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Android LruCache between two activities I read about using LruCache from developer.android.com, and I create a blurred Bitmap from one activity and put it into cache, now that I want to access the cached image from another activity but it returned null. Any examples or links on how to properly use cache will be grea...
{ "language": "en", "url": "https://stackoverflow.com/questions/24783437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use audispd to send messages forwareded from a remote system to local syslog Using RHEL6, I currently have audispd setup to send logs to a remote server. The remote server successfully receives the messages, and writes them to the remote audit log. My problem is, I can't seem to get the forwarded messages(l...
{ "language": "en", "url": "https://stackoverflow.com/questions/19801634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't bind to a property I've got the following markup. <TextBox x:Name="Address" Text="{x:Static local:MainWindow.Boundie.SomeProp}" </TextBox> In the code behind I have a static property like so. static Something Boundie { get; set; } public class Something { public String SomeProp { get; set; } } Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27837488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }