text
stringlengths
15
59.8k
meta
dict
Q: How to create hashMap that has a list of hashmap in kotlin? What I am trying to achieve is is a map that has a list of maps in which the first key is ID and value obviously is a map of which the key is Session and the value is an OBJECT. var newSession = ConcurrentHashMap<String, ConcurrentHashMap<WebSocketSession...
{ "language": "en", "url": "https://stackoverflow.com/questions/57505264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove something from one list and add it to another in python I have a nested list that has certain elements with an [x] at the beginning. I want the function to remove those elements and move them to the last list in list1 (at index 2). But it should remove the [x] from it before placing it in the last list...
{ "language": "en", "url": "https://stackoverflow.com/questions/74439284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: shorter way to execute a function named as $_POST value if (isset($_POST['fn'])) { if ($_POST['fn'] == 'giveme_lb') {giveme_lb();} elseif ($_POST['fn'] == 'giveme_lc') {giveme_lc();} elseif ($_POST['fn'] == 'ico_save') {ico_save();} ... } So I need to execute a function with the name of $_POST['fn']...
{ "language": "en", "url": "https://stackoverflow.com/questions/52054161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filling form fields in Word automatically with pywin32 I have a little problem to solve, but I don´t get an acceptable solution. I try to have a script that automaticcaly fills in FormFields in Word with entries of dictionaries. So far I used pywin32 for that task and somehow I managed to find a solution that works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75086041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why when I click messagebox OK button the close code not execute? I have windows form application and I want to prevent making duplicate orders for the same patient and I check if the patient have order today and if I try to make another order it will show message patient have order today then when click ok button I...
{ "language": "en", "url": "https://stackoverflow.com/questions/70476369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fly command won't work after installing flight plan So I was working through a tutorial to deploy my node app to a server. They had me npm install flightplan -g so I can use the 'fly' command. This all worked but for the fly command to work I needed to install rsync. I finally got rsync to work after changing my PAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/36577812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Worklight 6.1 and iOS 8 I have some Apps developed with WL 6.1 and now, I updated my device to iOS 8 and none of the App is working. All of then are stucked in the Splash Screen. I can't update WL because my server is in the "old" version. Any suggestion? A: Update: Please see the following tech note for iOS 8 supp...
{ "language": "en", "url": "https://stackoverflow.com/questions/25777073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GDB: Seeing the source code lines? Does any program compiled with the -g command have its source code available for gbd to list even if the source code files are unavailable?? Also when you set the breakpoints at a line in a program with a complicated multi source file structure do you need the names of the source c...
{ "language": "en", "url": "https://stackoverflow.com/questions/20726167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pymongo, Motor memory leak Background: I use tornado + motor, and found the mem_usage increase. Then I code the test.py. The db.tasks "size" : 12192854 (10+M). After one minute, MEM USAGE / LIMIT is 1.219GiB / 8GiB env: * *python 3.7.5 *motor 2.5.0 (2.1.0 before upgrade) *multidict 4.7.5 *pymongo 3.12.0 Here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68668858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Datatype-generic programming libraries for Scala I'm looking for a Scala library allowing for datatype-generic programming (like Scrap Your Boilerplate, for example). A list of libraries with appropriate links and short descriptions for each one would be a perfect answer. A: Well, * *Adrian Moors has reimplement...
{ "language": "en", "url": "https://stackoverflow.com/questions/3031449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Fast search on encrypted data? I've got a requirement to encrypt Personally identifiable information (PII) data in an application DB. The application uses smart searches in the system that use sound like, name roots and part words searches to find name and address quickly. If we put in encryption on those fields (...
{ "language": "en", "url": "https://stackoverflow.com/questions/23529067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Connect to postgres database on local linux install I'm trying to figure out how to connect via my ruby app using PGConn in order to connect to my postgres database on the aws ec2 linux server. db_connection = PGconn.connect("ip-172-31-90.9.us-west-2.compute.internal", 5432, '', '', "testdb", "username", "password")...
{ "language": "en", "url": "https://stackoverflow.com/questions/32833406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fql returning array.. but i need an object I'm using this code to get list of friends. $params = array( 'method' => 'fql.query', 'query' => "SELECT uid FROM user WHERE uid = me() OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())", ); $result = $facebook->api($params); now i'm displaying the pic...
{ "language": "en", "url": "https://stackoverflow.com/questions/5514073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get text inside tag using python and BeautifulSoup I'm trying to get text (example text) inside tags using beautiful soup The html structure looks like this: ... <div> <div>Description</div> <span> <div><span>example text</span></div> </span> </div> ... What i tried: r = re...
{ "language": "en", "url": "https://stackoverflow.com/questions/68259822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Too many internal channel errors while using Channel API We use Channel API in our Google App Engine application to send updates to our users. The code to send updates is something like this for(String clientID: listOfClientID) channelService.sendMessage(new ChannelMessage(clientID, stringMessage)); Over the pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/26299283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call Java method which returns String from C using JNI? Is there a way to call a java method, which returns a String in C? For Integer it works like that: JNIEXPORT jint JNICALL Java_Client_getAgeC(JNIEnv *env, jobject callingObject, jobject employeeObject) { jclass employeeClass = (*env)->GetObjectClass(en...
{ "language": "en", "url": "https://stackoverflow.com/questions/40005820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Indexing JSON column in MySQL 8 So I'm experimenting with json column. Mysql 8.0.17 supposed to work with multi value JSON indexes, like this: CREATE INDEX data__nbr_idx ON a1( (CAST(data->'$.nbr' AS UNSIGNED ARRAY)) ) I have column categories with JSON like this ["books", "clothes"]. I need to get all products from...
{ "language": "en", "url": "https://stackoverflow.com/questions/61034231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python, how to randomly add/append elements from one list to another? import random global colours global current colours = ["Red","Yellow","Blue","Green","Orange","White"] current = [] def randompicker(): for i in range(4): current = random.choice(colours) randompicker() print(colours) print(current) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42283451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to have PhantomJSCloud wait for imbedded javascript in content I am passing an HTML string to PhantomJSCloud in the "content" of the page. The HTML has JS embedded in it inside script tags at the end of the string. When I return the jpeg that I am requesting from PJSC, the objects that the JS manipulates, have n...
{ "language": "en", "url": "https://stackoverflow.com/questions/58032764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Plotting contours without transitions in matlab let's assume i have three matrices X,Y,Z. X and Y are created using meshgrid and represent a 2-dimensional grid. Z contains values for this grid which can be either 0, 1 or 2. Each of these colors represents one color (red, green, and blue). I would like to draw the tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/23428788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Behaviour of LayoutTransition.CHANGING in ExpandableListView: animation is ok; but view is not clickable after the first click I'm new to Android, and decided to practise with ExpandableListView. The application is very basic ExpandableListView: taken from here: https://startandroid.ru/ru/uroki/vse-uroki-spiskom/86-...
{ "language": "en", "url": "https://stackoverflow.com/questions/73931423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to insert value in mongodb using python 3.4.3 i have written the following code & i have searched on net.. but i'm not getting anything i've tried everything but still getting same error. Just unable to understand this error can anyone help me out please. I really need help. from pymongo import MongoClient, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36010690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: text is not fully displayed in textview Textview ["text_body_story"] is not fully displaying the content. I have used the following xml code. I have used a listview, then when one of the items is selected, it displays my assigned string from string array. My string is extremely large sometimes upto 4000 words. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/49034650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: docker-compose complete the build but get a "Connection to localhost:5432 refused" in the terminal when the API try start I'm unable to get my Angular project working on Docker-Desktop for the last two days (it was working fine three weeks ago!) I got a Front-end (web) & Back-end (API) with a PostgreSQL database. Ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/75514786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using AJAX to do a set of sequential tasks on PHP server I'm having an issue with the inherent asynchronous-ness of AJAX with what I'm trying to accomplish... Using a file upload form, I'm trying to send a set of data to my LAMP server which then loops through each subset of the data and generates a PDF for each sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/43358097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is CanvasRenderingContext2D#drawImage() an async method in Chrome70 I want to render a video in a canvas with 25fps or more. So I use CanvasRenderingContext2D#drawImage() to render every frame in the canvas. It works in chrome69 and FireFox. But it does not work in chrome70. Here is the code fragment: if (frame >= t...
{ "language": "en", "url": "https://stackoverflow.com/questions/53187982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I package my Java Maven desktop app with Netbeans 12.6 so that it can be installed on multiple operating systems? I've been searching high and low for answers for this, but it has proved pretty hard. Maybe I'm just not searching for the right thing, but I'm not sure. Essentially, I have an app. I want it to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71400804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Is it possible to set Redis key expiration time when using Spring Integration RedisMessageStore Dears, I'd like to auto-expire Redis keys when using org.springframework.integration.redis.store.RedisMessageStore class in Spring Integration. I see some methods related to "expiry callback" but I could not find any docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/70826832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Round Corner (css and javascript) Please go to: http://jlecologia.com/page1c.html to see the problem The top box look fine but in IE6 there is a double top and bottom border. can somebody point me ut what i have done wrong ? Or can anybody tell me a javascript rounded box that accept to do that effect with the borde...
{ "language": "en", "url": "https://stackoverflow.com/questions/928691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Routing Rails Admin Controller Create Action A dedicated admin/countries_controller is being correctly used for all actions (index, ...), except for creating records. Here the regular countries_controller from the parent controller directory is active: Started POST "/countries" for 127.0.0.1 at 2011-06-29 23:26:38 +...
{ "language": "en", "url": "https://stackoverflow.com/questions/6527639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MYSQL: how to retrieve all table rows + only the last row where column equals OK, a bit of a complicated query, for me anyway. I'm trying to build a MYSQL query to retrieve all the rows from a DB, but I only want the last row where the column 'topic' equals 'This Week'. So, what I mean is this: I have a DB table wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/40726978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to delete string from a string in Python? This can look like a simple question but not in my situation. I have a list list0 = ['amigohello','amigobye'] And i want to delete "amigo" from it. If I try: for x in list0: print x.split("amigo") It gives me next: ['', 'hello'] ['', 'bye'] I tried: for x in list0...
{ "language": "en", "url": "https://stackoverflow.com/questions/45643326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass Count of Group Rows fro one group to another I have one group that groups by month, and another group that groups by year beneath it. In the month group row there is a sum of a field. In the year group I want to display the monthly average, not the sum for the year. Jan 2008 10 Feb 2008 15 Mar 2008 35 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55479993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: variables' scope and place the following code inside one of the functions in scope.js so the output is a: 1, b: 8, c: 6 var a = 1, b = 2, c = 3; (function firstFunction(){ var b = 5, c = 6; (function secondFunction(){ var b = 8; (function thirdFunction(){ var...
{ "language": "en", "url": "https://stackoverflow.com/questions/45949228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: RAILS: -destroy just erasing record (not deleting) bicycle.rb has_many :pictures, as: :imageable accepts_nested_attributes_for :pictures, allow_destroy: true, :reject_if => proc { |obj| obj.blank? } picture.rb belongs_to :imageable, polymorphic: true has_attached_file :image validates_attachment_content_t...
{ "language": "en", "url": "https://stackoverflow.com/questions/37369078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: tns plugin add nativescript-floatingactionbutton Installation Failed I wanted to use the Floating button in my App. tns plugin add nativescript-floatingactionbutton But the Installation failed. Below is the installation error. I tried this also sudo npm i nativescript-floatingactionbutton A: This looks like a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/55651786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET 2.0 C# Treeview Drag/Drop within TreeNodes I am interested in capturing a drag/drop event that will start with the user dragging an existing TreeNode somewhere within the TreeView. While the user is dragging the TreeNode around, I am interested in capturing when the node has been dragged between two tree nodes...
{ "language": "en", "url": "https://stackoverflow.com/questions/3662585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flash Builder 4.6 | Remove Child | s:TileGroup I’m sure it’s something super simple that I’m missing, but I’m having issues removing a VBox that’s inside an s:Tilegroup. I can't get it to delete. For a test, I was able to delete the VBox when I only added to the stage (instead of the s:TileGroup). The code below sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/32948614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Text Only Once Through Random Method I am new to Android. I am showing Text in the TextView on Button click Randomly. On 1st Textview the Heading and on 2nd the explaination of that heading. I am able to show the Heading and Explaination Randomly and now I want if the Text is shown once should not be shown aga...
{ "language": "en", "url": "https://stackoverflow.com/questions/34154642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw angstrom (Å) using AggPas? Summarization: No luck in finding how to output the angstrom sign using AggPas library. =============================================== The text-drawing function in the AggPas library takes a PAnsiChar parameter. I am wondering how can I can use PAnsiChar to point to text conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/5251317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Line break caused by long words visually breaks the centering of paragraphs with left-aligned text I am creating a centered paragraph with left-aligned text. In most cases, everything works very well. However, when there is a really long word at the end of the line which forces the text to break to the newline, it l...
{ "language": "en", "url": "https://stackoverflow.com/questions/58803288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Boostrap carousel issues on ASP.Net Razor Page I am having a fair few issues using ASP.Net MVC 5 + Twitter Bootstrap 3. Styling, that works, no issues - but the carousel I put in does not cycle, nor does it respond to the next/prev arrows or the navigation buttons. I even gave in and pulled a carousel example from...
{ "language": "en", "url": "https://stackoverflow.com/questions/27152441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update Query not working in Android Sqlite My Java code Update Data base Table String qq="UPDATE ChallanItems SET Recieve ="+str+" WHERE ItemNo = "+code; Log.d("Qry", qq); myDbHelper.updatequery(qq); updatequery method public void updatequery(String qry) { Curs...
{ "language": "en", "url": "https://stackoverflow.com/questions/23989013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Issue creating Azure scheduler SchedulerClient class There is an argument called cloudServiceName when creating a new instance of SchedulerClient, but there's no documentation available on where that value comes from and the Azure portal isn't helpful either. Here's the code I have so far: var store = new X509Store(...
{ "language": "en", "url": "https://stackoverflow.com/questions/45000152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to append two files within the same script after if loop statements OR how to append directly to text file. Python I have a script that I've been working on turning four individual steps(scripts) into 1. I'm down to my last problem and I know I'm over thinking it but need a bit of help to turn the corner. I eith...
{ "language": "en", "url": "https://stackoverflow.com/questions/62436813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determine an empty array in php Hello I am developing an admin backend for an android app for a restaurant. I need to list all food items the restaurant offers based on their categories. The trouble is there can be some categories which doesn't have any item listed under it, and if such a category is encountered the...
{ "language": "en", "url": "https://stackoverflow.com/questions/26454688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auto desk Forge Viewer PDF Snap and Zoom Issue When using forge viewer for PDF’s, is it possible to enable the Snap feature for measuring (same as when viewing models). Also, can the zoom level be changed i.e. we want to zoom in closer than the default maximum? Both of these are possible in BIM360 so I hope it is al...
{ "language": "en", "url": "https://stackoverflow.com/questions/70278410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use multi-languages for iPhone application using NSBUNDLE? How to use multi languages for iPhone application?. Currently I used five languages. How to use it in iPhone development using nsbundle? A: Their is one easiest way to develop multi language app by using string file. only you need to make different s...
{ "language": "en", "url": "https://stackoverflow.com/questions/23867876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Extend Richfaces components - for example customize Datatable component for specific implementation How to extend the functionality of Richfaces components for example Data table with custom header and sorting techniques. i have seen extended data table but did not get much information from it. Please point me to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/2348178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Glitch while unpacking the attribute names and coefficients This isn't actually an error that is thrown as much as a glitch I don't understand. list(zip(X_train_select.columns, lr_mod.coef_)) I use this line to show me the coefficients of a model along with the name of the features, after training a model using skl...
{ "language": "en", "url": "https://stackoverflow.com/questions/65073061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why must a final variable be initialized before constructor completes? Why must a final variable be initialized before constructor completes? public class Ex { final int q; } When I compile this code I get error like this err:variable q might not have been initialized A: The final keyword applied to a field has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11345061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: PHP API For Microsoft Outlook? Is there any way to retrieve contact and add edit list of outlook calender? Please advise me.
{ "language": "en", "url": "https://stackoverflow.com/questions/17650906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add gradient to canvas I need to add a gradient to a canvas. I have tested all solutions, but nothing works. Original code: ctx.strokeStyle = params.wheelBorderColor; ctx.lineWidth = params.wheelBorderWidth; ctx.font = params.wheelTextFont; ctx.clearRect(0, 0, 500, 500); var text = null, i = 0, totalJoiner ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23757338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SwipeRefreshLayout Refresh Listener not calling onRefresh() I currently have a SwipeRefreshLayout that isn't calling its OnRefresh method whenever I pull down. Is something wrong with my code? public class MainActivity extends AppCompatActivity { private SwipeRefreshLayout swipe_view; @Override public void onCreate...
{ "language": "en", "url": "https://stackoverflow.com/questions/42744587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mysql database for monthly subscriber maintenance i would like to create mysql database or single table to maintain data for some small sport club. Actually we have to pay monthly fee for cleanup and so and the best would be to keep that data within mysql. I need to store the following data (id, name, address) and f...
{ "language": "en", "url": "https://stackoverflow.com/questions/12141752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to simply find coord's of Image B (smaller ) inside of image A (screenshot /big)? I am trying to make a basic tool which will automatically move the mouse to a menu, and select from a drop-down menu the thing that's been selected. So, this is the bit, that I'm trying to get my mouse to navigate to, specifically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41174465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Using SQL LIKE with another query I have this sql query for searching: select * from songs where name LIKE '%search%' or author LIKE '%search%' or tags LIKE '%search%'; At this point everything is OK, but now I need to search only in the songs where the column 'status' = 1. How can I do this? A: Add it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/28268554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Mysql query I want to know visitors who vote for example ( answer_id (767) ) on what else they vote for When visitor votes, I store information answer_id, ip, etc. My website visitors vote in multiple polls. I want to know visitors who vote for example ( answer_id (767) ) on what else they vote for. Based on ip. let...
{ "language": "en", "url": "https://stackoverflow.com/questions/12232422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Checked other checkbox on selecting of single checkbox? 1. <p:column align="center"> <f:facet name="header"> <h:outputLabel value="Select" /> </f:facet> <h:selectBooleanCheckbox id="select"> <p:ajax event...
{ "language": "en", "url": "https://stackoverflow.com/questions/7291747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Symfony/Doctrine: custom find() function I want to extend the Doctrine_core::getTable('table_name')->find('id') to increment the table_name.view_count field each time it is executed. Is this possible? A: I think it's not a good practice to put a such functionality into model.
{ "language": "en", "url": "https://stackoverflow.com/questions/4834993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cleaning Urls in a pandas dataframe <There is more code to this but I collected Twitter data using twint. I am using Jupyter Notebooks as well. I have filtered the data that I want to keep for my graph. But in my nx node edges graph, has the full URL of the web pages. I want to get ride of the http://, https:// and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67169145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When creating HTML emails, should we use html, head, body tags? In my email views, I usually just do something like... <dl> <dt>Name</dt> <dd>Value</dd> </dl> Should I be doing it like this? <html> <head></head> <body> <dl> <dt>Name</dt> <dd>Value</dd> </dl> </body> </html> In oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/3903200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "129" }
Q: Can't get MDDropdownMenu and MDDropDownItem to work Whenever I press on the MDDropDownItem the Menu opens but when I select an option nothing happens How can I solve this? Thanks in advance Here is my code: from kivymd.uix.screen import MDScreen from kivymd.uix.menu import MDDropdownMenu from kivymd.uix.dropdownite...
{ "language": "en", "url": "https://stackoverflow.com/questions/66557295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to display the light box on click of each image? I want to display lightbox on click of each image. I want to keep same class and name for each image. The idea is to make the page dynamic which is why I have kept the same id and class on on image tag. When I click on the first image the lightbox is getting open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44127363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I automatically check that the nuget versions in a csproj file match the versions in the packages.config file? We have an issue where Visual Studio sometimes fails to install/restore a nuget package correctly and with an out-of-memory error in the Package Manager console, but it's not easily visible. When th...
{ "language": "en", "url": "https://stackoverflow.com/questions/70277726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sed/awk/perl formatting multiple paragraphs dzinfo gives me output formatted like this; User: x0000001 Forced into restricted environment: No Role Name Avail Restricted Env --------------- ----- -------------- login/Corp_All Yes None _Example-Role-- Yes _Example-Role-- ALL_Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/41171565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter 3.7 create different result from before(3.3) and from doc, based on this command `flutter create --template=package ` based on this flutter doc : this line flutter create --template=package hello should produce following content : * *LICENSE *test/hello_test.dart *hello.iml *.gitignore *.metadata *pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/75343616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yii2 RestFull API - Error 404 on production with few actions onlyy I have a problem, I created many actions for an API using Yii2. I have met a recent problem: while everything works on localhost, when I upload on the server, the below actions return a 404 error. I have been trying many different solution (try to cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/61190433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get hex values from string? I have a function with an input parameter "text" , which consists of a string containing unknown number of 2-character Hexadecimal numbers separated by space. I need to read them and put them in separate array indexes or read them in for loop and work with them one by one. Each of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49342522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: whereIn array to string convertion error - Laravel I am wanting to use the WhereIn function on my Eloquent query, and it requires a PHP array: $users = DB::table('users')->whereIn('id', array(1, 2, 3))->get(); Currently, the data is being passed into the controller in this format - array(4) { [0]=> string(1) "1" [1...
{ "language": "en", "url": "https://stackoverflow.com/questions/26441444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: (iphone) make singleton of custom activity indicator? I'm trying to add my custom activity indicator to my app. Since there are many places I want to show the indicator, I thought maybe it's a good idea to make it singleton to access it easily. I guess I can slightly modify this to make the desired singleton class...
{ "language": "en", "url": "https://stackoverflow.com/questions/5296282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Routes not working for new application I created a new rails application a few days ago and got started by working on the models. I have a user model managed by devise and I am trying to get the login working. I began by setting the root to the user sessions controller like so: root 'devise/sessions#new' Then when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20768140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Property 'changeView' does not exist on type 'CalendarOptions' I'm using Full calendar V5 in angular, and in the dateClick i allways get the error on the changeView. I want to click on a day, and switch the view to "timeGridDay". my code is this: " dateClick: function(info) { if(info.view.type=="dayGridMonth")...
{ "language": "en", "url": "https://stackoverflow.com/questions/72276622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reload values in com.google.common.base.Supplier on demand I have a Supplier defined as below in one the Services. This supplier loads some values from database. private final Supplier<Map<CustomClass1, CustomClass2>> sampleSupplier = Suppliers.memoizeWithExpiration(getSampleSupplier(), 1, TimeUnit.DAYS); I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42271143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you update a running docker image on digital ocean droplet? I have a docker image running on port 3000 on my droplet on digital ocean. I did some updates and created a new image and pushed it to my github packages. I thought when I push the new image that the old one would just get overriden but Im getting an...
{ "language": "en", "url": "https://stackoverflow.com/questions/70701924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Safari selenium Windows Could not instantiate class org.openqa.selenium.safari.SafariDriver I have grid node, to launch grid node I have command Launch grid: start java -jar selenium-server-standalone-2.47.1.jar -role hub -port 4441 Launch node: start java -jar selenium-server-standalone-2.47.1.jar -role node -hub ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39390071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP and MySQL - efficiently handling multiple one to many relationships I am seeking some advice on the best way to retrieve and display my data using MySQL and PHP. I have 3 tables, all 1 to many relationships as follows: Each SCHEDULE has many OVERRIDES and each override has many LOCATIONS. I would like to retriev...
{ "language": "en", "url": "https://stackoverflow.com/questions/4820742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: c# Updating datetime column in access OleDbConnection con = new OleDbConnection(@constring); con.Open(); string cmdstring = "UPDATE table SET date=" + DateTime.Parse(datetxt.Text) +" WHERE id ="+id; OleDbCommand cmd = new OleDbCommand(cmdstring,con); cmd.ExecuteNonQuery(); con.Close(); I want to update date column ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37205656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best C++11 way to measure code execution time for an Embedded system I was trying to find a way to measure code execution time without using the below listed constraints. In my requirement it's for an embedded system which has very strict conformances. All I could found was using C headers, unapproved headers by G...
{ "language": "en", "url": "https://stackoverflow.com/questions/40758263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: specifying a file in a classpathresource I am using classpathresource to get the resource of a file . In my code am specifying the path so that the file is picked from there . But its taking a file with same name which is already there in a jar from previous. i.e., I have specified, ClassPathResource resource = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/5856116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Chaining actions sharing data in a do block Ok, suppose I have an IO operation; loadFile :: FilePath -> ByteString which I process with processData :: ByteString -> ProcessedData being this operation pretty expesnive and I want to use this processed data in two actions like so: main = do { bytes <- loadFile ".......
{ "language": "en", "url": "https://stackoverflow.com/questions/35455614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chefspec with Hashicorp Vault I'm trying to use ChefSpec to test an implementation of Chef and Hashicorp Vault Recipe chef_gem 'vault' do compile_time true if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time) end require 'vault' Vault.address = 'https://address:8200' Vault.token = citadel['...
{ "language": "en", "url": "https://stackoverflow.com/questions/39458691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: QtConcurrent gives longer runtimes for multiple cores I have designed an algorithm and now I'm working on an implementation to solve it on multiple cores. Essentially I'm giving each core the same problem and I'll choose the solution with the best score. However, I'm noticing that using multiple cores slows down the...
{ "language": "en", "url": "https://stackoverflow.com/questions/51079939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross layer in pytorch How can I add a cross layer in pytorch (https://arxiv.org/abs/1708.05123). I would like to add such a cross layer into my neural network that comes before the deep layers as a way to better combine my features that are coming from a range of sources. Thanks! A: There is a PyTorch implementati...
{ "language": "en", "url": "https://stackoverflow.com/questions/71877020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to text() and concatenate values of nested list Im trying get the values of a nested list and concatenate them in each click: <ul> <li>item1</li> <li>item2 <ul> <li>superitem1 <ul> <li>eliteitem1</li> <li>eliteitem2</li> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43716752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extract a specific element value from an array in laravel controller I do have the following output in the form of an array $fetchSubFormDetailData = $this->PMSDS11FetchSubFormDetailTrait($request); echo 'Data Submitted' ; print_r($fetchSubFormDetailData); The result shown because of print_r is as under Data...
{ "language": "en", "url": "https://stackoverflow.com/questions/70764900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable a link button in gridview when clicked I have two LinkButton's called Approve and Reject in my GridView and I want my Approve LinkButton to be Disabled when click on it. I tried the following code but it's not working. protected void gvManagerTimeSheet_RowCommand(object sender, GridViewCommandEventArg...
{ "language": "en", "url": "https://stackoverflow.com/questions/25926710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between private static variable and private instance variable in a singleton class? What is the difference between private static variable and private instance variable in a singleton class? I see no semantic difference. EDIT: Not asking if the variable holding the instance of itself should be...
{ "language": "en", "url": "https://stackoverflow.com/questions/8828720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting protein sequences by accessing Uniprot (with Python) I have a list of protein id's I'm trying to access the protein sequences from Uniprot with python. I came across this post :Protein sequence from uniprot protein id python but gives a list of elements and not the actual sequence: Code import requests as r ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63992865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Checkout git submodule in Azure Pipeline with SSH I try to checkout the git submodules via ssh instead of https (default if you use "Checkout submodules") in an Azure DevOps Pipeline. With the option in the picture it works - but for the developers it's annoying to enter the password all the time if they are working...
{ "language": "en", "url": "https://stackoverflow.com/questions/58862131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can I use a local path to json with Google Maps API Per the documentation here: Can I replace: map.data.loadGeoJson('https://storage.googleapis.com/maps-devrel/google.json'); with a local path such as: C:\path\file.json ? or must it be hosted on a server? Thanks A: In general, this used to be not allowed by de...
{ "language": "en", "url": "https://stackoverflow.com/questions/22559788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the element that is clicked on with a click handler added in a forEach? I need to detect element count number I have 10 poster elements and I have a forEach loop I need the poster number that I clicked on, for example if I click on the seventh poster posternumber should be 7 poster.forEach(p => { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62934894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep scroll position when pressing back button in angular 13, I'm already using RouteReuseStrategy I have a long list of items inside a big scrollable div. Each time when a user click on an item to see the details of item then click the back button, it starts at the very top of the div. It is not user friendl...
{ "language": "en", "url": "https://stackoverflow.com/questions/74014655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: INSERT INTO query not working in Express.js I'm having trouble inserting data into a MySQL database. Select queries work fine, so I'm assuming that it's something stupid that I've missed, either in the Express code, or, in my HTML. The page I'm running the query from is located at localhost:8080/add, and I'm trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40135845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get PhpStorm to understand different SQL dialects in HEREDOC in the same project My PHP 7.3 application connects to MS SQL Server or MariaDB, depending on being run under Windows or Linux. For my queries, I sometimes write queries in SQL Server syntax and sometimes in MySQL syntax. For code validation etc. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57919199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cucumber ordering of Given, When, Then (Given, When, Then, When, Then) As an End-to-end Automation Tester I have always assumed that Given, When, Then statements (incorporated in the Gherkin Language when using Cucumber) should only ever appear in the order of 1. Given, 2. When, 3. Then. i.e. A test should not follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/45059024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Template or function arguments as implementation details in doxygen? In doxygen is there any common way to specify that some C++ template parameters of function parameters are implementation details and should not be specified by the user ? For example, a template parameter used as recursion level counter in metapro...
{ "language": "en", "url": "https://stackoverflow.com/questions/12434100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove black canvas from image in TensorFlow I'm currenly trying working with tensorflow dataset 'tf_flowers', and noticed that a lot of images consist mostly of black canvas, like this: flower1 flower2 Is there any easy way to remove/or filter it out? Preferably it should work on batches, and compile into a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70646092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hazelcast file persistence (MapStore implementation) I am using Hazelcast for clustered data distribution. I read in the documentation about data persistence, using the interfaces MapStore and MapLoader. I need to implement these interfaces and write the class name in the hazelcast.xml file. Is there any example of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10453559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: navLinkDayClick of FullCalendar Did anyone use navLinkDayClick of FullCalendar and call a custom event (by fetching data from database) based on the date selection? I am using eventClick to populate the calendar data however I am unable to do so for individual dates after setting the navLinks to true. Everything abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/74872591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }