text
stringlengths
15
59.8k
meta
dict
Q: how to manage file for import in Python? I want to get a common library from several files. In order to reduce the amount of code, I want to create and manage a separate file for import. Will it be possible? import_lib.py from django.shortcuts import render, get_object_or_404 other_1.py import import_lib render() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73836470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paypal Callback url for android Am calling PayPal Here APpp from my application using the following url "paypalhere://takePayment/?returnUrl={{returnUrl}}&invoice=%7B%22merchantEmail%22%3A%22%22,%22payerEmail%22%3A%22spotireddy-biz%40paypal.com%22,%22itemList%22%3A%7B%22item%22%3A%5B%7B%22name%22%3A%22{{name}}%22,%2...
{ "language": "en", "url": "https://stackoverflow.com/questions/19043380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to efficiently decode h264 encoded rtsp stream and use it to opencv-python at 30 FPS I'm just doing yolo object detection with opencv code snippet: cap = cv2.VideoCapture("rtsp://admin:asv@123@192.168.1.24:554/main?tcp", cv2.CAP_FFMPEG) show = True while show: ref, img = cap.read() img = cv2.resize(img...
{ "language": "en", "url": "https://stackoverflow.com/questions/72447392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Simple Chechlist PHP Application Help needed I am building a simple PHP checklist application which takes sentences as input which are stored in MYSQL database then the list is echoed out with remove buttons in front of each list item such as: * *1) Do breakfast [remove button] *2) Go to College [remove button]...
{ "language": "en", "url": "https://stackoverflow.com/questions/14413597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a onselect event for non-form elements? Say I want to hide a span when the user highlights a bit of text containing that span, with the intention of copying that text on to his clipboard. For example: <p>The dragon <span class="tooltip">a large, mythical beast</span> belched fire at St. George.</p> I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3326914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I draw a triangle? I know how to draw a rectangle and circles and ect with g.drawRect or g.drawOval. But there is no g.drawtriangle. Is there a way to draw a triangle with out me having to draw it out each side of the triangle? A: You may use Graphics.drawPolygon(int[], int[], int) where the first int[] is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/29447994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: limit the max value for an input in haml I'm pretty new in coding with RoR and I'm using Haml, and since I'm doing a school project I decided to give it a try. The thing is that I encountered an issue. There's an attribute in my object producto, req_quantity which is the quantity of a certain product a client reques...
{ "language": "en", "url": "https://stackoverflow.com/questions/46571083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run-android a shoutem clone project? When I react-native run-android a shoutem clone project, first it was showing a development server error code 500..I changed the react-native and babel preset for react native from package.json. And now there is no error but the app crashes right after build. What can I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/55607893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python os.listdir and path with escape character I have a string variable that I have read from a file which is a path that contains an escape character i.e. dir="...Google\\ Drive" I would like to then list all the files and directories in that path with os.listdir i.e. os.listdir(dir) But I get this error (beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/31064190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Charts in Ionic 2 I need to create charts in an app, which uses Ionic 2. I searched the web but found some very scarce models. And also http://www.chartjs.org, but his documentation is very poor. I mostly need donut charts, with click events. Or is it possible for me to have a click event on the chartjs donut chart?...
{ "language": "en", "url": "https://stackoverflow.com/questions/46303615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: View Screen And Print Screen is Diverent on Laravel PHP This is The Problem Picture View Screen Print Screen Why Screen is Diverent, I want All Screen is Same, I search for tutorial and not working on me I create this for my report Invoice This is The View Code all in one page <!DOCTYPE html> <html lang="en"> <head...
{ "language": "en", "url": "https://stackoverflow.com/questions/60261247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hex number to area I am using VB.net 2012 and I am trying to convert a HEX number to a checkbox. I have 96 check boxes on a form. d1, d2, d3.. d96 (that is the name of the checkbox's). I have a HEX number that I need to convert and tick the check box based on it's value. For Example: If the HEX value equals 0x5 then...
{ "language": "en", "url": "https://stackoverflow.com/questions/36494152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to restore my System Python 2.6 on OS X 10.6.8 I was messing around with Python in Library/Frameworks as well as System/Library/Frameworks. I deleted System/Library/Frameworks/Python.framework/Version/2.6. Then I copied in the equivalent directory from Library/Frameworks... Will that break my OSX? If so, is ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/8961126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the jQuery autocomplete widget in SharePoint search box I implemented the autocomplete widget for jQuery for my SharePoint 2010 text box. But I see that the suggestion terms appearing with a Bullet point as shown below. Can anyone tell how can it be averted. Thanks in advance. A: That's something you can fix...
{ "language": "en", "url": "https://stackoverflow.com/questions/8284669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: phpmailer eml file with rfc/822 not opening on outlook but open on gmail I am implementing some code to send an eml file with phpmailer. When I'm using mime_type for eml attachements of rfc/822, it's opening in Gmail but not opening in Outlook. If I change mime_type to application/octet-stream, it's opening in Outlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/55473956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Skobbler Map : FreeDrive function integration in other app In skobbler map, Which frameworks or files should be imported in our app in order to use 'freedrive' function of NavigationUI? thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/38561274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Image.open can't handle random selected image-variable Python This is my first Python-script/program so I have googled everything and starting to get the grip a little. I am trying to make a program that randomly picks a picture in a directory and display it as a label. Everything goes well except one thing. I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12030905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: saml2 bearer oAuth : audience verification failed I try to implement a SSO mechanism with SAM2 bearer oAuth over WSO2. 1. User call WebAPP1 2. WebAPP1 (SP) redirect the user on the IDP login Page (OpenAM) 3. WebAPP1 (SP) call oAuth server (WSO2 IS or AM) with SAML2 to get oAuth token At this step WSO2 IS (or AM) fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/20275542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disable Path MTU discovery on per socket on OS X Is there a way to disable Path MTU discovery on per socket basis on OS X? This is how to set don't fragment bit on socket on Linux But IP_MTU_DISCOVER is not recognized on OS X. Only recognized options as per netinet/in.h on OS X are: /* * Options for use with [gs]et...
{ "language": "en", "url": "https://stackoverflow.com/questions/36230027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Visual Studio 2010 script debugger doesn't work for me I just installed VS 2010 Beta 2 and wanted to play with an ASP.NET MVC 2 project. I simply added some script (alert('hello');) into the Home controller's index.aspx view, and I can see it executing. When I try to set a breakpoint, however, it never gets hit. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1625903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Liskov substitution principle VS Interface Segregation principle I have some troubles with understanding these two principles. This is a bit long-read-question, so be patient. Lets assume that we have a class abstract class Shape { abstract void onDraw(); } and interface interface SideCountable { int getSide...
{ "language": "en", "url": "https://stackoverflow.com/questions/59372197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: EBNF: one or more and zero or more, in no particular order In an EBNF grammar I have two tokens shape and attr. How would I express that shape should occur one or more times and attr zero or more times, but in no particular order, i.e.: shape1 shape2 shape3 attr1 shape1 shape1 attr1 shape1 shape2 attr1 shape3 Would...
{ "language": "en", "url": "https://stackoverflow.com/questions/75179115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML string to JSON javascript I have a xml string which i want to convert in JSON string var txt = "<?xml version='1.0' encoding='UTF-8' ?> <result> <info> <id>1</id> <type>HL</type> <ven>DEMOMA</ven> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36929478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Buffer implementing io.WriterAt in go I'm using the aws-sdk to download a file from an s3 bucket. The S3 download function want's something that implements io.WriterAt however bytes.Buffer doesn't implement that. Right now I'm creating a file which implements io.WriterAt but I'd like something in memory. A: For cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/46019484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Override Function In WordPress Plugin Widget I need to override a setting in a widget included in a WordPress plugin (the plugin is woocommerce). I've found in the plugin's widget code where I need to make the change (for the product_categories widget, I want to add a $cat_args['depth'] = 1; so that I only see the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/9395154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to constructor in constructor I need add data in array Person. But program is not bug . I do not know how to constructor with type class in constructor . public Person[] personData = { new Person {PersonId = 1, FirstName = "Adam", LastName ="Freeman", HomeAddress = { City = "SoKa" , Country = "Look...
{ "language": "en", "url": "https://stackoverflow.com/questions/65982335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Trigger Outlook Mail Body using VBA In VBA scripting ,I am trying to write a Sub Function which has the following signature Sub(taskName As String , myGroup As String, myFile As String ,myPer As String, RelatedTasks() As String ) Dim olApp As Outlook.Application Dim m As Outlook.MailItem Set olApp = New Outl...
{ "language": "en", "url": "https://stackoverflow.com/questions/50118988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHPUnit - Problem generating Code Coverage report with Zend Framework application I have been searching for an answer to this problem for hours in Google and various other sites with no luck. I have created some unit tests for my Zend Framework project using PHPUnit. All goes well with the tests up until the point o...
{ "language": "en", "url": "https://stackoverflow.com/questions/5085846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Force a right-click to act as a left-click? I have looked at other code, and I just can't get any of it to work. I'm able to suppress the right-click context menu, but I need more than that. I need every right-click to act as if the left button were clicked, and I need to know exactly where to put it in my html code...
{ "language": "en", "url": "https://stackoverflow.com/questions/46097190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: FileMaker :- Compare textbox values with OBBC SQL DB I am trying to implement an Login module where,I need to Compare the list of values in SQL DB. Here i want to compare text box entered values with SQL DB. Please share any views. A: Depends on your SQL DB. You can add your SQL DB as ESS or you can use "Execute ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44375510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Acessing textutil source code Is it possible open the source code of the textutil command-line utility? I'm not finding anything in google. Thanks.
{ "language": "en", "url": "https://stackoverflow.com/questions/37825469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel Ajax working fine on page reload but when I use Ajax to filter data pagination with jsscroll does not work Pagination links working fine as normal pages when I refresh the whole page but when i reload just data with ajax pagination does not loading next pages $.ajax({ url: '{{route('apply.filters'...
{ "language": "en", "url": "https://stackoverflow.com/questions/60702730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# - XML Document Won't Save document = new XmlDocument(); XmlNode docNode = document.CreateXmlDeclaration("1.0", "UTF-8", null); document.CreateAttribute("EncryptionKey"); document.CreateAttribute("SaltKey"); document.CreateAttribute("VIKey"); document.CreateAttribute("EmailUsername"); document.CreateAttribute("Ema...
{ "language": "en", "url": "https://stackoverflow.com/questions/48740982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incremental build with GCC and manual makefile? I am coding to the NRF51822 bluetooth chip, in Eclipse with GCC and a makefile that I maintain myself. My problem is that every time I press build, it will compile everything, which is beginning to take quite some time. I am not that experienced in creating and mainta...
{ "language": "en", "url": "https://stackoverflow.com/questions/31082409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to send a lexicon to text-to-speech I'd like help with incorporating a new lexicon into the Azure Text-to-Speech API. https://learn.microsoft.com/en-us/previous-versions/office/developer/speech-technologies/hh378492%28v%3doffice.14%29 I've successfully sent text and have gotten mp3 files that work. Now I'm tryi...
{ "language": "en", "url": "https://stackoverflow.com/questions/55736260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create conditional variables grouping by time and id I have a data frame that contains the product and destination (dest_prod) consumed by individuals (id), observed during different years (year) in the data frame df: id <- c("1", "1", "1", "1", "2", "2", "2", "2", "3", "3", "3", "3") year <- c("2000", "2001", "2002...
{ "language": "en", "url": "https://stackoverflow.com/questions/73235948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MYSQL:filter query based on user input Maybe this is a simple question but i am struggled to find the answer. I am trying to implement a filter feature based on category,subject and medium fields value from the table art. that means if user select only category the result will be the query SELECT * FROM ART WHERE c...
{ "language": "en", "url": "https://stackoverflow.com/questions/46639689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decrpyting using pkcs#11 tool I'm trying too encrypt and decrypt using pkcs#11-tool echo 'Hello word !' | openssl pkeyutl -encrypt -pubin \ -inkey pub.pem \ -pkeyopt rsa_padding_mode:oaep \ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75177797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aligning multiple divs side by side I am trying to align multiple divs side by side. I have searched stackoverflow and based my code on this: How to align two divs side by side using the float, clear, and overflow elements with a fixed position div/. I've played around with it, and ended up with this css: .fron...
{ "language": "en", "url": "https://stackoverflow.com/questions/40125435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Parse 6-byte IP/Port string to in_addr structure in c I'm trying to build a little bittorrent client to store data in the bittorrent dht. Since much of the bittorrent functionality is not needed I'm trying to stay as simple as possible, since it only needs to function in a couple of limited use cases. I'm trying to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39162259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BEM Convention with SASS - Problem to understand I am a beginner in front-end and I try to assimilate the notions of SASS and BEM. I have great difficulty understanding the naming convention and how it is organized with SASS. I wrote a product section which contains three div (column) which themselves contain child ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63762541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to configure spring controller to use different objectMapper for the response (serialization) I configured my own ObjectMapper for my SpringBoot application, Let say the object mapper is something like below (simplified): @Bean @Primary public ObjectMapper objectMapper() { return new ObjectMa...
{ "language": "en", "url": "https://stackoverflow.com/questions/66706199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to hide blinking cursor in input text? I want to make something which would look like a select input but is actually not, here are the steps. I made an <input type="text">. I added a background-image, which will show a "select arrow", giving the impression that it's a select box. I added a default value to this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9333044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Facebook Integration in IOS to fetch users data I had registered my application in facebook developers. I got app id and client key. Is there any tutorials for an application to fetch users data? Any third parties suggested ? A: This tutorial is the best for me http://www.raywenderlich.com/44640/integrating-faceboo...
{ "language": "en", "url": "https://stackoverflow.com/questions/21165403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: wxPython: How to Show status/progress window and update the progress from another python code? I have a regular python app (not wx) , and i want to add a wxStatusWindow (Guage Class) in order to show the progress in my App. There are many examples in web for wxGuage /Status windows but in all examples the progress i...
{ "language": "en", "url": "https://stackoverflow.com/questions/57611577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem when I try to move socket creation code to another activity? I have an android application created by eclipse. This application works as a client connecting to a server wirelessly across a socket connection. I have a problem with the code of socket creation. When I try to move the code from an activity to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7064627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix "unhashable type: 'list'" error I am trying to run a function to get column name corresponding to 2 in data frame Input Dataframe: df1 A|B|C|D 1|0|2|4 2|9|1|3 Output DataFrame: A|B|C|D|new| 1|0|2|4|C| 2|9|1|3|A| I have made the function but for some reason I am getting TypeError: ("unhashable type: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55541823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSF : convertNumber MonetaryAmount not working in dataTable I wanted to display MonetaryAmounts inside a dataTable. Curiously it doesn't work : the currencyCode appears to be empty (but not null). Note : it works outside a dataTable for a single MonetaryAmount. Tested with wildfly 25.0.1 (Mojarra 2.3.14.SP04) and Pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74631354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between Child and Element of a container? What is the difference between Child and Element of a container? Why do the containers like Spark VGroup have different sets of methods for both Child and Elements? Can anyone explain me the difference in the simplest way? Thanks in advance.. A: The a...
{ "language": "en", "url": "https://stackoverflow.com/questions/32021800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I list the all Discord servers ID where my bot are in the console? | discord.js I tried on googling but all of the errors was "is not a function", that's because i'm using discord.js V12? I can't find it on google, there is less question about this one. This was my code. var serverArray = client.guilds.array...
{ "language": "en", "url": "https://stackoverflow.com/questions/62602195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can someone explain to me on runQueryOnBackgroundThread? Can someone just explain to me what is runQueryOnBackgroundThread as I already read through some sources but still not understand with it? @Override public Cursor runQueryOnBackgroundThread(CharSequence constraint){ FilterQueryProvider filter = getFilterQu...
{ "language": "en", "url": "https://stackoverflow.com/questions/12793274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to unmount webcomponent used inside react component? I am using web component inside react component. when I unmount react component, it seems web component inside react component is not being unmounted properly, because when I mount the react component again, webcomponent props update method is being called and...
{ "language": "en", "url": "https://stackoverflow.com/questions/56537242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I print/echo/get all attributes from each of the objects in this code? How can I print/echo all properties/attributes values from all Country objects in this code? I thought of using 'foreach' but I don't know the sintaxis. The echo statement is in the last line of code. Thanks! <?php class Country ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57031473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: jquery-ajax-php: error message not shown on other empty input fields after it's updated I’m trying to validate post data using jquery and ajax for my registration form where an error message will be shown below each input fields. I manage to get the error message initially. But when some of the empty fields were upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/29777441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: setting low rlimit_nproc value doesn't allow even a single fork I am trying to use setrlimit to limit the number of processes a program can create. Here is my code: struct rlimit limiter; getrlimit( RLIMIT_NPROC, &limiter ); limiter.rlim_max = limiter.rlim_cur = 10; setrlimit( RLIMIT_NPROC, &limiter ); int val = fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/32649829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silex: How to create a loop in Form The following lines of code get me a Silex Form. One text-field and one checkbox. The text-field contains the name of a team. The checkboxes should contain the username of a user, so that I can add them to the team. $form = $app['form.factory']->createBuilder(FormType::class) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43586972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook messenger webview not allow to access camera and audio I am developing a messenger chat bot, user get a doctor consultation url via bot. Here is the payload I have use "message": { "attachment": { "type": "template", "payload": { "template_type": "generic", "elements": [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59951751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery refactor: traversing Here is some awesome code I'd like to make better. select: function(event, ui) { jQuery(this).siblings('div.hidden_fields').children('.poly_id').val(ui.item.user) } It is part of a select in jquery UI autocomplete. A: You could try this jQuery('div.hidden_fields .poly_id',jQue...
{ "language": "en", "url": "https://stackoverflow.com/questions/10463771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: MathGL libmgl.so.7.2.0 not found I have downloaded and compiled MathGL following the instructions on sourceforge without any errors occuring. When I ran my first test-program: (The <> brackets in line 1 seem so delete it but they are there in the code) #include mgl2/mgl.h int main(){ mglGraph gr; gr.F...
{ "language": "en", "url": "https://stackoverflow.com/questions/24905495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How To Append String To Dictionary in Python within Forloop i need to append a value of string to a specific key in dictionary in python within forloop, and if the data in forloop is empty then give the value of empty string which i'm not able to get it right, here is some of the code, top100 = {} for product in pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/63108853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery getting all input elements of type text where the id ends in "Source" I am trying to get all text boxes that have an id that ends in a particular string. So far I have tried $("input[id$='Source']").each(function() { $("input[type=text][id$='Source']").each(function() { and also $("input[type=text] , [id$='...
{ "language": "en", "url": "https://stackoverflow.com/questions/23020999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function overloading by function pointer there is a question about overloading functions. Look at this code: #include<iostream> void fv(int){} void fc(const int){} void fvr(int&){} void fcr(const int&){} void fm(void(*fun)(const int)) { std::cout << "Constant called" << std::endl; } //void fm(void(*fun)(int))...
{ "language": "en", "url": "https://stackoverflow.com/questions/29140223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Staf Copy on same Machine : Error registering with STAF, RC: 10 I want to copy a file from one directory to another directory. For doing this I am using staf which gets invoked in one php script, but getting below error, even if I run staf command like below [root@balveer ConfigManagement_phps]# /usr/local/staf/bin/...
{ "language": "en", "url": "https://stackoverflow.com/questions/24160183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: flex textflow dyniamic height In my flex application I have scenerio like this: parent to child Vbox->Canvas->Sprite->Textflow In this scenerio now I need to have dynamic height of the textflow & its parents. Here the root parent is the itemrenderer of the datagrid I have. I need the heights of rows to be adjust acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/1037447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open multiple nodejs command prompts in windows? For a class, I am using a node js command prompt. In windows only when i search node js command prompt am I able to open the command prompt. This command prompt is basically the regular windows command prompt with edhanced features of node. For example I use th...
{ "language": "en", "url": "https://stackoverflow.com/questions/36538473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hide installed app in android i want to hide the installed app by another app in android application, lets say user has installed 3rd party app called Skype, Watsapp, facebook etc... is there a way we can hide and show them upon click of a button from another app?. i tried below code. No luck, nothing happened to my...
{ "language": "en", "url": "https://stackoverflow.com/questions/22754398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flutter/Dart security scans I'm looking for software/method to perform a security scan (looking for security vulnerabilities) on my apps being developed in Flutter. I'm having troubles find one that supports Dart. Has anyone been doing security scans and have any recommendations for what to use? Thanks. A: There's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59953485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: daterangepicker Month and year hard to view I have the following daterangepicker code. the code is functioning however the Month, Year and toggle buttons are very hard to view. I am using a bootstrap theme that is not working well with this. I have been trying to figure out how to change the CSS to make the month, y...
{ "language": "en", "url": "https://stackoverflow.com/questions/46739033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Declaring arrow functions as variables In a previous project using webpack and babel writing es2015 I was able to declare an arrow function with a name like this: x = () => console.log("test"); Using a real function it would look like this: fetch = () => { fetch(`https://www.data.com`) .then(response =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/43344863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a list from existing list in python I am having a list in below format. How can i create another list from the existing one with just selected elements. [{'UserDiscount': 0.0, 'CostTotalInvEOPAmount': 940.0, 'WeekEndingData': u'2016-10-08', 'WeeksOnHand': 0.0, 'UnitTotalInvEOPQuantity': 250.0, 'WeeksOf...
{ "language": "en", "url": "https://stackoverflow.com/questions/41012902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Select random second value I have a file called file.txt and inside I have this text: Text 1 Vivamus arcu neque, ullamcorper vel eleifend id, euismod viverra nisi. Text 2 Cras posuere neque vitae fringilla lobortis. Text 2 Phasellus eu sapien sit amet diam eleifend ultricies a vitae tellus. Text 3 Nulla at ip...
{ "language": "en", "url": "https://stackoverflow.com/questions/18188684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Long waiting time between PHP and Oracle OCI I installed XAMPP on Windows server. There are 2 application on my server: First Application: PHP and MySQL application. This application runs quickly without and waiting time between links/pages. Second Appilcation: PHP and Oracle application. I use “Oracle Instant Clien...
{ "language": "en", "url": "https://stackoverflow.com/questions/3203372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Swift 2.2 - uploadTaskWithRequest - How can I upload a text file from my app to my server I'm really struggling to upload a text file from my apps documents directory to my php script. All I want to do is upload a text file from the app onto my server. The Apple documentation makes it sound so simple but its just n...
{ "language": "en", "url": "https://stackoverflow.com/questions/37812127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to use .NET 4.6.1 for Xamarin on Mac? I want to use .NET PCL library from a NuGet that target .Net 4.6.1 in Xamarin PLC project. I can add it to the project, it will build fine. But, I cannot reference it in the project itself, it just doesn't allow because of .NET versions differences. The maximum ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/44944841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set up IRIS database with Quarkus I'm trying to use Intersystems IRIS Database with Quarkus, but I'm getting problems making it work does anyone knows how to set up the Intersystems IRIS Database on Quarkus ? I did that on my pom.xml and also I added the jar hibernate-iris-1.0.0.jar and intersystems-jdbc-3.2...
{ "language": "en", "url": "https://stackoverflow.com/questions/71027568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unknown provider error when trying to inject a service from another module I've seen several posts on unknown provider errors but none of them have addressed my particular problem. I'm getting the following error: Error: [$injector:unpr] Unknown provider: userAccountResourceProvider <- userAccountResource <- AdminUs...
{ "language": "en", "url": "https://stackoverflow.com/questions/31391537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find Repeated Digits In List with Java I am working on Pi Finder app.I know there is a lot of apps about it but i want to do it myself.I did it with Leibniz formula but it is working very slow because of repeated numbers.I am using lists for storage.Can you help me about find repeated numbers in lists or arrays? E...
{ "language": "en", "url": "https://stackoverflow.com/questions/48248401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Studio emulator (AVD) on Mac OSX : AVD icon quickly appears and immediately disappears I am trying to launch an AVD in Android Studio on Mac OSX. I create it and then I launch it. The problem is that the AVD icon quickly appears in the dock and immediately disappears. Note that the default emulators present ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43910896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ButterKnife OnClick listeners runs shortly after view created in custom view I have a strange problem with ButterKnife's OnClick listeners. When my custom view opened below OnClick listeners are running automatically when view opened. Below code helps you to understand what my problem is. public class UserMenuFragme...
{ "language": "en", "url": "https://stackoverflow.com/questions/52793104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paste Values into new worksheet for all Open Worksheets including pictures I am trying to create a renamed copy of all active workbooks (even non macro-enabled ones) without formulas, possibly by pasting values but without modifying images. I am working with Excel 2007. My process would ideally be to: 1) Create a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/38470684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting DirectX SDK code to new Windows 8.1 SDK Code I'm currently creating a Video Game + Engine. I found some really amazing tutorials on DirectX 11 programming at RasterTek. They unfortunately use the depreciated DirectX SDK, and I am using VS 2013 with the new DirectX SDK included in the Windows SDK. I am con...
{ "language": "en", "url": "https://stackoverflow.com/questions/18706760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Only do validation for control if another radion button on the page is selected : Only allowed to alter the regular expression I have an entry form that has regular expressions attached to each of the fields in the form. Each regular expression is updateable. I have a field that currently has a regular expression ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11152733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent join table being empty Relationships class Promotion < ActiveRecord::Base has_many :promotion_sweepstakes, has_many :sweepstakes, :through => :promotion_sweepstakes end class PromotionSweepstake < ActiveRecord::Base belongs_to :promotion belongs_to :sweepstake end class Sweepstake < ActiveRe...
{ "language": "en", "url": "https://stackoverflow.com/questions/9932799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the correct connection string for c# to teradata? I have been trying to establish connection to teradata. Since there is already a odbc on my computer, for Java the string looks like String connURL = "jdbc:odbc:DatabaseName" // and it works! I need to establish the connection in c#. So I tried TdConnect...
{ "language": "en", "url": "https://stackoverflow.com/questions/21145291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django Test - I can't save my object when I use queryset to get it I have an model, let's say something like: class Invoice(models.Model): client_name = models.CharField(max_length=100) And I have a file that looks like: def foo_1(): for inv in Invoice.objects.all(): inv.client_name = "Joe" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22048098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Returning from nested functions function outer() { $(['hi', 'there']).each(function(idx, e) { console.log(e); return; }); alert("I don't want to be called"); } function outer() { $.get('http://test.com', function (data) { console.log(data) return; // I want to ter...
{ "language": "en", "url": "https://stackoverflow.com/questions/23771929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Not to allow time picker to pick past time values I'm implementing a time picker dialog in my project. It should not pick past values with respect to current time. I mean to set minimum and maximum time for picking. Below is the process for timepicker I have done: // Current Hour hour = cal.get(Calendar.HOUR_OF_DA...
{ "language": "en", "url": "https://stackoverflow.com/questions/20040957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Retrieving information from a web page in Python? I have the following page: http://www.noncode.org/keyword.php from where I want to extract some information from it by performing an external search by Python. Maybe it will sound simple, but I have not programmed web applications before. So I would like to put in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/65467558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Calling event handlers in dom elements I'll start the question giving an example. In React, we can pass a event handler to the element without calling it directly and it will receives the event as a argument. But using pure JS and HTML, we can't do that. I tried to execute the following code: <i class="mater...
{ "language": "en", "url": "https://stackoverflow.com/questions/61269755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: difficulties exposing my express docker container to the world I have a node app running using express to run a webserver in a docker container. My node app looks a little like this: 'use strict' const childProcess = require('child_process'); const express = require('express'); ... // so many requires const main ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53213726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TextBox - Issue with validation using IDataErrorInfo with integer Value more than int.MaxValue (2147483647) In my WPF text box i have bound the integer entity variable and set the IntegerValidationAttribute. when i input text IDataErrorInfo is triggered with proper error info. The issue is when i input the integer...
{ "language": "en", "url": "https://stackoverflow.com/questions/8252828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: use of smalloc in io.js The first release for io.js is out this month, I was reading the docs when I found smalloc a new module introduced in io.js. Till today I have never felt a need of doing so in JavaScript. My questions are: * *I wonder if there is really a need of raw memory allocation in javscript...
{ "language": "en", "url": "https://stackoverflow.com/questions/28066317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Drupal: Stay on same page after registration I have a block with the registration form in it, I need people to register and stay on that same exact page, is that possible? I tried the login destination module but that feature only seem to work on the login not register. Register keep sending to user profile page. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6659812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How display tag a from behind to front? I create a menu has sub-menu at top of page and a slide image under of menu. Result: Please reference to image file attached: submenu is displaying behind of Slide image: How can move submenu display front of slide image? This is my css of top menu: But If i add slide image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51077443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting root on a Sony TV? I recently read this post over at Hack a Day Getting root on a Sony TV, which uses a script that can be found here for use on Sony Bravia TVs. The script uses BusyBox and my question is based on the README found here. I have two questions about this: 1. What are the steps I have to take in...
{ "language": "en", "url": "https://stackoverflow.com/questions/11182691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is casting a sub-classed collection of subclassed objects to its superclass collection of superclass objects not allowed in java? The code is also at https://github.com/timp21337/java-generics-example package a; import java.util.List; public interface Container<T> { List<T> getThings(); } public class Conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/9832396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File to import not found or unreadable: bulma-extensions/extensions. with create-react-app Encounter error when importing bulma extentions like this @import 'bulma-extensions/extensions';. I was able to import bulma this way @import 'bulma/bulma'; so I was wondering why I can't do that with bulma-extensions. I am us...
{ "language": "en", "url": "https://stackoverflow.com/questions/52754489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extract a value in column A given the maximum value in column B within each group (column C) in an R dataframe? My question is related to Extract the maximum value within each group in a dataframe. * *The question there is essentially: how do you select the max value in one column based on repeated groups in a se...
{ "language": "en", "url": "https://stackoverflow.com/questions/43791480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Postgresql - Check if a given string starts with any element of the array of strings Given two strings we can do: select 'aaa123' ilike 'aaa'||'%' The result will be TRUE. I would like to do the same thing with a string and an array - if the given string starts with any of the elements of the array of strings than ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39019715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Limiting a SQL Select query I am connecting to an SQL database in my PHP script and am having trouble with the LIMIT command: $result = mysql_query(" SELECT * FROM product WHERE `category` like \"" . $_GET['category'] . "\" LIMIT 0, 16 "); This all works, except that if I only have 10 rows then $re...
{ "language": "en", "url": "https://stackoverflow.com/questions/6804125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }