text
stringlengths
15
59.8k
meta
dict
Q: Web Scraping an Image I was thinking about the applications of web scraping (still quite new to it) and came up with a question. Can you get an image from a page if there are advertisements on the page (like can you avoid advertisements and only look for the correct image content on the page)? Also, if the image i...
{ "language": "en", "url": "https://stackoverflow.com/questions/28823008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: setBackgroundResource on ImageView return null I'm using ListFragment in my android project. I decided to make a listView, each listview item consist of music frequency imageView. I will try to animate the imageView of music frequency. Each listView has a button called play, once the play is clicked, the music frequ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25591514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight Multithreading; Need to Synchronize? I have a Silverlight app where I've implemented the M-V-VM pattern so my actual UI elements (Views) are separated from the data (Models). Anyways, at one point after the user has gone and done some selections and possible other input, I'd like to asyncronously go tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/5746024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the background color for specified row in datagridview? I want to set the background color for specified Row in datagridview .. My need is i have a for loop (i=0;i<10;i++) .Inside this for loop i write the logic as if(i=1) { //Want to Set Color For This Specified Row.. dataGridView1.SelectedRows[1].Defau...
{ "language": "en", "url": "https://stackoverflow.com/questions/27525077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spring Boot Mail send email using acces token I have simple mail sending functionality in project which configured in one bean. @Bean public JavaMailSender javaMailSender() { JavaMailSenderImpl javaMailSender = new JavaMailSenderImpl(); Properties properties = new Properties(); properties.setProperty("m...
{ "language": "en", "url": "https://stackoverflow.com/questions/53376248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rxjs synchronous? I recently started working on a new project and I have seen this twice now, am I crazy or will never work under any circumstance? protected get reportView(): any { let convertedView = null; this.store .pipe(select(fromStore.getTransferOrderConverted), rxjs.take(1)) .subscribe((c...
{ "language": "en", "url": "https://stackoverflow.com/questions/68402420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java.util.NoSuchElementException when run with Semaphore I have a Queue containing 10 elements, and I start 100 threads of which 6 may run concurrently, controlled by a Semaphore. When each thread runs, it takes the head element then adds it to the tail. But sometimes I get this exception: java.util.NoSuchElement...
{ "language": "en", "url": "https://stackoverflow.com/questions/31881642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pass context to AdMob InterstitialAd in LibGDX Does smb knows how to pass a context to InterstitialAd in LibGDX? In Android it is simply InterstitialAd interstitial = new InterstitialAd(this); My class extended from Screen. or I can intialize it in class extended Game.. Or how to pass the context in this ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/26512198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best variable scope I should use in servlet operation I am working on workflow management system. Have one separate java class which contains logic method. One of this is: public static in get_nxt_stg(int current_stg,int action) { } and define static variable cur_stg and nxt_stg. used in servlet. call t...
{ "language": "en", "url": "https://stackoverflow.com/questions/29295212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load XML into mxml (Flex AS3) I am trying to display content of an xml file in a textarea (using Flex 4.7). But I am getting errors and I am not sure why. This is my code: <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/16995286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is the tail position in my Clojure loop? Clojure is saying that I can't call recur from a non-tail-position. Is this not the tail position? What is the tail position in my loop then? (loop [i 20] (for [x (range 1 21)] (if (zero? (rem i x)) i (recur (+ i 1))))) A: for does not do wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/36434246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I zero pad a 4 character string in C# I am using the following class method to create a Base36 string from a number: private const string CharList = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static String Encode(long input) { if (input < 0) throw new ArgumentOutOfRangeException("input", input, "inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/8336981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Protractor test picking up edge browser instead of chrome after reboot I was trying to get a server installed with headless chrome, selenium webdriver and protractor for automating tests. I setup my environment with these instructions: # JDK 8 sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update && sudo apt...
{ "language": "en", "url": "https://stackoverflow.com/questions/44402817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Use of XML / XML Attributes in Flex I am new to XML and XML attributes. I have read in some XML documentation that XML can be represented in 2 ways: Method-1 <?xml version="1.0" encoding="UTF-8"?> <CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY...
{ "language": "en", "url": "https://stackoverflow.com/questions/7201376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create SQL query for the following tables A database is composed of 4 tables: Table1, table2, table3 and table4. For a given query Q. If Q = Name_1. I want to select all the fields in tables 1, 2, 3 and 4 and save them in an array using python. create Tables: Create Table table1 (ID1 INT PRIMARY KEY NOT NULL, NAM...
{ "language": "en", "url": "https://stackoverflow.com/questions/28604514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sticky section using "position: sticky;" css? * *I try to sticky full section using css but i cant sticky section *when i try with div it's working fine but when i try with section it's not working. *I try to sticky pizza section. i already sticky inner div but not sticky full section. Please view in ful...
{ "language": "en", "url": "https://stackoverflow.com/questions/63407449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printing PDF files using VBS I am new to coding with VBS. This is my unfinished code to print documents in a folder containing documents with 3 distinct headers, "DN" "INV" and "PO". I've been searching around for the code/method to print out PDF documents. I tried using the invokeverb "&print" function but it doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/50920097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I reset a ComboBox when the underlying list changes? I'm currently working on a WinForms graphical interface in C#. The form has a ComboBox that is displaying the contents of a custom class I wrote. This class implements the IList interface so that it can be used as the DataSource for that ComboBox. The issu...
{ "language": "en", "url": "https://stackoverflow.com/questions/43918972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Override PLIST file for iOS builds using VS2015 TACO to work around CB-10493 [iOS] Missing icon.png I am using VS2015 TACO to build a cordova application using Cordova 6.0 and Cordova-ios 4.0.1. There is a registered issue CB-10493 [iOS] Missing icon.png https://issues.apache.org/jira/browse/CB-10493 The work aro...
{ "language": "en", "url": "https://stackoverflow.com/questions/35546943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compile errors after adding V8 to my project (C2143, C2059, ..) i've recently added Google's V8 to a MSVC2005 project which is also using Qt and i haven't been able to compile it since. The defines are giving me a lot of problems, for example in V8's token.h there is #define T(name, string, precedence) name, enum Va...
{ "language": "en", "url": "https://stackoverflow.com/questions/9567868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Logical Error with PHP! A password length check I am getting a logical error I believe I am using PHP as my server side language and I am performing password checks. Users will not be allowed to enter a password less than 8 characters and no more than 32 characters. register.php <?php $pageTitle = "Register"; ?> <?...
{ "language": "en", "url": "https://stackoverflow.com/questions/35132633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: unable to read IF in printing outputs For the following code, Python recommended me to use a.any. Now, according to my code what the outputs show is wrong. l is bigger than 1 but the out put is printing r instead of q=10. from numpy import * import numpy as np for i in range (1,3): r=np.random.uniform(0,3,i) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49316345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find the specific component a React warning is referring to? This is what I see in my console: In my React project, I'm seeing many warnings that look like this: Warning: <React warning> in div in div in form (created by MyComponent) in MyComponent in div ... Is there any way to figure out which...
{ "language": "en", "url": "https://stackoverflow.com/questions/60403397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Roslyn - Use VisualStudioWorkspace in Visual Studio 2010 Is it possible somehow to use the VisualStudioWorkspace service, in an VsExtension that targets Visual Studio version 2010?(http://source.roslyn.codeplex.com/#Microsoft.VisualStudio.LanguageServices/Implementation/ProjectSystem/VisualStudioWorkspace.cs,e757fe6...
{ "language": "en", "url": "https://stackoverflow.com/questions/39372384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery - multiple checkbox and multiple textbox I have 4 check box when i select anyone of the check box need to display the respective check box and text box. input type="checkbox" id="acheck[]" value='name' input type="textbox" id="productfield" value=' ' jquery Code: $(document).ready(function() { $("#...
{ "language": "en", "url": "https://stackoverflow.com/questions/1124760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: Store images in HTML5 local Storage onClick I am currently creating an app as a side project using jQuery Mobile & PhoneGap. This app will show multiple images and gives the user the opportunity to favorite an image that he/she likes. Once the user clicks on the button to favorite the image, that image will display ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33771737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to easily store and access logs from my running iOS app using the new Logger system? I've read a lot of documentation which tells me to use macOS' Console app to access the supposedly stored logs but I can't for the life of me get it to work. This is what I am doing: * *Created several Logger(subsystem: "Some....
{ "language": "en", "url": "https://stackoverflow.com/questions/65854061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VBA Run-time error -2147319767 (80028029) in Public Function This error popped up today in the following code: Public lngLast_CS_Sheet As Long Public lngCS1_Index As Long Public lngCSLast_Index As Long Public Function num_CSx_Sheets() 'Function to find total number of CS Sheets Dim w As Long, cs As Long ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60154207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CodeIgniter User Access I need help where every page I give value 1 so what I want if page without value 1 cannot be access with another user my logic like this : <li class="treeview"> <a href="#"> <i class="fa fa-gears"></i> <span>User Setting</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/42196647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to output a binary file in C without padding bits I'd like to output a struct's data to a binary file, but without any padding bits between each variable's information. For example: struct s { int i1; short s1; char c1; }; struct s example[2]; If I use fwrite(&example, sizeof(struct s), 2, file), th...
{ "language": "en", "url": "https://stackoverflow.com/questions/30021822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dropdown menu correct? I want to create a dopdownmenu, only with html & css. And now i think i made a fault.. I did not much at the moment here is my Page: Page The tutorials in the internet arent suitable for me :/ It would be cool if someone can write me something about the construction. Because i think it isnt co...
{ "language": "en", "url": "https://stackoverflow.com/questions/27755094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Get return value of fputcsv Does anyone know of a function, or a cool trick, to get the return value of fputcsv instead of writing the output to file? I'm trying to encode a file as a tab-delimited file, but my client wants one of the columns encoded in csv (so 1 column of csv values in a tab delimited file). Not i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7362322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Postgres date subtraction in a query I want to do a dynamic query which always takes an interval of todays_date and todays_date - 30 SELECT day::date FROM generate_series('2014-08-01'::date, '2014-09-14'::date, interval '1 week') day But with current date, something like this SELECT day::date FROM generate_seri...
{ "language": "en", "url": "https://stackoverflow.com/questions/25905638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get value of disabled control in angular material I have divided my form into multiple components. Only parent component has form control. Child components has for "formGroup" attribute. On submit I need to read values of all controls but child component has few controls disabled. I tried value and getRawValu...
{ "language": "en", "url": "https://stackoverflow.com/questions/68026191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to make a PictureBox move using arrow/WASD keys? I'm trying to use this code to make a pong game, but for what ever reason, my code isn't working. As far as I can tell, everything should be correct. I have the Timer enabled and the code compiles, because the program boots without errors, but the PictureBoxes are...
{ "language": "en", "url": "https://stackoverflow.com/questions/69053990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Constraint solving with choco: Finding unique solutions for a variable I'm using Choco to solve a CSP. In the beginning, I create an array of variables v like this: IntVar[] v = new IntVar[5]; After adding several constraints, I'll search for solutions and find multiple of them. However, I want only unique solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/45108308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Preventing "foo" from matching "foo-bar" with grep -w I am using grep inside my Perl script and I am trying to grep the exact keyword that I am giving. The problem is that "-w" doesn't recognize the "-" symbol as a separator. example: Let's say that I have these two records: A1BG 0.0767377011073753 A1BG-AS1 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/55403773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: installr:install.pandoc() appears broken I recently noticed that the install.pandoc function in the installr package appears to be broken. I get the following error message: trying URL 'https://github.com/' Content type 'text/html; charset=utf-8' length unknown downloaded 78 KB github.com is not compatibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/53788391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTP Content-Length and Chunked Transfer-Encoding. Is there a 2GB Limit? Is a HTTP Content-Length over 2GB or 4GB supported by modern webservers? How about the chunks in HTTP Chunked Transfer Encoding? Can an individual HTTP chunk exceed 2GB in length? I need to know to use 32-bit integers or 64-bit integers in my c...
{ "language": "en", "url": "https://stackoverflow.com/questions/8811824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Symfony ajax form need reload page to show results I have a product page where users can write comments, this works fine but i would like to implement ajax form with no page refresh. The code call ajax and persist, but need press f5 to show new comment. what am I doing wrong? Thanks, and sorry for my english. In pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/36024684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you use URL_Rewrite rewritemaps to modify ServerVariables in IIS? So I'm having an issue and not sure if it's even possible. Here's the scenario. We utilize an F5 loadbalancer with an i-Rule set to send us a header (HTTP_IV-USER) value based on an access token. We want to query that header, see if it matches a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58293108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handle Group by different way in postgres This query getting result like below select date_part('hour', ts.a_start_time) AS hour,count(*) as c, count(*) FILTER (WHERE EXTRACT(dow FROM ts.a_start_time) = 0) AS s, count(*) FILTER (WHERE EXTRACT(dow FROM ts.a_start_time) = 1) AS m, count(*) FILT...
{ "language": "en", "url": "https://stackoverflow.com/questions/58654787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using CMD window, get the most recent filename for each folder of the current directory How can I use the cmd window to get the name of the most recent file in each folder in the current directory? I feel like this is either a multistep process of commands or a one-liner beyond my current knowledge. I am only famili...
{ "language": "en", "url": "https://stackoverflow.com/questions/36271090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: passing command line arguments in coded ui tests Is it possible to pass command line arguments in coded ui test ? in normal C# programs we just pass the arguments along with the exe file eg: filename.exe "2" "7" in command prompt. but can something like this be done in coded ui tests? Thanks A: No, you can do that...
{ "language": "en", "url": "https://stackoverflow.com/questions/10299599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get data payload of android notification on dismiss I'm using Firebase Cloud Messaging to send notifications with data payload to my app. When i send a notification, if my app is running (foreground) i get the data overriding the onMessageReceived() from FirebaseMessagingService class. If my app is not running the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/38350498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to trigger a link from jQuery? I am not able to trigger A link from jQuery? Here is my code Html Code I am trying to open app if installed otherwise it will redirect me to play store. Its working when i click on link but i need to redirect it automatically <a id="link_id" href="app://details?id=agd.solutions...
{ "language": "en", "url": "https://stackoverflow.com/questions/59589070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Object.assign() causes TypeError: this.map is not a function I was trying to extend Array.prototype with some new methods/properties, the following is what I did in the first attempt, which ended up with a TypeError: // Array.prototype + .max(), .maxRowLength (by Object.assign) Object.assign(Array.prototype, { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72625697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Make selected text bold/unbold I'm wrapping the selected text in span tags, when you click a button. If I then select a different piece of text and click the button, that text also gets wrapped in tags. However, when I select a piece of text that's already wrapped in span tags, I'd like to remove those tags to unemb...
{ "language": "en", "url": "https://stackoverflow.com/questions/20880271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In c: Can I copy a whole portion of an array at once, by refering to the pointer to the location of a slot in the array I want to copy from? Hope my question is clear and relavent, new to Pointers... - Can I copy a whole portion of an array at once, by refering to the pointer to the location of the first slot in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/13108878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Determining column to use in INSERT statement based on data in the table being selected from I need to determine if I should insert data into theDate or theDate2 column based on data in the processDate column from the table being selected from. I am unable to use a column in a CASE statement however (I am getting an...
{ "language": "en", "url": "https://stackoverflow.com/questions/20509936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel models, relationships how to make a innjoin query using Eloquent? Controller code (which isn`t working) $employees = Employee::with('department')->get(); Model:department class Department extends Model { ... /** * Defining Relationships. */ public function employee() { return $this->hasMany('Gl...
{ "language": "en", "url": "https://stackoverflow.com/questions/38612280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to validate Validate NCName in C++ In .NET you have XmlConvert.VerifyNCName XmlConvert.IsNCNameChar etc to validate a NCName How can one do the equivalent in C++ ? A: You can try using the Xerces-C++ library from Apache, more specifically the XMLChar1_1::isValidNCName method. If you're using Visual Studio, yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/12915333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Yacc - productions for matching functions I am writing a compiler with Yacc and having trouble figuring out how to write productions to match a function. In my language, functions are defined like this: function foo(a, b, c); I created lex patterns to match the word function to FUNC, and any C style name to NAME. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13560844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Springfox / Swagger does not resolve polymorphic field I'm having a simple Spring Boot application with one REST endpoint to return a "Job" object, which contains a list of polymorphics, next to other stuff. We go Code First approach and try to create the API models to fit our needs. But the generated Api Doc does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55728949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the 'correct' way to include unrelated entities subset in a form? Imagine three entities - Account, Address, Purchase. Account has a OneToMany relationship with Address. A Purchase is related to an Account, but not with an Address - it does however have a text field for the address (this is because addresses ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18881566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Money format output and also in the textbox i have here a sample computation, what i want to know is how can it be a money format output. for example 1000+ 1000 =2000 i want to output it as 2,000. also , when typing the value , i want it automatically look a money format. <html> <head> </head> <body> <form name="...
{ "language": "en", "url": "https://stackoverflow.com/questions/15287923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Caliburn.Micro No target found for method I'm using Caliburn.Micro for my WP7 project and I keep getting this strange error for some of my pages. I can't reproduce it myself but it very often appears in Bugsense logs. This is how I use it. XAML: cal:Message.Attach="[Event Loaded] = [Action Init()]" And in my View...
{ "language": "en", "url": "https://stackoverflow.com/questions/26297384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load a Bitmap into VB 6 PictureBox I wrote a library which has a function call that returns a System.Drawing.Bitmap. Everything works great and I can access it just fine from a C# WPF application. However, now I need to make it work with a VB 6 application and for the life of me I can`t get it to work. I have a VB6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33784902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parsing a HTML file in Java I am currently in the process of developing an application that will request some information from Websites. What I'm looking to do is parse the HTML files through a connection online. I was just wondering, by parsing the Website will it put any strain on the server, will it have to downl...
{ "language": "en", "url": "https://stackoverflow.com/questions/6537321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show chaing slider value in console I have a slider and span which display the value of the changing value like this: var slider = document.getElementById("myRange"); var output = document.getElementById("dynamicSet"); output.innerHTML = slider.value; // Display the default slider value // Update the current ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61076647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Monte-Carlo Simulation for the sum of die I am very new to programming so I apologise in advance for my lack of knowledge. I want to find the probability of obtaining the sum k when throwing m die. I am not looking for a direct answer, I just want to ask if I am on the right track and what I can improve. I begin wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48480722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do i add transitions to my current JavaScript code? I am currently working on a website project, and i have put together this code (JavaScript) for a slider using an online YouTube tutorial. <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <script src=...
{ "language": "en", "url": "https://stackoverflow.com/questions/35928732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: AWS ElasticSearch Service throws 403 forbidden on document insert I am trying to upload data into AWS ElasticSearch using hive query. The Intermediate table used within Hive query has following structure. CREATE TABLE uid_taxonomy_1_day_es( UID String ,VISITS INT ,TAXONOMY_LABEL_1 INT ,TAXONOMY_LABEL_2 INT ,TAXONOMY...
{ "language": "en", "url": "https://stackoverflow.com/questions/44299980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Firebase Cohorts in BigQuery I am trying to replicate Firebase Cohorts using BigQuery. I tried the query from this post: Firebase exported to BigQuery: retention cohorts query, but the results I get don't make much sense. I manage to get the users for period_lag 0 similar to what I can see in Firebase, however, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48731113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Json object in post not recognized as object in web api I have an angular client and want to execute a get request to my web api backend to get a list of items from the underlying Dapper Db Wrapper. Dapper allows me to pass in parameters as an anonymous object which would in csharp look like this: connection.GetList...
{ "language": "en", "url": "https://stackoverflow.com/questions/69296360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Call C# function from asp.net Good morning, I have the following asp Image and would like to add the on mouse over event, as follow: <asp:Image ID="MapImage" runat="server" Height="601px" Width="469px" OnMouseOver="OnMouseOverMap"/> I have also added the following method on the C# code: protected void OnMouseOverM...
{ "language": "en", "url": "https://stackoverflow.com/questions/26176769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Does canvas drawing work in Ionic 2? I am currently using a html5 canvas and by using ionic 2 (tap)="markPoint($event)" on the canvas in html, I am getting the position of the tap event. Below is the function which should place the mark: public markPoint(event) { var position = event.center; let ctx = this.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/37911266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: can't catch adal:loginSuccess when not using popup I have an angularjs SPA with ui.router. in my module config I have: $locationProvider.html5Mode(true).hashPrefix('!'); $urlRouterProvider.otherwise('/'); $stateProvider .state('welcome', { url: '/', template: '<div><button type=...
{ "language": "en", "url": "https://stackoverflow.com/questions/42996623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: REACT: How to modify styles from another component The page of my site are build with these components: <Header /> <Routes /> <Footer /> Obviusly, Header and Footer for all the pages are always the same, but content loaded from Routes is not equal for each page. Ok, I make click over an option of the meny which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63104234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: boost::asio::async_read texutal stop condition? I'm writing a server with Boost, something pretty simple - accept an XML message, process, reply. But I'm running into trouble at telling it when to stop reading. This is what I have right now: (_index is the buffer into which the data is read) std::size_t tcp_connecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/5258793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get data and sort from MySQL two tables I have table_1 and table_2 and they are the same structure, but different data. Need to get all the data from that tables in sort of create_date and no matter from which table (it can be 1 row from table_1, 3 rows from table_2 and then again from table_1). Is it possible? How?...
{ "language": "en", "url": "https://stackoverflow.com/questions/36819794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ordered Asynchronous AJAX Calls I'm creating a script that performs several functions and I want to update the user as the functions are completed. I have nested $.ajax() calls with each subsequent call in the previous call's success block. There are a total of 4 calls made for each loop. Let's call them scan_1 th...
{ "language": "en", "url": "https://stackoverflow.com/questions/9401951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace cells having inf value by 1 Given the following Columns 1 through 17 0.3108 0.7273 Inf 0.2878 -0.0947 0.1286 -0.3108 0.5634 0.2822 0.2362 -0.2628 0.0960 -0.1675 -0.0934 -0.1710 -0.3077 -0.2726 Columns 18 through 20 -0.0630 -0.5097 0.1823 How to replac...
{ "language": "en", "url": "https://stackoverflow.com/questions/10122700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: vb.net readline or readkey don't want to stop my program my code is working i tried it separately but the problem here is that when i'm putting them together , the readkey or readline don't stop the program and the do loop is not working too, can someone take a look please thank in advance Dim count As Integer Dim f...
{ "language": "en", "url": "https://stackoverflow.com/questions/54969166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: shifting registers to right in the mic-1 without fetches this is the first time I post a question here so feel free to give me some feedback were something not described in the proper manner. To the actual question: I was wondering if there was a way to shift a word in one of the registers TO THE RIGHT by 2 bytes wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/53485161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Averaging an increasing number of columns of a dataframe I have a data frame (wc2) with 7 columns: cm5 cm10 cm15 cm20 cm25 cm30 run_time 1 0.1221060 0.1221060 0.1221060 0.1221060 0.1221060 0.1221060 0 2 0.4084525 0.4028010 0.3617393 0.2595060 0.1294412 0.1220099 2 3 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/45634033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MediaWiki: Global default '' is invalid for field editfont Anyone see and know what this error means and/or how to fix it? I place it in a google search and it doesn't appear to be something that anyone normally has an issue with: Global default '' is invalid for field editfont Backtrace: #0 /srv/http/SupportWiki/...
{ "language": "en", "url": "https://stackoverflow.com/questions/5379639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detecting if SKAction is done running, Swift I want to change the value of a variable after an action has been run and not during it is running. This is my code: override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) { if gameNotStarted { if firePosition.x != 320 || firePosition...
{ "language": "en", "url": "https://stackoverflow.com/questions/29731925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Modify the height of Bootstrap Carousel control? The blue section of the following image shows the triggering area of the bootstrap carousel. I took the screenshot from the bootstrap doc. I would like to modify the height of the triggering region (e.g. From 100% of the carousel height to 50%). May I know how can I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60844311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Choosing approach for an IM client-server app Update: totally re-wrote this to be more succint. I'm looking at a new application, one part of which will be very similar to standard IM clients, i.e text chat, ability to send attachments, maybe some real-time interaction like a multi-user whiteboard. It will be client...
{ "language": "en", "url": "https://stackoverflow.com/questions/2917652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is my Modal form posting a null model back to the controller I have a partial view that I load in a Modal..in the index view the model div with the HTML.Partial looks like this. <div class="modal fade" id="modalEditDBInfo" role="application" aria-labelledby="modalEditDBInfoLabel" aria-hidden="true"> <div cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/26921678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficiently Modifying CGColor I have an iPhone app where I'm "adding" a lot of CGColors together by breaking them down into their components, averaging the components, and then making a new color with the new components. When I run this code, Instruments finds that I'm leaking lots of CGColors, and the app runs slow...
{ "language": "en", "url": "https://stackoverflow.com/questions/8920865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ModelMapper map one object into three In my Java project I am using ModelMapper for mapping from entity object into DTO object. My entity have inside object hierarchy that has three Long properties. My DTO object has only one Long properties, so I created custom map to map between them. public class MyMap extends P...
{ "language": "en", "url": "https://stackoverflow.com/questions/35771649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: toggle custom image in a UIBarButtonItem I've been breaking my head for the past two days searching and trying some of my own solutions. I placed a UIBarButtonItem through IB with an image in the top bar to act as a mute/unmute button . Everything works except the image doesn't change. I used the following code and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3117971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is there a margin around hr and img tags? I am trying to remove the whitespace around hr and img tags, I have not had any luck yet, Here is a JSFiddle. Can someone show me how to do this? Is it a good idea to use hrs instead of divs when creating a sepearation/surrounding? Should I use a div instead? Can someon...
{ "language": "en", "url": "https://stackoverflow.com/questions/23599976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to set Cells value to 1 if condition met else existing value incremented by 1 for a column in VBA-Excel I have a table in sheet1 with two columns Name and Loan Amount and a similar table in sheet2 with an additional column called Counter. Example: Table in Sheet1 Table in Sheet2 Name Loan Amount Na...
{ "language": "en", "url": "https://stackoverflow.com/questions/25095368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get just inserted id lua-sqlite3 Im trying to get just inserted autoincremented id: local luasql = require "luasql.sqlite3" dbname = "dbname" table1 = "table1" table2 = "table2" env = luasql.sqlite3() con = env:connect(dbname) -- Create table1 res1 = con:execute(string.format("CREATE TABLE '%s' (" .. "id INT...
{ "language": "en", "url": "https://stackoverflow.com/questions/35998955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a NodeJS based web server to take advantage of HTTP2 on windows platform I am using windows 2012 server and want to host some static HTML/CSS/JS/image files on a nodejs based web server. I do not want to use IIS as I want to take advantages of HTTP2 & want to push files from server to client. I looked at Us...
{ "language": "en", "url": "https://stackoverflow.com/questions/44997938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flask HTTP Server won't allow upload of multiple files at once import os from flask import Flask, request, redirect, url_for from werkzeug import secure_filename UPLOAD_FOLDER = '/home/ubuntu/shared/' app = Flask(__name__) app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER @app.route("/", methods=['GET', 'POST']) def in...
{ "language": "en", "url": "https://stackoverflow.com/questions/45017210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implement Scenario outline in a cucumber-protractor through step definitions and page objects Does anyone know why this step might be showing as "undefined" when I try to run it. below you will see an example where I am trying to experiment with cucumber scenario outline and my "examples:" section has 1 entry. Also,...
{ "language": "en", "url": "https://stackoverflow.com/questions/49838734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Parse and display a table in Jsoup android i have some problems with jsoup. this is the link i want to parse: http://roosters.gepro-osi.nl/roosters/rooster.php?klassen%5B%5D=L2vp&type=Klasrooster&wijzigingen=1&school=905/ . I want to select te table content and display it nice and clean in my app. this is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/10541386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get every nth line into different arrays I need to create a program that seperates every name and each type of scores the students are taking.(test finals etc) The file I'm reading looks like this: *Puckett, Karen 10 10 9.5 10 10 8 9.5 10 10 10 9 10 10 10 0 4 3 5 3 5 2 3 2 1.5 1 5 3.5 17.5 24 22 23.5 22 23 90...
{ "language": "en", "url": "https://stackoverflow.com/questions/33554828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating synonyms using pyDictionary I would like to return all the synonyms for a particular word using pyDictionary. However, I can only retrieve the first five synonyms. for example; >>>from PyDictionary import PyDictionary >>>dictionary=PyDictionary() >>>dictionary.synonym("beautiful") >>>[u'alluring', u'cute'...
{ "language": "en", "url": "https://stackoverflow.com/questions/44660864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Adding" Dictionaries in Python? Possible Duplicate: python dict.add_by_value(dict_2) ? My input is two dictionaries that have string keys and integer values. I want to add the two dictionaries so that the result has all the keys of the input dictionaries, and the values are the sum of the input dictionaries' val...
{ "language": "en", "url": "https://stackoverflow.com/questions/1031199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Maven Surefire Plugin doesn't run expected tests in directory In a maven submodule, I have unit tests and acceptance tests with cucumber. I want mvn test to run only the unit tests. The structure is the following: Initially, the problem was that the mvn test goal was running only the cucumber tests (acceptance test...
{ "language": "en", "url": "https://stackoverflow.com/questions/74208913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to log out from AWS Cognito in ASP.NET Core I'm trying to implement authentication using AWS Cognito in a ASP.NET Core 5 web app. I can get authenticated, but now I want to implement a logout function. I can kind of get the logout to work, in that ASP.NET thinks I'm not authenticated. In my Startup.cs I have: op...
{ "language": "en", "url": "https://stackoverflow.com/questions/67322899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python sort in a dictionary and a set I'm creating a book index and I have read in a text file of words and their pages and have created this dictionary called 'index' index={'spanning tree': {16, 99}, 'vertex': {54}, 'depth first search': {55}, 'shortest path': {55}, 'connected': {28, 54}, 'neighbor': {64, 27, 77},...
{ "language": "en", "url": "https://stackoverflow.com/questions/17845170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to let MySQL NOW() function return the user time I ran into a very tricky MySQL issue.. Our DB is using type DateTime for the updated_at column, and now is too late to change it back to TimeStamp. I'm thus trying to add a trigger to update this updated_at column on table changing. The following is what I did: CR...
{ "language": "en", "url": "https://stackoverflow.com/questions/27241979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does a Hidden Window appear when taking a screenshot in WPF using C#? I have a WPF application that helps me take Screenshots of the entire screen. The application contains a small Window with a button inside, which if I click on, a capture of the screen is taken, and saved on my drive. I wanted to hide this lit...
{ "language": "en", "url": "https://stackoverflow.com/questions/24828845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using a ssl enabled node.js sveltekit app alongside tomcat server which is currently hosting apps in https I am currently having a server with tomcat web server hosting few apps in https. Now we built a sveltekit app that is not static. I am trying to add this app be exposed as a https site. I found many articles th...
{ "language": "en", "url": "https://stackoverflow.com/questions/74703378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }