text
stringlengths
15
59.8k
meta
dict
Q: Return MongoDB result to an HTTP request I have a NodeJS route that looks like this: app.get("/search/:query", (req, res, next) => { let obj = SearchText(req.params.query); res.status(200); res.json(obj); }); which calls this function: async function SearchText(query) { query = "Custom"; let ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61942548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a single solution hold projects from multiple repositories? I've begun setting up SVN repositories to store my code, and am wondering if a single Visual Studio solution can have projects from multiple repositories. I have a shared library with different helper functions, generic custom controls, etc, that are us...
{ "language": "en", "url": "https://stackoverflow.com/questions/3015138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add Up/Down buttons to UITableView navigation bar Many apps, including Apple's own native Mail.app on the iPhone implement an Up/Down button in the detail view which allows for quick and easy browsing. I wish to create such an interface in my own app, but am struggling to do so. So far I've setup a segmented control...
{ "language": "en", "url": "https://stackoverflow.com/questions/4613229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fabric UI Checkbox Label Alignment I'm trying to add a checkbox to an Excel Add-In task pane but even when using a straight copy and paste of the sample code from the MS site, the label for the checkbox is on the line below. How do I make this so that the text is on the same line as the Check Box? <div class="ms-Che...
{ "language": "en", "url": "https://stackoverflow.com/questions/56755796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Code signing certificate has to be imported from Java console to view Publisher correctly and avoid signature error We have purchased a code signing certificate, and I have signed an Applet jar with this certificate, using the jarsigner command and certificate in .pfx format. But when the applet is loaded in the bro...
{ "language": "en", "url": "https://stackoverflow.com/questions/20954443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Edge detection on colored background using OpenCV I am using following code to detect edges from given document. private Mat edgeDetection(Mat src) { Mat edges = new Mat(); Imgproc.cvtColor(src, edges, Imgproc.COLOR_BGR2GRAY); Imgproc.GaussianBlur(edges, edges, new Size(5, 5), 0); Imgproc.Canny(edges...
{ "language": "en", "url": "https://stackoverflow.com/questions/47899132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: sort string with delimiter as string in unix I have some data in the following format:: Info-programNumber!/TvSource/11100001_233a_32c0/13130^Info-channelName!5 USA^Info-Duration!1575190^Info-programName!CSI: ab cd Delimiter = Info- I tried to sort the string based on the delimiter in ascending order. But none of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17363357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Format date and time in a Windows batch script In a Windows (Windows XP) batch script I need to format the current date and time for later use in files names, etc. It is similar to Stack Overflow question How to append a date in batch files, but with time in as well. I have this so far: echo %DATE% echo %TIME% set d...
{ "language": "en", "url": "https://stackoverflow.com/questions/1192476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "237" }
Q: Java error loading images from a jar I know there are many threads for this, but im still to silly to fix this problem.. Im loading my images by the following: ImageIO.read(new File(this.getClass().getResource("../" + src).toString().substring(5))); I read in some threads (in german) that with this method you can l...
{ "language": "en", "url": "https://stackoverflow.com/questions/17883377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sending email with Mandrill using PHP I'm trying to send email using Mandrill and PHP and I can't get it to send. I've downloaded the PHP API wrapper from here:https://packagist.org/packages/mandrill/mandrill Mandrill.php is in my root and the Mandrill folder is in the same directory. Here's my code: <?php require_o...
{ "language": "en", "url": "https://stackoverflow.com/questions/22647687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: populate static items into c# WPF combo box I am trying to add the static values in to my combo box which is being written in WPF c#. I have following xaml piece of code which adds the items into my combo box. <ComboBox Text="MyCombo"> <ComboBoxItem Name="115200">Item1</ComboBoxItem> <ComboBoxItem Name="57600">Ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/57073409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python error message AttributeError: 'Bird' object has no attribute 'unsetflapped' so i am learning to code games from a video coding tutorial series. And my current problem is that when i run the game I get the following error: File "/home/dev/PycharmProjects/Game6_Flappy_Bird/modules/sprites/bird.py", line 33, in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68698001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC Linq for multiple selects that allow multiple selections I have a MVC web application with multiple selects that allow multiple selections that the user can use to filter data. For example: A car database where the user can select by make, color and body style. A possible search would be (Red OR Blue) AND (Chevy...
{ "language": "en", "url": "https://stackoverflow.com/questions/25126590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: angular 4 programmatic animation How to add animation programatically ? @Component({ moduleId: module.id, selector: 'my-toolbar', templateUrl: './my-toolbar.component.html', styleUrls: ['./my-toolbar.component.scss'], encapsulation: ViewEncapsulation.None, animations: [ trigger('myToo...
{ "language": "en", "url": "https://stackoverflow.com/questions/46165023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to restore and backup database I need to restore the MySQL database that I used which is a service based database, when I click the button 'RESTORE DATABASE'. I'm using VB.Net 2010. I already did a research for any solution, but I can't come up with any idea how to make it work. Do you have any ideas in mind tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/22577704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The default value for a column in not set when copy file using rest api (SharePoint 2013 standalone) I am trying to copy files from one folder to another folder using SharePoint REST API. Some columns inside the destination folder have defined a default value. Even though the files are copied successfully, some file...
{ "language": "en", "url": "https://stackoverflow.com/questions/44666057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to disable a specific row to be draggable in AG table? I am using the Managed Dragging of AG Grid React table and want to disable a specific row, if it matches the condition. In Docs I couldn't find enough information how to do that. As it describes here, it is possible to add the draggable feature conditionall...
{ "language": "en", "url": "https://stackoverflow.com/questions/71394990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Embed Bokeh server with multiple roots in Django I have a bokeh app with multiple roots. Inside the bokeh template, I use {{embed(roots.plot1)}} {{embed(roots.plot2)}} # etc to load the plots. This works fine. Now, I'd like to get the plots to load inside a web page I'll be serving from a Django app. Since my plots...
{ "language": "en", "url": "https://stackoverflow.com/questions/52861629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: simplexml_load_file() with a variable I'm currently having an issue with simplexml_load_file(); my xml path is a url, that is rendered as a variable $xurl = "domain/pathto/myfile.xml"; // This is actually a variable that returns the entire URL to where my xml file is -- this will change from file to file $xmlpath...
{ "language": "en", "url": "https://stackoverflow.com/questions/21717258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VBA Transpose to Another target Sheet In the pictures below, I have a source page that is formatted with a device and attributes. I would like to create a macro which copies that source data and pastes it in the format of the target sheet. Ultimately the target sheet would be empty and would populate only when runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/38316683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How Strict is the rule no dom manipulation inside controller in AngularJS? I know in AngularJS We are not supposed to do any dom manipulation inside a controller. But If i need to do a dom manipulation on click of an element then how am i supposed to handle it. For example while building a menu i need to show submen...
{ "language": "en", "url": "https://stackoverflow.com/questions/19923018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are the differences between class diagram and physical class diagram? What are the differences between class diagram and physical class diagram? A: There is nothing like a Physical Class Diagram, just class diagrams (you may consult Superstructures if you like). What you probably mean is the difference between...
{ "language": "en", "url": "https://stackoverflow.com/questions/29925058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to do you insert array typeof data into apche ignite I am trying to create a table with array data type in apache ignite using following query. create table test(id int,word varchar,vector array,primary key(id)); with this above query i am able to create a table test. 0 : jdbc:ignite:thin://127.0.0.1/> !tables ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59170763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: QLPreviewController playback video I've found strange behaviour on the QLPreviewController modal where Im trying to preview a video and QLPreviewController carries on playing a video after I've dismissed the modal via the "done" button which is provided by default. Any ideas on why this could be happening or how I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/31612330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RedirectToAction is Taking Too much Time in Production? I am Trying to redirect from one Controller Action to other controller Index Method.the redirection itself taking 20sec. how can i reduce the time its consuming? Actually it is a direct call it should not consume that much of time? Is there any other way to Red...
{ "language": "en", "url": "https://stackoverflow.com/questions/34398430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perpendicular Lines at Regular Intervals along Lines with Multiple Nodes I am attempting to sample along multiple lines (roads) at regular intervals and am struggling to obtain exact perpendicular angles for each road segment. I have split each road into points giving the node at which each line changes orientation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56771058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access a custom field from and RSS feed in WordPress I am trying to access a custom field from an RSS feed in WordPress (using SimplePie), but I am not able to // get HCBC feed $media_rss = fetch_feed('feed.theplatform.com/f/IfSiAC/VfW_gmOIG_yI'); if(!is_wp_error($media_rss)) { // get limit of 5 items $ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/36747681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spotify API OAuth 2.0 - Why is the GET request to /callback renewing the code query param everytime I refresh the website? I'm using TypeScript, Node, and Express along with TSOA and Swagger to generate self-writing docs. When the user makes a GET request to /login, they are redirected to this link: http://localhost...
{ "language": "en", "url": "https://stackoverflow.com/questions/73179757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable Javers from creating Tables when starting application I am trying to work on an application which fails to start up due to Javers table creation errors(Issue is due to application DB problems). Is there a way I can prevent javers from creating tables during application start up (tables such as jv_comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/58412204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I use the rpois to produce the random number under the different mean I want to write a function to do some calculate. And in this function I want to use the rpois to produce the random number y1 under the different mean n1*2.4. I find this function cannot get my aim, so I want to know how I should edit my funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/49193943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get cell formatting Is there a function to get the activecell formatting? e.g. background color, font, font color, cell border, font size etc. I want to update the format of an entire worksheet based on a formatted cell before action (i.e. the format I want to change) by another formatted cell (i.e. the format I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/58603723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Unable to locate package build-essential" while Docker build on Debian Jessie I'm trying to run a Dockerfile that had worked very well until few days ago: FROM python:2.7 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -y build-essential xorg libssl-dev libxrender-dev wget gdebi RUN wget ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/33916083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: handle url through iframe I have a facebook application written in angularjs, it all works like a charm except for the fact that as I go trough the various links of the application such as http://[baseurl]/#/item/25 this does not reflect the url shown in the navigation bar that still remains http://apps.facebook.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/15414356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Font causing SSL issues I'm in panic, since I installed a theme based on bootstrap 3, I run into security issues over my HTTPS protocole caused by unsecured content calls. Here is an example : Insecure URL: http://www.materieldirect.com/themes/theme867/fonts/glyphicons-halflings-regular.eot Found in: https://www.mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/21305810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refresh_token using oauth.io Hi I am student of Computer Science and doing some experiments on oauth.io. but i am facing problem to get refresh_token after getting code successfully. After getting the code i am writing the follwing line of code but its giving me Internal server error.. The code is $.ajax("https:...
{ "language": "en", "url": "https://stackoverflow.com/questions/21218345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unity test ads are showing up only in editor In my case its seems like the unity's test ads are showing up only in editor. I dont see any test ads window in my device(Samsung S7). Anyone know fixes for this? I post the code here and I called the PlayInterstitialAd() methid when the game is over. I'm using unity 201...
{ "language": "en", "url": "https://stackoverflow.com/questions/61863498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When I try to output an element in a position in main(), an exception is thrown I create a partition and union structure. It can make a set and return the position of that set. In my code, my partition class has a listSet class. The problem is I cannot output element in the main() after I return the position of a se...
{ "language": "en", "url": "https://stackoverflow.com/questions/72739351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML position sidebar next to content i am currently trying to move my sidebar from below the content box to the right of it alongside it. No matter what i try it stays at a certain point no going up any higher. My website is VAGUE LINES, where if you scroll down a bit u will be able to see exactly what i am saying....
{ "language": "en", "url": "https://stackoverflow.com/questions/15063913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: filling a circle gradually from bottom to top android I have created a circle with a stroke and white background using xml. How can this be filled gradually from bottom to top on user actions(e.g. on successive button press)? Is there any free library which can be used to achieve similar thing? A: I created a Custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/24858531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: SQLAlchemy Enums Code Representation _and_ DB Representation This is a follow up to the very interesting answers of best-way-to-do-enum-in-sqlalchemy. Cito extends Zzzeeks answer to include ordering which is very nice. Cito also leaves a tantalizing bit of code near the end. class DeclEnumType(SchemaType, TypeDeco...
{ "language": "en", "url": "https://stackoverflow.com/questions/15033177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to handle two "Iot hub" devices in "stream analytics job"? I am using "stream analytics jobs" to visualize the data that comes from two different devices of an "iot hub", the device1 and the device2; the device1 sends the following message: {"messageId": 5576, "deviceId": "Raspberry Pi Web", "rpm": 22.8097212257...
{ "language": "en", "url": "https://stackoverflow.com/questions/50339654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change image sky with time of handler tick Recently I put a post about How to change the image sky with time here But, for the change of image I use the setTimeout function, I need to use the handler tick, to change image. This HTML <a-scene> <a-sky id="ou" material="opacity:1; src: ./3D/letras/Horizonte.jpg" f...
{ "language": "en", "url": "https://stackoverflow.com/questions/49786022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Codeigniter controller created when image not found I have a problem in CodeIgniter, and that is that when an image is not found on the server, the instance of a controller is created (besides the one that called the view). I know all this can sound confusing, so this is the code to observe what I'm saying. I did th...
{ "language": "en", "url": "https://stackoverflow.com/questions/9582175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function to check mathematical expression not working The Function to check mathematical expression not working. I debugged this on chrome, and i saw that when it gets to the first pop (stack.pop()!== chars[i]), it returns false, but it shouldn't. var smarter_validate = function(str) { var chars = str.split(''); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34753932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Bullets in a Xaml Tooltip Everything is in the title. I'd like to be able to add some bullet list in a Tooltip but so far haven't found any simple way. thanks in advance! A: You want to use the BulletDecorator as part of the ToolTip. Example: <ToolTip> <BulletDecorator> <BulletDecorator.Bull...
{ "language": "en", "url": "https://stackoverflow.com/questions/19699415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Studio remember keystore and password Whenever I build a signed apk this dialog appears: Every time I have to enter the same texts (path, passwords, alias). My question: how to save and remember them, across projects? Ticking "Remember passwords" does not help. My keystore file has been generated a while ag...
{ "language": "en", "url": "https://stackoverflow.com/questions/31355671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find all sums in an int array I have an array of integers, example {2,3,7} and I need to find how to find a number as a sum of these numbers For example, let's say I need to find 17 I could do 7+2+2+3+3, 7+2+2+2+2+2, 7+3+7, 3+3+3+2+2+2+2, etc. But looping through everything is very inefficient, it would be O(...
{ "language": "en", "url": "https://stackoverflow.com/questions/64966933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get some user's last tracks with Soundcloud SDK I currently have an issue with the Soundcloud Javascript SDK. When using the method : SC.get('/users/USER_ID/tracks', [params]) It work perfectly fine for some users, but I get an empty array with other. The account and tracks are all public. I read somewhere tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/36339698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use jgit to clone the existing repositories to new github instance? We have two separate GitHub instance running. One GitHub instance is https://github.dev.host.com and other github instance is https://github.host.com. I have various repositories in https://github.dev.host.com which I need to migrate to this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28380719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternative to ->operator() Is there a nicer syntax than calling objp->operator()(x, y, z) if objp is a pointer? &objp(x, y, z) does not work. Because of all the symbols, this is hard to Google. Sorry of this is silly. A: (*objp)(x, y, z); would be the obvious alternative. I'm not sure if you consider that nicer or...
{ "language": "en", "url": "https://stackoverflow.com/questions/31757675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: winForm app isn't creating an .exe.config.deploy file (winForms) I created a winForms app (c#), and it works great from the vs and from the appName/bin/debug/appName.exe, the problem occours when I copy the .exe file to another folder - it doesn't open. When I published it and try to install - it showed the messege ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70785702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qlik sense only show values on trend graph I have a trend graph line..and these values show as time differences for orders per customers This is the sort of question to ask how to stop showing 0 however This measure is worked out using an if statement.. within the if statement there is sum difference between two ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/46573415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expand React Bootstrap Table for more granular data I have a react bootstrap table that displays information about a manager's sales, grouped by manager so I can see their overall performance. I would like to add the capability of clicking on a row and having the table expand to include the data at the sales rep lev...
{ "language": "en", "url": "https://stackoverflow.com/questions/58327571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why svg text disappears when setting x and y to 0? I just started reading about svg and I came up with the following question I am creating a simple svg with a text inside as shown below. From my reading I understood that x and y of the text tag declares the position of the text inside the svg space. Why when I se...
{ "language": "en", "url": "https://stackoverflow.com/questions/21777376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Could not find default endpoint element that references contract - Hosting wcf I have one wcf service on this site http://wswob.somee.com/wobservice.svc I try to consume that service with my winform app. This is the error I receive when I create an instant of the service com.somee.wobservice.IwobserviceClient myser...
{ "language": "en", "url": "https://stackoverflow.com/questions/24050224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Recursive query on jsonb data stored in Postgres I have a table in postgres named 'books' with one jsonb column called 'j' with the following data: { "entity": "Book", "processes": [ { "process": [ { "processname": "Buy", "option": "none", "processes": [ { "proces...
{ "language": "en", "url": "https://stackoverflow.com/questions/61142177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create and return object in return statement? I want to create and return an object in this return call: var Zones = _ZoneService.GetZones(); var userZones = _ZoneService.GetUserZones(user); return Ok(//Here I need to return both Zones and userZones); How can I create new on the go object to return these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52495498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to acess my database elements using the for loop? I'm learning PHP and I'm well versed with Java and C. I was given a practice assignment to create a shopping project. I need to pull out the products from my database. I'm using the product id to do this. I thought of using for loop but I can't access the prod_id...
{ "language": "en", "url": "https://stackoverflow.com/questions/17058147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: slider on angularjs data I need to add slider that is auto moving with a speed of 4 seconds , scrolling by one element.I used bower component, angular-slick from vasyabigi.github.io/angular-slick/ , it is working fine with static data, but I am fetching data from server in controller with $http. It is not working wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/39033967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: foreach line and add something else hello i have something with this code bellow $text = nl2br($_POST['inputtext']); foreach(explode("<br />",$text) as $ok){ echo "944".$OK."<BR />"; } what i have tried is when i enter something in the text area and i click change look the result 944test 944 test anyway way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/17129542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to order a queryset in Django model by relational foreign key I have the following models models.py class Category(models.Model): label = models.CharField(max_length=100, unique=True) description = models.CharField(max_length=255, blank=True) class Expense(models.Model): description = models.Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/59894326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identifying an Event based on a Jump in Rolling Variance in Python I am trying to figure out a way, in Python, how to identify when an event occurs, based on a jump in the rolling standard deviation. As shown in the plot below, around the 12000th sample, an event occurs. In my Python script, I am currently using a...
{ "language": "en", "url": "https://stackoverflow.com/questions/45487229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: npm install permission denied (macOS) To install a Bootstrap theme I want to run npm install. However I always receive a permission denied error. I already tried nvm and then switched with nvm use 10.9.0 to run npm install. I also tried sudo chown -R $(whoami) ~/.npmand sudo chown -R $USER /usr/local/lib/node_module...
{ "language": "en", "url": "https://stackoverflow.com/questions/51967335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: how to pass a parameter to char*? As in the code below, I can't pass this parameter, how do I fix it? E0167 The "const char *" type argument is incompatible with the "char *" type parameter Code example: #include <iostream> using namespace std; int PrintString(char* s) { cout << s << endl; } int main(int arg...
{ "language": "en", "url": "https://stackoverflow.com/questions/62459667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'let' doesn't memoize values in rsepc I have a user model, who have a many-to-many relationship whit itself: user A add user B as a friend, and automatically, user B becomes friend of user A too. Performing the following steps in the rails console: 1) Create two users and save them: 2.3.1 :002 > u1 = User.new(name: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38398273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SpringBoot-remove runtime exception from logs for Custom exception handler I have a SpringBoot 2.2 Rest controller that needs exception handling to return correct response to the caller. Is there any way to remove the runtime exception from logs for custom exception handler in SpringBoot? I first had: import org.spr...
{ "language": "en", "url": "https://stackoverflow.com/questions/60744397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting Cookie between two subdomains I'm currently testing my react+laravel(9) frontend, backend API configuration on actual URLs(Hostinger shared hosting) using laravel sanctum SPA authentication. These are two subdomains of example.com: React is using "front.example.com". Laravel API is using "back.example.com". ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73491679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining arbitrary property path, distinct, and count I have the bellow SPARQL query and would like to get the sum of ?myInt for all the unique ?z values. Is it possible to express such a query in SPARQL 1.1? SELECT ?z SUM(xsd:int(?myInt)) where{ ?x property1+ ?y ?x property2 ?k ?k property3 ?z ?x property4 ?myInt...
{ "language": "en", "url": "https://stackoverflow.com/questions/38475649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure maven-release-plugin to use maven-scm-provider-gitexe 'shallow' option I'm trying to configure the maven release plugin to make use of the new shallow option provided by maven-scm-provider-gitexe. My pom looks like the following <properties> <shallow>true</shallow> </properties> <pluginManagemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/50633906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EXSLT extension "dyn:evaluate($expr)" failing in XSLT 1.0 in TIBCO BW I've been trying to implement dynamic evaluation of an expression using Exslt extension dyn:evaluate($expression) in XSLT1.0, but I'm getting the below error. BW-XML-100006 Job-261000 Error in [Transform_MCIN_XML/Dyn.process/Transform XML] The [ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/19930219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Determine the max value of a group, and display that row I've got a few thousand rows in an excel spreadsheet, which (simplified) looks like this: ID Category Animal Version Value 100 A Dog 1 20 100 B Cat 2 50 100 C Dog 3 50 200 A Dog 1 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/58456539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to access the searchbar using Firefox addon SDK? Is it possible to access the searchbar using Firefox's addon SDK? I've seen examples on how to access the menu, context menu and the bookmark sidebar. But I can't find any documentation or tutorial on how to access the search bar. A: const winUtils = require("sdk...
{ "language": "en", "url": "https://stackoverflow.com/questions/14017569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TFS - Find In Files My team has just migrated from VSS to TFS 2013. On VSS, we would often search the entire database for the occurrence of some string (usually a table or procedure name) to find out everywhere it is used. This functionality is clearly not available in TFS. I have seen some alternatives, none of w...
{ "language": "en", "url": "https://stackoverflow.com/questions/28478578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: My spring boot app quits without error as soon as it loads I am converting a maven spring boot app into a bazel based app. I finally got it compile correctly, but as soon as I run it, it just quits. The server doesn't start but it prints the sprint boot start up message. I think it has to do with spring not being a...
{ "language": "en", "url": "https://stackoverflow.com/questions/53009654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android BLE SCAN getting stopped in 30 secs in Foreground Service after sending the app to background We have BLE scan implemented in a ForegroundService our app, when we target the app from targetSDKVersion 31 (Android 12) and try to scan when app is in background, the scan is getting stopped exactly after 30 secs...
{ "language": "en", "url": "https://stackoverflow.com/questions/75182551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mutable reference to an item using 'find' in Rust How can I get a mutable reference to an item found in a vector? I've tried the following which works if I don't make the iterator mutable using .iter(): fn main() { let mut vec = vec![1, 2, 3, 4]; let mut wrong = -1; let working = match vec.iter().find(|...
{ "language": "en", "url": "https://stackoverflow.com/questions/48551026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Textblocks aren't added? I'm trying to generate some UI Elements dynamically. The whole thing works, except it seems like the textblocks are invisible. Grid pGrid = this.createPodiumGrid(); //create textblocks etc TextBlock bTijd = new TextBlock(); bTijd.Text = currentGig.BeginTijd; bTijd.HorizontalAlignment = Sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/20967905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Autoscale WinForms Has a program written in a notebook with a resolution of 1600x900, all the elements are placed normally, and the same program on a monitor with 1920x1080 scale from 125% windows are placed incorrectly. How on WinForms c# consider it and how to redraw? A: You need to consider using the anchor and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21648977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to find out whether we have opened page in Touch UI or classic UI in javascript Is there any way to find out whether we have opened this page in Touch UI or classic UI in javascript like we have in classic UI to find out whether page is in edit mode or design mode. CQ.WCM.editMode Please suggest. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34553802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: app.get('/') not being called when site opened Whenever I open my site (i.e. http://127.0.0.1:8090), a GET request to / is not made. app.use(session({ //session stuff })); app.use(bodyParser.urlencoded({ extended: false })); app.use(express.static('client')); app.get('/', async function(req, res){ console.log(r...
{ "language": "en", "url": "https://stackoverflow.com/questions/55791707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How stop setTimeout after 1 min which is repeating every 1 second Here is Original Question Following function is doing one thing. "repeating every 1 sec infinitely." But I want this function repeat every x second just for 1 min. After 1 min, it should stop forever. var repeater; function doWork() { $('#more').loa...
{ "language": "en", "url": "https://stackoverflow.com/questions/53235935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ pointers reverting back There are 3 linked lists with 2 already in order. The 2 linked lists are sorted into the 3rd(headZ). If I pass headZ as a pointer like it already is it reverts back to an empty list at the exit of the function. If I pass by reference, it exits and headZ only contains 1 number. I cannot fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/19968994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Including Moment.js in LiveCycle Designer For few days I've been trying to include the actual Moment.js library in my dynamic PDF which I've created with Adobe Livecycle Designer. We've used an older version (1.7.2) without any problems but now I only get a 'Function not exist' error. Does anyone have any expierienc...
{ "language": "en", "url": "https://stackoverflow.com/questions/26587484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ruby#index Method VS Binary Search Given an element and an array, the Ruby#index method returns the position of the element in the array. I implemented my own index method using binary search expecting mine would outperform the built-in one. To my surprise, the built-in one ran approximately three times as fast as m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7436155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Maximum pool size error in C# using MySQL Do you have any suggestion on how I will manage my application to run properly? It basically updates all rows (203 rows but can be more) in a table of my database. And I need to run it all day. After an hour of running, it prompts an error: MySqlException: error connecting: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31174278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parse impersonate user I need to debug some user issues which can only be debugged by actually being the user. Is there a way I can impersonate a user without knowing their password? I'd rather not have to reset their password in the DB as that will lose the original one.
{ "language": "en", "url": "https://stackoverflow.com/questions/29712309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the deleted file name using Microsoft graph's delta query I am running a delta query against SharePoint site drive root. For the removed files I am just getting "deleted" property and DriveItem Id and the name property is always null. Whenever doing a separate DriveItem request with the corresponding D...
{ "language": "en", "url": "https://stackoverflow.com/questions/75615639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get only the value of the first data object from a JSON response when there are more data objects with the same name? I want a value from a JSON request to be filled in an source url as in the code I currently have below: function Source() { $.ajax({ type: "GET", dataType: "json", url: "https://ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/33999990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Curl giving unauthorized response in production but not in localhost I am using Curl to get contents of a website but I'm getting a 403 access denied response on production. However, on my local machine (localhost), it works fine. I'm essentially using Curl to login to a website and then access the content after log...
{ "language": "en", "url": "https://stackoverflow.com/questions/58177050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ doesn't compile my custom data type including a vector in it I tried to do a custom list, which has intern a private vector. yet I allways get this Error-message, and have no idea where even start to look for the problem. I use Qt, windows and "CONFIG += c++11" within my project. ...myPath\c++\bits\stl_construct...
{ "language": "en", "url": "https://stackoverflow.com/questions/27321914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: need a dictionary like this i want to use an ordered dictionary which its iterate action looks like list seq.append(2) seq.append(3) seq.append(1) print(seq)# the list should be 2,3,1 dic[2] = '22222' dic[3] = '333333' dic[1] = '111111' print(dic)# should be {2:'22222',3,'333333',1:'111111'} not {1...2...3} i don...
{ "language": "en", "url": "https://stackoverflow.com/questions/12505531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress reverse date format for display but not db I have a events page using a custom wp_query so that I can split post into upcoming events and past events. To do this I need the date to be stored in the database Y/m/d format but would like it to display on the front ends d/m/y. Any help on how I should do this,...
{ "language": "en", "url": "https://stackoverflow.com/questions/16558323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing a function that checks if a string is a palindrome I need to write a function that determines if a given string is a palindrome. Here is what I wrote so far: def isPalindrome(string): found = False for i in range(len(string)): if string[i] == string[len(string) - 1 - i]: found = T...
{ "language": "en", "url": "https://stackoverflow.com/questions/33335318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: please help me to define a perl regular expression I'm new to everything. Please help. I'm trying to crawl every <div class="name"><a href="/v/name/idlike123123ksajdfk">name</a></div> in a webpage. I want to catch the /v/name/idlike123123ksajdfk part. (Knowing that the <div class="name"><a href="/v/ part is fixed...
{ "language": "en", "url": "https://stackoverflow.com/questions/10651849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add Bootstrap CDN to my Wordpress I want to use Bootstrap framework for my Wordpress.. how to edit in the functions.php ? i find somewhere tell the code like this function enqueue_my_scripts() { wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', array('jquery'), '1.9....
{ "language": "en", "url": "https://stackoverflow.com/questions/37494517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Angular lifecycle hook When I use the firebase js sdk and make an angular project and implements the lifecycle hooks (for example afterviewinit) and write something on the console, the console message repeat again for infinity time. I would like that the message only once will be appeared on console. Thanks the reso...
{ "language": "en", "url": "https://stackoverflow.com/questions/56972487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to /clr compile "servprov.h" (IServiceProvider) I want to /clr compiling a project that need to "servprov.h" (IServiceProvider) I faced to this ERROR: Error 2 error C2872: 'IServiceProvider' : ambiguous symbol 116 it's part of code: #ifndef __IServiceProvider_FWD_DEFINED__ #define __IServiceProvider_FWD_DEF...
{ "language": "en", "url": "https://stackoverflow.com/questions/30583001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should .rvm and all its subdirectories be owned by user instead of root? I have a ~/.rvm file that has some subdirectories owned by user (anthony) and some owned by root. This is causing issues when I am trying to gem install. I am tempted to run sudo chown -R anthony:staff ~/.rvm so I have full user control over t...
{ "language": "en", "url": "https://stackoverflow.com/questions/19442322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to build a Interface like Evernote. One Page, Columns Evernote just released a new web interface which is interesting. It's one page, columns are resizable with the mouse etc. Screenshot: http://blog.evernote.com/wp-content/uploads/2011/03/evernote_web_new8.jpg What's the best way to build something like this wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/5503276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Flutter: Container's color change when i add box shadow (Opacity and BoxShadow doesn't work well) I'm trying to make a simple container with shadow effect. It is a Opaque container with a box-shadow effect. But i dont think '.withOpacity' and 'boxShadow' work well together. Because every time i add 'boxShadow' to my...
{ "language": "en", "url": "https://stackoverflow.com/questions/73216278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }