text
stringlengths
15
59.8k
meta
dict
Q: Add URL to entire photo I am using a plugin called Distinctive Portfolio on my Wordpress site. On this page, when you hover over a photo, I simply want to get rid of the tooltip (which is garbled), icon (which is supposed to be a link image but doesn't appear) and make the entire photo clickable. Image of what cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/31895309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python dictionaries, key existence with fallback Is there any difference, gotcha or disadvantage between these approaches? foo = dict(key=u"") bar = foo.get('key', 'foobar') vs foo = dict(key=u"") bar = bool(foo['key']) or 'foobar' A: The first piece of code tries to get a value from foo associated with key, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11971752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: dotnet5 MVC Giving POST Data to API does not work I have done an udemy Tutorial for MVC in dotnet5 and try to implement my own project on this base. I have built a form with a body like this: <form id="genreForm" autocomplete="off" novalidate="novalidate"> <div class=""> Genre &nbsp; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69973553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove decimal Java variable I have a Spring Boot method in which I have a variable to calculate the vacation days (VACATION_DAYS_GEN_DAILY), the problem is that when I show them in the front it jumps with all the decimals. I need to know how I can remove those tell them. private static final double VACATION_DAYS_GE...
{ "language": "en", "url": "https://stackoverflow.com/questions/66125759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How many unique IDs can MongoDB generate? I am currently worried and confused about how the MongoDB's unique ids work and what are the limitations of this. Is the MongoDB's way of generating IDs is safe for generating millions or even billions of unique ids? And is there a possible scenario that the uid could be dup...
{ "language": "en", "url": "https://stackoverflow.com/questions/73436000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button does not respond in the media query I have got a button that redirects you to a hype-link i have tried so hard to debug but i don't seem to find the bugs.It works fine on the full size screen but it is not clickable on the media query i applied. 1. First i tried to comment out the hamburg menu because i copie...
{ "language": "en", "url": "https://stackoverflow.com/questions/65609716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unrecognized element exceptions after conversion to web application After converting my Web Site Project to a Web Application Project, some of my custom controls are missing, and I keep getting an get unrecognized element exceptions. I can't figure out what's going on. I've tried copying over the web.config and regi...
{ "language": "en", "url": "https://stackoverflow.com/questions/10456321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FFMPEG - RTSP: where does sprop-parameter-sets come from? I'm encoding .mp4 video files (h265) with ffmpeg to create RTSP stream, put it to rtsp-simple-server and then after aler9's restreamer the stream is available to watch. I can watch the result in VLC (adding network source rtsp://my.server/stream), but can't w...
{ "language": "en", "url": "https://stackoverflow.com/questions/73631222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unauthorized when calling Google GCM I trying to use Google GCM for sending push notifications. But get a WebException that says that the remote server returns 401 unautorized. I can't foung why it doen't work. Anyone that knows why it doesn't work? Here is my code: ServicePointManager.ServerCertificateV...
{ "language": "en", "url": "https://stackoverflow.com/questions/11431261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Chrome Extension run JavaScript on newtab I have a Chrome Extention I am working on that replaces the Google logo. I have successfully changed it on the main pages, but have noticed that the regular logo is still displayed in the newtab window. I need to find a way to execute some JavaScript to replace the source of...
{ "language": "en", "url": "https://stackoverflow.com/questions/48123475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Delete all Macros/vba when save as xls workbook I am using a procedure that creates a file and copies my workbook (xlsm) and saves as a xls workbook to the created file, and this is working well. I need to remove all Macros and vba when the save as is exacuted, i.e I need to remove the Macros/vba from the workbook b...
{ "language": "en", "url": "https://stackoverflow.com/questions/16398441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: it keeps saying my variable inside the function is not defined can someone help me with this def draw_card(): randomrd_drawn_int = random.randint(1,20) if card_drawn_int == [1,2,3,4,5,6,7,8,9,10,11,12]: card_drawn = ['Mechanized Infantry'] elif card_drawn_int == [13,14,15,16,17]: card_...
{ "language": "en", "url": "https://stackoverflow.com/questions/73534082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Asp:Gridview As Data Entry Is it possible to use an asp:gridview for data entry when the grid has no data source....then when a user clicks the submit button the data gets bound to a data table? I tried to open this project - but it fails every time. Maybe because lowest version of VS I have is 2017? https://ww...
{ "language": "en", "url": "https://stackoverflow.com/questions/48553268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How RowMapper can be an Anonymous Class I was reading through Spring in Action and found something like this could anyone explain how we have used RowMapper as an Anonymous class if it is an Interface as per RowMapper documentation. public Employee getEmployeeById(long id) { return jdbcTemplate.queryForObject...
{ "language": "en", "url": "https://stackoverflow.com/questions/18534021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DataGridView: Override Scrollbar Style Im using WinForms and the DataGridView. Is there a way to Style for the Scrollbars to a custom color/appearance. I have been looking for a Flat appearance.
{ "language": "en", "url": "https://stackoverflow.com/questions/13345268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I clear an "if" condition I'm trying to figure out how to clear an "if" condition and how to fix the result = print(x) part of my code. I'm trying to create a little search code based on the variable data, but I can't figure a few things out: import time def start(): data = ["Lucas_Miguel", "João_Batista...
{ "language": "en", "url": "https://stackoverflow.com/questions/72849365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: R: How to download PDF using rvest while in authentificated session I am trying to scrape PDFs from a newspaper archive that uses password protection, using rvest. The problem is that while I can log in in a session, I couldn't find a way to use the download.file() command within the session. The website is somewhat...
{ "language": "en", "url": "https://stackoverflow.com/questions/70245048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Internet Explorer 6 Z-Index please take a look at the following website: http://www.solidcamxpress.co.uk/ If you look at it in IE6 (try IE Tester if your running Vista or 7) you will notice that the dark grey masthead appears behind part of the panel, and the top of the main image is chopped off. I'm guessing this i...
{ "language": "en", "url": "https://stackoverflow.com/questions/3584126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Word Spacing Query I have a word spacing issue which I cannot seem to resolve. The web page is www.c5d.co.uk/captaintwo.php The word spacing under the top images look ridiculous. Yet as far as I can see, the CSS is the same. What am I missing ? If I put a /p tag after Wrigley it works fine but fails validation as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/15128219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Magento dropdown group selection customer registration I am trying to make a group selection dropdown on the Magento customer registration page work. I have done all of the following: Inserted the following code into template/persistent/customer/form/register.phtml: <label for="group_id" style='margin-top:15px;'><?p...
{ "language": "en", "url": "https://stackoverflow.com/questions/16074835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Thread after Service is destroyed I have an android Service called MyService. I have an Activity with two buttons (start service/stop service). When user clicks the button "start service", MyService is started using startService(new Intent(this, MyService.class)); When user clicks the button "stop service", MyServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6079405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RegEx - MatchCollection get subMatches I have a text file like this: Start <Not Present> Start <Word> End Start <Word> End Start <Antoher> End End I have to write a regEx that provide as result only "Start...End" blocks that contains <Word>. I've tried with something like this: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12371296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can a System.Web.Http endpoint be an IObservable? Can a System.Web.Http endpoint be an IObservable? Can it be done while still using Attributes such as Route and AcceptVerbs? Basically, I want to make the following code example into an IObservable stream so I'm subscribing and handling it via reactive extensions: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47131066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I display some columns from a table? I have a table where I store messages. I would like to display the columns from the table. So I need a while to make it. But I have an error like: Notice: Undefined index: subject in .. I hope someone can help me, thanks a lot <?php //Proceso de conexión ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14115961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLDeveloper sometimes suddenly doesn't open Worksheet on connect I'm using SQLDeveloper since about > 12 years (currently 20.2) and have to deal with about 70 different databases. I have activated under ( Properties / Database / Worksheet) "Open a Worksheet on connect". So, usually whenever I open a new session via...
{ "language": "en", "url": "https://stackoverflow.com/questions/70424616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to find character from linked list pointer character So I need to delete a character from a linked list. However, the normal way (data->c==val) does not seem to work here. This is my struct: struct ll { char *c = new char; ll *prev; ll *next; }; This is my character pointer that I need to find: char...
{ "language": "en", "url": "https://stackoverflow.com/questions/49448831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery two elements, toggles on focus/click ... works but lags This works as I want it to http://jsfiddle.net/nosfan1019/gvQYh/ but there is a noticeable delay if the focus/click changes to a sibling element. Any ideas? A: try this: The focus event is sent to an element when it gains focus. This event is implici...
{ "language": "en", "url": "https://stackoverflow.com/questions/11404850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lambda http trigger I created a lambda function in AWS. I want to trigger it by a API Gateway/http call. after creating the http trigger i can see the following: but when I try to use a GET/POST calls to this address I receive "internal server error". I checked the logs and I see the following: The IAM role config...
{ "language": "en", "url": "https://stackoverflow.com/questions/65479142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Animate Progress Bar with start time and end time in JS/Jquery I want to animate a progress bar with js/jquery. I have the start time like this: "2020-02-21 05:38:33" and the end time: "2020-02-21 05:41:43". I think this could maybe be calculated with the current time and the start and end time. A: I created a samp...
{ "language": "en", "url": "https://stackoverflow.com/questions/60332338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Geocoder goes good in an Activity and in another returns null always I am working in a app with maps, in the first activity I have a NavigationDrawer with differents fragments, in one of them I get the last Location every 10 seconds and with it set a TextView with the address of that location. Everything was going p...
{ "language": "en", "url": "https://stackoverflow.com/questions/45368377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error while implementing facebook-sdk-swift, app crashes in AppDelegate When I add SDKApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions) to application(_, didFinishLaunchingWithOptions:) method in AppDelegate, the app crashes with error: Terminating app due to uncaugh...
{ "language": "en", "url": "https://stackoverflow.com/questions/41414591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is spring data neo4j making large number of http calls to get related nodes Why is SDN making a large number of http calls to fetch the related graph having defined @Fetch attribute on the fields. Seems like no eager loading. A: For historic reasons SDN up to 3.2.2 heavily uses core Neo4j API calls. While this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28811414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Tika to search files with Solr and Drupal I am using Apache Tika with Solr to search nodes with attachments (zips, pdfs, etc), in the DB we have indexed nodes with files. looks as if it all is configured correct with Solr (Tika too) but the results are empty. I am only getting results for one PDF file that I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/23920039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can host buffer be reused after returning from cuMemcpyHtoDAsync? The documentation does not say that explicitly so I am assuming the buffer cannot be reused. But want to make sure if that is the correct assumption. A: It is permissible to overwrite the contents of a host buffer which you have used as an argument t...
{ "language": "en", "url": "https://stackoverflow.com/questions/42403719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I see what files Git is going to push to the server in Xcode? I have Git setup on an Xcode project and I make many small local commits before I push them to the server. However, I am not able to tell easily what all of the file changes are if I would do a git push. I know that you can look in the organizer a...
{ "language": "en", "url": "https://stackoverflow.com/questions/16565540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Failed exec.Command with fileName contain two spaces I want to open the file contain two spaces with explorer from Go's exec.Command(). This command works as expected from Windows PowerShell. Explorer "file://C:\Users\1. Sample\2. Sample2" And Using Go's exec.Command() works with fileName contain space like this. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36766174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create image grid - bootstrap4 I'm trying to create an image grid with that little space between columns equal to the image below: The problem is that I can not make the right margin(red line), image below shows the problem: JSfiddle: https://jsfiddle.net/castordida/0zy7qd5m/ <div class="container gridhome mt-5...
{ "language": "en", "url": "https://stackoverflow.com/questions/56827978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring Social Facebook error I'm using Spring Social Facebook plugin; I have a very simple scenario: I want to display, on my web page, my user account Feeds; so far I have built a very simple JUnit test in order to list my FB wall posts but I'm facing some issues with Spring Social integration I'm using spring 4.0....
{ "language": "en", "url": "https://stackoverflow.com/questions/25032514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I sum a calculation between two columns in Mysql? What I would like to do is the following: SELECT SUM(ABS(`number_x` - `number_y`)) AS `total_difference` FROM `table` Where the table is as follow: id | number_x | number_y 1 | 4 | 2 2 | 3 | 2 3 | 2 | 4 So the answer sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/12954024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript loop create a row every 4 elements I can't do my function, could someone help me, thank you. I have a json file with a lot of entries, I create html in js. I would like to create a row every 4 elements. I'm really sorry I can't format my code well function createUserList(usersList) { usersList.forEac...
{ "language": "en", "url": "https://stackoverflow.com/questions/73334702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: View can't reuse for multiple textfiled's left View I'm facing the problem when I create a 1 padding view for 3 different UITextField Left view. Add into 3 different UITextField as left view. for 1 TextFeild its output fine but for all TextFeild getting blank scree. code is here. let paddingView = UIView(frame: CG...
{ "language": "en", "url": "https://stackoverflow.com/questions/39038709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting Selenium WebDriver with Perl I am creating a sample script using perl for Selenium WebDriver. I have downloaded selenium-server-standalone-2.32.0.jar file and I am executing following code: use Selenium::Remote::Driver; use Test::More qw( no_plan ) ; my $driver = new Selenium::Remote::Driver(); $driver->get...
{ "language": "en", "url": "https://stackoverflow.com/questions/16565393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regular Expression check length I have been trying to make a regular expression for my mobile phones but I can't seem to get it to work: Here are the conditions for my regular expression: * *must start with 09 *total length is 9 Here is my regular expression: [0]{1}[9]{1}[0-9]{7} Valid mobile number 091123456 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37792664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot assign custom radial for scipy rbf imported in julia through pycall? I have imported scipy.interpolate.Rbf from python to Julia 1.6 using PyCall. It works, but when I am trying to assign the radial function value to multiquadric it doesn't allow me to do so, due to syntax issue. For example: using PyCall inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/67731789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jackson for beginners in Eclipse let me just say that I'm still learning Java and the subtleties of Eclipse, and I come to you because I am unsure how to properly phrase my question to Google or to StackOverflow's search engine. Apologies if its infinitely trivial. I am trying to understand the process of converting...
{ "language": "en", "url": "https://stackoverflow.com/questions/21633677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: asp.net ajax 4.0 with MVC -externalize templates i have created project referring to http://weblogs.asp.net/johnkatsiotis/archive/2008/07/23/asp-net-ajax-4-0-template-example.aspx this example . now i want to separate the" some data....." template to another page. with the "" remains in the same aspx page. PROBLEM :...
{ "language": "en", "url": "https://stackoverflow.com/questions/1801900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between the = operator and the reserved word by when assigning a remeber in jetpack compose? I would like to know the difference between: var textFieldState = remember { mutableStateOf("") } and var textFieldState by remember { mutableStateOf("") } Is there any advantage over the oth...
{ "language": "en", "url": "https://stackoverflow.com/questions/69699761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Given a list of random hexadecimal colors, sort them based on "likeness" For example, this list of hexadecimal values: { "colors" : [{"hex" : "#fe4670"}, {"hex" : "#5641bc"}, {"hex" : "#d53fc3"}, {"hex" : "#6b5e09"}, {"hex" : "#4dd685"}, {"hex" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22973926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript: DOM event not happening in setTimeout So this my JS code for (var i=0; i<500; i++) { var compare = cryptoSName[i].innerHTML if (compare == crypto) { document.getElementById("cryptotable" + i).style.color = "#00000" document.getElementById('price' + i).innerHTML= "$" + (tradeMsg.message.msg.pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/49641665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Script Automatic Download new file added in FTP Server I'm currently using a Raspberry Pi for an automatic video player I want to ask, whether is it possible or not a PHP program that can automatically (say for each day) download new files added in FTP Server. i.e. I have an FTP Server that contains Video Files...
{ "language": "en", "url": "https://stackoverflow.com/questions/22788987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding subscripts to tick labels (ggplot2) I need to include a subscript 2 in my tick labels, but I cannot seem to make it work. Here is the most recent code that I have tried out: All the relevant code As you can see, the subscript turns out fine when pasting the vector. The ggplot2 code returns the following plot:...
{ "language": "en", "url": "https://stackoverflow.com/questions/69231833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Heroku ArgumentError ( is not a recognized provider) I am trying to upload profile pictures to Google Cloud using Paperclip and Fog gems. so far this what I have In my Gemfile gem "paperclip", git: "git://github.com/thoughtbot/paperclip.git" gem 'fog' In my user model has_attached_file :avatar, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33111528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ regexp for not preceded by backslash and preceded by backslash I can only find negative lookbehind for this , something like (?<!\\). But this won't compile in c++ and flex. It seems like both regex.h nor flex support this? I am trying to implement a shell which has to get treat special char like >, < of | as n...
{ "language": "en", "url": "https://stackoverflow.com/questions/15254052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I want to add and use function in laravel I want to add a new function called Age to calculate age of a person using his birthday. So I worked with Resource Controller (RESTFUL). I don't know how to add this function and how to use it in views. My function is : public function getBirthday($date){ return (int) ((...
{ "language": "en", "url": "https://stackoverflow.com/questions/31495939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to avoid The SFSafariViewController's parent view controller was dismissed. issue? I have UINavigationController as a RootViewController. My app goes to FB App and returns to through this ViewController. But It does not drop the completion handler of Facebook SDK. But I am taking FBSDKError as in the title. How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40959052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PostgreSQL 9.5 IF-THEN-ELSE inside FUNCTION not available? My problem While trying to CREATE a FUNCTION in my PostgreSQL database, version 9.5, I get the following error: ERROR: syntax error at or near "IF" LINE 3: IF strpos(trem_outcome, 'VALIDATED') = 0 THEN Here's the FUNCTION I'm talking about: CREATE OR REP...
{ "language": "en", "url": "https://stackoverflow.com/questions/35671728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cocoa - getting privileges within the application I know how to get the right privileges in order to run an external executable by using the Security framework. This time I want to avoid having a helper tool. So how can I acquire privileges to run my tasks within the application, and not with a helper tool? A: I so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7086087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delegated event handler for a set of dynamic elements My JS is as follows: $(document).ready(function(){ $('#data1').change(function(){ title = $('#title1').val(); url = $('#url1').val(); $.post('library/edit.php',{title:title, url:url},function(res){ alert ("updated !"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18097955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Matplotlib: Lines on Top of Bars, Legend on the Left, No Splines I'm having trouble tweaking the graph below. Here's what the dataframe looks like: Year Some All Ratio 0 2016 9 157 0.057325 1 2017 13 189 0.068783 2 2018 21 216 0.097222 3 2019 18 190 0.094737 4 2020 28 284 0....
{ "language": "en", "url": "https://stackoverflow.com/questions/59837199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it required to map account table while doing login process I have two table user_details user_id | int(11) | role_id | tinyint(4) | account_id | int(11) | username | varchar(200...
{ "language": "en", "url": "https://stackoverflow.com/questions/30658390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS and R markdown (bookdown). How can I use a CSS to build css boxes without changing the overall template? Ok, I assume this can be a very naive question, but I did not find any helpful solution. I have an "R markdown" for teaching statistics in which I use a CSS file to customize some appearance for all my questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/66036254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: VSCode copy and paste 1 line without newline character being prepended In VScode when you copy a line of text and then put your cursor in the middle of quotes and hit Ctrl+V it pastes the new line above where you intended it to go. In IntelliJ and PyCharm when you copy a line of code with Ctrl+C without selecting a...
{ "language": "en", "url": "https://stackoverflow.com/questions/53791340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Excel formatting DD-MMM-YYYY, must be in this format I have some data below. Please see below. I need excel to put these dates in this format exactly DD-MMM-YYYY. MMM must be in all caps as well. Like JUN not Jun. Also, for DD, it cannot be 3, it must be 03. Excel date formats that are in excel do not give me this o...
{ "language": "en", "url": "https://stackoverflow.com/questions/60082179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ionic cordova build android I am trying to build my ionic 2 project using the command ionic cordova build android but I cant successfully build it. Hope you can help me with this problem, Thanks in advance. Here is the error: > cordova build android × Running command - failed! [ERROR] Cordova encountered an error. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46132872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Could'nt get data from database with limit in mongoose I want to get data from database with limit like this but dont work: topic.find({}).limit(10).exec(function(err,topic){topic2.find({}).limit(5).exec(function(err,topic2){console.log(topic+topic2)}})) But if i try with this(only change the limit of outside and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/49565039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Link Twitter Account with Passportjs after local user auth is completed with passportjs I just want to link twitter account after there is still user. Firstly i have a router.js like that // GET Registration Page router.get('/signup', function(req, res){ res.render('register',{noty: req.flash('message')}); }); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34495417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Swift 3 draw a polyline with Google Maps during run I have found the below for drawing a path during a run/walk with Apple Maps extension NewRunViewController: MKMapViewDelegate { func mapView(mapView: MKMapView!, rendererForOverlay overlay: MKOverlay!) -> MKOverlayRenderer! { if !overlay.isKindOfClass(MKPolyl...
{ "language": "en", "url": "https://stackoverflow.com/questions/41354890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Model location of LUIS container service I am following this instruction video from Microsoft Azure team. docker run has to come with where the model & data is located. Following the guide in the video, I download the 'exported data' from LUIS, say under azure-luis/input then, I run the following command docker r...
{ "language": "en", "url": "https://stackoverflow.com/questions/54754921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jmeter - pass command-line parameter that contains hyphen I run my jmeter tests via bat file %JMETER_HOME%\jmeter -n -t %RUNNER%\My.jmx -Jusers=1 -Jloop=1 etc. But today I had to add some more parameters, and one of them was -Jclient_id=450a-b58d-204ebfe22d1e I've started getting error "Java SE has stopped work...
{ "language": "en", "url": "https://stackoverflow.com/questions/36356792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace word with special characters from string in Java I am writing a method which should replace all words which matches with ones from the list with '****' characters. So far I have code which works but all special characters are ignored. I have tried with "\\W" in my expression but looks like I didn't use it w...
{ "language": "en", "url": "https://stackoverflow.com/questions/27782438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eliminate each duplicate value from columns I have a table including some rows. If the row in its column is duplicate value, I don't want it. Let me exemplify. ColA ColB ColC ColD 1 X Q 9 2 Y W 9 3 Z E 9 3 X R 9 3 Y T null 2 Z null null I expect (ordering...
{ "language": "en", "url": "https://stackoverflow.com/questions/68812384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unbuffered read from stdin in python I'm writing a python script that can read input through a pipe from another command like so batch_job | myparser My script myparser processes the output of batch_job and write to its own stdout. My problem is that I want to see the output immediately (the output of batch_job i...
{ "language": "en", "url": "https://stackoverflow.com/questions/33305131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to focus on one Entry when Using TextChange for multiple entries I have 2 entries. When I tap anything on entry 1 I would like to get "Yess" on entry 2 and when I type anything on entry 2 I would like to get "Noo" The problem: When I tap on entry 1, entry 2 change and get the value "Noo" but entry 1 change too...
{ "language": "en", "url": "https://stackoverflow.com/questions/69370031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to search for a function in namespaces not 'required' or 'used' in Clojure? How can I search for a function in namespaces not 'required' or 'used' in a Clojure source file? Basically what I'd like to do is have source files: main.clj, a.clj, b.clj, c.clj all compiled together but not directly import / require ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14266910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get ProcessGroup from processor Is there an API to get a ProcessGroup by id from a custom processor or an ExecuteScript processor? I know that it is possible by using the REST-API, but for security reasons, I don't have the chance to use the credentials to invoke the API from a service. Regards A: If you use a In...
{ "language": "en", "url": "https://stackoverflow.com/questions/55288989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to slice a value which is inside and obj and pass to next metod which uses it as an object I have a specific situation where I have a method that getting an object as follow async ({ locale }, ctx) => { const lang = await LanguageService(ctx).getLanguage({ locale, }); return lang.direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/69483368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Group by array contents I have a List<Tuple<string,long,byte[]>> and I want to group by the contents of the byte array. Is there a simple way to do this with GroupBy and a lambda? Ideally, I want to do this without creating an intermediate data structure (like a string to hold the elements of the array). A: You can...
{ "language": "en", "url": "https://stackoverflow.com/questions/15841178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show a message when collection view is empty I`m trying to show a message only when my collection view is empty. Well, I try set return 1 when my if is true but when I have this, it only show one item in my collection view (even if I had more). And when I return this (code bellow) it shows all the items I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/43772984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: php menu generator with multidimensial array I need help with my array. For several hours trying to find a solution but I can not cope. I tried to do it in such a way, however, the code turned out to be completely useless. private function findKey($array, $keySearch,$app,$klucz='') { foreach ($array as $key => $...
{ "language": "en", "url": "https://stackoverflow.com/questions/42891769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clean tuple to string I have a variable p which print(p) = ('180849', '104735') and I want it to be p = 180849 104735 So, basically get rid off ( and ' and , Any help with that please? A: You can directly unpack the elements to print function. By default print function insert space between the values(this can be co...
{ "language": "en", "url": "https://stackoverflow.com/questions/69961323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Access listbox from another class? I made a class so when the user selects item from listbox it uninstalls that item, except the problem is I can't access the list box. I tried public aswell, but in the code of form1.cs the only thing clostest to that list box is keep in mind name of listbox is ProgramslistBox Ok g...
{ "language": "en", "url": "https://stackoverflow.com/questions/37110526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Obtaining destination ip address in Powershell (Invoke-WebRequest) I'm writing script for automation of TCP connections and I have a question. Is there an option to get destination IP address, when you call (for example): Invoke-WebRequest google.com Problem is, when I call this command, destination IP address is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/44754928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Joi Schema should contain one or another chema I'm looking into using Joi for api validation. So it must be like one or another chema Joi.object({ email: Joi.string().required(), notes: Joi.object({ title: Joi.string().required(), details: Joi.string().required...
{ "language": "en", "url": "https://stackoverflow.com/questions/73649772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I add the class name of an object as the index of the serializated json in JMSSerialize I have a simple class like: class Car { public doors; public color; public seats; } If I serialize a new object with: $this->get('jms_serializer')->serialize($newCar, 'json'); I will get something like: {doo...
{ "language": "en", "url": "https://stackoverflow.com/questions/37862708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to deploy a python webapp with dependencies using virtualenv? I'm looking for a way to automate deployment of web applications written in Python to a server. I would like to use virtualenv to have a clean environment for this application. However, I am wondering how to manage dependencies when deploying to the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/3211080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: javafx shape3d texturing: Don't strectch the image I'm working now with javafx to build a maze and I want the walls to be textured with some seamless texture (that can be repeated). The maze is randomly generated so I don't know the size of any walls. I started by using a PhongMaterial with the desired texture, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49130485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bit shifting 16 bit from left to right C# I have an array of 8 bit with the following representation. Data[i] = 192=11000000, data[i+1]= 85=01010101, i need to transform the represenatation into 16bit array where newArr[i] =343=101010111. The same numbers only shifted to right. My first idea was to use the field i...
{ "language": "en", "url": "https://stackoverflow.com/questions/16379483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does the connection manager discard unconsumed connection? I am trying to debug a connection leak issue in my app where the connection manager is using more connections than I would have wanted. One lead I have is the following: According to Apache HttpClient quick start, if response content is not fully consume...
{ "language": "en", "url": "https://stackoverflow.com/questions/71215585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading data from a BLE smartband failed with app inventor I have a smartband (DS-D6) that communicates values through AT commands with the use of two UUIDs (0000190b-0000-1000-8000-00805f9b34fb and 0000190a-0000-1000-8000-00805f9b34fb). I confirmed these two UUIDs are working using a Serial BLE Terminal App. Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/61851049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect faces in python with MTCNN, Opencv and multithreading I'm here because I'm really stuck on my project. At the beginning of my project, it was just a simple face detection that worked pretty well using Python, Opencv, and the MTCNN model. The problem was that the program was pretty slow and I tried to make it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75374417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Insert Iterators when reading from file can you use Insert Iterators while reading from a file to put the data into STL container? for example: FILE *stream; fread(back_inserter(std::list), sizeof(int), 1, stream); A: C++ streams are not compatible with C stdio streams. In other words, you can't use C++ ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/3795326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the most value from another column I want to get data historical and the production. My stored procedure is as follows: ALTER PROCEDURE [dbo].[pCaRptACInactivas]( @CodAsesor VARCHAR(15), @CodOficina VARCHAR(4)) AS SET NOCOUNT ON DECLARE @CodArbolCon...
{ "language": "es", "url": "https://stackoverflow.com/questions/7680629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pair a Windows 10 phone with PC for debugging? I get a code on my phone - but where do I enter it? I tried connecting by usb, entering the wifi url into my PC's browser ("insecure connection"),... A: Edited (May2016): With later Win10 mobile its now possible to debug a phone running Windows 10 Mobile via WIF...
{ "language": "en", "url": "https://stackoverflow.com/questions/36730193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Combo box automatically assigns a value, when not wanted. C# Windows Forms I'm having this issue with ComboBox controls. I select a value for the combo box (Already pre-setted) and it AUTOMATICALLY assigns the same value to another ComboBox next to it. Despite their data source is the same List, I want to select two...
{ "language": "en", "url": "https://stackoverflow.com/questions/53405094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xamarin form: How display activityindicator instantly while in async task? public async Task ShowIndicator(Func<Task> action) { actionEnabled = false; IndicatorVisibility = true; await Task.Delay(5000); await action.Invoke(); IndicatorVisibility = false; action...
{ "language": "en", "url": "https://stackoverflow.com/questions/48758553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get Join table data as a result of ActiveRecord:Relation I am using rails 5 and oracle as a database. My query look like this.. DefaultConfig.where("role_id = ?","1001").joins(:config_param) Now i want to get the result object as a config_param object not a default_config.. is it possible to do? Thanks for any help...
{ "language": "en", "url": "https://stackoverflow.com/questions/44964713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XAML adding text based on a trigger <dxg:GridControl Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding Notes}" AutoGenerateColumns="None" ColumnGeneratorTemplateSelector="{StaticResource ColumnTemplateSelector}" dependencyProperties:BestFitColumn.IsEnabled="True" SelectedItem="{Binding SelectedR...
{ "language": "en", "url": "https://stackoverflow.com/questions/42835107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Login Invalid Key Hash After First Login I have added the key hash logged by this call (plus an equals sign) to the settings for my app on the Facebook developer site. Log.d("MyApp", FacebookSdk.getApplicationSignature(this)); I can repeat the following steps indefinitely. Facebook login works the first tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/39236593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot insert the value NULL into column 'X', table 'DB139.dbo.Y'; column does not allow nulls. INSERT fails I'm working on a SQL Server. I have created the following table: CREATE TABLE Payment( Cust_ID CHAR(4), Credit_Card_Number CHAR(16), Payment_Number INTEGER, Date ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74634066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ThreadStart, field initializer cannot reference the non-static field I am trying to use Threads in my app but i get a error. I searched a solution at MSDN and other forums but i didn't get it. public class ClickingThread { private const int MOUSEEVENTF_LEFTDOWN = 0x0002; private const int MOUSEEV...
{ "language": "en", "url": "https://stackoverflow.com/questions/32863440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }