text
stringlengths
15
59.8k
meta
dict
Q: Make Selectable True for only given date range in React Big Calendar I am using React Big Calendar. By Default selectable true make the whole calendar selectable but I want to make only selectable true of given time and change the background color of that time range in the calendar. I am not willing to create event....
{ "language": "en", "url": "https://stackoverflow.com/questions/53184562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to hook api calls in another application I am trying to hook the ExtTextOut and DrawTextExt GDI method calls of another application. I know that I need to Use GetProcAddress to find the address of those methods in gdi32.dll, and overwrite the address in the process I want to hook with the address of my function....
{ "language": "en", "url": "https://stackoverflow.com/questions/3464366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Jasper Report graph in iReport repeating I have a line graph in iReport which is incrementally repeating in every page, that is, if the graph has 30 x/y pairs (this is dynamic), the report will have 30 pages, of which the first will have just one value, the 2nd two values, and so on. Only the last one will contain t...
{ "language": "en", "url": "https://stackoverflow.com/questions/9564001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use two different custom UITableViewCell subclasses in a single table? How to I properly display to different UITableViewCell subclasses within the same UITableView? I am using the storyboard for this question. I am trying to use two different subclasses of UITableView cell in a single table. The idea that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20690037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: static interfaces in c# Sorry it's possibly a duplicate but in the other static interface they mention generics which I am not using. I wanted a quick and simple logger for my app I though I could avoid a singleton using a static element. I would have like to keep the interface so that later I could change to anothe...
{ "language": "en", "url": "https://stackoverflow.com/questions/6945127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eigen SparseLU factorize too slow In my code, SparseLU.factorize() takes 1'20" to execute. How to speed it up? Or, are there any inappropriate steps slowing it down in my code? Here is the code: Eigen::SparseMatrix<double> F(verticesNum, verticesNum); // verticesNum is about 34918 // reserve space for non-zero ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/62387748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to proxy requests in docker swagger ui I'm using Swagger UI using its docker version. The Try it out button is not working as expected from the Web UI because there's a problem with cors. I'm running the UI from localhost and doing requests to another domain. I have read this other question How to avoid CORS err...
{ "language": "en", "url": "https://stackoverflow.com/questions/72200046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Actionscript show button after amount of time Hi i'm loading a FLV into a blank video holder and would like to display a button when the video reaches a certain point. Is this at all possible? A: You didn't specify the version of actionscript in use, so I'll assume you're using as3. You could * *use cue points e...
{ "language": "en", "url": "https://stackoverflow.com/questions/649916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Meaning of command ls -lt | wc -l My friend just passed me this command to count the number of files in a directory: $ ls -lt | wc -l Can someone please help me flush out the meaning of this command? I know that ls is to list all the files. But what does -lt mean? Also, I get a different count if I use ls | wc -l w...
{ "language": "en", "url": "https://stackoverflow.com/questions/20851413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: building android project produces make error 2 I have recently purchased a book to assist in my development of C++ for Android which contained some code samples. However, when I come to build some of the sample code, I receive the following error: C:\ndk\android-ndk-r9\ndk-build.cmd all "Compile++ : Chapter10 <= ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19477500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Error message converting pandas dataframe integers to datetime I was trying to convert dates into datetime since they were given to me in YYYYMMDD format on my HW. The date was already indexed for a previous problem so I wrote out: df.reset_index() df['DATE'] = pd.to_datetime(df['DATE'], format='%Y%m%d') This is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/69692598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simplest way of integrating Angular-created elements with D3 I'm playing around with different ways of integrating D3 and Angular, in the context of learning both of these frameworks, and am hoping for some input: My client application receives a JSON array of nodes and an array of edges from my server. The centr...
{ "language": "en", "url": "https://stackoverflow.com/questions/23231587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Cannot make child element the same height as parent element IE I am trying to make a child element of a table cell take on the table cell's height and width using CSS. Here is the html: <tr> <td> <div class="yellowDiv"></div> </td> <td></td> <td></td> <td></td> </tr> Here is the CSS I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/19989430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android imageview over another imageview I want an icon (ImageView) over another ImageView. When I tried, the icon is hiding behind the white image. In my code below, first image view is for the white box and another image view is for the icon. <RelativeLayout android:layout_width="54dp" andr...
{ "language": "en", "url": "https://stackoverflow.com/questions/58946988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Sharepoint 2007 File Upload , Page cannot be Displayed Having a bit of strange Sharepoint 2007 issue , especially for a Monday. Here's the scenario: Users within organisation cannot upload files to ANY doc Lib. User is able to click upload, browse, select the file without any problems. As soon as he/she clicks OK, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3448190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue constructing a has_many relation with scope using multiple join tables I have a tag system on multiple models that are linked together. The system works like this: * *A Top has many Middles *A Middle has many Lows *Tops, Middles and Lows have many Tags *A tag associated to Top level is supposed to qualify...
{ "language": "en", "url": "https://stackoverflow.com/questions/74318087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EnterpriseLibrary Error I'm receiving reports of a rare and intermittent error in our live environment. I have been unsuccessful in my attempts to reproduce it, and the error itself is a slight mystery. Add to that, it seems to be something involving Enterprise Library tracing (we're using version 5.0) - all in all,...
{ "language": "en", "url": "https://stackoverflow.com/questions/13016383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: android jni from static to non static methods I am trying to refactor some android jni code. It was initially setup to use static variables in JNI and static calls on the android side. I would like to change that to improve compatibility with other code. current method signatures static jclass main_activity; static...
{ "language": "en", "url": "https://stackoverflow.com/questions/32644064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send form data to Firebase The problem is that when I run this my real-time database is not updating and there are no errors coming or showing. function writeData() { firebase.database().ref("user").set( { Email: document.getElementById("help").value, Price: document.getElementById("pri...
{ "language": "en", "url": "https://stackoverflow.com/questions/68692499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $uibModal not loading correct content on first click I'm working in ServiceNow and am trying to use $uibModal to open up a modal window that holds an embedded widget. The modal opens fine on the first click, but every click after that requires two clicks for the modal to load the correct content. I've read on a fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/53842681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fatal error: Class ‘mysqli’ not found in C:\xampp\htdocs\code\query.php I’m in the middle of E10-4 from 'Learning PHP, MySQL & JavaScript' by Robin Nixon. I have enjoyed the book until two days ago when I got to exercise 10-4 where I was asked to run the following php program: <?php require_once 'login.php'; $con...
{ "language": "en", "url": "https://stackoverflow.com/questions/31362103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is this labeled javaScript continue not working? I am using this code to weather some circles are overlapping: iCantThinkOfAGoodLabelName: x = genX(radius); y = genY(radius); for(i in circles) { var thisCircle = circles[i]; if(Math.abs(x-thisCircle["x"])+Math.abs(y-thisCircle["y"])>radius*2) { //No overlap ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6393648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: error using result returned from angular service (undefined) So I have two variables in my Typescript class: private myServiceSubscription: Subscription; myVar: myDto[] = []; In the ctor: this.myServiceSubscription = this.deliveryPointService .getPostalAddresses() .subscribe(result => console.log(re...
{ "language": "en", "url": "https://stackoverflow.com/questions/50002782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prompt message box in remote computer where application is running as service? I have an C++ MFC application running in master machine that installs update from a server in remote computers through an agent service. This service takes care of authorization in remote machines before update. Now, I need to prom...
{ "language": "en", "url": "https://stackoverflow.com/questions/56422163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Push Data from a WCF Service to Website I have the following scenario, and I would like to know if there is a solution to achieve such thing: I have a WCF service that is running in a backend server, and it does bulk data processing, like inserting records into DB, and I would like to have this service send a messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/19265609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to collect activity information from network-attached storage (NAS) devices? My goal is to be able to generate a report about the users that have accessed a particular folder on any file share. This includes Windows file servers, Unix/Linux file servers, and NAS devices (CIFS/SMB/NFS). * *For Windows, this is...
{ "language": "en", "url": "https://stackoverflow.com/questions/21785390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wordpress - How to extract the first video embed from post content and place it in different area? I am trying to build a wordpress theme which extracts the first embedded video out of the content of the post and features it on top of the page. So for example, I am trying to go from this: <div id="main-post-content"...
{ "language": "en", "url": "https://stackoverflow.com/questions/35975590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using JSON to get data from MYSQL to Java i'm trying for days to get this working.. but i still fail. <?php $province = $_POST['test']; $dbhost = 'localhost'; $dbname = 'news'; $dblogin = 'root'; $dbpass = ''; function dbConnect() { global $dbhost; global $dbname; global $dblogin; global $dbpw; $db ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4530613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: While installing yolov3 using conda on window10 getting error Solving environment: failed When I am trying to install yolov3 on windows10 using Conda, getting following error: (base) D:\aaa\yolo>conda env create -f yolo.yml Collecting package metadata (repodata.json): done Solving environment: failed ResolvePackage...
{ "language": "en", "url": "https://stackoverflow.com/questions/63136555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create a Spring bean that cannot be autowired I have a class A that extends B, which implements C. Currently, A takes B has an input argument and is the only defined bean that is an implementation of C, so it gets autowired whenever C is needed. Without changing the ALL of the places where C is needed or the class s...
{ "language": "en", "url": "https://stackoverflow.com/questions/20478155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using NSTrackingArea in an NSView that is unattached to a window? Basically, I want an "invisible" NSView covering my entire screen. I will add an NSTrackingArea to that, so that I get global mouse events as my cursor moves about the screen. -(void)setTrackingArea { view = [[NSView alloc] initWithFrame:[NSScree...
{ "language": "en", "url": "https://stackoverflow.com/questions/9885503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing File Uploads From Angular to Flask I am trying to implement file uploading for my Web tool. The front end is developed using angular and the back end is using flask. Following tutorials on the flask website I have set up the following flask app: from flask import Flask, request from werkzeug import secu...
{ "language": "en", "url": "https://stackoverflow.com/questions/59249745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to bypass code if criteria don't match? The code works when the criteria exists. I get an error when the criteria doesn't exist. ' Define constants. Const srcName As String = "wfm_rawdata" Const srcFirst As String = "D2" ' Location for Group Const dstName As String = "bond_insurance" Const dstFirst As String = "...
{ "language": "en", "url": "https://stackoverflow.com/questions/71226311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keep client connected to WebSocket in react native and express server I have a react native application where i have two users using the app (customer and restaurant) So on checkout I connect the customer to websocket on the express server and once the order is placed i send a message to the restaurant which is supp...
{ "language": "en", "url": "https://stackoverflow.com/questions/70766805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't generate a new migration in Rails I am trying to generate a new migration to add an Index to a table field with the following : $ rails generate migration AddIndexToUserEmail Though, unexpectedly I get the following message C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.0.2/lib/rspec/core/formatters/b ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24727191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex Expression that matches a pattern except for specific matches I'm trying to extract Names from a HTML Response using a RegEx. So far I'm able to do so except I'm getting more than I need, I want to NOT match specific strings such as "Date" or "Today". Here is my regex: <li class="rcbItem">([^:()]{1,20})<\/li> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45247487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a stack allocated Rust buffer be accessed through C++? In order to avoid head allocations, and since I know the maximum MTU of an ethernet packet, I created a small buffer: [u8, MAX_BYTES_TRANSPORT] in Rust, that C++ should fill for me: pub fn receive(&mut self, f: &dyn Fn(&[u8])) -> std::result::Result<(), &str...
{ "language": "en", "url": "https://stackoverflow.com/questions/66503106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compare count of characters with a constant value, then execute next statement I have a PowerShell script where I get the count of certain string from a file, then go to next step or execute next step only if the string count is 30. I do have the code for getting the count of the string, as well the code for executi...
{ "language": "en", "url": "https://stackoverflow.com/questions/39691048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Better way to combine tables than multiple joins? I have two dfs, df1 and df2. I need to combine the dfs in a way that might require multiple left joins, but I have a feeling there's a better way to do this. df1 is a table of locations and people (id numbers) associated with them, it looks like this. location perso...
{ "language": "en", "url": "https://stackoverflow.com/questions/61328734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where should logic go for deciding which SQL query to execute I have a DAO with a method CommitmentListDAO.getListByOwnerBadge that returns an arraylist of commitment items against a supervisor badge (database field OWNED_BY) String SQL_VIEW_LIST_BY_SUPERVISOR = SELECT_QUERY + " WHERE c.OWNED_BY = ? " + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4795744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gitlab CI Runner slow to complete job I've been using the GitLab CI runner on Windows for a couple of years now, and am wondering why it takes a long time between when the compile has actually completed before GitLab deems that the job has completed. Here's a few screen grabs to show what I'm talking about. This one...
{ "language": "en", "url": "https://stackoverflow.com/questions/50070902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Access: Combining multiple rows into one, but show text I am trying to form a single row from multiple rows by using GROUP BY in my SQL statement. Problem is, the raw data I am working with contains data that I do not need, and all the fields are populated with text strings. For example, ID COURSE 01 Baking 101 01 D...
{ "language": "en", "url": "https://stackoverflow.com/questions/47160734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to download a file from the server using a POST request or a more secure method without using a GET request for iOS application. I do not want to use asihttp methods so is there a way to download a file from the server without having to use a get request? How to use a post request to download the file from the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/11770183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populating Tabs WinForms Goes Undetected without User View This might just be a small quirk. But I've built a small windows form application with multiple tabs. I have a feature that allows users to "load" the entries in each of the tabs by opening a json file. This lets them avoid manually inserting the data. At th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27724673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About linux kernel module Does the kernel module need a linux kernel to finish the compilation ? Can I compile a kernel module without kernel ? What I mean is: copy the needed kernel header, manually write makefile or manually compile. and without using the kernel building system. A: Lovespring, You will need a cop...
{ "language": "en", "url": "https://stackoverflow.com/questions/4867278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ggplot2 density of circular data I have a data set where x represents day of year (say birthdays) and I want to create a density graph of this. Further, since I have some grouping information (say boys or girls), I want to use the capabilities of ggplot2 to make a density plot. Easy enough at first: require(ggplot2...
{ "language": "en", "url": "https://stackoverflow.com/questions/36266402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Slow threading performance on Linux on ARM9 When I write a simple application, running for 10 minutes, that starts 10 threads once (pthreads), each sleeping for 1 ms in a loop (not doing anything else) the CPU is used ca. 44% (top reports that). It is a ARM9 CPU with 450 MHz, Linux 2.6.37 is used as OS. There is no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10152497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to import an old Excel file with extension.xls? I have a file from SAS that is exported as an older Excel .xls file. I would like to import this file into python 3.5. when I do: import pandas as pd Filewant = pd.read_excel("Filepath\\\Filename.xls") I get a bunch of error messages culminating in XLRDError: U...
{ "language": "en", "url": "https://stackoverflow.com/questions/40476327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Azure Logic App: Azure DevOps "When A Work Item Is Closed" trigger not firing at times I have automated some processes for when work items are closed in Azure DevOps (Boards) but on occasion the Azure Logic App is not triggered. I know this cause I have a different logic app that checks the counts between closed wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/70336948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQLite and Android Exception I am facing problem in android application i want to create database with following script. CREATE TABLE IF NOT EXISTS events ( _id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, source_device_id INT, timestamp INT NOT NULL, processed BOOLEAN DEFAULT FALSE, event_type TINYINT NOT NULL, payl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7882580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix cx_Oracle: DLL load failed? There are so many related questions that I have gone through which made me wonder how come this is such a prevalent issue? Anyways, I am trying to use cx_Oracle module. I have the : instant client: instantclient-basic-win32-11.1.0.6.0.zip python - 3.4 cx_Oracle - cx_Oracle-5.2...
{ "language": "en", "url": "https://stackoverflow.com/questions/31134947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this activity designed with cardviews? I am trying to design a layout similar to the one on the left image . I thought this was a layout with one cardview for each section. However, I tried to put more than one cardview inside a LinearLayout orientation vertical and I only see one. Why is that? Are cardviews ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/34053533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a static alternative of format!()? This is what I'm trying to do: fn foo() -> &'static str { let x = "Jeff"; return &format!("Hello, {}", x); } I understand that it's not possible, since format!() makes a String in heap, while the result of foo is expected to be in static memory. Is there a similar mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/70825018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to refresh AWS temporary credentials from within an app running in EC2 We have a java app that runs within an EC2. This uses AWS SDK to interact with AWS services. The app uses the default credentials provider which in turn uses the temporary tokens from the EC2. The problem is that this temporary token expires ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65469023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I "move" an object from one table to another using OpenJPA? I have two tables, that share the same definition. I commonly insert new objects into one of these tables, let's call it Table1. From time to time, I want to move one entry from Table1 to the other table (Table2). How can I achieve this using the Op...
{ "language": "en", "url": "https://stackoverflow.com/questions/6040969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with labels using library Charts with UIKit in XCode 12 Hell my friends.I'm developing an app which has to show several charts using UIKit and the library Charts. I've been requested to use both things. I have two arrays with correct data Ciudades y Precios. Ciudades is String type and Precios Double type. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/74919222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could not read the Interrupt Priority after vTaskStartScheduler() I want to use NVIC_GetPriority(DMA1_Channel4_IRQn) function with FreeRtos. I can use this function before the vTaskStartScheduler(); but, when I call NVIC_GetPriority(DMA1_Channel4_IRQn) function after vTaskStartScheduler();, it does not work do you...
{ "language": "en", "url": "https://stackoverflow.com/questions/53745655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Random encryption of string in C# I wanted to encrypt a string value with this method. public string EncryptString(string inputString) { MemoryStream memStream = null; try { byte[] key = { }; byte[] IV = { 12, 21, 43, 17, 57, 35, 67, 27 }; string e...
{ "language": "en", "url": "https://stackoverflow.com/questions/28230974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: `ngc` failed with angular material2 I'm trying to build a Angular 4 Universal App, following this guide. However, it failed when I called ngc to generate NgModuleNgFactory, I got this error: Error: Compilation failed. Resource file not found: /home/poi/Projects/solomon/src/app/module/archive/~@angular/material/themi...
{ "language": "en", "url": "https://stackoverflow.com/questions/44023734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: html5/javascript means can not protect source codes? I am learning html5/css3/javascript. But I have found that the samples on the web disclose their source codes. Does this mean html5/javascript can not protect source codes? Welcome any comments. A: All of those (HTML, CSS, JavaScript) work on the client side, alw...
{ "language": "en", "url": "https://stackoverflow.com/questions/6147272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot convert the value of parameter 'Date' to the type 'System.DateTime'.' I use EntityDataSource , i get an error conversion after i format my date like that :DataFormatString="{0:dd/MM/yyyy}" [EntityDataSourceValidationException: Error while setting property 'fromDate': 'Cannot convert the value of parameter 'fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/30211974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: d3.js: Multiple Series Line Chart With this code as a starting point: https://bl.ocks.org/d3noob/15e4f2a49d0d25468e76ab6717cd95e7 I'm attempting to make a simple line graph with multiple data series. Per @wasserholz suggestion, I've added a complete MVP: https://github.com/djmcmath/d3-fail-mvp The data parsing port...
{ "language": "en", "url": "https://stackoverflow.com/questions/73756011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is the API documentation for boto3 resources? I have learned that boto3 offers two levels of abstraction: a low-level API called client that is a thin wrapper around the AWS HTTP API, and a high-level client called resource that offers real Python objects. My question is, where is the API documentation for the...
{ "language": "en", "url": "https://stackoverflow.com/questions/49177491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Add 1 year to the current date in a batch file Hi couldnt find anything here to help out with this one. My company has a set of client folders that require a set of subfolders to be created at the end of each financial year. This is required to be a 2 digit representation of the year (ie - 14 Folder1 [for 2014] and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24520398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the exact protocol differences between Azure AD "classic", ADFS "3.0" & B2C This answer describes the difference between MSAL and ADAL in various use cases and contexts (mobile, non mobile) What are the exact protocol differences between these implementations? A: Azure AD is available both through ADAL wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/43019064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sub report text fields right alignment not working on jasper master report at run time I set right alignment in sub report text fields. Its showing in preview report but when I run this report from java then sub report text fields right alignment are not working. Here is my java code try{ Class.forName("com.micro...
{ "language": "en", "url": "https://stackoverflow.com/questions/35939141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding attributes to form labels in Django 1.5 I have some code that looks like: #form.html <form action="/form-action" method="post"> {{form.faction.label_tag}} {{form.faction}}<br /> {{form.character_name.label_tag}} {{form.character_name}} </form> #form.py class CharacterForm(forms.Form...
{ "language": "en", "url": "https://stackoverflow.com/questions/26261657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Anyone know of a good tutorial for Facebook authentication? I'm linking my app to Facebook, and would like people to log in with their Facebook account, but I can't figure out how to do this. I had read up on Facebook Connect, but it seems that that's not used any more - but every tutorial I can find seems to refer...
{ "language": "en", "url": "https://stackoverflow.com/questions/5438270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Aurelia custom binding with Parent resolver not injecting correct container Using a Parent.of resolver on a custom binding behavior does not work. The DI container received by the resolver is the root container. This stops it from finding the correct parent to inject. Using a custom attribute with the same Parent.of...
{ "language": "en", "url": "https://stackoverflow.com/questions/37229388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I implement session expiry based on users inactivity in django framework? I am using django request.session.set_expiry() to expire session for a logged in user. But it expires session even though user is active. if user is not None: login(request, user) request.session.set_expiry(60)
{ "language": "en", "url": "https://stackoverflow.com/questions/54477802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Post API using Ratpack and Groovy giving 405 Error and RxJava methods not working I am building an API using Ratpack and Groovy. The POST API is always giving: 405-Method not Found Error This is a snippet from POST Endpoint Handler. In this code, promiseSingle, then, observe, map, doOnNext, doOnError, etc. RxJAVA ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37634964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Seeding random number generators in parallel programs I am studing the multiprocessing module of Python. I have two cases: Ex. 1 def Foo(nbr_iter): for step in xrange(int(nbr_iter)) : print random.uniform(0,1) ... from multiprocessing import Pool if __name__ == "__main__": ... pool = Pool(proce...
{ "language": "en", "url": "https://stackoverflow.com/questions/29854398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: IE not clearing subsequent floats I'm trying to get two divs to float to opposite sides of the page, with text flowing between them. The top of the second (left-aligned) div should be even with the bottom of the first (right-aligned) div. The code below works fine in FF, Chrome, Opera, etc. fine, but they do not c...
{ "language": "en", "url": "https://stackoverflow.com/questions/795161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is causing my site to load and add "#" at the end? I think there might be something in my .htaccess file that is causing my page to load and then "bounce" back to the top adding # at the end of my domain, like this: example.com/# Here is my htaccess file: RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^...
{ "language": "en", "url": "https://stackoverflow.com/questions/16186302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Routers in versions 3.4.X Since I upgraded from version 3.3.3 to version 3.4 I'm have problems with routers: File "/urls.py", line 23, in urlpatterns = router.urls File "~/Library/Python/2.7/lib/python/site-packages/rest_framework/routers.py", line 81, in urls self._urls = self.get_urls() File "~/Library/Python/2...
{ "language": "en", "url": "https://stackoverflow.com/questions/39120364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multi language site and search engines I'm developing a site for a company that has clients from all over the world and the site will be served in two languages: Italian (local) and English. Once a visitor visits the site I check the IP, if its coming from Italy I show the site in Italian , if it's not I show it in...
{ "language": "en", "url": "https://stackoverflow.com/questions/6740380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I fix this Python ModuleNotFoundError I am trying to figure out what is causing this file called builder.py to not run on mac even though it runs on windows. Code: import cffi import glob import platform # relative to build dir LIB_BASE = '../libs/' # compiling libraries statically to get a single binary EXT...
{ "language": "en", "url": "https://stackoverflow.com/questions/54032375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Mysql C++ Driver - Get prepared statement query after created I use prepared statements quite heavily in my c++ application. The problem that I'm having is that when a mysql query throws an error (i.e. foreign key constraint), I would like to somehow be able to get that query so I can debug. Here is a small code e...
{ "language": "en", "url": "https://stackoverflow.com/questions/17752138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get objects outside an array of objects I have a bit of a complex mix of objects and arrays and I was looking for way to flatten the arrays so it's less complex when I try to render it. Basically I have some input fields and there's an option to add custom fields with custom label and value, but the way it's stored ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65365335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Homework Sales calculator Yesterday I submitted this problem, got terrific responses but my code still didn't work. I modified my code based on another student's code that works, but my code still won't calculate but it validates in javascript. Any suggestions. This homework is due TONIGHT! <!DOCTYPE HTML PUBLIC "-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7705544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Starting shell from android app to run separate executable I want to start shell from android application because i want to run an executable file and pass few arguments and expect output. I tried ProcessBuilder and process and run at runtime listening to their io stream but android app does not allowing me to start...
{ "language": "en", "url": "https://stackoverflow.com/questions/7264968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ugly looking java data structure I've created the following structure which maps unique double values to one or more pairs of integers: @SuppressWarnings("boxing") private static final HashMap<Double, Integer[][]> rules = new HashMap<Double, Integer[][]>() { private static final long serialVersi...
{ "language": "en", "url": "https://stackoverflow.com/questions/772876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get snapshot from Sonatype I'm trying to get the snapshot release for atmosphere that is available for org.atmosphere and can't seem to get it... <repositories> <!-- Added to get the Atmosphere 1.1.0-SNAPSHOT, can be removed when 1.1.0 is released --> <repository> <id>oss.sonatype.org-snapshot...
{ "language": "en", "url": "https://stackoverflow.com/questions/16286055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ImageIcon color issue when I fetch from assets in flutter I'm starting to learn flutter and at the moment, I'm trying to show an image from assets, but it's color going to change and I don't know why. IconButton( icon: ImageIcon(AssetImage("assets/icons/library.png")), onPressed: (){ }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63155063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bot doesn't assign role in reaction role command So I've been trying to follow a tutorial on how to set up a reaction role command. Even though I do get the embed with the reactions that I wanted, when I react to it the bot doesn't assign the roles. After comparing the code to the tutorial I'm still not sure on what...
{ "language": "en", "url": "https://stackoverflow.com/questions/68104365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: html img tag within button tag not picking up javascript applied to button tag I have a dynamic formset where the user can click a button to remove forms from the formset before clicking submit. I've achieved this by applying some javascript to the button tag. This is a django app. My issue arises when I add a trash...
{ "language": "en", "url": "https://stackoverflow.com/questions/72372640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Web App Multiple Google Accounts Error I am creating a web app using Google Apps Script, and have run into kind of a wall. Sometimes the users using the web app use it while being logged in with multiple Google accounts. There is a known error that shows up when a user attempts to access a google web app whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/66780096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'tags' parameter at Python Softlayer API call SoftLayer.VSManager.list_instances() not working as expected I am implementing a cloud bursting system with Softlayer instances and Slurm. But I got a problem with Python Softlayer API. When I try to get a list of some specific instances with the API call SoftLayer.VSMan...
{ "language": "en", "url": "https://stackoverflow.com/questions/38723603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cheap reverse dns lookup Currently, I am running asp.net on a 4.0 Framework. I found one section of my code that is truly expensive for me to use. I currently get the IP Address and the reverse dns for users accessing my site, however, I am trying to keep performance in mind. Is there a cheaper alternative to this?...
{ "language": "en", "url": "https://stackoverflow.com/questions/8862464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to sort and group by by it's count I have the following: SELECT DISTINCT s.username, COUNT( v.id ) AS cnt FROM `instagram_item_viewer` v INNER JOIN `instagram_shop_picture` p ON v.item_id = p.id INNER JOIN `instagram_shop` s ON p.shop_id = s.id AND s.expirydate IS NULL AND s.isLocked =0 AND v.created >= '20...
{ "language": "en", "url": "https://stackoverflow.com/questions/29024336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the Image to display in a Custom ButtonImage Control c# I'm new to c# and i'm trying to create a ButtonImage Control. I've managed to get most of the code to work including TextAlignment and image resource selection, but the image won't display. I've tried adding TextImageRelation property as well as the Ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/11751582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make the PopupMenu appear at the selected Item of a TreeView in VB6 I hava a TreeView in VB6 that uses a PopupMenu when a Node is right clicked. As the VB6 PopupMenu defaults its position to the mouse coordinates the menu appears at the right place. What I want to accomplish is that the Popupmenu appears at the rig...
{ "language": "en", "url": "https://stackoverflow.com/questions/6726632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Context with filtering for daterange is not working I am having a view that is working and properly returning results as long as I am not filtering for dates. As soon as I start to add a filter e.g. booking_time__range = (start_date, end_date) no results are returned in my template. I have no tried to find the error...
{ "language": "en", "url": "https://stackoverflow.com/questions/66716716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is double tap still being picked up in this IOS code? Background - I have a map (MapKit) with a callout (custom view added to an annotation view) - I have managed to ensure that the "long press" gesture made over the callout view does not get picked up (see below, using "shouldReceiveTouch") Issue What I can't d...
{ "language": "en", "url": "https://stackoverflow.com/questions/35697397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: about bounded boxes of objects i'm trying to compose a dataset for the detection of soccer players, ball etc.. in a soccer game, i'm using alexeyAB Darknet framework, So in the labeling phase in each image there are at least 8 players a ball and other stuff, at some point it is logical to think about the fact that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/61551560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I customize the arguments to a kubernetes system pod such as kube-apiserver in Kind? I want to customize the arguments to kube-apiserver so that I can inspect the requests being made, so that I can debug a failing request. However, I'm not sure what I need to modify. I know that kube-apiserver can't be being...
{ "language": "en", "url": "https://stackoverflow.com/questions/60877242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django filter a prefetched queryset returning an empty list In my app I have some Users and Groups, that are related by a many to many relation through GroupMember. class User(models.Model): ... class Group(models.Model): ... users = models.ManyToManyField(User, through='groups.GroupMember', related_nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/65688505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set fixed size of a QDialog without cutting text I currently set a QDialog to have a fixed size using the following code dlg->setWindowModality(Qt::WindowModal); dlg->setFixedSize(dlg->size()); Now as a result of this code whatever size I save my ui form in QT Designer. It sticks to that size.This however ends up ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22542091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: R: Tabulate each column of a sparse matrix against a vector I have a logical sparse matrix, say m, (which can be any of Matrix, slam, or SparseM matrices if that makes things faster) that I want to do the following on: for (col in 1:ncol(m)) { print(table(m[ , col], logicalV) } where logicalV is a fixed logical v...
{ "language": "en", "url": "https://stackoverflow.com/questions/19427474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get n unique numbers uniformly from a given range? I have a integer range [0, Z). I need to obtain n (where n <= Z) random numbers from this range, but they have to be unique. So I know I can just code up rejection sampling to do this, but I'm wondering if there's a one line python function that can do this f...
{ "language": "en", "url": "https://stackoverflow.com/questions/73640901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }