text
stringlengths
15
59.8k
meta
dict
Q: stuck threads in weblogic while trying to communicate over RMI Our application is running in an 8 node Weblogic cluster and is trying to communicate to an RMI server. The threads doing so get stuck due to an error in the RMI server. We're trying to solve that, but the problem is that until then, the stuck threads sl...
{ "language": "en", "url": "https://stackoverflow.com/questions/12038574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Limit Options in a Select Dropdown using CSS I am in need of limiting dropdown option items in a <select> element. I am working within a CMS system, so I can't alter the HTML and can only use CSS to achieve this. I currently am using: select option:not([value="1"]){display:none;} This works for most cases, except...
{ "language": "en", "url": "https://stackoverflow.com/questions/59398784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extract data from nested JSON and convert to TSV I'm looking at parsing nested json. For the example below, I know that it appears on Github - however due to sensitivity I cannot post my actual data on here. I've Been looking at jq for formatting, and can pull each component out, but cannot merge them together su...
{ "language": "en", "url": "https://stackoverflow.com/questions/61139142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find the first occurrence of "&" in a string using regex? I have a set of data and each row has different number of &. How do I find and match the first & in each row using regex? Sample data: * *Document & saved (faulty authorization) *Document & cannot be processed in this transaction with billing ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/60965004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Make requests on chromecast receiver shutdown event I'm developing a chromecast custom receiver, and I need to send a request to the server once the sender disconnects from receiver. When I use ios or android senders, I can see that the 'sender disconnect' event is triggered, but when I use the browser, that event i...
{ "language": "en", "url": "https://stackoverflow.com/questions/65250660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: After jQuery Ajax invocation call , the application Fails to navigate to the ASP.NET MVC view that I want to show I'm using jquery DataTables to show some tabular data, and I also placed an edit link for each row in said jquery DataTables so that the user can edit data associated with a particular row if needed. ( A...
{ "language": "en", "url": "https://stackoverflow.com/questions/52768163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Objects/types Javascript I'm working on a simple 2d game in JS using canvs. The game consists of a knight who runs around to kill goblins, the goblin once touched, resets to a rangom location. I want to leave bloodsplatters for every goblin killed. Currently, before I redraw the canvas, I use the previous X a...
{ "language": "en", "url": "https://stackoverflow.com/questions/19410200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to implement a class that support async methods? I already created group of classes that will be responsible about getting the data and saving it to the source. and I want to add async capabilities to these classes but I weak at async programming and I don't know what is the best way to implement it. I wrote an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55763021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to config webpack in a project created by vue-cli 3? By using vue-cli 3, I created a project with the following structure: Then I hope it would support webpack. I tried to add webpack.config.js into build folder, and add script "webpack --config build/webpack.config.js" in package.json file. However it seems t...
{ "language": "en", "url": "https://stackoverflow.com/questions/55117540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to output asian characters in Logbacks' HTML format I am using Logback to enable logging statements within my code. Currently when I am logging information displayed in asian characters ( Chinese, Korean, Japanese etc ) they appear similar to �京都. How can I output the proper characters into my logs? For i...
{ "language": "en", "url": "https://stackoverflow.com/questions/13458228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to calculate the the elements of the arrays separately I have two arrays "Resulted from the SQL query" The first array is Array ( [0] => 100 ) Array ( [0] => 200) The second array is Array ( [0] => 300 ) Array ( [0] => 400) How to calculate the first elements of each arrays (100 + 300) and the second element...
{ "language": "en", "url": "https://stackoverflow.com/questions/15932081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A way to see the number of active IAP subscribers? Apologies if this question has an obvious answer, but dozens of Google and Stack Overflow searches haven't brought me any closer to the answer... We have an iOS app that uses In-App Purchase to allow users to sign up for a subscription. This subscription automatical...
{ "language": "en", "url": "https://stackoverflow.com/questions/17364417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: jquery ui toggle button to trigger setTimeout function I am trying to create a toggle button which should run a function when toggel is pressed. and function should stop when toggle is off.But whenever toggle is turned on, it should run function constantly. JSBIN Try: http://jsbin.com/AbIzuNO/1/edit HTML: <input t...
{ "language": "en", "url": "https://stackoverflow.com/questions/19157576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: where to set xpages/ibmsbt proxy configuration I have intranet based domino 9x (running windows) server sitting behind a firewall and proxy. To make http/s requests via server side java I set the http/s.proxyHost and other jvm settings to allow my java.net calls. Works fine when doing a simple GET via java.net cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/19123230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django Admin: admin.sites.register(MyModel) doesn't work By mistake I deleted the migration files, and now my Admin does not register my Models, apparently because they were already registered and appeared correctly but now they do not appear and do not register them, and also if I try to do 'admin.sites.unregister'...
{ "language": "en", "url": "https://stackoverflow.com/questions/57898364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jsonSchema attribute conditionally required based on uri parameter Consider an API with an endpoint in which you pass a parameter foo as part of the URL-path, and pass some parameters as json in the body of a POST request. * *This uri parameter foo must have one of the values fooBar and fooBaz. Otherwise the req...
{ "language": "en", "url": "https://stackoverflow.com/questions/45034662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FileStream constructor and default buffer size We have a logging class written in C# using .NET 4. I want to add a constructor argument which will optionally set the FileOptions.WriteThrough flag when constructing a FileStream. As this is widely used library code I want to change as little as possible. Existing File...
{ "language": "en", "url": "https://stackoverflow.com/questions/9791088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ring topology in PSO algrithm in particle swarm optimization algorithm, there are different types of topologies that can be used such as ring topology and star topology. so if I decided to use ring topology, can I put the value between brackets 2 in the following line of code ? Topology topology = new TopologyRing(...
{ "language": "en", "url": "https://stackoverflow.com/questions/54432572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C - given a case-insensitive file path, how to check whether the file exists or not? For example, suppose we have a file called "Hello.txt", then checking if "hello.txt" or "heLLo.txt" exist should both return true. A: If you're running Windows or any case-insensitive filesystem, then there's nothing to do but chec...
{ "language": "en", "url": "https://stackoverflow.com/questions/43480408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Installing a plugin into Drone CI (the Trigger plugin) I'm new to Drone, and I want to use my first plugin, namely this one: http://addons.drone.io/trigger/ However, the Drone documentation doesn't really explain how to install plugins. What I've done is copy the example yaml into my .drone.yml, resulting in this (o...
{ "language": "en", "url": "https://stackoverflow.com/questions/46091401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ID value in mySQL is auto_increment but seems generated in netbeans I'm fairly new to developing web apps in Java. I just connected the database, and as seen in the pictures, my ID_patient is auto_increment, but in Netbeans it looks generated. INSERT INTO sys.patient values('5','elif','nil','er','[email protected]','...
{ "language": "en", "url": "https://stackoverflow.com/questions/47800590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decoding json in array , editing array and encoding in json - PHP I am newbee in php and trying to get json in array and wanna change key in that json below is my code : $json = json_decode(file_get_contents('all_json_files/jobs.json'), true); foreach ($json as $key=>$row){ foreach ( $row as $key=>$row...
{ "language": "en", "url": "https://stackoverflow.com/questions/27859629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combined .NET app for azure and windows, EF, SignalR Client I am creating a basic decentralized .NET logger which IS logging to a relational database using entity framework. The database can be SQL Server, SQL compact, etc. The application itself is a SignalR Client and log messages are pushed from the server to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/40411352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hadoop new API - Set OutputFormat I'm trying to set the OutputFormat of my job to MapFileOutputFormat using: jobConf.setOutputFormat(MapFileOutputFormat.class); I get this error: mapred.output.format.class is incompatible with new reduce API mode I suppose I should use the set setOutputFormatClass() of the new Jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/11626328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby On Rails 2.0.2: Update quantity value of a product after order I'm using Instant-Rails 2.0 and following the Depot example project of Agile Web Development with Rails 3rd edition. My question is: When a customer makes an order, with the cart and the order form, I need the update the column quantity of products...
{ "language": "en", "url": "https://stackoverflow.com/questions/5620572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: subprocess.check_output(['git', 'shortlog']) subprocess.check_output(['git', 'shortlog']) returns empty bytes. subprocess.check_output(['git', 'log']) works, somehow. Does anybody know a workaround?
{ "language": "en", "url": "https://stackoverflow.com/questions/51959265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: not sure where the comma is missing INSERT into manufactures (man_id, man_name, address, social_media_available) VALUES (seq_manufactures.NEXTVAL, 'ALLIANCE INC', address_type('123 MEYNELL ROAD', 'LEICESTER', 'UK'), social_media_varray_type ( social_media_type ('TWITTER', 'ALLIANCE'), soc...
{ "language": "en", "url": "https://stackoverflow.com/questions/68087161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to define/implement this interface with generics in a simpler way? I'm working in a Genetic Algorithm and I want it as abstract as possible to be able to reuse the GA. I defined and implemented a Population Interface, and well it works, but I'm sure that's not the best way to do it. I don't have great experience...
{ "language": "en", "url": "https://stackoverflow.com/questions/4304322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python: mechanize can't find all form inputs I need to fill name="email" out, but mechanize say name="email" does not exist (look output). Why I can not find it? Do I must take an other command? Or can I solve the Problem with replace some text in the html file? <input class="box410" type="text" VCARD_NAME="vCard....
{ "language": "en", "url": "https://stackoverflow.com/questions/22818882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ESP-Touch import to iOS project written in Swift I'm trying to use ESP-Touch SDK for iOS which is written in Objective-C. I've not found any usage guides on official SDK resource only one article on Medium. Does some one have step by step guide how to import and use it?
{ "language": "en", "url": "https://stackoverflow.com/questions/73687933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload videos faster to a server? I have captured a 900 MB video and want to transfer it to a server from my PC. I try to upload this with Filezilla, but it takes so long, like few hours, and I have fast Internet connection as well. So are there any free programs that can be installed on the PC and used for f...
{ "language": "en", "url": "https://stackoverflow.com/questions/5492440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ServiceStack adding roles and permissions with custom AuthUserSession I'm trying to add roles and permissions when a new user is registered. I'm running into the problem that adding to the session roles and permissions does not get persisted to the database. I've written a Custom AuthUserSession and overridden OnAut...
{ "language": "en", "url": "https://stackoverflow.com/questions/17715011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Select rows from a table, ignore rows until a field value is encountered Let's say I have a table that contains information about user savings to a thrift society and the assessment of each deposit type as good or bad based on internal logic. How do I select rows from this table so that all preceding rows to the las...
{ "language": "en", "url": "https://stackoverflow.com/questions/59600207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ggplot2 - Overlay Mean of Each Group I am trying to mimic this lattice plot using ggplot. The data for this plot is lme4::Dyestuff. I am able to plot each of the points in a similar manner, but I am unable to plot the line which represents the mean of each batch. library (lme4) library (ggplot2) ggplot (Dyestuf...
{ "language": "en", "url": "https://stackoverflow.com/questions/23113502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: php: Unable to update a "lastseen" record on DB I need to update a "last seen" record on database, every time a user logs in. I create the us_lastseen record (type DATETIME), with no positive result. After trying to change its type to VARCHAR, it neither records the actual time so I guess the error is on the piece o...
{ "language": "en", "url": "https://stackoverflow.com/questions/32440221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ffmpeg why is output video contrast / brightness too bright? I have a .mov file which I run through ffmpeg to create HLS segments / chunks. However, when I playback the HLS video it is too bright. For a sanity check, I ran the same .mov video file through the FlowPlayer processing pipeline and the results were the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/70544342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to print "a/b" where a and b are numeric value in JavaScript. I dont want to print the resultant value how to print "a/b" where a and b are numeric value in JavaScript. I dont want to print the resultant value if a=5,b=10 Output: 5/10 I know how to solve in Java but in JavaScript the var datatype automatically d...
{ "language": "en", "url": "https://stackoverflow.com/questions/37436803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to merge array of keys and arrays of values into an object? I have the following arrays: var a = ["F", "M"]; var b = ["female", "male"]; var c = ["fa-female", "fa-male"]; and I am able to assign b to a using for loop with: ans[a[i]] = values[i]; // { M: "male", F: "female" } how would I go about adding the thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/59997461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Full date varchar to date I need convert a varchar field, to date. My varchar look like this: Jan 11 17:18:53 +0000 2011 I need: 2011-01-11 Any ideas? I tried with: DATE_FORMAT(STR_TO_DATE(my_field, '%Y-%m-%d'), '%Y-%m-%d') mydate but this returns NULL. EDIT - MORE DETAILS: Query (string data_field): SELECT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57295944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I Call SmartContract Token ERC20, Why Show Hashing Output? I do not know why with this, even though in the previous version (web3 + Metamask) can issue real data. But now used as hashing (output). I took the example in the code and output below (to get the TotalSupply on the ERC20 Token): Output : 0x18160ddd const c...
{ "language": "en", "url": "https://stackoverflow.com/questions/57760940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simple captcha error TypeError can't convert nil into Integer i am using rails 3.0.2 and ruby 2.0.0 with simple captcha gem. Gemfile - gem 'simple_captcha', :git => 'git://github.com/galetahub/simple-captcha.git' View - Verification code:<%= show_simple_captcha :label => "Please type the verification code", :im...
{ "language": "en", "url": "https://stackoverflow.com/questions/23479103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I allocate array of objects in Java? I've been allocating arrays using the following syntax while going through some Java tutorials so far: // Ok, all the elements are zero upon creation int[] a = new int[5]; // I can set all the elements however I want! for (int i = 0; i < a.length; i++) a[i] = i+1 Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/31394904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java HashMultiMap Storing Issue I am using HashMultiMap in my code. My HashMultiMap structure is like, Key1 -> Value11 -> Value12 -> Value13 .... Key2 -> Value21 -> Value22 .... Now, I want if key1 has same values (example: value11 = value12) then keep (or do not store) only one copy of the value (example: keep on...
{ "language": "en", "url": "https://stackoverflow.com/questions/9851549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to connect to file on same Tomcat server at server startup from within ServletContext I am trying to connect to a file(say index.jsp) on my tomcat server at server startup from within the context initializer method. What is the best way to do this? In essence I want to make an HttpConnection to a file on the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/32233906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What might cause a 503 Service Unavailable for reports area of an asp.net mvc3 application? We're switching our MVC3 application from IIS 6 to 7.5. I'm working on setting up my local development environment on Windows 7. The app works fine for the most part, but I just discovered that ONE out of the many different...
{ "language": "en", "url": "https://stackoverflow.com/questions/8139778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Java Cross Platform File Operations I developed a software in netbeans + Ubuntu and then converted the runnable .jar file of netbeans to .exe file using a converter software. I used: File f = new File("./dir/fileName"); which works fine in Ubuntu but it gives an error in Windows, because the directory pattern of b...
{ "language": "en", "url": "https://stackoverflow.com/questions/57494210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python while loop neither works nor breaks My code and the output is as below. I expected loop but it doesn't work and it doesn't break either. Still running. Can someone fix the code and teach why it doesn't loop ? I know I can make it loop if I use for instead while. But I want to know why. code: absent = [2,5] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74078585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python/Linux - Check if some other app is fullscreen I have developed a controller for RGB LEDs on the back of my monitor, and I would like to control them so that they match the average color on the screen when I have a full screen app running, such as a movie. I already have the whole controller up and running in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67054535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Layout behind status bar - Android Lollipop I want in my application to be able to implement this effect: where the status bar is semi transparent and the layout is behind the status bar. Every example that I've read on the subject, was mainly associated with the navigation drawer and mostly used the ScrimInsetScro...
{ "language": "en", "url": "https://stackoverflow.com/questions/28945860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Does Java JDK have a GUI based program like Visual Basics or Android Studio? So I was learning Java with command prompt to compile my x.java file, but now I use Android Studio to use java to make apps. Is there a program like Android Studio or Visual Basics program where you write and test your java code? A: I was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37896256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Exporting Dart APIs to JavaScript, without a Dart VM I'd like to export a Dart API to JavaScript on browsers without a Dart VM. For example, given a class A: class A { String name; A(); A.withName(this.name); } I'd like to create a JavaScript object using the exported API with: var a = new A(); An answer t...
{ "language": "en", "url": "https://stackoverflow.com/questions/27323539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing a parameter to a $resource? I have a controller that that looks like this: (function() { angular .module("main") .controller("HomeCtrl", ["branchResource", "adalAuthenticationService", HomeCtrl]); function HomeCtrl(branchResource, adalService){ var vm = this; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48013532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is HashTable Delete O(1)? I understand why a HashTable Add is O(1) (however please correct me if I'm wrong): The item being added is always allocated to the first available spot in the backing array. I understand why a Lookup is O(n) (again, please correct me if I'm wrong): You need to walk through the backing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25194551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: R shiny datable with styleColorBar not aligning the data on the left hand side I have the following code and my goal is to add styleColorBar to the WGT column, aligning the yellow bars on the left hand side of the column. df = data.frame(WGT=c(10, 10, 15, 5, 30, 8, 2, 5, 1, 4, 10), STATE=c("NY","NJ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72221815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adjust parents height to fit relative child When in work earlier today I ran into a problem that I'll encounter tomorrow morning, so trying to prepare myself! Essentially, <div class="holder"> <div class="element-1"></div> <div class="element-2"> <img> </div> </div> both elements are displayed side by side ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47166964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: do we have map like collections in nodejs as in java? Do we have any colllections like map in nodejs. I would like to have a collection which can store my key value. Is there something like the same in nodejs A: Map was added to the ECMAScript standard library in ECMAScript 2015. This is not just "something like a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61745221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Mysql event schedule creation SQL error I'm trying to build a scheduled query but something is triggering an error, and it's not clear what's wrong. Event scheduling is a bit new to me but I have plenty others working, so there's some piece of information I'm missing: DELIMITER // CREATE EVENT gen_firstJoins ON ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12084600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display HTML with qTip2 I've created a minimized sponsor section with small (50x50 sized) thumbnails through the List Category Posts WordPress plug-in on my site (can be seen here). This plug-in simply displays posts from certain categories anywhere on your website. I now want to add a tooltip on hovering the image,...
{ "language": "en", "url": "https://stackoverflow.com/questions/15349081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSTableView does not refresh after update I'm stuck with a NSTable refresh problem.... I update a DetailViewController table and do the [self.managedObjectContext save:&error]; When I then hit the back button the table records are not changed even though I reload the table with a NSNotification setting. Now if I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22183636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Fix: Main function is Unreachable - Python 3.5 I'm trying to make a dead-simple bot according to this video: https://www.youtube.com/watch?v=5Jwd69MRYwg The main function that is supposed to be called when a part of the screen changes color simply is not being run at all. I've tried ending the program with "...
{ "language": "en", "url": "https://stackoverflow.com/questions/56693551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get an item from object in AsyncStorage saved? I save an object containing user data like email, username, etc. I used AsyncStorage to save them, and when I get them I just see a string when I log or use it in my textInput so how to handle this and just get a specific data like Just Email or Just Username I...
{ "language": "en", "url": "https://stackoverflow.com/questions/56449669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Regex To match string starting and ending with characters I need a regex to perform search in eclipse to match all strings that start with ${ and end with } but should not have pageContext between the two. For Example ${requestScope.user} ${sessionScope.user} should match but ${pageContext.request} should not After...
{ "language": "en", "url": "https://stackoverflow.com/questions/38721623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Generic recursive function in typescript I want to write generic recursive function like below function withChildren< T extends { id?: string; parentId?: string; }, TWithChild extends T & { children: TWithChild[]; } >(parentItem: T, items: T[]): TWithChild { const children = items.filter((ba) =...
{ "language": "en", "url": "https://stackoverflow.com/questions/74570237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure `I18n Ally` vscode plugin to read my locals? I am using i18next and react-i18next. i18n Ally v2.8.1. I have one locale file: /locales/en.json Structure of this file: { "pagetitle.home": "Home", "pagetitle.restore": "Restore", "pagetitle.register": "Register" } When hover on code i18n.t(...
{ "language": "en", "url": "https://stackoverflow.com/questions/72015511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PYTHON TKINTER > e = Entry() > e.bind('', function) I am not allowed to add images yet to question posts. Question below: My app currently uses a window that is coded in a class. My ultimate goal is to press enter while entering letters and numbers into an entry widget and press enter, then the function would update...
{ "language": "en", "url": "https://stackoverflow.com/questions/65535609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does -Namespace do in this script: Get-WmiObject WmiMonitorID -Namespace root\wmi I can't find what this does! Can someone breakdown each part of that script? Get-WmiObject WmiMonitorID -Namespace root\wmi A: Generally, "namespaces" are like directories ... meaning all WMIs (Windows Management Instrumentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/56675002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android library update cause build time error I have a pretty weird issue. As soon as I update my dependencies this error occures at build time. e: error: Cannot figure out how to save this field into database. You can consider adding a type converter for it. - mBagOfTags in androidx.lifecycle.ViewModel e: error: Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/61489491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compare current date with selected date in android with java I am taking current date using the code like below long millis=System.currentTimeMillis(); java.sql.Date date=new java.sql.Date(millis); And I am selecting date using CalendarView cal.setOnDateChangeListener(new OnDateChangeListener() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31759388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: mat-select panelOpen always false I have following template: <mat-select #select> <mat-option *ngFor="let option of optionsData"> {{ select.panelOpen ? option.viewValue : option.value }} </mat-option> </mat-select> And following test which fails: it('should populate options list with view va...
{ "language": "en", "url": "https://stackoverflow.com/questions/69298223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Optimize the rearranging of bits I have a core C# function that I am trying to speed up. Suggestions involving safe or unsafe code are equally welcome. Here is the method: public byte[] Interleave(uint[] vector) { var byteVector = new byte[BytesNeeded + 1]; // Extra byte needed when creating a BigInteger, for si...
{ "language": "en", "url": "https://stackoverflow.com/questions/33790773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to have a double border for a cell I want to display a double bordered like following image... The border has a dark color (magenta) and a light color (white) (not the actual colors). I have created a custom .xib file and a custom class extending UITableViewCell for my table view cells. self.tableView.separator...
{ "language": "en", "url": "https://stackoverflow.com/questions/10276703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get the selected items on Source Control History window when creating a Visual Studio Extension? I develop a Visual Studio extension. I attached a button to the Source Control History Window's Context Menu (the menu with 'changeset details', 'compare', etc.. on it) I need to get the selected History items fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/48061180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Select Data from 3 tables whereas multiple values should be comma separated I have following 3 tables: ....... ....... ………………………… ……………………………… ………………………… I run the following query SELECT Employee.EmployeeId, EmployeeName, ProjectName FROM Employee JOIN ProjEmp ON Employee.Employe...
{ "language": "en", "url": "https://stackoverflow.com/questions/23674844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: extracting the generic type of other props in interface How can I achieve something like this? interface Props { result: <type of function with a lot of generic> data: <type of one of the generics in the function above> } I've found a question that sounds similar here, but I'm such a newbie and not sure if th...
{ "language": "en", "url": "https://stackoverflow.com/questions/69969478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL Syntax Error With Stored Procedures I must be missing something simple because I can't figure out what is causing my script to fail. Below is the stored procedure I've written: CREATE PROCEDURE `Search_contacts`(IN `in_owner_id` INT, IN `in_first_name` VARCHAR(255)) IF in_first_name IS NOT NULL THEN ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67645327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mapping a many-to-two relationship in fluent-nhibernate I'm working with a node/link structure, but I'm having problems mapping it using fluent nhibernate. This is a simplification of the classes I'm using. class Node { public virtual IList Links { get; set; } } class Link { public virtual Node StartNode { get...
{ "language": "en", "url": "https://stackoverflow.com/questions/5943592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to feed in and retrieve state of LSTM in tensorflow C/ C++ I'd like to build and train a multi-layer LSTM model (stateIsTuple=True) in python, and then load and use it in C++. But I'm having a hard time figuring out how to feed and fetch states in C++, mainly because I don't have string names which I can referen...
{ "language": "en", "url": "https://stackoverflow.com/questions/42423589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where exactly are variables or identifiers stored in C++? According to my current knowledge variables(identifiers) point to object of a particular type(int,bool,etc..) that are objects in memory. Where and how are the the variables themselves store? Are they stored with the objects they point to or are they stored i...
{ "language": "en", "url": "https://stackoverflow.com/questions/58510801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google App Flexible Java Logging Not Working I have a simple servlet as below. And I'm unable to see any of System.out or log.info in the gcloud logs. I used gcloud app logs tail -s my-app-name. I only see logs for GET and favicon. Please help to enable logs in my google cloud app. @SuppressWarnings("serial") @WebSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/47851388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not getting expected return value from function So, I am getting a csv file from a url. I am then turning each row into an array of objects. const translation = { '緯度': 'latitude', '経度': 'longitude', '測定局コード': 'Measuring station code', '測定局名称': 'Bureau name', '所在地': 'location', '測定局種別': 'Meas...
{ "language": "en", "url": "https://stackoverflow.com/questions/73993070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the desired output by modifying string after removing / from string I have a string like this: 30/04/2018 o/p=300418 01/03/2017 o/p=010317 10/11/2018 o/p=101118 12/11/2123 o/p=121123 1/1/2018 o/p =010118 code tried but can't get the last one 1/1/2018 string a = "31/04/2018"; string b = a.Replace("/",...
{ "language": "en", "url": "https://stackoverflow.com/questions/49986322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to stop youtube player when resize screen under 768px? I would like to stop the youtube video only in mobile. I need to show it on desktop device, and hide it on mobile. Is possibile with javascript? I'm sorry but I don't know Javascript, I need a complete code. The Html code is: <div class="video-wrapper"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56809054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Frequency Distribution Histogram with Bins with Two Variables on the Y-axis in R I was given this dataframe, which is at the same time a frequency distribution, and was given a task of plotting a histogram of the age distribution of the whole population adding to the plot the male and female profile. What I need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/63797479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you use Python to fill out HTML forms that also have Javascript? I am making a python program that automatically enters information into a form on a website. I looked at a module called mechanize at first but then I realized that it didn't support javascript. Is there any way to take a piece of information a...
{ "language": "en", "url": "https://stackoverflow.com/questions/8610043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flex 4 Combo - using IME I am trying to use ime (for hiragana input) in a flex 4 spark combo. On creation complete I am setting the following. cbx_text.textInput.imeMode = IMEConversionMode.JAPANESE_HIRAGANA; And to check, tracing the following: trace(cbx_text.textInput.enableIME); returns true; trace(cbx_text.text...
{ "language": "en", "url": "https://stackoverflow.com/questions/5864296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Add Custom label in JSQViewMessageViewController iOS I want to add a custom label (with a time stamp) in each cell as well as an image (for warning message) in JSQMessageViewController. I am already using bottomlabel as well as toplabel. But I am unable to get the result I want. The image is a reference of what I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/33097256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can not connect to MySQL in a thread in python (fine on main thread) Problem in short: MySQLdb.connect() works on main thread, doesn't work in other threads. I have a class called Bot with some methods. something like this: class Bot(): def task1(): read_from_db() # some other work def task2(...
{ "language": "en", "url": "https://stackoverflow.com/questions/46200206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UML-Designer: Hide labels on associations My first post on stackoverflow, 'hope I do it the right way :-) I want to create a new entity-relationship-model of our new project. After a little bit of search I found UMLDesigner. Installation was easy and create this first classes also. But when I "paint" associations, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/67724253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Method retake in Java I'm developing a project in which i have a method to know if a JTextField is empty or not, but i was wondering if a way to implement that method just once and send several JTextFields components to check if they are empty or not exists, if so, could you please tell me how?, here's my sample co...
{ "language": "en", "url": "https://stackoverflow.com/questions/24114176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Fragments through App Bar/Toolbar using Navigation component I implemented a bottom navigation view which also handles multiple backstacks using Google's own workaround as given in the architecture components sample ,using the file private fun setupBottomNavigationBar() { val navGraphIds = listOf( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67265247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you change the timeout on a flash.net.netconnection? Timeout appears to be about 10 seconds. Can this be modified? A: I don't see a built-in way to do it. However, it's definitely possible to implement on your own. Just create a transaction class representing each call you make to a NetConnection instance. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1237065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Avoid to get "system.indexes" as a collection name in casbah I'm using casbah to find collection names in a mongodb-database val mongoClient = MongoClient() val db = mongoClient("db_name") val coll = db.collectionNames() It also gives 'system.indexes' because each mongo database has that one. Is there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/22031264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Emacs With GUI on mac os. Different keyboard layout key bindings I am using two version of emacs. One in terminal, and other from emacsformacosx.com. In terminal I can use non-English keyboard layout and everything fine. But emacs version with gui don't understands these commands. Why it happening? Why I can't just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24087904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the finding links from the post content I need some help in finding links in html code. function get_content_link( $content = false, $echo = false ){ if ( $content === false ) $content = get_the_content(); $content = preg_match_all('#[\'"]https?://([^/]+\.)*example.com/[^\'"]*[\'"]#siU',...
{ "language": "en", "url": "https://stackoverflow.com/questions/23179319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to reset counter results to zero by clicking button in Python I made a game with python 3.9.5, kivy 2.0.0rc4 and kivymd 0.104.2. I've made counter. It's adding one after "check" button is pressed. Game works smoothly but I want to reset this counter results to zero by clicking "back" button. Because, when I g...
{ "language": "en", "url": "https://stackoverflow.com/questions/68333177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ranking users with weekly date period and listing all first ranked users I have a table called coupons with schema below: CREATE TABLE "public"."coupons" ( "id" int4 NOT NULL, "suprise" bool NOT NULL DEFAULT false, "user_id" int4 NOT NULL, "start" timestamp NOT NULL, "win_price" numeric(8,2) NOT N...
{ "language": "en", "url": "https://stackoverflow.com/questions/31702597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: OData [JsonConverter] attribute serialization I am trying to use the default .Net serialization methods when serving OData via EntitySetController. When using: [DataContract] public class TestClassA { public int Id { get; set; } public string Stam { get; set; } [DataMember] public TestClassB TestClas...
{ "language": "en", "url": "https://stackoverflow.com/questions/21409277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pass properties to a method in another namespace I have defined some settings and plan on defining many more in my VS 2008 C# WPF project. I am aware that settings can be specified in the project through the settings designer at design time. I am also aware that the settings can be retrieved and set during ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15800919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way of Creating lnk file using javascript mslink.sh As per this link Is there a way of Creating lnk file using javascript I am trying to create a .lnk file. I would like to know how to set the property Start In, which is a folder location of the .lnk file and also the .lnk file that I am trying to creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/57909000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Brower cache issue for animated GIF loader image I am displaying animated GIF image as loader in the web page using below code. It's working fine. Loader image has animation which plays for 3 seconds and then stops and stays non-animated. <style> .content {display:none;} .loader { position: fixed; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65316799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }