text
stringlengths
15
59.8k
meta
dict
Q: Best way to subset a pandas dataframe Hey I'm new to Pandas and I just came across df.query(). Why people would use df.query() when you can directly filter your Dataframes using brackets notation ? The official pandas tutorial also seems to prefer the latter approach. With brackets notation : df[df['age'] <= 21] Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/48370708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to get href Text using CSS selectors I have the following HTML below from Wikipedia main page at https://www.wikipedia.org/. I'm trying to get the href text //en.wikipedia.org/ <div class="central-featured-lang lang1" lang="en"> <a href="//en.wikipedia.org/" title="English — Wikipedia — The Free Encyclopedia" c...
{ "language": "en", "url": "https://stackoverflow.com/questions/36928172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Spring Boot creating multiple (functioning) webmvc applications using auto configuration Updated My question is how do I initialise an isolated spring webmvc web-app in spring boot. The isolated Web application should: * *Should not initialise itself in the application class. We want to do these in a starter pom...
{ "language": "en", "url": "https://stackoverflow.com/questions/35095326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Can't get JSON from nominatim url (openstreetmap) I cannot get the result from the URL JSON response of reverse geocoding. I'm also getting the error: "W/System.err: org.json.JSONException: End of input at character 0 of " Here is the url https://nominatim.openstreetmap.org/reverse?format=geojson&lat=14.6458&lon=121...
{ "language": "en", "url": "https://stackoverflow.com/questions/55105770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Doctrine: bidirectional OneToOne relationship, both entities being deleted Hey guys so I have 2 entities with a bidirectional OneToOne relationship: Sale.php /** * @var TransportInvoice * * @ORM\OneToOne(targetEntity="WKDA\Common\Entity\Car\TransportInvoice\TransportInvoice", mappedBy="sale") * @ORM\JoinColumn(...
{ "language": "en", "url": "https://stackoverflow.com/questions/34438338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating a DataFrame from a list of rows line by line I have a highly irregular text file that I am trying create a Pandas DataFrame from. After lots of juggling (deleting irregular, lines, variable headers etc.) I got to a point where I have parsed each line as needed, but I am having trouble in converting it int...
{ "language": "en", "url": "https://stackoverflow.com/questions/63607631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Distinguishing Between Click and Drag dispatchTouchEvent I am currently using dispatchTouchEvent to grab touch events, is there an easy way to distinguish between a click and a "drag" stylt gesture? A: DispatchTouchEvent is called with a MotionEvent parameter. Method getAction within MotionEvent can return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14419865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cookies Not Consistently Being Shared Across Tabs In IE got a rather strange problem that I'm sure is a browser setting, so whilst it isn't strictly a programming issue, I was wondering if people here had come across it during their development work and could suggest a solution/cause. My app is in MVC 2 and runs a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/12894794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Replace concat part of a string in typescript I have a variable string, because it is inside a textarea. A user can write anything. After that there's a date picker. When I select the date, the value will be written in the textarea after the first part of the string. I have this function on change of the picker conc...
{ "language": "en", "url": "https://stackoverflow.com/questions/64376485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jssor slider responsive Angular 2 I have followed this answer to add jssor in angular2. I have added below code of javascript into file and called in angular-cli.json. jssor_1_slider_init = function() { var jssor_1_options = { $AutoPlay: true, $AutoPlaySteps: 4, $SlideDuration:...
{ "language": "en", "url": "https://stackoverflow.com/questions/42595139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble avoiding a Loop-switch sequence I am an Android/Java beginner, not that much with coding but rather with the language(s). My problem: I am drawing a graph (for some statistical analysis) with canvas.drawLine() with different colors for each line. The color depends on the value of an array. That array(list) h...
{ "language": "en", "url": "https://stackoverflow.com/questions/8464587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: #1005 - Can't create table 'test_db.demandes_gardes' (errno: 150) (Details…) I can't execute this query on phpmyadmin for upgrading my sql test_db: CREATE TABLE IF NOT EXISTS `demandes_gardes` ( `id` INT NOT NULL AUTO_INCREMENT, `nom` VARCHAR(255) NULL, `prenom` VARCHAR(255) NULL, `matricule` VARCHAR(255...
{ "language": "en", "url": "https://stackoverflow.com/questions/33715965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Postgres DB migration fails with "violates not-null constraint" I am trying to upgrade Netbox (https://github.com/digitalocean/netbox) from older version (2.3.7) to newer one (2.4.3) by using upgrade script which include the step manage.py migrate. And on this step it fails with error: vagrant@ubuntu-xenial:/opt/n...
{ "language": "en", "url": "https://stackoverflow.com/questions/52171466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Slick plugin not resizing after parent resizes I have a project with a collapsable sidebar navigation, with the content filling the remaining space; when the navigation is collapsed, the content fills the whole screen. I'm using jQuery Slick to display some snippets of text, and for the most part, responsivel...
{ "language": "en", "url": "https://stackoverflow.com/questions/29143220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twitter get search tweets API not working with hash tag Hi right now I am trying to do a keyword search with hashtag using Twitter API. This is the url I am using. https://api.twitter.com/1.1/search/tweets.json?q=%23bookmyshow But I am not getting any result. From yesterday I was trying to sort out this issue. Any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21626318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: Removing repeated element from a list I am trying to remove the repeated elements from a list: li = [11, 11, 2, 3, 4] I am trying in these ways: Way 1: li = [x for x in li if x!=11] Way 2: for x in range(0,len(li)): if x==11: li.remove(x) Are there any built-in functions to do this job? A: Edit: I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26819135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Different Tkinter Canvases, with an image background, switch with a quick white flash I am trying to make a game using tkinter GUI. My aim is to make different Canvas, with same or different images as a background, for different menus/screens. But I have noticed that when I switch between different menus (canvases),...
{ "language": "en", "url": "https://stackoverflow.com/questions/65195606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Powershell curl double quotes I am trying to invoke a curl command in powershell and pass some JSON information. Here is my command: curl -X POST -u username:password -H "Content-Type: application/json" -d "{ "fields": { "project": { "key": "key" }, "summary": "summary", "description": "description - here", "type":...
{ "language": "en", "url": "https://stackoverflow.com/questions/33526823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Python using lxml to write an xml file with system performance data I am using the python modules lxml and psutil to record some system metrics to be placed in an XML file and copied to a remote server for parsing by php and displayed to a user. However, lxml is giving me some trouble on pushing some variables, obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/39538576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SolrJ - Indexing multiple classes and ensuring document uniqueness I want to use SolrJ for indexing a set of Java classes. Each class instance is determined by its id which is unique within a class. However, by using the Solr @Field annotation for making Solr documents from these classes it turns out that this annot...
{ "language": "en", "url": "https://stackoverflow.com/questions/15030176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's wrong with this Ruby dependency? I am trying to use source2swagger on OSX 10.7.5 It depends on "json" so I am installing that, then trying to run as below. machine:source2swagger jpbeuc1$ sudo gem install json Password: Building native extensions. This could take a while... Successfully installed json-1.7.7 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15138836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sprockets find_asset doesn't translate files within rake task I have a rails application using react-rails with jsx assets, and I would like to see the pure js translation of these files within a rake task. Within the rails console, I can achieve this with the line Rails.application.assets.find_asset(jsx_file_path)....
{ "language": "en", "url": "https://stackoverflow.com/questions/45357881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I download images from a list of links? I have a list of links to images (about 5000 lines), and I need to know how I can download all it fast. Please help me with my code: import concurrent.futures import urllib.request catname = 'amateur' def getimg (count, endcount): while (count < endcount): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18604215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to reuse bookmarks contextmenu. (Contextmenu commands not issued.) I have a Firefox addon that creates several buttons with dropdowns. Each dropdown contains several menu items representing bookmarks. Almost identical to bookmark folders or tags on the bookmarks toolbar (after having dragged them there) which a...
{ "language": "en", "url": "https://stackoverflow.com/questions/28805418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Airflow BashOperator doesn't work but PythonOperator does I seem to have a problem with BashOperator. I'm using Airflow 1.10 installed on CentOS in a Miniconda environment (Python 3.6) using the package on Conda Forge. When I run airflow test tutorial pyHi 2018-01-01 the output is "Hello world!" as expected. However...
{ "language": "en", "url": "https://stackoverflow.com/questions/52606062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What's the difference in Github between fixing, resolving and closing and issue? Here in Github it refrences 3 ways to discuss a ticket: https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue * *close *resolve *fix I was wondering what the techincally differences are...
{ "language": "en", "url": "https://stackoverflow.com/questions/69362713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to select fonts more specifically in cairo? In cairo, fonts can be specified by their family name, e.g. 'HelveticaNeueLTStd'. Then, weights and styles can be defined by cairo.FONT_WEIGHT_[NORMAL|BOLD] and cairo.FONT_SLANT_[NORMAL|OBLIQUE|ITALIC], which are constants with integer values. Only these 2 and 3 option...
{ "language": "en", "url": "https://stackoverflow.com/questions/28729589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button with Navigation to other page in navbar materialize react I wanted to insert buttons in the navbar of materialize to navigate to other pages. How can I create a button that helps me to open another page. I used the "Linked to" from react-router, but it doesn't work. Thank you very much for your response impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/59935483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using xmlhttp.open async instead of sync I am using xml http to read a XML file and then do something with it. It works fine when I use sync, setting it to "false" when using .open(). var xmlhttp=new XMLHttpRequest(); xmlhttp.open("GET",".."+baseRestUrl+restService+"/"+jmxConnection,false); xmlhttp.send(null); xml...
{ "language": "en", "url": "https://stackoverflow.com/questions/22258721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make Discord.JS v13 make a role with Administrator permissions? I've seen a bunch of answers on Stack Overflow showing how to make a role with a colour but it doesn't show how to make it with permissions. Any ideas? A: You can create a role with permissions using this: guild.roles.create({ name: 'Super C...
{ "language": "en", "url": "https://stackoverflow.com/questions/68865754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Honeycomb webview flickering jittering My app has a scrollview and a webview inside a LinearLayout. When the Ads from millenial come in it happens some jittering and some webview parts get white. I have tried ALL possible parameter combination and nothing works. Does anyone a better solution or even a explanation? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6183688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DataSource.initialzie() vs createConnection() in typeorm. Which one to use? I just started using TypeORM as my main ORM for my server. I have seen some tutorials where they use createConnection() instead of creating a DataSource object and initializing it. Are they different? Do they have different use cases? Thanks...
{ "language": "en", "url": "https://stackoverflow.com/questions/72927473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Removing /n from print after web scraping I'm trying to capture some columns from the following link: https://es.wiktionary.org/wiki/Wikcionario:Frecuentes-(1-1000)-Subt%C3%ADtulos_de_pel%C3%ADculas The code I've come up with is as follows: import requests wiki_url = "https://es.wiktionary.org/wiki/Wikcionario:Frecu...
{ "language": "en", "url": "https://stackoverflow.com/questions/59783960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can i put the form-login-page html in a library for a webapp? I was trying to create an app with login page authentication. And for the same i added <form-login-page> into the web.xml (as shown below). I jar'ed the logon.html and logonerror.html , and added them as a library along with the .war webapp file. (under W...
{ "language": "en", "url": "https://stackoverflow.com/questions/5163984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Optimizing svg using scour or any other optimizer in Python I have been using scour and it works well. I would like to use it inside a Python app instead of a cli. I would like the output to be the same as when I run the following command on CMD: scour -i input.svg -o output.svgz --enable-viewboxing --enable-id-str...
{ "language": "en", "url": "https://stackoverflow.com/questions/51507820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Union types with TypeScript and React I want a component to accepts different props based on the value of a given, specific one. Something like the following. const Button: React.FC<TButton> = ({ href, children, ...rest }) => { if (href) { return <a href={href} {...rest}>{children}</a> } return <button {....
{ "language": "en", "url": "https://stackoverflow.com/questions/57210843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JPA oneToMany with List and JoinTable I am having a Tournament class and a Member class. Only tournament has members (that is the information that I need) so in the tournament class I have: @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST, orphanRemoval=true) @JoinTable(name = "tournament_p...
{ "language": "en", "url": "https://stackoverflow.com/questions/35821240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple/same data I try to make condition where i delete data before insert data to prevent multiple data but it didnt work | even the data in table become empty || 'id_lokasi' is my column name in table - database $factpelanggan4 = DB::connection('clickhouse') ->select("SELECT t.id_tahun, l.id_lokasi, stag...
{ "language": "en", "url": "https://stackoverflow.com/questions/73030603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP sum array values with same keys This is the original main array: Array ( [0] => Array ( [subtotal] => 0.6000 [taxes] => 0.0720 [charged_amount] => 0.6720 [total_discount] => 0.0000 [provinceName] => BC [store_key] => 1 [store_id] => 5834 [categ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37998850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Final circle: Knights of the Round Table A friend of mine had a job interview. The question he was asked sounded like this: Is it possible to create a given number of similarly typed objects virtually arranged in a circle such that each of them contains two final references to its left (clockwise) and right (counte...
{ "language": "en", "url": "https://stackoverflow.com/questions/62374603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Repositories links not working yum.conf in CentOS 6 I am running a linux server using RedHat and Centos 6.4 I need to install gcc onto the server, so I have been trying to use yum to install gcc for me, however I seem to have a bit of an issue with installing and updating packages using yum due to the yum.conf file....
{ "language": "en", "url": "https://stackoverflow.com/questions/21851866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement allowed fields mapping with array object in javascript? I have two object one for allowed fields another one for overall response. I need to map overall response with allowed fields. Existing code working fine with object but not works with array object fields. Kindly suggest the better solution to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72602791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incremental build in TFS 2017 - How to build only code that has changed from the last build? We are currently building an incremental build but it is building all the projects in the proj file regardless of if those projects have changed. Is there a way that a script can be written that would pull out only what has...
{ "language": "en", "url": "https://stackoverflow.com/questions/59392216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if date object is over one year old I would like to see if a date object is over one year old! I don't know how to even compare them due to the leap years etc.. var oldDate = new Date("July 21, 2001 01:15:23"); var todayDate = new Date(); if(???) { console.log("it has been over one year!"); } else { c...
{ "language": "en", "url": "https://stackoverflow.com/questions/32914772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: c++ Observer pattern: Is it a sensible design to make subject to be an observer at the same time? In observer pattern, subject notices a change to observer. But I also need subject to be notified by observer. I went something like this for the purpose: //Observer.h class Subject; class Observer{ public: void up...
{ "language": "en", "url": "https://stackoverflow.com/questions/42665740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Primefaces scrollable datatable header alignment I know it is often discussed issue but I didn't find any reasonable solution. I have a datatatable with filtering, sorting, lazy loading and dynamic columns. If I set width of a datatable to 100% and scroll to right, cells don't align to a header. Is some simple solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/24865349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CMake undefined reference to irrklang I'm trying to link up CMake for a old project, this is the relevant structure: Project -build -src -res/include/irk -all the irrklang header files In my top-level CMakeLists.txt I have: target_include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOUR...
{ "language": "en", "url": "https://stackoverflow.com/questions/69919766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can an iOS app "know" if it's a beta distribution through Apple's Testflight? I'm in the middle of transitioning from TestFlight's native app to Apple's TestFlight through iTunes Connect. My Xcode Project is set up with a beta scheme and a distribution scheme, so I can include a number of debug features in the beta ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28598343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sign custom JRE for an Java App in macOS Catalina I bundled my java application as an.app. Inside this bundle is a jre, created with jLink. (Contents/Resources/jre/jre_11.../) I now try to sign it with --deep so it signs everything recursively, but it doesn't seem to work. When I try to notarise the app, I get an er...
{ "language": "en", "url": "https://stackoverflow.com/questions/60576250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java: Need to extract a number from a string I have a string containing a number. Something like "Incident #492 - The Title Description". I need to extract the number from this string. Tried Pattern p = Pattern.compile("\\d+"); Matcher m = p.matcher(theString); String substring =m.group(); By getting an err...
{ "language": "en", "url": "https://stackoverflow.com/questions/32290862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selections in D3: how to use parentNode.appendChild? I'd like to deal with overlapping SVG elements in D3.js using this method from StackOverflow. However, due to the nature of my code, I want to use a D3 selector rather than this to re-add the element to the DOM. My question is: how can I use a D3 selector to get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16429199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Different behaviour NSAllowsArbitraryLoadsInWebContent IOS 10.1 and 10.2 When loading a certain url in UIWebView in IOS 10.1 it is failing on Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made" However the same webview loads fine in iOS 10.2 I...
{ "language": "en", "url": "https://stackoverflow.com/questions/41346258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Wpf Clickonce deployment I tried to do the clickonce deployment of a simple demo project. The project is deployed but when I click on the RUN button it gives the error that this application can not start and when I try to launch the application It gives the error that this application can not be installed. What wron...
{ "language": "en", "url": "https://stackoverflow.com/questions/9862365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: asp.net website giving errors after upload to server, works fine on local server I have an asp.net website which when i put it up on my college server gave me an error when i retireved the inner text of an xml element and converted it to date which should be selected on the calender control. The error i recieve is- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8380850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I replace signed-in user using an older user uid in FireStore Anonymous Login? In my app, users are signed in anonymously. If someone uninstalls the app and re-installs it, the new generated uid is different from the older one. Is there some way I can revert the firebase auth instance to use the older uid instea...
{ "language": "en", "url": "https://stackoverflow.com/questions/69539557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Count the number of occurrences between markers in a python list I have a boolean (numpy) array. And I want to count how many occurrences of 'True' are between the Falses. Eg for a sample list: b_List = [T,T,T,F,F,F,F,T,T,T,F,F,T,F] should produce ml = [3,3,1] my initial attempt was to try this snippet: i = 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20383692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Use process.on('uncaughtException to show a 500 error page I'm developing an express app. I currently have the following in my server.js process.on('uncaughtException', function (err) { console.log( "UNCAUGHT EXCEPTION " ); console.log( "[Inside 'uncaughtException' event] " + err.stack || err.message ); }); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10221309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Converting a simple regex line from perl to python I am trying to convert this line from Perl to python: $line =~ s/$alwayssep/ $& /g; Any ideas how this might be done in python? A: In Python, do the following where alwayssep is the expression and line is the passed string: line = re.sub(alwayssep, r' \g<0> ', lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/29581638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Password encryption at client side Possible Duplicate: About password hashing system on client side I have to secure the passwords of my web site users. What I did was use MD5 encryption hashing in server side. But the problem is the passwords remain in plain text until it arrives at the server, which means that...
{ "language": "en", "url": "https://stackoverflow.com/questions/4121629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: block inside interpolation with ruby I'm writing a simple program that asks the user for input for an array and spits out the array and its average. Really easy and I had no issues with it. In the end I came up with: (in this example I'll just use a random array instead of the code for the user input) array = [1,2,3...
{ "language": "en", "url": "https://stackoverflow.com/questions/26932766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Basic 6 Dynamic Variables I am doing a program using vb6 which is stored datas from mouseclick in term of coordinates. I succeeded doing the first stage which is displaying the clicked coordinates. My problem now is I need to save the coordinate in term of variables so i can call them back to use for another ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4520130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook app in IE - Sometimes getUser() returns 0 although the user already has been connected I using in PHP SDK and sometimes when I'm connecting to my FB app on Internet Explorer the function getUser() returns 0! Someone knows this weird issue? After some attempts it is getting connected. It seems that there are...
{ "language": "en", "url": "https://stackoverflow.com/questions/9270185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: codeigniter 404_override I have set the $routes['404_override'] = 'city/switch_site' now in my city controller class City extends CI_Controller { function __construct() { parent::__construct(); } function switch_site( ) { $this->load->helper('url'); // load the helper first $city...
{ "language": "en", "url": "https://stackoverflow.com/questions/5678848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any ideas how to create auto-cutting file when it's size overflow some value? I have some primitive logger that writes information to file, but we have memory limitations with sending files to server, is there any practices to auto-cut file when it's size overflow some size value, for example, 2MB?
{ "language": "en", "url": "https://stackoverflow.com/questions/59734762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to exclude the transparent parts which are not rectangles when conducting Fourier analyses on PNG images? Some PNG images have transparent backgrounds. We can get maps of transparent degree from PNG images through imread. It's easy to exclude the transparent parts in Fourier analysis if they are rectangles. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/73650177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery: Dialog's current position after moving I got this little problem. I cant get the current position of JQuery after I move it. Seems like it wont update its position. It just gives the first one. Another problem I came up with was that the dragStop event wont work either.. A: $('#idOfYourDialog').dialog('widg...
{ "language": "en", "url": "https://stackoverflow.com/questions/3340915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement Location Automation Field I am wondering how to go about implementing Location Automation Field, as suggested in this article: http://uxmovement.com/forms/new-form-techniques-proven-to-save-time-and-money/ Are there libraries or services that can help me figure out City/State given the zipcode? I kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/14757665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Swype gesture on scrollable area I'm trying to add swype support to my winjs applicaiton. It works great as long as the content has no scroll area. However as soon as the content overflows the page, the swype gestures don't work anymore. If I set body { overflow-y: auto; } to hidden it works fine, but when there is ...
{ "language": "la", "url": "https://stackoverflow.com/questions/24707616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the max possible length of a PID of a process? (64 bit) I have been working on AIX and see some of the process ID's running are 8 long.... I am using the PID as a concatenation with another char* value and am trying to work out what that MAX possible length of a PID if you were looking at it from a "char per...
{ "language": "en", "url": "https://stackoverflow.com/questions/8090888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Making change recursively: How do I modify my algorithm to print all combinations? I have an algorithm that recursively makes change in the following manner: public static int makeChange(int amount, int currentCoin) { //if amount = zero, we are at the bottom of a successful recursion if (amount == 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/2209817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to access the value of a symbol when it is referred to by another symbol This is a simple example to show what i mean: > (def code "(def some-code [1 2 3])") > (def data (read-string code)) > (def var (eval data)) using println: > (println var) ;; => #'example.system/some-code > (println some-code) ;; => [1 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/12426574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++: Passing pointer to template class around in C I'm writing a C wrapper API for my lib. I generally pass my C++ objects as void* in C. And there are naturally access wrapper function for every object's public function. The C code does not access native C++ class members. Yesterday, someone mentioned on IRC that I...
{ "language": "en", "url": "https://stackoverflow.com/questions/9876883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to fix fatal error in UICollectionView cell? I have MasterViewController with UICollectionView in storyboard. I use this code for my UICollectionView: MasterViewController: class MasterViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, URLS...
{ "language": "en", "url": "https://stackoverflow.com/questions/56826356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Widgets not displaying properly in design view? I am learning Android Studio for the first time and I'm stuck trying to run a program on a physical android device. The problem I'm having is that none of my content (widgets, textview, buttons) appear on the screen on my device. Is there something wrong with the compu...
{ "language": "en", "url": "https://stackoverflow.com/questions/40078793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Android Studio - Global search not working properly after Arctic Fox update After I updated to the Arctic fox update the global search function started behaving weirdly. (I am referring to the double shift search) * *The sorting of the results is very annoying. In the All tab it shows class variables and xml files...
{ "language": "en", "url": "https://stackoverflow.com/questions/69531146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Error when code imap_body or imap_fetchbody and try save attachment in php This is my PHP code: <?php $host = 'xxxxx.com'; $username = 'xxxxx@ies-nusantara.com'; $password = 'xxxxxx'; /* try to connect */ $inbox = imap_open("{".$host."/pop3/novalidate- cert}INBOX",$username,$password) or die('Cannot connect t...
{ "language": "en", "url": "https://stackoverflow.com/questions/31855960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: custom ArrayAdapter ViewHolder : imageView changes for several items in Listview not for one only ok i encounter a problem with this custom ArrayAdapter public class AuthorsAdapter extends ArrayAdapter<Entity> { View row; static class ViewHolder { TextView textViewTitle; TextView textViewEnt...
{ "language": "en", "url": "https://stackoverflow.com/questions/30437851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ThreeJS with panorama view First of all, what I want to do is to create a panorama view of a 3D model. So what I need to do is: * *Create the different pictures (Front, Left, Right, Back, Bottom, Top) *Load the pictures into a box *Visual it on the browswer Every step at the moment is working just one step n...
{ "language": "en", "url": "https://stackoverflow.com/questions/22141749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AJAX Post request with PHP7 I have a problem. Early I use PHP 5.3 in my project and all Ajax post requests works great, but now when I migrate on PHP 7 all this request are not working. How to solve this problem. $.post ( 'http://test.atk/php/get_list.php', { list_item: list_item }, function...
{ "language": "en", "url": "https://stackoverflow.com/questions/41213103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LINQ group by maxcount I have this table named Projects. Name Date Hours p1 1/1/13 1 p1 1/8/13 2 p1 1/9/13 1 p2 1/3/13 5 p2 1/4/13 3 I'd like to aggregate these into some...
{ "language": "en", "url": "https://stackoverflow.com/questions/15352619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: accept leading number in input field <input type="number" name = "search_number" id="search_number" pattern="[0-9]\d*" class="form-control form-control-sm"> when adding number 00107 it takes only 107, is there any solution that it takes 00107 instead of 107 and if we input 107 it take it as 107 I don't want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/69071002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The value from a prompt box when ESC is pressed I have this simple function function Login() { var x=prompt("Please enter your name",""); var xmlhttp; if (window.XMLHttpRequest) {// Използваните браузъри xmlhttp=new XMLHttpRequest(); } else {// Кой ли ползва тези версии.. xmlhttp=new ActiveXObject("Microso...
{ "language": "en", "url": "https://stackoverflow.com/questions/6224520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mounting Google Drive on Colab I'm trying to mount my drive on Colab using the following code: from google.colab import drive drive._mount('/content/drive') And I'm getting the following error: 298 # Terminate the DriveFS binary before killing bash. ValueError: mount failed: invalid oauth code Tried deletin...
{ "language": "en", "url": "https://stackoverflow.com/questions/70791308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the fastest way to compare two sets in Java to get the elements that are in one set and not the other I've two Hashsets here user and docbaseuser My Code: Iterator iterator = user.iterator(); while (iterator.hasNext()) { String isid = (String)iterator.next(); flag = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42953461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving user textarea contents into browser storage I'd like to make an autosave feature, but without using server storage and flash. What's the preferred cross browser way to save a textarea, then recall it from browser storage? Internet explorer has userdata afaik but what about the others? A: Either Local Storage...
{ "language": "en", "url": "https://stackoverflow.com/questions/7771216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Chrome makes two requests to NodeJS server When I make a POST request in Chrome to my NodeJS Fastify server, Chrome's network tab displays one post request: However, Fastify logs two requests each with a unique request ID: Now, what is crazy is that when I perform the same request in Firefox, Fastify only logs one...
{ "language": "en", "url": "https://stackoverflow.com/questions/63627204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting an RGB image to grayscale for a whole dataset in Python enter image description hereI am new to python programming. i have to convert my dataset rgb images to grayscale then have to apply cycleGAN on that dataset.i am using zelda levels dataset.I have no idea how and haven't found many useful things from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70241792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cell shows on top of section header I have an UITableView with custom cells and custom headers. When I move one cell upon editing, it pops up on to of the header view. How can I keep the header view on top of all the cells? The app uses storyboard, in case that makes a difference. This is how it looks? https://www....
{ "language": "en", "url": "https://stackoverflow.com/questions/13927616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: remove exact match word from a string I would like to remove the word "amp" in the below sentence. original: x <- 'come on ***amp*** this just encourages the already rampant mispronunciation of phuket' What I want: x <- 'come on this just encourages the already rampant mispronunciation of phuket' However, if I us...
{ "language": "en", "url": "https://stackoverflow.com/questions/23211923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Consumable web service for any device I am developing a project in Layers with C #, and it is required that it has as output a service, to be consumed by different devices. What type of service can be developed so that your operation is optimal in all devices ?. What do you recommend Soap, Web Api or is there any ot...
{ "language": "en", "url": "https://stackoverflow.com/questions/54677635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a file name from string output using regular expression I have output as string out of which I need to parse a specific file name: >>> a = "Warning: do not enter your password if anyone else has superuser privileges or access to your account. [1] 15:04:16 [SUCCESS] 1.1.1.1 abc330b125.tar.bz2 my-libs.tar.bz2 xyz-...
{ "language": "en", "url": "https://stackoverflow.com/questions/46415011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Processing .ELF with multiple headers for ARM Dissembler I'm writing a simple ARM dissembler which takes an ELF file and reverts it back to its ARM instructions. I'm having an issue with processing the ELF files which contain multiple program headers I have an example .elf file to demonstrate this but I’m unsure whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/14377428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Qnamaker API Replace Alteration I have multiple QnA knowledgebases in our Qnamaker. I used QnaMaker API and successfully uploaded alterations data using PUT method PUT https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/alterations and I am able retrieve the same using the GET method GET https://westus.api.cog...
{ "language": "en", "url": "https://stackoverflow.com/questions/58941440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a custom table with columns that are query results What I want to achieve is to make load one of my django models into a table and add some columns where the additional columns are queries based on 2 of the cells in the row. For example if the Person model has first name and last name, an additional column wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/31060444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nvidia cuda 7.5 driver in tensorFlow are not properly handled (ubuntu 14.04) After a an install without pb, I am trying the tutorial about GPUs : I type : with tf.device('/gpu:0'): a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a') b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/33722904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting Content-Length header with PHP filesize() gives ERR_SPDY_PROTOCOL_ERROR in Chrome I'm on a shared hosting site, using Apache 2.2.22 and PHP 7.0.27, gzipped output. Reading a file with PHP and setting the headers with header("Content-Length: ".filesize($filename)); gives ERR_SPDY_PROTOCOL_ERROR when viewed i...
{ "language": "en", "url": "https://stackoverflow.com/questions/49257432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Typescript: Updating generic request function to grab response data - MX / AxiosResponse I am updating my firebase functions to grab data from MX's platform API. I used to grab data via MX's atrium API. Given I am now grabbing an AxiosResponse type, I need to update the generic function used request/process the data...
{ "language": "en", "url": "https://stackoverflow.com/questions/72957635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get compile/build date on Flutter App? I know how to get the version using package_info, but how to get the build timestamp on Runtime both on ios and android? A: You can use a build shell script that creates/updates a Dart file in lib/... with constants holding the date before running flutter build .... You...
{ "language": "en", "url": "https://stackoverflow.com/questions/54089645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: ftp_login failing on the second login attempt? I am trying to download a large number of files via FTP. This leads to a strange Warning of Warning: ftp_get(): Getting data connection. My solution was just to log out, using ftp_close, and log back in, code is shown below, however, this leads to the warning of Warn...
{ "language": "en", "url": "https://stackoverflow.com/questions/59196535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to take an element class, assign them strings from an array and return them as attributes in jQuery? I have a repeated class of .fancybox contained within image maps. <map name="Map1" id="Map1"> <area shape="rect" coords="609,235,834,335" href="about.html" class="fancybox" rel="iframe" /> <area shape="rect"...
{ "language": "en", "url": "https://stackoverflow.com/questions/9735292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }