text
stringlengths
15
59.8k
meta
dict
Q: Dealing with single quotes in excel vba sql queries I am using excel sql queries to fetch data from the backend according to the selection i make in a dropdown box.However my sql queries are not working in cases where there is a single quote(') in the dropdown box value. For example-- Men's Wear . Please suggest me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13134070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encrypting data at rest protect me against what type of attack? Encrypt data at rest is one of the major 101 of security for a lot of compliance (if not all of them). I am however not sure I understand against which attack this protect me. Let say I am in AWS cloud. I encrypt my S3 data at rest using KMS provided s...
{ "language": "en", "url": "https://stackoverflow.com/questions/72790958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular 2+ routage basic Complete a simple Angular component named MenuDisplayComponent having menu-display-component as selector. Complete the declaration of the appRoutes variable. The component must contain two elements. They symbolize a menu of the application: When we click on the element with id="menu1" the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70034326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to add custom view on DefaultTimeBar in ExoPlayer Need to add custom views on the DefaultTimeBar in Exoplayer at particular timestamps to indicate that there is something which is coming up during the video play similar to what we have in terms of video ads. Please find the attached image to understan...
{ "language": "en", "url": "https://stackoverflow.com/questions/71264170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Split a pair of strings in bracket using python I want to split the following data into two columns, latitude and longitude and put them in a dataframe. 0 (45.349586099999996, -75.81031967988278) 1 (-37.77922725, 175.2010323246593) 2 (-42.9945669, 170.7100413) 3 (-...
{ "language": "en", "url": "https://stackoverflow.com/questions/67813808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing Multidimensional array with variable size Passing dimensions of the array to function but still getting an error! Code (You can directly scroll down to the error it gives and see only those lines in code) class Solution { public: int mod = 1e9 + 7; int checkRecord(int n) { int dp[n + 1][2...
{ "language": "en", "url": "https://stackoverflow.com/questions/69017187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use setMenuVisibility in fragment? I have a sliding tabbed layout with seven fragments. I am saving my events in another activity and retrieving data from database in fragment and creating views. Now when I save the data in add event activity and finish that activity and return to fragment, the events are not...
{ "language": "en", "url": "https://stackoverflow.com/questions/35357309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML5 video not playing on IE9 Im trying to use HTML5 video on IE9 but doesn't play. When i play it locally evrything works fine, but when i upload to the server doesn't work. This is the URL: http://inoq.com/lxgo2/monumentos.html It works fine in all other browsers(Chrome, Safari, Opera, Firefox..) just not IE9. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/12437578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 0x4 Decompression error in Python Confluent Kafka I've been having trouble getting python-confluent-kafka to work on my windows server. When creating a simple consumer on my local machine, everything works fine. However, once on the windows server, I will receive the messages but get the following error: b'Decompre...
{ "language": "en", "url": "https://stackoverflow.com/questions/73298124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding new unique grouping ID based on group_by variable I have a dataset with drugs being administered overtime. I want to create groups for each block of the drug being administered. I figured out a simple method to do this with a for-loop that I can apply to each patients set of drugs. BUT I am curious if there i...
{ "language": "en", "url": "https://stackoverflow.com/questions/71497278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apply function to URL and write in new column in CSV I'm a newbie and surprised there's already not a clear answer similar to what I'm asking, apologies if this is a duplicate. I have a list of URLs in a CSV file I'm trying to shorten, I want to loop through my CSV file and then write a new column with the shortened...
{ "language": "en", "url": "https://stackoverflow.com/questions/45155856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print a multi-dimensional array in a GridView? I print unidimensional array fine - it works. http://aspsnippets.com/Articles/Binding-Arrays-to-GridView-in-ASP.Net.aspx string[,] arr2D = { { "John", "21" }, { "Smith", "33" }, { "Ryder", "15" }, { "Jake", "18"}, { "Tom","34" } };...
{ "language": "en", "url": "https://stackoverflow.com/questions/25009815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to efficiently extract the visible areas of a Bitmap? I have a bitmap and would like to create and use a filter that would take all the visible parts of the bitmap (all pixels with alpha != 0) and set them into a particular value while drawing on an Android view. I was able to achieve this with a simple for-loop...
{ "language": "en", "url": "https://stackoverflow.com/questions/37837652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: More than one path from A*? I have written an A* that works nice. It gives me the shortest path between two nodes. However, I would like to have two or maybe even three paths. The best, the second best and the third path (if there is more than one path available). Kinda like directions on Google Maps where you can s...
{ "language": "en", "url": "https://stackoverflow.com/questions/8168243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using std::string in c++ for unmanaged c# dll I'm trying to set up an unmanaged DLL package for c# for a c++ SDK that a client has provided. This SDK uses std::string and std::wstring variables. I found out that it's hard/impossible to use STL variables like string and wstring for this but it's kind of my last resor...
{ "language": "en", "url": "https://stackoverflow.com/questions/37413008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does only one Thread executing a Kernel implement the declaration of an array in Shared Memory in CUDA I am implementing the following CUDA kernel that stores an array in Shared Memory: // Difference between adjacent array elements __global__ void kernel( int* in, int* out ) { int i = threadIdx.x + blockDim.x *...
{ "language": "en", "url": "https://stackoverflow.com/questions/27671087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I remove some empty closing and opening divs? I'm working with some HTML markup that I can't change, and in some instances on particular pages it breaks a layout. What I need to do is remove - using empty() or remove() or some other jQuery function - the tags commented below </div> and <div>. Can I do this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69801913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display website in cordova? i'm just wanted to know how to simply display my website into a crossplatform mobile app using cordova? What I need to change into index.html or config.xml? A: You can use the Cordova plugin InAppBrowser https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrow...
{ "language": "en", "url": "https://stackoverflow.com/questions/46539317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: [IfcOpneShell]Unabled to add instance from IFC2X3 schema to file with IFC4 schema I am using IfcOpenShell in python. When I try to createed a new file and added entity, I get the following error. How can I get rid of the error? [program] ifc_file = ifcopenshell.file() ifc_file.add({IfcBuildingElementProxy}) [error]...
{ "language": "en", "url": "https://stackoverflow.com/questions/71389048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R - Replace selective rows data frame I have a dataframe "A" with the following shape log P1 P2 P3 P4 P5 Method Round #TSamples #Samples0 #Samples1 FP TN TP FN Time Det_Time data1 2 0 0 0 LOF 1 3 3 0 0 3 0 0 0.00800108909606934 1 data1 2 0 0 0 Mahalanobis ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33936362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why are many of the characters of a string change when copied/pasted in JavaScript or assigned to a form input element I have built the following string in JavaScript using the String.fromCharCode function and assigned it to variable h. var h=String.fromCharCode(127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,...
{ "language": "en", "url": "https://stackoverflow.com/questions/63650709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular Form Validations - values have to be different to initial values I have reactive form validations set up as follows: ngOnInit(): void { this.userForm = this.formBuilder.group({ status: {checked: this.selectedUser.status == 1}, username: [this.selectedUser.username, [Validators.required, Val...
{ "language": "en", "url": "https://stackoverflow.com/questions/46667375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to send mail with attachement in PHP Here is my complete code of php mail. My code is working fine but I want to include file as attachement. Where should i add which code to send mail with attachement. No new code is needed. I want to use the same code. can any one find it out and fix it. <?php if(isset($_P...
{ "language": "en", "url": "https://stackoverflow.com/questions/74416104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: response redirect to a different page when 405 raise I have a view function which I want to use only request method is POST. I got to know about require_POST decorator here, but what I want is that if method is not POST then redirect user to different view using HttpResponseRedirect. How can I do this ? from django....
{ "language": "en", "url": "https://stackoverflow.com/questions/15859935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get HTML form element when respective form value is null.? Have a form, need to validate it. Have used serializearray to get all the form elements on clicking submit button. Parsing trough each value, if value is null need to add a class to respective HTML element. Code below $(document).ready(function(){ $("#su...
{ "language": "en", "url": "https://stackoverflow.com/questions/16189407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I properly decouple URLConf in Django tutorial 3? I am following the Django tutorial and have made it to Decoupling the URLConfs in tutorial 3. Prior to this step, everything was working. Now, when I do the final step of Removing hardcoded URLs in templates which is changing <li><a href="/polls/{{ poll.id }}...
{ "language": "en", "url": "https://stackoverflow.com/questions/11748497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to click on img element? I am trying to access the below class in selenium but it shows element not found error. Html <button class="gpquestion-plusicon"> <img src="./assets/images/viewdetails.png"> </button> Code driver.find_elements_by_css_selector("//img[@src='./assets/images/viewdetails.png']").click() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60413219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print the return of a method I know in php I can do something like this echo "{$this->method}"; and I swear there was a way to do it in perl Update: What I am trying to do is print a scalar that the method returns. I was kind of hoping of doing within the string like in php, just because I'm lazy :P. A: Are you ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7490622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to edit the attached menu section for buddypress? I would like to know if there is a line of code I could use to add in functions.php or a file edit to add and remove some of the fields from the current section I have attached in WordPress. It's a WordPress website running buddypress. This section has all the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/39900768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sqlite design for cross linked tables and foreign keys usage I don't know if this is the right place to ask. Because it is a question regarding sql database design I was thinking about database administrator but because the target of that site is database professionals (and I'm absolutely not a professional) I'll ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/48678413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove the baseline border of NSWindow title bar Is there a way to remove the baseline border of the NSWindow title bar without subclass the window and implement a title bar view myself? (traffic lights button is real tricky) I wanted to make view and put it just under the window's title bar without the baseline bor...
{ "language": "en", "url": "https://stackoverflow.com/questions/27250761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I get the GUID value of a new row after inserting it? I am trying to get the Id of newly inserted record in Sqlserver. I have checked the Scope_Identity() but this is said to return the value of the autoincrement column. The column I am using for Id is Guid. I want this Guid column value after the insert. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/16654491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Python asyncio wait() with cumulative timeout I am writing a job scheduler where I schedule M jobs across N co-routines (N < M). As soon as one job finishes, I add a new job so that it can start immediately and run in parallel with the other jobs. Additionally, I would like to ensure that no single job takes more ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63589225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# REGEX need to be corrected I'm making a C# regex to find and replace patterns related to html content. i need to get all the stuff like that: <table border=0 align=center id=mytable5> corrected like that: <table border="0" align="center" id="mytable5"> i tried out this: String pattern = @"\s(?<element>[a-z])=(...
{ "language": "en", "url": "https://stackoverflow.com/questions/18505478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MYSQL TRIGGER with DECLARE value I want to set value using declare on trigger. The trigger is as follow: CREATE DEFINER=`root`@`localhost` TRIGGER `update_queue_after_insert` AFTER INSERT ON `encounter_note` FOR EACH ROW DECLARE is_exist INT; SET is_exist = ( SELECT count(*) FROM practice_last_updated_module WHERE...
{ "language": "en", "url": "https://stackoverflow.com/questions/51924090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Flat Array vs Multidimensional Array Memory Footprint In C++, the delete[] operator deletes an array. It is able to access the length of the array because the allocator keeps track of it. Does that mean that a flattened one-dimensional array takes up less memory than a multi-dimensional array? To be more specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/17518396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete first 5 line of specific column? I have a data frame (pandas) with columns A to J. I want to remove the first 7 lines from column A. I know: a function form remove the entre column. But How can I remove the first 7 lines from the specific column? df.drop(['your_column_name'], axis=1, inplace=True) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61784187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Session ID lenght (characters) increases in weblogic 12c We are migrating java application from java 1.6 to 1.8 and weblogic 10 to weblogic 12c,While we are checking the sessionID in Java 1.6 and weblogic10 ,which creating in jsp by using (session.getId()) ,we are getting session ID as Seesion =MT6GdnxL!1248180010...
{ "language": "en", "url": "https://stackoverflow.com/questions/58518004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using curl to get a URL from the network Hi guys so i'm using a third party iframe and I would like to load that iframe "internally" or at backend? , once it is loaded a link would be fetch at the iframe and it's at the network, fetching a link from CDN and I would like to get that link and display it to the fronten...
{ "language": "en", "url": "https://stackoverflow.com/questions/55137785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding ColumDefinition Width I am creating a Windows 8.1 app using https://slideview.codeplex.com in the Windows 10 with help of Visual Studio 2015. I have added grid to the design with 1 row and two column. In the first page there is big image and no text and in other pages there is icon and text. So I am putting...
{ "language": "en", "url": "https://stackoverflow.com/questions/33591523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lock Row for Particular Month My data has cell A1 containing Month. A2:Z999 : Employee details. Column P: Date of joining. I want to code such that, when P>A1, it should lock the row for that employee since it's old data. Only rows without date, or empty rows 999 onward, should be empty. Please help! Right now my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39872623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass a chart from MPAndroidChart from one activity to another? The charts that I create using the MPAndroidChart library are populated using data that comes from a web service which takes a little time. Hence in this time I wish to show a Splashscreen so the network calls can be made in the back ground, a cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/31511533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Internal references in a VS2005.NET project I have a C++/CLI class library project in VS2005 that i am having some problems with. I have defined a class called Languages which is a an enum class. which looks like this: "Language.cpp" namespace Company { namespace product { public eunm class Languages...
{ "language": "en", "url": "https://stackoverflow.com/questions/726659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Numpy ordered subtraction of elements with full vectorization Imagine a mxn array a, and a 1xn array b, we want to subtract b from a so that b is subtracted from the first element of a, then maximum of zero and b-a[0] is subtracted from a[1], and so on... So: x = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) a = np.repe...
{ "language": "en", "url": "https://stackoverflow.com/questions/54651188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Optimise a MySQL query I am using MySQL 8.0.20 and I have a huge table with some data in it. CREATE TABLE `db_table` ( `utcDateTime` datetime DEFAULT NULL, `dateTime` datetime DEFAULT NULL, `col1` varchar(250) DEFAULT NULL, `col2` varchar(10) DEFAULT NULL, `col3` varchar(5) NOT NULL DEFAULT '1'...
{ "language": "en", "url": "https://stackoverflow.com/questions/65008658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Discord.py (Rewrite) on_member_update not working properly I have a question about the on_member_update function of the discord.py package. My Issue is that the on_member_update function only triggers when the bot itself is updated (like a role update) and not when an other user is updated (how it's supposed to work...
{ "language": "en", "url": "https://stackoverflow.com/questions/64838972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I am trying to make a real-time auto-correct sort of add-on for Google Docs using Google Apps Script I am trying to make a real-time auto-correct sort of add-on for Google Docs using Google Apps Script. I have written a lot of code, yet cannot figure out why the fixWords function does not work. Whenever I type a wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/30315225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HSQL + Hibernate Exception: Wrong column type: Found: double, expected: float I am using in-memory HSQL (HSQLDB) with Hibernate for all my unit tests, because it is very fast. I have a table with a column defined as follows: float qw; When hibernate starts, I get the following error: org.hibernate.HibernateExcepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/28480714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: could not access all 'gmail' messages using pop3 in java My Mail receive programme in java i use mail.1.4.jar and activation jar in my java programme There are 5 steps i followed to receive the email using JavaMail API. They are: Get the session object create the POP3 store object and connect with the pop server ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22246680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: p tag will slide down but wont slide up Have a question and answer system where the answer starts of hidden, then when the question is clicked, the answer slides down. This is working fine, but then I would like it so that if the question is then clicked again, the answer slides back up. At the moment it is just ign...
{ "language": "en", "url": "https://stackoverflow.com/questions/7190778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tracking pinterest pinit button I was trying to implement a way to track pinit button as described here here is my code: var fbUrl = RootLink; var trackUrl = "//pinterest.com/pin/create/button/?url=" + RootLink + "&media=" + RootLink + "trackPinit.php?userId=" + userId + "%26itemId=" + items[cnt].item_id...
{ "language": "en", "url": "https://stackoverflow.com/questions/18959875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get an incoming SMS' phone number? How do I get an incoming SMS' phone number? I wrote BroadcastReciever as in this link, but I don't get any output. Also the Toast message in that BroadcastReciever does not get displayed. Here is another sms.java file for which I used that BroadcastReciever. public class SMS...
{ "language": "en", "url": "https://stackoverflow.com/questions/5693914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing unit test for service function I need some help to write test for the below method in the service layer. I am not sure how to mock those methods (in DAO as wells as in same service layer) in Mockito for this service. Before that I think I should mock whole for loop to avoid mocking of each of those methods. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26589708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding football foul that results in succesful shot on target I have a dataframe that contains a foul made by a player which eventually leads to a shot on target. What I want to do is create a new column that puts either TRUE/FALSE, where TRUE is set, if the foul of a player leads to a successful shot on target by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67299096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to parse MS Word using Apache POI and convert it into XML? Is it possible to convert a MS Word to XML file using Apache POI ? If it is, can you point me to any tutorials for doing that? A: The purpose of HWPF subproject is exactly that: process Word files. http://poi.apache.org/hwpf/index.html Then, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8224871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get the name (or id) of the tile layer clicked in the onclick event (openlayers 3) I created my layers like this: var wms_bmid_parcels = new ol.source.TileWMS({ url: 'http://176.7.69.145:8080/geoserver/wms', params: { 'LAYERS': 'bmid-parcels' }, serverType: 'geoserver', }); In the map.on('singleclick',...
{ "language": "en", "url": "https://stackoverflow.com/questions/33021224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to process wrapped function arguments in the same order as visible for original function? I am trying to examine the types of functions arguments before the call (in this example it is foo). I am using python decorators to achieve this. I don't see how I can get arguments in the same order as they are visible to...
{ "language": "en", "url": "https://stackoverflow.com/questions/72632468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python responses library prepends part of the URL to the request params I am trying to mock an external API using the responses library. I want to check I've passed my params correctly in my request, so I am using this minimum working example from the responses docs: import responses import requests @responses.act...
{ "language": "en", "url": "https://stackoverflow.com/questions/62452119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keep nav list item selected when submenu is open How do I change the CSS so that a main menu list item stays selected when clicked? I can change the background color on hover, but I'd really like the background color to change when clicked until I click on something else. My submenu displays on click, not hover, whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/19713316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send a ZIP file for a server using kotlin and retrofit I looking for a way to send a zip file for a server using retrofit in kotlin. Some functions are deprecated that's make this more dificulte. When I star the request the response is NULL, there is no error. That is the function who start the request: fun sendZipe...
{ "language": "en", "url": "https://stackoverflow.com/questions/72737139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery pause pre-display on hover for mega menu Got a lil one, need a mega menu to appear after a brief pause on hover else it shows up immediately with every mouse over which is a bit hectic. Mega menu worked lovely until the hover thing became incredibly annoying! Tried using hoverIntent but can't figure out the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/14821053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Angular website (irctc.co.in) require to put Script WaitForAngularEnabled false.? without this code is not worked describe('Protractor Alert steps', function () { it('Open Angular js website Alerts', function () { browser.waitForAngularEnabled(false); browser.get("https://www.irctc.co.in/nget/...
{ "language": "en", "url": "https://stackoverflow.com/questions/61521178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Safe to use a nancy module property as 'per-request' storage? Aside from being a bad, bad pattern in general, are there any ramifications of doing something like this to store an object as a property on the nancy module for the life of the request? Everything looks okay but not sure if this will result in any weirdn...
{ "language": "en", "url": "https://stackoverflow.com/questions/29529022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bisecting K-Means in Pyspark/MLlib I have several doubts about the methods this algorithm uses for several purposes: * *How does it initialize the centroids every time it splits a cluster into two new ones? *How many times does it apply the K-Means algorithm to divide each cluster into two new ones with differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/72259343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - Extract content from atributte i have problem. I need extract content from atributte content: <html> <head> <meta name="keywords" content="KEYWORDS"> <meta name="description" content="THIS TEXT"> </head> I use this PHP code: $doc = new DOMDocument(); @$doc->loadHTML($html); $tags = $doc->getElementsByTagName...
{ "language": "en", "url": "https://stackoverflow.com/questions/16052860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't get HTML code through HttpWebRequest I am trying to parse the HTML code of the page at http://odds.bestbetting.com/horse-racing/today in order to have a list of races, etc. The problem is I am not being able to retrieve the HTML code of the page. Here is the C# code of the function: public static string Ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/6305292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PDF::Create module installation failed using cpan linux command? When I tried to install cpan module, i get the following error, i have tried by googling it,am unable to find solution. Catching error: "Can't locate object method \"Create\" via package \"install PDF\" (perhaps you forgot to load \"install PDF\"?) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/32709853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connect slack with simple web api token but not with Slack bot or slack app As a leisure project, I created a small project that updates slack status whenever an event is added/updated in Google Calendar (Just like the Google calendar app on Slack). Whatever I implemented till now works as expected but I did so by c...
{ "language": "en", "url": "https://stackoverflow.com/questions/75301341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A^k for matrix multiplication in R? Suppose A is some square matrix. How can I easily exponentiate this matrix in R? I tried two ways already: Trial 1 with a for-loop hack and Trial 2 a bit more elegantly but it is still a far cry from Ak simplicity. Trial 1 set.seed(10) t(matrix(rnorm(16),ncol=4,nrow=4)) -> a for...
{ "language": "en", "url": "https://stackoverflow.com/questions/9459421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Error with the java code pls I have this code on the internet and i can't run them pls tell me know why??? public static void main( String[] args ) { keyboard[Scanner] = new Scanner(System.in); System.out.print( "Hello. What is your name? " ); name[String] = keyboard[Scanner].next(); System.out.pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/42810033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Why is the JVM stack-based and the Dalvik VM register-based? I'm curious, why did Sun decide to make the JVM stack-based and Google decide to make the DalvikVM register-based? I suppose the JVM can't really assume that a certain number of registers are available on the target platform, since it is supposed to be pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/2719469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: Deduce parameter pack w/out passing it explicitly as a template parameter? Forgive any ignorance of C++ type deduction in this, but I'd like to be able to carry around the parameter pack's definition, so that later I could test for an inner type. Is this possible? Something like: template <typename... Args> struct...
{ "language": "en", "url": "https://stackoverflow.com/questions/6033601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to exit knitr on error but still generate the partial output I generate a standardized report using knitr. To document errors easier (the input data is not always what is expected), I need a log file amended with plus nice HTML formatting and figure embedding. A log file lists results until an error occurs, then...
{ "language": "en", "url": "https://stackoverflow.com/questions/74097101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Diff between Dotfuscator (PreEmptive solutions) & Application Insights I am trying to find a way to track the usage of some desktop applications and came across PreEmptive solutions and application insights and I still can't see clearly the difference in their perimeter, maybe I have the wrong impression but I feel ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33282551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pthread_join constantly causes segfault This issue is definitely the source of a stupid mistake, but for the life of me I cannot get to the bottom of it. I'm writing a much larger program, but I've narrowed down a constant segfault error that is coming up whenever I call pthread_join. I've included the relevant code...
{ "language": "en", "url": "https://stackoverflow.com/questions/67130014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: show image from folder to page using asp.net c# I am trying to make image gallery for my website . in my case i am showing thumbnail of all images and if we clicks on the image it shows image in modal window . there are 2 folders * *Thumbs (consist thumbnail) *Full image (consist full image) i have put the im...
{ "language": "en", "url": "https://stackoverflow.com/questions/17361033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refactor tree nodes with vectors v_i and multiplications v_i * B into one matrix multiplication A * B I have a Tree with a complex data-model in each node. Each leaf of the tree has its own vector of doubles leaf.v. There is a universal matrix B. In my algorithm in each leaf, I calculate a new vector leaf.u = leaf.v...
{ "language": "en", "url": "https://stackoverflow.com/questions/65494881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pyst2 - How to reconnect Asterisk manager? I'm using pyst2 to connect to the AMI (Asterisk manager interface). I have a event for shutdown, so it can close it and try to reconnect every minute. My shutdown event: def handle_shutdown(event, manager, hass, entry): _LOGGER.error("Asterisk shutting down.") mana...
{ "language": "en", "url": "https://stackoverflow.com/questions/71629151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: White flash on transition between HTML pages I'm trying to implement some JavaScript code I found here on stackoverflow to make a smooth transition between one link on a page and other section in other page using the standar: <a href="example.html#anchor"> The issues is that when the user clik the link, 1 second w...
{ "language": "en", "url": "https://stackoverflow.com/questions/18790007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the point of javascript templating engines? I know the answers people typically give, but I need a concrete example as to why they are needed. The latest impression I'm getting (mostly from underscore.js) is that it makes the code more PHP like in that you can have <% %> like ?> in PHP The idea is to make you...
{ "language": "en", "url": "https://stackoverflow.com/questions/21842781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A POI related code block running dead slow I have below piece of code block containing loops: Row row = null; Cell cell = null; String dataVal = null; String[] temp = null; for (int j = 0; j < this.myDataValues.size(); j++) { row = sheet.createRow(rownum++); temp = this.finalRowValues.get(j); for (int i = 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/18984785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vue duplicate numbers in array breaks doom element Very weird situation, when I push any number which already exists in my array it duplicates and breaks my doom element. Array keeps normal, but doom displays something like this: array: my watcher : lastWins(){ console.log(this.lastWins); this.lastWi...
{ "language": "en", "url": "https://stackoverflow.com/questions/74041406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to stream Azure Information Protection Activity Logs to an Event Hub? I have configured Azure Information Protection analytics through the Azure portal for my subscription and I am able to see log data under the Activity logs (preview) tab. I want to forward that log data to a configured Event Hub b...
{ "language": "en", "url": "https://stackoverflow.com/questions/58612725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validating token The query regards the method for validating an access token to the application's API. From the rails api link, when searching for token, the documentation has evolved for the private method to authenticate While Apikey.exists?(access_token: token) is obvious, the newer version is rather opaque to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49024528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Response code 401 while sending notification to Edge I am creating a web app that sends notifications to my subscribers. While testing with different browsers, I noticed only the Edge browser got an authorized error and has a different endpoint than the rest of the browsers (Chrome, Opera) sg2p.notify.windows.com I...
{ "language": "en", "url": "https://stackoverflow.com/questions/65862439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PayPal Error - Please make sure all fields have been entered I have a problem in creating a working PayPal button in Sandbox environment. After entering my email and password in the sandbox environment. This is what I see. Here are my codes AndroidManifest.xml <uses-sdk android:minSdkVersion="15" /> <application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9963617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sorting from multiple loops I have 7 different loops grabbing information from different places in the same format but as they're coming from different areas the data is muddled up. for event in soup.find('dual').find_all('event'): print event for event in soup.find('int').find_all('event'): print event I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/38174105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Debugging PDF for error I'm creating PDF files using PDFClown java library. Sometimes, when openning these files with Adobe Acrobat Reader I get the famous error message: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correc...
{ "language": "en", "url": "https://stackoverflow.com/questions/18812789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How Can I create an image with python PIL where there are two colors? Here is an example of the output I want to generate. I'm able to create an image with one color, but I don't have idea of how can use two colors, and how to color only certain parts of the image . A: I solved in this way. I created two image wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/69735709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MVC 3 DropDownList displays multiple values on Edit page I'm using an enum to populate my DropDownList that works fine with a List and Create views but my Edit view loads duplicate values in the DropDownList. The duplicate values are only the selected value for the property meaning, if Rented was the value saved in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13329036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: find out windows in side-by-side mode The "View Side By Side" and "Synchronous Scrolling" made the comparison of 2 spreadsheets easier than ever. However, there isn't a "Synchronous Switching tab" feature, so if I switch to a different tab in one of the workbooks and continue scrolling, the sync'ed scrolling become ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18644975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android Datepicker Single Cell Color Hi I'd like to be able to choose a few dates in the month and change the color of it. Say in my application I want the dates 3, 4, 8 of September to be red so that the user would be able to know that at those specific dates there is already a submission. Is this possible, if so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52268656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can I change JVM parameters during execution I am writing a Java program and at some point during execution I want to change the JVM settings (decrease the heap) and after a while increase it again. Is it possible with Java? A: Long story short: you can't. Heap size is fixed once you are running it, and there's no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22402424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does node.js don't find the function if the files requires each other Here is my situation: * *file a.js require file b.js *file b.js require file a.js When I try to call a function which is in file b.js from file a.js then I get the exception that b.xy() is not a function. If I remove the require in file...
{ "language": "en", "url": "https://stackoverflow.com/questions/56219637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get relative path for logging.ini and log file in python over multiple OS I have created one wrapper logger class which actually wraps the functionality of logging module. I have created it so that every class in my application using logging doesn't need to add logging.config.fileConfig() and logging.getLogge...
{ "language": "en", "url": "https://stackoverflow.com/questions/43199316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: String diff to show positions of changed characters? I'm looking for a way to diff two strings and return the index value of where the changes start and finish. I'm already using diff-lcs to find out which lines have changed, but I need to figure out the positions of which characters have changed. I need the positi...
{ "language": "en", "url": "https://stackoverflow.com/questions/21566537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android studio/libGDX/admob cannot find dependecies() So I've been searching around for days trying to figure out why I can't implement admob into my Android Studio project. Things I've tried: I have the google play services installed and latest Android SDKs File->Project Structure->ads->ticking admob --this will t...
{ "language": "en", "url": "https://stackoverflow.com/questions/43525285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scraping data from HTML to return to cells in Excel I am very new to coding. I know the basics, but I don't need that advanced of knowledge for my field--aside from this project. I am attempting to search a license number on the AZ Medical Board website, click the search result to pull up a profile, and transfer the...
{ "language": "en", "url": "https://stackoverflow.com/questions/44557137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Arduino IDE on Android tablet Hi am wondering if anyone knows of a IDE for my Android tablet that I can edit compile and upload sketches to my Arduino board via USB? A: Really slow response, I know but once this gets out of beta phase it could work http://codebender.cc/ A: You can have Arduino IDE on android, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3863498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error in declaring data in rstan for graded response model I am trying to use Stan, specifically through rstan, to fit a graded response model. Luo and Jiao (2018), available here, provide Stan code for doing so. Here is their code, edited only to include more white space: data{ int<lower=2, upper=4> K; //number...
{ "language": "en", "url": "https://stackoverflow.com/questions/61894312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }