text
stringlengths
15
59.8k
meta
dict
Q: header menu with a logo left is not being displayed I am new with HTML & CSS, and I Am having a weird issue where the logo path is properly rendered into the page, but however doesn't display on the site. how does it happen this? e.g. the logo is a SVG format where I don't see it's an issue, but I am not sure why it...
{ "language": "en", "url": "https://stackoverflow.com/questions/62963357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Can an app take a screenshot while running in the background and save it on a server is it possible to make my App take a screenshot by code .. and then save it on server (I'm using parse as a backend Server)
{ "language": "en", "url": "https://stackoverflow.com/questions/36867434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I find the source file that causes the print_r display in PHP I'm wondering how would someone debug to find the source file (and perhaps line number in the code) that causes the print_r? Or is there a package that could be use for this kind of debugging during page load? Similar idea like console.log in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31044603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android resumes my Activity even if i call FINISH on BackButton I have an activity A that launches B with an Intent. (B is a MapActivity and has some async code) in B i have the following code @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if ((keyCode == Ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/8525465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Condition within JOIN or WHERE Is there any difference (performance, best-practice, etc...) between putting a condition in the JOIN clause vs. the WHERE clause? For example... -- Condition in JOIN SELECT * FROM dbo.Customers AS CUS INNER JOIN dbo.Orders AS ORD ON CUS.CustomerID = ORD.CustomerID AND CUS.FirstName = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1018952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "268" }
Q: how resource integrity is maintained using Semaphores I am new to computer science and it may sound stupid to some of you. Although i have searched for related question, but this scenario stuck in my mind. I understand that Mutexes provide lock facility for a section or resource. Consider the example of a buffer(an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23146711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring AsyncTaskExecutor Returns Futures That Don't Throw Exceptions If I submit a Callable task to Spring's ThreadPoolTaskScheduler (the default implementation of AsyncTaskExecutor), I receive a Future representing the result of the computation. I know that my callable will throw an exception, but when I call Futur...
{ "language": "en", "url": "https://stackoverflow.com/questions/60101996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Guarantee the lock is exclusive on the table for read also I am writing a web application and came across the problem to keep a value in column that is identical in two rows only and both goes in single batch of execution. One way I came up with solution to read the MAX value in the column and increment by 1. Thus, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49466768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add two factor authentication to my web application I have a java spring web application and currently it has a normal authentication flow. I need to add a two factor authentication implementation to it. For that can we use 3rd party provider like google or any other provider. A: I need to add a two factor authent...
{ "language": "en", "url": "https://stackoverflow.com/questions/33206800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Condition is not verifying the validity of the input I'm doing an assignment that asks a user to input a student name, and then quiz scores until the user chooses to stop. It then calculates the total score and the average of all those scores and outputs them to the screen. We are moving on to the subject of inherit...
{ "language": "en", "url": "https://stackoverflow.com/questions/71011590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert excel rate() formula into step by step formula I want to convert this excel rate() formula =RATE(D5,-D8,D3,,D6)*12 into manual formula for me to get the Effective Rate. How can I convert this rate() =RATE(D5,-D8,D3,,D6)*12 formula from excel into a step by step formula? The Effective Rate formula tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/61753306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to add SSL support for database I am using Spring3, Hibernate4 and postgres9.2. For enabling the SSL database connection, I followed following steps : * *Creating self signed Certificate : refer : http://www.postgresql.org/docs/9.2/static/ssl-tcp.html#SSL-CERTIFICATE-CREATION *Copied the generated server....
{ "language": "en", "url": "https://stackoverflow.com/questions/16980551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Google Analytics not showing any data After building a basic ionic 3 app with two pages (quotes-list and quotes-detail) where clicking a name on the former you edit a text on the latter, run the app on a real device and go through GA, trying to get some statistics about the two tracked pages, but all I can see is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/53198508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shopware 6: How to display product name in breadcrumbs We want to add the product name to the breadcrumb list when current page matches a product detail page. Unfortunately, it doesn't seem like the product is loaded yet when the breadcrumb is rendered. We have tried using dump() to see what variables are available ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73333452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Playing a MIDI file using SoundFonts and NAudio I am trying to create a simple program that plays some notes using a preset from inside a Soundfont. To do this I am trying to use NAudio. So far I have been able to successfully open a SoundFont, and get the names of all the instruments, presets, etc.: NAudio.SoundFon...
{ "language": "en", "url": "https://stackoverflow.com/questions/20624321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Image.createImage problem in J2ME I tried this on J2ME try { Image immutableThumb = Image.createImage( temp, 0, temp.length); } catch (Exception ex) { System.out.println(ex); } I hit this error: java.lang.IllegalArgumentException: How do I solve this? A: Image.createImage() throws an IllegalArgumentExcept...
{ "language": "en", "url": "https://stackoverflow.com/questions/271672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: retrieve most recent records I'm having a bit of mysql query brain freeze. I need to retrieve the latest record from a table, grouped by a second column. Something like this: SELECT ca.id, ca.activity_date, cat.contact_id as cid FROM activity ca JOIN activity_target cat ON ca.id = cat.activity_id WHERE ca.activity...
{ "language": "en", "url": "https://stackoverflow.com/questions/8918511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Try to export form result into single field I'm trying to fill one hidden field with the results obtained from an HTML form. I have seen someone who suggests using Javascript and jQuery. I've tried to write some scripts using that language. This is the HTML form hosted in Formtools platform (www.formtools.org): I tr...
{ "language": "it", "url": "https://stackoverflow.com/questions/64990523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run 'git diff --check' on certain file types only I have been unable to figure out how to run 'git diff --check' on only Python files in my commit. I have a commit with 3 files in it: $ git show --name-only ... tools/gitHooks/preReceive.py tools/gitHooks/unittests/testPreReceive.py Makefile The last 2 files...
{ "language": "en", "url": "https://stackoverflow.com/questions/12427583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Issue using position dodge vertically in ggplots with geom_linerange in R I'm relatively new to R, and I am having issues with avoiding overlapping line ranges using geom_linerange and position_dodge with ggplot. I am comparing 2 different sets of age ranges for each individual in the study data. I would like to sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/64685369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: display an image when dropdown is selected I am trying to display an image when a dropdown is selected with the code below.By default dropdown value will be "None".Initially when the page is loaded it is not displaying image.when i select field2 or field image is diaplaying.But when i select none again the image is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26538872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Easiest way to test vim regex? I'm trying to write a vim syntax file, one problem I'm dealing with is vim's regex syntax is different from most other languages(I think the one called "perl compatible regex", Python, JavaScript etc. uses mostly the same regex syntax) and so I can't use regex testers like regexpal. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/14499107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Add mouse event listener to OBJMTL object - three.js I have created a OBJMTL 3D object with: var loader = new THREE.OBJMTLLoader(); loader.addEventListener('load', function (event) { Barrel = event.content; side: THREE.DoubleSid...
{ "language": "en", "url": "https://stackoverflow.com/questions/22389204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert foreach to lambda Just started with Lambda in c# and I got stumbled by this.How can I convert following code block to lambda expression, adding all the values in headers get added to DefaultRequestHeaders. var client = new HttpClient(); foreach (var header in headers) { client.DefaultRequestHeaders.Add(h...
{ "language": "en", "url": "https://stackoverflow.com/questions/50534129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Kendo UI Ajax Request I'm using Kendo UI Grid with an action link into a client-template column. This action link call an data edit view. See example: c.Bound(p => p.sID).ClientTemplate(@Html.ImageActionLink(Url.Content("~/Content/images/edit3.png"), "Edit", "Edit", new { id = "#= sID #" }, new { title = "Edit", id...
{ "language": "en", "url": "https://stackoverflow.com/questions/19103415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Core data attribute not being made I've decided to add an NSNumber attribute to one of my entities in core data. I Cleaned the code and deleted the app from the simulator. I then added the following code in my appDelegate and it tells me that my NSNumber attribute doesn't exist. People *PeopleA = [NSEntityDescriptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/6601774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I calculate the difference between 2 numbers How can I calculate the diffrence between 2 Numbers in % in c? I have written my own exp funktion and want to compare it with the original one from the math.h. this is my exp funktion and I want to compare the result with the exp() from math.h and print the differ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29626332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: PHP ChromeDriver, multiple instances How to run multiple threads with multiple instances of chrome, is it possible? probably there is possibiity to operate via custom port?
{ "language": "en", "url": "https://stackoverflow.com/questions/73281668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shell Script for Flip Canvas Vertical I have M1.jpg M2.jpg ....... M100.jpg in /Users/KanZ/Desktop/Project/Test/ I would like Flip Canvas Vertical them, save and replace them instead of old files. How can I write the script for this problem? A: You can do that with convert, with a little help from find so you don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/14008530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multi-dialog program in PyQT will not close For my project, I require multiple dialogs to be linked to each other. One button would go to one level, another button would go back two levels. To get a basic idea of what I'm looking for without showing all my code, here is a compilable example: ''' Created on 2010-06...
{ "language": "en", "url": "https://stackoverflow.com/questions/3072787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gstreamer: gst/app/gstappsrc.h no such file or directory I have installed gstreamer1.0-plugins-base use command: $ sudo apt-get install gstreamer1.0-plugins-base but when I compile my code, it still gives me an error gst/app/gstappsrc.h: no such file or directory And I even can't find the directory /app at the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53156503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Window owner in WPF without always-on-top behaviour Is it possible to get some of the functionality of Window.Owner without getting all of it? There are two windows, window A and window B. I want to make it so that selecting either one will bring them on top of other applications, but either one can overlay the oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/5455399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Adding a custom domain in PythonAnywhere does not work I added my application to pythonanywhere, now I'm trying to add a custom domain but I can not get a positive result. My change I've added in pythonanywhere looks like this. Under my hidden field is my domain name. According to the documentation, I added a CNAME...
{ "language": "en", "url": "https://stackoverflow.com/questions/55087080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot read property of undefined angular2 ngif I am now able to get the object in the view however I cannot run an if statement. Per previous answer this is how I am bringing in the object. public getPosts$(category, limit) { return this.cartService.getPosts(category, limit).map(response => { return response...
{ "language": "en", "url": "https://stackoverflow.com/questions/41985595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How can I close dropdown if another dropdown is open I have some dynamic contents like sort of a news-feed and each element has a dropdown menu. I am able to toggle the dropdown-menu of the exact element I click on and when I click outside or anywhere else on the window it closes the menu which is nice. but problem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64173235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript global variable not updating outside any functions I'm trying to get the following code to work (the console.log are just to see what's going on). I've declared the global variables outside of any functions, but it only seems to be updating them inside functions. <script type="text/javascript"> var map; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19479290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Query MYSQL - mysql query distinct count I have the following table: ID_PERSON NAME_PERSON 001 JHON SLAVE 002 BRUCE WILLIAN 001 PAUL BYLING I would like to know, for example, how many cases the ID_PERSON 001 is linked to different names (distinctly) My current query: SELECT ID_PERSON, COUN...
{ "language": "en", "url": "https://stackoverflow.com/questions/71147537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get consecutive nodes with following-sibling and condition My XML file looks like this, but bigger: <w><forme>la</forme><lemme>le</lemme><categorie>DETDFS</categorie></w> <w><forme>grande</forme><lemme>grand</lemme><categorie>ADJFS</categorie></w> <w><forme>douleur</forme><lemme>douleur</lemme><categorie>NCFS</categ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67034123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can we write that function in c form When I read some question to write random nuber generator ,I saw that function and it efficient but it is written in C#. I want see that function in form of c language,can anyone help? IEnumerable<int> ForLargeQuantityAndRange(int quantity, int range) { for (int n = 0; n < ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3123704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RecyclerView - How to select items by dpad/keyboard How can you select items of a RecyclerView using the dpad and/or keyboard? A: Make your items focusable. It will let you navigate it via dpad. Then you'll need to add your logic to "select" focused item on press. (whatever your select key is)
{ "language": "en", "url": "https://stackoverflow.com/questions/27107714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get openCL library for Hi3536 Mali GPU We are using Hi3536 Soc, which has Mali T720 core. The SDK of Hi3536 does not provide examples for OpenCL nor the library. Any suggestions how to get the cross-compiled SDK libraries for Mali T720?
{ "language": "en", "url": "https://stackoverflow.com/questions/50172306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LINQ two Where clauses does anybody know how I can chain my where clauses? I would like to filter the items in my main list by the items found in the second result. I have the following example code @foreach (var artikel in Controller.Artikel .Where(x => x.LieferantenArtikel .Where(y => y.Liefera...
{ "language": "en", "url": "https://stackoverflow.com/questions/64318386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Align tables to each others side I have created two tables with bootstrap 4, which show on the one hand specifications and on the other hand earning statistics. I put both tables in a col-xs-6-class and want one table aligned to the left and the other table to the right. However, currently the tables are somehow clu...
{ "language": "en", "url": "https://stackoverflow.com/questions/50928565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reaction Delete channel | Discord.js I am making a ticket system with discord.js I tried to when a member reacts to the message with the emoji, the ticket will close, but after running it, it shows an error if (reaction.emoji.name == '') { if(!reaction.channel.name.includes("ticket")) return; channel.delete(...
{ "language": "en", "url": "https://stackoverflow.com/questions/64858045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: pyspark dataframe filter using variable list values I have a requirment to filter the pyspark dataframe where user will pass directly the filter column part as a string parameter. For example: Sample Input data: df_input |dim1|dim2| byvar|value1|value2| | 101| 201|MTD0001| 1| 10| | 201| 202|MTD0002| 2| ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61915451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple API Resources in one call using laravel I am using API Resources for laravel to transform resource to array for an API call,and its working fine,Is is possible that i can retrieve data of multiple models in one call ? As to get JSON data of users along with Pages JSON ? Or i need a separate call for this. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/53428303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: woocommerce UPS rates to have USD converted rates from INR on plugin Hi I am using woocommerce to build a ecommerce site and I use UPS shipping to do shipping, the ups I have signed is from India so the returned rates are in Indian Currency. Is there a way to convert the currency from INR to convert to USD and displ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43983069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Compress files in a directory in a zip file with the shell I want to compress files from the filesystem to a directory within a new zip archive or update an old one. So here is my example: directory/ |-file1.ext |-file2.ext |-file3.ext in the zip archive it should look like this: new_directory/ |-file1.ext ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28744500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Variable 'c' set but not used [-Wunused-but-set-variable] I have searched and haven't really found and understood this error. It's weird that I only get the error for c, d, e and not for a and b or them all. Program is about Dooubly Link List. This happens when I compile with: gcc -Wall -g -c program.c Error part: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64563878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android talkback element type announcement I am trying to make my app more accessible. I am having a hard time finding helpful things because there isn't a lot of documentation (at least I could not find it). In my app, Talkback does not announce the element type for ImageViews. What I basically want is for Talkback...
{ "language": "en", "url": "https://stackoverflow.com/questions/43188627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change network in metamask using react js I am developing my first Dapp, I am using metamask and web3 for this. As far now, I am able to get my wallet balance and connect account to metamask. Now I am trying switch between two networks, I am using handleChainChanged, also I am passing chainId and Networkversi...
{ "language": "en", "url": "https://stackoverflow.com/questions/67597665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Apply `dplyr::rowwise` in all variables I have a data: df_1 <- data.frame( x = replicate(4, runif(30, 20, 100)), y = sample(1:3, 30, replace = TRUE) ) The follow function work: library(tidyverse) df_1 %>% select(-y) %>% rowwise() %>% mutate(var = sum(c(x.1, x.3))) But, the follows functions (for all...
{ "language": "en", "url": "https://stackoverflow.com/questions/55922514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to drill down data in one single click in excel? I have a year progress table, and one of the columns include (+) Sign, what I want is when I click on (+) the rows from number 8 till 15 will drill down the data (Show Data) and the (+) sign in this case will be (-) Sign and, re click on (-) sign to drill up data ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65791940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Loading JSON data into pandas data frame and creating custom columns Here is example JSON im working with. { ":@computed_region_amqz_jbr4": "587", ":@computed_region_d3gw_znnf": "18", ":@computed_region_nmsq_hqvv": "55", ":@computed_region_r6rf_p9et": "36", ":@computed_region_rayf_jjgk": "295", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54660975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Values not Populating in COMBOBOX even though it is fired the values from MVC I am Very new to EXTJS. i am adding a new combo to my html page using EXTJS in xxx.js file and fetching the values from MVC controller with sample information. while debugging the MVC application it is sending the sample information when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19086963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON to Tuple operation in IBM Streams Is there a way to convert a JSON string to a SPL tuple type without using JSONtoTuple Operator? I saw this documentation: https://developer.ibm.com/streamsdev/docs/introducing-the-json-toolkit/ where they have mentioned a native function for converting tuple to json but not jso...
{ "language": "en", "url": "https://stackoverflow.com/questions/48849262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: question about tree i have question for example i want to implement binary tree with array i want understand what will indexes for left child and rigth child ?my array is 0 based i want implement searching in tree using array can anybody help me? A: left child = parent * 2 + 1 right child = parent * 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2930744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Find the number zero in decimal part where add no value to the number and remove that part I am using the following code to convert cm to the meter. public static double? ConvertCmToM(double? cm) { return cm.Value * 0.01; } When I input the number 8.8 output giving a...
{ "language": "en", "url": "https://stackoverflow.com/questions/75048485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieving all objects in code upfront for performance reasons How do you folks retrieve all objects in code upfront? I figure you can increase performance if you bundle all the model calls together? This makes for a bigger deal, especially if your DB cannot keep everything in memory def hitDBSeperately { get X ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2875861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: System.out.println - Java In Java, why can't we refer to System.out.println as just out.println ...why can't the System call just be implicit since the System library is universal? Perhaps Groovy solved this one. A: You can if you import static like import static java.lang.System.out; then you can do public sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/28934641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: tinyMCE 4.0.5 ObjectResizeStart doesn't work I have latest version of tinyMCE I need to use this function: http://www.tinymce.com/wiki.php/api4:event.tinymce.Editor.ObjectResizeStart to prevent image resizing when I'm in read mode because in Chrome images and tables can be rezised even when I'm saying readonly: tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/18675781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV: Why SIFT and SURF detectors crashes? Why do the SIFT and SURF detectors crash? using namespace std; using namespace cv; int main(int argc, char *argv[]) { Mat image = imread("TestImage.jpg"); // Create smart pointer for SIFT feature detector. Ptr<FeatureDetector> featureDetector = FeatureDete...
{ "language": "en", "url": "https://stackoverflow.com/questions/23630704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Answer queries about the number of distinct numbers in a given range The problem I have an array with N numbers. The numbers may be disctints and may also be unordered. I have to answer Q queries about how many distinct numbers there are between A and B. Where A, B are indices between 0 <= A <= B < array.Length. I k...
{ "language": "en", "url": "https://stackoverflow.com/questions/48134696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is JSF 2.0 View Scope back-button safe? Is the JSF 2.0 View Scope "back button" safe? e.g. if I store a model in View Scope and go from page 1, page 2, page 3, to page 4, modifying the model object along the way (via input fields), and then hit the back button twice to go back to page 2 and make changes (taking me a...
{ "language": "en", "url": "https://stackoverflow.com/questions/9930900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Extract jsonb in Postgresql - dictionary and array structure in same jsonb field I am using postgresql and I have this table on dataset, that some columns are jsonb. SELECT external_id as cod, title as name, objectives FROM table So, the result for "objectives" column is like that: {"blocks": [ {"key":...
{ "language": "pt", "url": "https://stackoverflow.com/questions/63140622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to display template parameter type name in natvis? I want to extend a natvis visualizer for a (C++) template class. Is there a way to display a type name of the first template parameter? It would be great for boost::variant<int,bool> v; v=1; to display 1 (int) or something like that A: In my opinion the best so...
{ "language": "en", "url": "https://stackoverflow.com/questions/54458842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What should I use in ANSI C to create linked lists? In Java I used LinkedList<T>. Is there any standard, or maybe some other libraries, to create LinkedLists in C? A: No, C doesn't have anything like that. If you can use C++, there's std::list. You'll have to write the structure yourself in C. A: As others have sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/9555788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Domino Rest service API to get Tentative status in Ateendee's calendar Is there any way to find the Tentative status of my meetings as an Attendee from the response of "GET /{db}/api/calendar/events" or "GET /{db}/api/calendar/events/meetingId" ? Some documents say x-lotus-noticetype property with "P" indicates a...
{ "language": "en", "url": "https://stackoverflow.com/questions/33406419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Exchange Information between two windows Im not sure how to explain my problem in short at the title, so forgive me for this. Lets say I opened my website in some random page, and I have a register button. Really simple, but in my case I require the registration form to appear in other tab(or window). Not "RederPart...
{ "language": "en", "url": "https://stackoverflow.com/questions/38347859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adjust border to content I have a simple grid with 2 columns with border and two columns Fiddle The problem is I want to adjust the border to the content and the content has left padding, so I want to remove that free space. I tried to use box-sizing: border-box; but it causes no effect HTML: <div class="totalConta...
{ "language": "en", "url": "https://stackoverflow.com/questions/69666975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: middleman Invalid byte sequence in UTF-8 I want to edit a webpage for someone who is using middleman. Anytime I run middleman in the console I get this error: Traceback (most recent call last): 68: from /Users/apple/.rvm/gems/ruby-2.6.0/bin/ruby_executable_hooks:24:in `<main>' 67: from /Users/apple/.rvm/ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/54962740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create Shape drawable with stroke color, corner and solid drawable I Want to create a shape: solid is a Bitmap (repeat tiles), and stroke is a color. I use LayerList: <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/additional_image" android:drawable="@d...
{ "language": "en", "url": "https://stackoverflow.com/questions/14475018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: zshell passing argument to function I put this in my zshrc: function picofl() { openocd -f interface/picoprobe.cfg -f target/rp2040.cfg -c 'program "$1" reset exit' } Then I run: picofl myblink.elf but it errors with unexpected argument. What am I doing wrong?
{ "language": "en", "url": "https://stackoverflow.com/questions/74444217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Sinatra route I'm looking to make a custom route for my Sinatra blog project which shows the user the last entered post in the database. get "/most-recent-job" do Job.last Can anyone help? I can't find info in my curriculum for such a request. A: The Sinatra documentation on routes is pretty thorough. Ass...
{ "language": "en", "url": "https://stackoverflow.com/questions/62027704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Layers in Hexagonal Architecture I'm reading a lot about hexagonal architecture, but in all the examples that i'm looking, all folders and class ubication are different, and this looks a bit confusing to me. I've done a simple spring boot application with below folder structure. Adapter folder contains implementati...
{ "language": "en", "url": "https://stackoverflow.com/questions/66971751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Tensorflow input pipeline for distributed training I am trying to figure out how to setup my input pipeline for tensorflow in distributed training. It's not clear whether the readers will read from a single process and send the data to all workers or each server will start it's own input pipeline? How do we ensure t...
{ "language": "en", "url": "https://stackoverflow.com/questions/45287431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django Design Pattern - request.user in Model I run into this pattern all the time and I'm wondering if there's a better way to handle it. Lots of my models contemplate the idea of 'creator' - in other words, I want to make sure the user who created the object is saved as the creator. As such, my models almost alw...
{ "language": "en", "url": "https://stackoverflow.com/questions/21078229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Running Android Studio Volley in different API levels The app I made ran on different API levels but the volley library only works API level 26. I was puzzled when I can't login in the app using my phone (android 9) but a later model works just fine. I found out that I can only login in Android 8 phones (API level 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/75052379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WooCommerce product categories are not displayed properly in menu I got this strange behavior in Wordpress, I have about 90 product categories/subcategories. All the related functions are working fine, except when I go to Appearance -> Menu and try to add product categories to my menu. The thing is that only two pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/49581230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EJS not rendering on placing image url I am trying to add image using EJS, the page on the browser doesn't render as I want. Here is the image of the browser ejs code for this rendering page is <% layout('layout/boilerplate') -%> <% for (let camps of allCamps){%> <div class="card mb-3"> <div class="...
{ "language": "en", "url": "https://stackoverflow.com/questions/74179545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add SSH Connection with pem key to Apache Airflow connection Is there a way to add an ssh connection to Apache Airflow from the UI either via connections or vairables tab that allow connection using a pem key and not a username and password. A: DISCLAIMER: Following answer is purely speculative * *I think key_fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/54885695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facing problem with material mat-select dropdown position issue Facing problem with material mat-select dropdown position issue. Dropdown position is keep on changing on select of item. How to keep position as fixed. Can you someone support please.
{ "language": "en", "url": "https://stackoverflow.com/questions/71353232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue while using webservice to call some java application method which is using resource file Issue while using webservice to call some java application method which is using resource file I have created one java application which contains following directory structure in my src folder of java.. Src/ Transcriber....
{ "language": "en", "url": "https://stackoverflow.com/questions/12594842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: menu accordion with first voice open i have this menu I can not copy the code of the menu on the topic , so I put everything on jsfiddle , Practically What I would like the menu stays open without clicking on ParalleloR so I would like the open class is fixed on the first menu item (function ($) { $(document)...
{ "language": "en", "url": "https://stackoverflow.com/questions/34312158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP getting expiring time of a cookie Can I get the expiring time of a cookie which is already set? For example, I have set a cookie: setcookie("test_cookie","some value", time()+3600*24*30); Now can i get the time when the test_cookie is expiring? One option could be that when i set the test_cookie, i can set the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6437138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why using array in command cancels output redirection? I have this (simplified) code: elems="${array[@]}" do_cmd "xxx" "for_each \"$elems\" func" ">> $log_file" || return $? which redirects output to $log_file (as expected). However, if the code above is simplified as: do_cmd "xxx" "for_each \"${array[@]}\" func" "...
{ "language": "en", "url": "https://stackoverflow.com/questions/74377530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Studio - Failed to refresh Gradle project - failed to find target 4.4w I'm trying to move my project from eclipse into android studio so that I can start building an android wear app. I exported the app from eclipse and imported it into android studio. However, when I try and add the android wear app, I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/24515494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I Add PHP code in WordPress POST without using a plugin I am trying to add php code(2000 lines) to WordPress post manually without using any plugin or third party tool. But I have not been successful in this... If anybody knows how I can do this please feel free to post an answer. So far I have been able to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/72869564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running two loops at the same time ? moving and traveling using loops I am a first year Computer Engineer so I am a little bit amatuer in coding C++, anyway I am creating a game where there are two spaceships shooting each other. I currently succeeded making the first spaceship move by using a while loop and the Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/36660161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LUIS not returning the correct entity values I am trying to learn how to use LUIS to train for an intent to search my data on my database using NLP. I created an Intent UIM.Search and added the following Utterance for which the token view is as below: I mapped them to the entities so that I can get the actual user...
{ "language": "en", "url": "https://stackoverflow.com/questions/52464106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using ODBC connection with Azure Data Studio In order to connect to an IBM DB2 database, I am using DBeaver with an ODBC type of connection. But since I found Azure Data Studio very lightweight and portable, I want to ask if there is a way to connect to such databases because all I get is Microsoft SQL Server as con...
{ "language": "en", "url": "https://stackoverflow.com/questions/72023792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Implicitly redirect in Apache I have Apache and want to implicitly redirect http request to a file. That is, when a user hits http://example.com/foo/bar, I wish a user to see a content on .xml file under /some/folder/file.xml and at the same time a user must see http://example.com/foo/bar in the address bar. Redirec...
{ "language": "en", "url": "https://stackoverflow.com/questions/46353432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to extract JSON fields in Splunk I'm trying to extract JSON fields from syslog inputs. In ./etc/system/default/props.conf I've added the following lines: [mylogtype] SEDCMD-StripHeader = s/^[^{]+// INDEXED_EXTRACTIONS = json KV_MODE = none pulldown_type = true The SEDCMD works; the syslogs headers are remove...
{ "language": "en", "url": "https://stackoverflow.com/questions/47513001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing class files in dll and using the dll for multiple websites in asp.net I want to create a class file in VS2005 and be able to use it in other websites on my computer / production server. How do I create this dll and store it in a common place where I can reference it while developing and also on the productio...
{ "language": "en", "url": "https://stackoverflow.com/questions/1963101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert time string in XSLT How do I convert a time string like 20101115083000 +0200 to 2010-11-15 08:30:00 +0200 using XSLT? A: If you have XSLT 2.0, you can use date parsing and formatting functions. If you have XSLT 1.0, but can use EXSLT, it provides similar functions. These would be less transparent to use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/4183956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is dynamic DAO? This blog talked about using dynamic DAO instead of activerecord. What exactly is meant by "dynamic" DAO in the context of statically typed languages? Does this apply only to statically typed languages on a VM or also to compiled languages? A: Both DAO and ActiveRecord are patterns to access da...
{ "language": "en", "url": "https://stackoverflow.com/questions/14136929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to ignore empty cell in google script function I'm trying to create a function that highlights any cells when they are changed ignoring any changes to empty cells, the function below does highlight changes but to ALL cells including empty ones, any help would be greatly appreciated. function onEdit() { var shee...
{ "language": "en", "url": "https://stackoverflow.com/questions/74759865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you use TFS API with only query strings? Trying to queue build from Slack Using On-Premise TFS 2017 and Slack. Just trying to find a way for people to manually queue builds. Slack Slash Commands will almost work, but can't seem to send JSON bodies, so I'm trying to find out how to send credentials and definiti...
{ "language": "en", "url": "https://stackoverflow.com/questions/56241938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django Model Foreign Key Casting Integer to Char Edited I have two tables Table1 and Table2. Table1 has a field x of type int and Table2 has primary key y of type char. I am trying to do x = models.ForeignKey(Table2, ...) but it tries to cast y to an int first. In doing so, this overflows the int. I am wondering if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49799351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the purpose of & in (a & 1) I am trying to solve a problem in codefights, after browsing the net, i found this solution.But i am not clear how it works. a * (a & 1) ^ b * !(b & 1) ^ !!(((a ^ b) + 1) & 2) A: A single & is a bitwise AND, which means that the result is the bits that are set on BOTH left a...
{ "language": "en", "url": "https://stackoverflow.com/questions/40485527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }