text
stringlengths
15
59.8k
meta
dict
Q: Where to find the size of SQL Server data types I am trying to calculate the size of my database. I will have a table with 3 columns (id, int, money) I will have 26 million rows with all columns being occupied. How big will my database be? Also, where can I find the size of all SQL Server data types? A: T-SQL has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/12166025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Why is my java animation taking up my entire CPU I made a program to display interference patterns for light waves. I did this by using the paint method on a JPanel to draw 2 sources and then drawing concentric circles around them. This would be double slit interference, so I allowed one of the sources to move aroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/35615886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use RankX function to calculate date rank per Fiscal Year per Entity ID I would like to use the RankX function (to use the Dense feature for ties) in order to rank the dates in a table per two columns: Fiscal Year and Entity ID. (I guess it may be easier to concatenate the two columns and just sort by that but I'm h...
{ "language": "en", "url": "https://stackoverflow.com/questions/62824504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails ActiveRecord: List parent category and sub category from self-join table I want to return a list like the one below. All category records which have a parent. Displaying parent name and category name. I'm using a self-join (self-associated?) model 'category' in which categories can be parents of other categori...
{ "language": "en", "url": "https://stackoverflow.com/questions/72520446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails initial page load extremely slow I've got a rails app in development mode (3.1.12 ruby 1.9.2) running on a windows server via fastcgi (with heliconzoo). If i wait a certain amount of time from page load to page load, it takes 4-6 seconds to load the page. Afterwards it's loading with normal speed independent o...
{ "language": "en", "url": "https://stackoverflow.com/questions/17168237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Core Data table to NSArray I have the following Array which retrieved from the Core Data : NSArray *dataArray = [context executeFetchRequest:request error:&error]; so I wrote this code to get each row data individually to send it to REST API: for (NSString *str in dataArray) { NSString *name =[dataArray v...
{ "language": "en", "url": "https://stackoverflow.com/questions/18359521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: actionListener associated with an h:commandLink/h:commandButton is not invoked I have a 2 forms that contain 4 buttons with each button having a an actionListener property set to call a single method in a request scoped bean. This method checks to determine what button is performing the action and then does a few th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27644647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript document.write is not working Sorry if this seems dumb, i'm new to JavaScript. This is in menu.js: document.write("<a href="index.html">Home</a>"); document.write("<a href="news.html">News</a>"); document.write("<a href="about.html">About us</a>"); This is in index.html: <head> </head> <body> <script...
{ "language": "en", "url": "https://stackoverflow.com/questions/18276223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: turn bootstrap button into link with javascript and ajax I have a bootstrap button, that i have embedded into a form. The form requests a php file with ajax. But i Cant get the button to work like a link? The html code is for the bootstrap button is : <a id="btn-login" href="#" class="btn btn-success">Login</a> and...
{ "language": "en", "url": "https://stackoverflow.com/questions/42657590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamically updating string from one div to another I have a list of divs that contain a string in h3 format. Upon clicking these divs (they are all the same class) a screen is displayed (part of the same html doc) containing some sliders for user input. Is there a way to make it so that when the screen is displaye...
{ "language": "en", "url": "https://stackoverflow.com/questions/46891386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to push into an existing session array , key and value in laravel With php I used if (!isset($_SESSION['cart']) || !isset($_SESSION['cart'][$product])) { $_SESSION['cart'][$product] = 0; $_SESSION['cart'][$product] = $_SESSION['cart'][$product] + $product_quantity; }else{ $_SESSION['cart...
{ "language": "en", "url": "https://stackoverflow.com/questions/71220462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Display plain text of api result ( noob question ) I am completely new to api. I want to display the plain text response of the output of this: https://vurl.com/api.php?url=https://google.com to my webpage html but it's not working. My code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/68971257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: overlaying a div over three floats I need a bit of help overlaying a <div> over 3 other <div> elements which are styled float:left in their own container. It looks like this now (http://i.imgur.com/2xk4tax.jpg) and i would like the text to overlay on top of the three floated colorlines. Here's my hmtl/css any help ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15440868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (AudioManager)getSystemService(Context.AUDIO_SERVICE) causing memory leak I had memory leak that was being caused by AudioManager. So I've commented out this line in my code to see if it would solve my problem: public class FireRoomActivity extends Activity { AudioManager am; protected void onCreate(Bundle savedIns...
{ "language": "en", "url": "https://stackoverflow.com/questions/20244288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamically List contents of a table in database that continously updates It's kinda real-world problem and I believe the solution exists but couldn't find one. So We, have a Database called Transactions that contains tables such as Positions, Securities, Bogies, Accounts, Commodities and so on being updated continu...
{ "language": "en", "url": "https://stackoverflow.com/questions/48974700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: New browser tabs for pdf files from glob-created list? To list a large number of sheet-music pdfs on a website, I'm using this at the top of my php/html file: <?php header('Content-Type: text/html; charset=utf-8'); function getFiles(){ $files=array(); if($dir=opendir('.')){ while($file=readdir($dir))...
{ "language": "en", "url": "https://stackoverflow.com/questions/45717307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can we use props to pass variable in vue? Slall question: I have a 2 parent components nesting the same child component inside of them. I use props so the parents can tell the child what title to show. this child component is a photo gallery. It makes a query to the database, download photos and show them up. classi...
{ "language": "en", "url": "https://stackoverflow.com/questions/67036390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uncaught ReferenceError: jQuery is not defined at file I am using phonegap and every time it gives me error at this line .I am trying to submit the form through phonegap , javascript works but with jquery it always me this errro Uncaught ReferenceError: jQuery is not defined at file jQuery(function() { Here Is m...
{ "language": "en", "url": "https://stackoverflow.com/questions/17554287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: K-Means Clustering having error of "Too many indexers" when multiple columns are given The code below is of K-Means Clustering copied from www.analyticsvidhya.com K=3 # Select random observation as centroids Centroids = (X.sample(n=K)) plt.scatter(X["DATE_ID"],X.iloc[:,-1],c='black') plt.scatter(Centroids["DATE_ID"...
{ "language": "en", "url": "https://stackoverflow.com/questions/71870731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails validate uniqueness between two models I'm still new to rails and I'm having trouble validating across models. I have two models, Artists and Songs associated with a many to many relationship. I would like to have a validation in the song model that checks that song url_slug is unique for each artist. I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/8108505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Regex Java word context what I want to achieve is that I want to obtain the context of an acronym. Can you help me pls with the regular expression? I am looping over the text (String) and looking for dots, after match I am trying to get the context of the particular found acronym, so that I can do some other process...
{ "language": "cs", "url": "https://stackoverflow.com/questions/27346080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: imap function is not working for me with PHP I try to access my gmail account with PHP, but I get an error message in line 2. IMAP is enabled in Gmail, while POP is not enabled. $mbox = imap_open("{imap.gmail.com:993/ssl}", "email@gmail.com", "password"); echo "<h1>Mailboxes</h1>\n"; $folders = imap_listmailbox($mb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7685283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation loss and accuracy has a lot of 'jumps' Hello everyone so I made this cnn model. My data: Train folder->30 classes->800 images each->24000 all together Validation folder->30 classes->100 images each->3000 all together Test folder->30 classes -> 100 images each -> 3000 all together -I've applied data augmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/75274978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git delete stash by name/message As far as I know Git can not delete a stash by name/message (despite it can save it by name with git stash save "name"). However, I really like to have this option for a 'combined alias' that I want to create for my workflow (especially for colleagues that are not that familiar with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20744051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Image on top of text changing it's color I'm trying to find out how to build something like this (see attachment). I do not know how to when a image (assuming it's an svg) goes on top of a H1 or any text it changes the text color. The attachment i print here has a breathing effect on the blob, i wont have that but s...
{ "language": "en", "url": "https://stackoverflow.com/questions/66474257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: (ionic solution) Disable android hardware back button for specific view. Back button should work as expected for other views in app On the tap of hardware back button on a specific view, it should not do anything. By Default it nav pop the view but here I don't want to back navigate on click of hardware back button....
{ "language": "en", "url": "https://stackoverflow.com/questions/47135288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Angular best practice for sharing single API call between two active components I'm trying to figure out what the best practice is for the following situation: I have two components A and B which are both are integrated on one page. Both components need access to data set C. Data set C is received by an API Call fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/64846458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regular expression in Python sentence extractor I have a script that gives me sentences that contain one of a specified list of key words. A sentence is defined as anything between 2 periods. Now I want to use it to select all of a sentence like 'Put 1.5 grams of powder in' where if powder was a key word it would g...
{ "language": "en", "url": "https://stackoverflow.com/questions/27946742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: R: Make a new column filled from value in a row I have multiple dataframes all structured as below but with thousands of observations. (df <- data.frame( col1 = c("Elem_A", "String", "String", "String", "Elem_A", "String", "String", "Elem_A", "String", "String", "String", "String"), col2 = c("DOI_1", "String", "Str...
{ "language": "en", "url": "https://stackoverflow.com/questions/73211348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: trying to create a loop that returns a logo in the list images and the name cryptolist i have a Widget that is called CoinCard which shows a cyrptoLogo,name and price. now instead of calling that widget 3 times and providing image and a name, i wanted to create a loop which will return a image from images and the na...
{ "language": "en", "url": "https://stackoverflow.com/questions/64958484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modify/clean field values before applying a query filter in MongoDB like in SQL Server? I have a SQL Server query that I need to convert into a Mongo Query. As we all know that we can clean up fields in SQL before applying conditions to them e.g In the 3rd line we are applying ltrim,rtrim on the clinics field before...
{ "language": "en", "url": "https://stackoverflow.com/questions/69295345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Boost serialization of class handling a possible null pointer I want to serialize the following class wrapping a pointer which can handle a null m_element as you can see when calling the default constructor. This follows this question. Live MCVE on Coliru template <typename T> struct Ptr { // Ptr could use init cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/31809638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I want to dynamically query WHERE clause using string builder I want to dynamically build the WHERE clause for my query using string builder. private void btnquery_Click(object sender, EventArgs e) { StringBuilder strQuery = new StringBuilder(); StringBuilder strWhereClass = new StringBuilder(); strQu...
{ "language": "en", "url": "https://stackoverflow.com/questions/21670046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Does github limit the number of personal access tokens per user Using Github Enterprise, I have a service/bot account where I'd like to generate a number of Personal Access tokens and provide to a number of teams. Is there any limit in how many Personal Access Tokens can be generated per user? A: As far as I'm awar...
{ "language": "en", "url": "https://stackoverflow.com/questions/62044629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add textFileds in Dropdown Reactjs I want to add textField - autocomplete in Dropdown? Could you help me how to do it? The source code in here: Source Code in Sanbox A: Since you are using Material-UI, you can use their autocomplete component with a TextField as input, have a look at the "Combo box" here: h...
{ "language": "en", "url": "https://stackoverflow.com/questions/67175353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sprint Wireless Toolkit 3.3.2 vs Sun Wireless Toolkit Anyone know the diference between Sprint Wireless Toolkit 3.3.2 and Sun Wireless Toolkit? A: AFAIK both are same. But I feel some differents between Sprint toolkit and Sun toolkit. These are, Sprint toolkit having Nokia, Samsung, LG emulators. But Sun java toolk...
{ "language": "en", "url": "https://stackoverflow.com/questions/4467259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript displaying text in quotes. How do I remove it? Edit: Turns out the api produces the quotes. Excuse me, as I have pretty much no knowledge of js/jquery, but I found a code I wanted to use. It uses tumblr's api. http://www.tumblr.com/docs/en/api/v1. Now, the problem is titles[i] shows text wrapped in quote...
{ "language": "en", "url": "https://stackoverflow.com/questions/14132063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Create bitmap of a DOMElement Objective C I have a Webkit DOMElement, a div for example. Now I want a renderized NSImage or NSBitmapImageRep of it. It's like a screenshot of a DOMElement. A: Public API choices: -[NSView cacheDisplayInRect:toBitmapImageRep:] -[NSBitmapImageRep initWithFocusedViewRect:] Private WebK...
{ "language": "en", "url": "https://stackoverflow.com/questions/4422346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL help to identify the Missing Data I have the following COMPANY_TABLE table SOURCE UNIQUE_COMPANY_D RECORD_STATE SUB_COMPANY_ID PARENT PRIMARY_PARENT ABC 111 Secondary 123 999 XYZ 111 Primary 456 YYY 222 Secondary 895 888 888 TTT 222 Primary 902 888 VVV 33...
{ "language": "en", "url": "https://stackoverflow.com/questions/40515152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Put a Variable in List Name Essentially, I want to create and fill a list based on the contents of a variable. The relevant data is being read from a (JSON) text file. #Check if a game was won, and assign a variable to `outcome` if game['stats']['win'] == True: outcome = "victory" else: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63973961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to melt and plot multiple datasets over different ranges on the same set of axis? This is my first time posting here, I hope my question is clear and appropriate. I have a set of data the head of which looks like this: wl ex421 wl ex309 wl ex284 wl ex347 1 431 0.6168224 321 0.1267943 301...
{ "language": "en", "url": "https://stackoverflow.com/questions/56605354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to find Artifactory Project in Visual Studio Extensions and Updates I am using Visual Studio 2017. I am trying to add JFrog Artifactory Project to push artifacts to Artifactory. To add Artifactory project I need to install it from tools--> Extensions and Updates--> search for Artifactory. But the search resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/47923379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Java, how do I create a bitmap to solve "knapsack quandary" I'm in my first programming course and I'm quite stuck right now. Basically, what we are doing is we take 16 values from a text file (on the first line of code) and there is a single value on the second line of code. We read those 16 values into an array...
{ "language": "en", "url": "https://stackoverflow.com/questions/9167425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Map String to Object using Jackson with inheritance I have the QueueContent class that it has is a superclass of two others. I get a String in JSON format that contains the information I need to extract. The super class is: @Data @JsonIgnoreProperties(ignoreUnknown = true) public class QueueContent { private St...
{ "language": "en", "url": "https://stackoverflow.com/questions/60744061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SOLR - DataImportHandler - how to map multiple objects inside one list of json objects I am new to SOLR,I am trying to index oracle DB query results using SOLR. I have written config.xml and added indexes in schema.xml as well. I have multiple queries as sub-entities(with child=true) in my config.xml file. Many of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/42483064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to detect execution environment? I would like to have a pair ofdb-specmaps with my database configuration for development and production. But I can't find an easy way to detect the current execution environment. Need something like (defn db-spec [] (if (is-dev?) { dev-spec-here } { prod-spec-here })). Maybe it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13908829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why do i get a circular import error on whichever module that comes first but not on the second? I am making a simple inventory program for college assignment. however i keep getting a circular import error on one of the module. i get the error on the module import that comes first and not on the second. but the str...
{ "language": "en", "url": "https://stackoverflow.com/questions/72219585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ggplot/qqplotr returns error on data format I am trying to create a QQ and/or PP plot from the air_time data inside the flights data frame belonging to the nycflights13 package. I am using ggplot with qqplotr. This is my code: library(nycflights13) library(qqplotr) ggplot(data = flights$air_time, mapping = aes(samp...
{ "language": "en", "url": "https://stackoverflow.com/questions/60599769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Fragment file is not indexed" in Signac/R I am currently running an snATAC-seq analysis and performed the following command: chrom_assay <- CreateChromatinAssay( counts = counts, sep = c(":", "-"), genome = 'mm10', fragments = '../vignette_data/atac_v1_pbmc_10k_fragments.tsv', min.cells = 10, mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/72524686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When i press Stop and then Play the sound dont works i have a simple app with 2 buttons. When i press Play, the sound run correctly, but when i press Pause and then play, the sound don´t works. Why? Here my code: import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22319255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to round up a floating variable in c upto 2/3/4....n digits precision without using and printf(".n%f") float f = 2.8386483,g ; //Suppose I am having f = 2.8386483..... I want to store k = 2.8.... to n positions where n=a natural //number //e.g. g= 2.83 to 2 decimal precision/n=2 // g = 2.838 to 3 decim...
{ "language": "en", "url": "https://stackoverflow.com/questions/23252453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Regex return all characters I was using the (.) to match all characters but it return back too with too many matches. How do i make it so it only 1 match? private MatchCollection RegexMatchingV2(string data, string regex) { MatchCollection col = null; try { col = Regex.Match...
{ "language": "en", "url": "https://stackoverflow.com/questions/10643275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Adding TextView to content_main in Navigation Drawer Template I'm trying to add a TextView to the content_main layout while the setContentView is at activity_main. I am currently using the Navigation Drawer template when you create a new project in Android Studio. Activity_main includes app_bar_main which includes c...
{ "language": "en", "url": "https://stackoverflow.com/questions/41970933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the difference between WPF and Silverlight application? What is the difference between WPF and Silverlight application? Are they the same? A: Silverlight is a subset of WPF. Once it was known as WPF/E (WPF everywhere). In fact, the base framework is similar, but not the same. See this for further informatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/629927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Vertically aligning block element to image? I'm looking for a way to vertically align a block element to an image. On my site this image would dynamically change in height and width so I'd need the vertical alignment to adapt for whatever the image size is. For example: <img src="photo.jpg" alt="test" /> <div id="bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/9072258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Taking 4-5 second to visible view with big ArrayList data to RecyclerView inside NestedScrollView I have three RecyclerView in NestedScrollView, 2 RecyclerView having approx 100 items and third having approx 400 items. Then it takes 4-5 seconds to render the view after adding data to arraylist and notifiedDataSetCha...
{ "language": "en", "url": "https://stackoverflow.com/questions/56475643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: python xml elementtree wrap text by number of characters I'm wondering in xml elementtree how to wrap the text? For instance, I have the following text 4324OO234324O234O32O423423OO23O432O4OO23O4O32O423O423O4O234OO234234O234OO324O234 And I need to make sure that it wraps the text for every 10 characters e.g. However...
{ "language": "en", "url": "https://stackoverflow.com/questions/36245543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sencha Extjs 6.2 : Edit object values in cell grid I have a grid and in the last two columns (Chourly and Cdaily), each cell contains an object. Example of data : { data: [{ Date: "2018/01/11 21:00:00", Ahourly: "1", Chourly: { val: 2, status: "Low", co...
{ "language": "en", "url": "https://stackoverflow.com/questions/48229785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Limit root node processing in CPLEX Python I have a very large problem (1m variables, 3m constraints) that I'm trying to solve using CPLEX in Python. Obviously, solving it optimally is out of the question, so I have implemented a time limit so I could get the best solution within that time. c.timelimit.set(7200) Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/53564585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HSQL database user lacks privilege or object not found error I am trying to use hsqldb-2.3.4 to connect from Spring applicastion. I created data base using the following details Type : HSQL Database Engine Standalone Driver: org.hsqldb.jdbcDriver URL: jdbc:hsqldb:file:mydb UserName: SA Password: SA I created a tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/38415734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: How to handle a GET request in python I have some microservices running in kubernetes, and they need to pass some data among each other, but I can't handle the GET request from the server side. The docs I found are very focused on how to make the GET request on python, but not how to handle it. So, this is what I tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/59109784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: modifying softmax function in tensorflow I started using tensorflow about a week ago, so I'm not sure what API can I use. Currently I'm using basic mnist number recognition code. I want to test how recognition precision of this code changes if I modify the softmax function from floating point calculation to fixed po...
{ "language": "en", "url": "https://stackoverflow.com/questions/46020677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Start Segue After Completion Of Social Sharing I want to let users share some posts from my app with the help of the social framework. But after the post button in the social framework, the segue is not starting. How can I handle this? var shareToFacebook : SLComposeViewController = SLComposeViewController(forServic...
{ "language": "en", "url": "https://stackoverflow.com/questions/32317586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to store HTML form value for other pages in PHP and MySQLi? I have created a database in phpMyAdmin with table for topics such as Math, Physics etc. Each topic has a topic_id as primary key in table tb_topic. Each topic can have multiple videos. Admin can add videos to each topic which requires topic_id as forei...
{ "language": "en", "url": "https://stackoverflow.com/questions/56845779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Data structure and algorithms: Should one use OOP to program algorithms? I have seen people code for example, say a quicksort algorithm without using OOP. I have also seen the identical algorithm in Robert Lafore's data structure and algorithm textbook written under OOP framework. Is it better to do it using OOP ?...
{ "language": "en", "url": "https://stackoverflow.com/questions/27339508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't get TinyMCE 4.0.6 to work This is driving me crazy.... I'm trying to get TinyMCE v4.0.6 to work, and I'm probably doing something very dumb, since I can't get the editor to display at all. I could get a v3.5.8 editor to show in a page similar to what follows, but no joy with this: <!DOCTYPE html> <html> <head...
{ "language": "en", "url": "https://stackoverflow.com/questions/18949318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems with an extra space when redirecting variables into a text file When I run the following lines: set "Loc=%~dp0" echo %Loc% > C:\PLACE\LOCFILE.txt I receive the following in the LOCFILE: C:\BATCHLOC ^ Note Space I am trying to use %Loc% like this in a separate batch file: ( set /p Loc= )...
{ "language": "en", "url": "https://stackoverflow.com/questions/21898556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TextView.setMaxLines not working? In my app I have a screen where I display some text and then a photo. The text is variable in length (sometimes none at all, sometimes a lot), so I wanted to have it set up so the text never takes up more than a few lines (but can be scrolled) leaving enough room for the image below...
{ "language": "en", "url": "https://stackoverflow.com/questions/11408922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Variable Scopes Within PowerShell Nested Functions I was given this extensive PowerShell script from a major/reputable corporation which was supposed to work flawlessly. Well, it didn't. The script is composed of numerous nested functions with lots of variables passed to the main parent function and then to all of i...
{ "language": "en", "url": "https://stackoverflow.com/questions/29831826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: One to one function in R to change number to text I have quite long list of postal codes with corresponding name of city or town. I just want to write a R program that has postal code as input variable and returns the name of the location (city or town). The list will be finite in length and has about 40 different p...
{ "language": "en", "url": "https://stackoverflow.com/questions/65347536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExpressJS app.use("/" router) router.get("/") Breaks I'm not sure how to phrase this, but part of the following code, for lack of an appropriate term, doesn't work. If I try to go to localhost:3000/ it doesn't send back a response. I'm using Express 4.7.4 and the latest node available on the Ubuntu Trusty repository...
{ "language": "en", "url": "https://stackoverflow.com/questions/26372345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EXC_BREAKPOINT in Swift I set up a var tagTextField: UITextField in the a set up method. Later when I call a method where I want to do something with this var tagTextField: UITextField, namely: var pos1 = tagTextField.positionFromPosition(tagTextField.beginningOfDocument, inDirection: UITextLayoutDirection.Right, of...
{ "language": "en", "url": "https://stackoverflow.com/questions/27167664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: using #define to substitute in a continuous string I am trying to write a Macro for certain read/write functions. The functions are in the form k_target_socket.write8(address,val); When I tried #define Wx(add,val) k_target_socket.writex(address,val) I got W8(0x100,0x120); for W8(0x100,0x120); then I replace th...
{ "language": "en", "url": "https://stackoverflow.com/questions/20541022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Movable Panel control using C# I'm trying to make my panel control movable using c#, but my main form moves along with the panel control when dragging. Is there a better code for this? public const int WM_NCLBUTTONDOWN = 0xA1; public const int HT_CAPTION = 0x2; [DllImport("user32.dll")] public static extern int Sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/58130649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Error with primary key in one-to-one relationship using Entity Framework I've created a database according to which the user profile is formed by the following two classes: public class Usr { [Key()] public int UsrID { get; set; } public virtual UsrType UsrType { get; set; } public virtual UsrStatu...
{ "language": "en", "url": "https://stackoverflow.com/questions/36578154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to make a successful batch commit when some of the docs could've been deleted? Suppose i have a structure like this: items: { id1: { likes: 123 }, id2: { likes: 456 }, id3: { sourceId: 'id1', likes: 123 }, id4: { sourceId: 'id1', likes: 123 } [,...] } where any item can...
{ "language": "en", "url": "https://stackoverflow.com/questions/49332228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Quartz CronTrigger expression between two dates Is there a way to write a Quartz CronTrigger expression that runs every day between two dates, for example starts at 11am 5th of Sep 2011 and ends at 11am 10th of June 2012? A: Use an expression that means every day at 11:00am e.g. "0 0 11 * * ?". Then set the start...
{ "language": "en", "url": "https://stackoverflow.com/questions/7306613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Console not writing object string I'm trying to get the console to write a string that is part of a object, however the console leaves the string portion blank. This is how i am getting the information: Console.WriteLine("Please Enter an Agent Name: "); agent1 = (Console.ReadLine()); Console.WriteLine("Please En...
{ "language": "en", "url": "https://stackoverflow.com/questions/48740012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python Discord Bot how to send messages from one channel to another async def on_message(message): if message.channel == (720020927668289588): await Bot.get_channel(703707652710072515).send(f"{message.author.name}: {message}") await Bot.process_commands(message) I am trying to have the bot to when s...
{ "language": "en", "url": "https://stackoverflow.com/questions/65864676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: custom iOS PWA background color instead of splash screen I don't want to show any custom splash screen for every device. Instead I'd like to just change the default ios black background to my custom background color (e.g. #89CFF0) and show it on every device without long list of links <link rel="apple-touch-startup-...
{ "language": "en", "url": "https://stackoverflow.com/questions/73484345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my random number generator becoming an unused assignment when using it to input values for 2d array? I have been making a basic game of battleship and to get the CPU to choose ship locations on a 2d array I am making two random number generators to pick values from 1 to 8 on a separate method. For some reason...
{ "language": "en", "url": "https://stackoverflow.com/questions/64733000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use Environment.Username and MYSQL to verify log in? private void btnSubmitt_Click(object sender, RoutedEventArgs e) { try { i = 0; MySqlCommand cmd = con.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "Sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/60962077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQL Sum with non unique date I'm trying to write a SQL query that will sum total production from the following two example tables: Table: CaseLots DateProduced kgProduced October 1, 2013 10000 October 1, 2013 10000 October 2, 2013 10000 Table: Budget OperatingDate BudgetHours October 1, 201...
{ "language": "en", "url": "https://stackoverflow.com/questions/20182559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ngx-translate if a key is missing in one of the json file replace with other json file same key I have a scenario, I have two languages files en.json & es.json I have a key in en.json file which is missed in es.json file, however, I want to replace this missing key with the en.json key how would I achieve this. I kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/62444282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transfer data from aprs server to symfony database I would like to connect symfony to an "aprs-is" server. My data are received by the "aprs" server and i would like to insert them in the database i have created in the doctrine of symfony. My entities are ready but i can't figure out how to do that. I can make an u...
{ "language": "en", "url": "https://stackoverflow.com/questions/51608363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unfortunately, AndroidFirst has stopped I am a beginner in android application & just started building first "HelloWorld" app. i followed official tutorial and designed emulator. But when i run it, the emulator says "Unfortunately, AndroidFirst has stopped". I looked around on SO but different solutions didn't help....
{ "language": "en", "url": "https://stackoverflow.com/questions/25562413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: reset infinite scroll with ajax content I am using the ajax infinite scroll with a comment system. It works fine until a user posts a new comment - this breaks the infinite scroll, the 'load more items' link is still there but nothing happens when you click it. I have seen this question: Reset / disable infinite sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/27079154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: React stop other events on that element I have a volume element that shows the volume bar when the user hovers over it. This all works great in desktop. However to get the same functionality on mobile, the user has clicks on the volume element which also toggles the mute click event. I am wanting to stop that mute e...
{ "language": "en", "url": "https://stackoverflow.com/questions/42302200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Remove the Duplicate value item from 2 same format JSON objects in Java I'm looking for a way to remove the duplicate item from two JSON objects that both have the same value. e.g. First object: { "a":true, "b":true, "c":true, "d":{"i":true,"ii":true,"iii":true} } Second object { "a":false, "b":true, "c":tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/70283709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use rvest to extract html table I am a new learner for R, I am interested in using rvest to extract html table and submit html forms. Now, I want to get some useful information from a Chinese Website. The url is: http://caipiao.163.com/award/cqssc/20160513.html I am using Windows 10 Professional with RStudio Versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/37240448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using AWS Cloudfront, should I use apache gzip module to compress files or Cloudfront itself? I'm trying to get cloudfront straight on my site. I want to know if I should you apache module to enable gzip on my site or set Cloudfront to compress the cached files?
{ "language": "en", "url": "https://stackoverflow.com/questions/39597533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for pure Java 3D library I have a very simple scenario: given are bare 3d points and I need to connect all these points and draw a surface. And for this case I need a very basic and really pure Java library without any dependencies. Do you know such a library? A: Do you know (or test) Java 3D API ? Useful l...
{ "language": "en", "url": "https://stackoverflow.com/questions/18382300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: contains function for int in flutter what is the best way to figure out what number the integer contains for example: i have a int that is 96 and i want to see if it has 9 return something and if it has not return something else A: // this will return true if your int contains the pattern bool intContains(myInt,pat...
{ "language": "en", "url": "https://stackoverflow.com/questions/64129058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF - XAML - Call an animation in a nested style from the parent style I'm trying to modify an ItemsControl to have a watermark to indicate the behavior of content dropped into it. I'm using a Label inside a VisualBrush to show the word "OR" as the background to the ItemsControl (The control will contain property f...
{ "language": "en", "url": "https://stackoverflow.com/questions/38784476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change from annual year end to annual mid year in SAS I currently work in SAS and utilise arrays in this way: Data Test; input Payment2018-Payment2021; datalines; 10 10 10 10 20 20 20 20 30 30 30 30 ; run; In my opinion this automatically assumes a limit, either the start of the year or the end of the year ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52205027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make for loop continue until a goal is accomplished I need to be able to find 5 sequential bits of EEPROM memory, ideally closest to 2 (as I have bit #1 & 2 associated with other data and want things to be kept organized). I developed this code which works, but the for loop continues after it has found a good set of...
{ "language": "en", "url": "https://stackoverflow.com/questions/46725350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel back() doesn't use _previous Trying to use return back(); In one of my controllers however it always seems to return back to the home page if I however use return Redirect::to($request->session->get('_previous')['url']); It does work so it seems that for some reason the back() function isn't grabbing _pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/43053936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Confused in Dependency Injection I am new to MVC and dependency injection. Please help me to understand how that should work. I use Ninject. Here is my code: in Global.asax file: private void RegisterDependencyResolver() { var kernel = new StandardKernel(); kernel.Bind<IDbAccessLayer>().To<DAL>()...
{ "language": "en", "url": "https://stackoverflow.com/questions/5222698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Change App name dynamically based on user input I want to change the name of the app and the form title based on the user input. I know to do those changes in the manifest and styles, but how to make it dynamic. Please suggest me how to do it?. What are the changes to be done. A: Did you try this? myActivity.setTit...
{ "language": "en", "url": "https://stackoverflow.com/questions/19354382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to replace table name in sql query with regex in Java? I want to replace table name in a sql query string. I only want to change table name. How can I do that in java with regex? I do not want to use any dependencies. For example, Input: select ... from table1 where/etc .... expected output: select ... from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61891745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }