text
stringlengths
15
59.8k
meta
dict
Q: Style for naming a function that is setting an argument by reference? So pretend I'm developing a car class and I want one of the car class's functions to return a list of passengers, except I'd like to put a list reference as an argument and just set that list instead of returning a list. void GetPassengerList(Pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/32414149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Julia - How to get the minimum of each row of matrix? I tried to make that code but it get the value of the last index in the row function heuristicCalculate(distanceBetweenCities,numOfCities) #distanceBetweenCities is a 29*29 array #Use this function to calculate the tour length using nearest neighbor heuristic...
{ "language": "en", "url": "https://stackoverflow.com/questions/30005131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: import error in django-sendsms I'm trying to use django-sendsms based on this documentation I downloaded the package,copied it's folder in c: and ran this command in shell c: cd django-sendsms python setup.py install these commands installed django-sms in sitepackages folder.then based on the documentation I added ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11673689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: heroku cannot connect to MySQL server I am using flask-sqlalchemy to connect to mysql app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:''@127.0.0.1/pharmbase' While this works fine locally, heroku cannot connect to MySQL server when deployed. Below is a trackback message 2021-01-19T15:36:19.137152+00:0...
{ "language": "en", "url": "https://stackoverflow.com/questions/65794943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Right Click event not firing in VSTO code for PowerPoint 2010 I'm attempting to add a Context Menu option to PowerPoint 2010 that only appears when text is selected. Unfortunately the WindowBeforeRightClick event does not seem to fire if the mouse is inside of a TextBox. Is there a different event I need to be lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/5481808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you group data by multiple fields with separate totals in SQL or Power query I have a set of data that I want to count by multiple characteristics. I am starting with something likes this (True/False for catagories) week PP SEN 1 T F 1 T T 1 F F 2 T F 2 T T 2 F F 2 F F 3 T F 3 F F ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67949273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Dailymotion API request returning blank result I am using the following code to retrieve video ID, title, thumbnail, duration and tags. $dailymotion = "https://api.dailymotion.com/video/xreczc?fields=title,duration,thumbnail_url,id,tags"; $curl = curl_init($dailymotion); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1)...
{ "language": "en", "url": "https://stackoverflow.com/questions/10949927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: echo anchor tag with query string php and output $date in a calendar This is my first time asking a question, so please take that into consideration if I have done this wrong. Please look this over and explain where I am going wrong. I can display the ending dates of the previous month in the first week of the curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/14819071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ranger syncing with unix users I have created two empty groups on two differentt nodes of my cluster, just one on each node. My ranger service uses unix user synchronization, when I restart the Ranger service I cant see my added groups to cluster nodes in Ranger UI, I use HDP 2.5. How to sync my ranegr with unix use...
{ "language": "en", "url": "https://stackoverflow.com/questions/53217208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change site level configuration in Apache Tomcat I have build a rest service in Java. For that there is a configuration file that I have to place in /home/user1/ where user1 in the one where tomcat is running. If I change the path and move it to the /home/user1/workspace/myRest/ (it is eclipse workspace where I buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/51208779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to stop firebase logout on back button? Before you remove my question from stackoverflow, please hear me out. I know that problem is very common but none that i tried helped me. i already saw available solutions on stackoverflow and other websites but they didn't resolved my issue. So even if you choose to remov...
{ "language": "en", "url": "https://stackoverflow.com/questions/68873786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What happens when we enable defender for key vault? We expect to enable Azure Defender for Key vault for approximately 200 key Vaults. I would like to know, Will there be any repercussions if I turn on Defender for Key Vault? Will this stop applications from reaching the vault? Has anyone ever experienced an inciden...
{ "language": "en", "url": "https://stackoverflow.com/questions/73265885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check if radiobutton is selected (javascript, html) I am trying to check if a radio button is selected or not. If the "morn_before" radiobutton is selected, the data will be stored as "2", but if the "morn_after" radiobutton is selected instead, the data will be stored as "1". Currently my code show below is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61848009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIWebView - creating custom context menu? I added UIWebView control to my application. To disable default context menu, I implemented webViewDidFinishLoad. - (void) webViewDidFinishLoad:(UIWebView *)theWebView { NSString *varMySheet = @"var mySheet = document.styleSheet[0];"; NSString *addCSSRule = @"functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7346565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to groupby pandas dataframe on some condition I have a pandas dataframe like following buyer_id item_id order_id date 139 57 387 2015-12-28 140 9 388 2015-12-28 140 57 389 2015-12-28 36 9 390 2015-12-28 64 49 404 2015...
{ "language": "en", "url": "https://stackoverflow.com/questions/35526501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AppleScript: Delimiters not working, and tab separated URLS I'm trying to obtain a list of Financial Times URL's for today's newspaper. I've done this by getting the source code from FT.com, then by used delimiters to parse the html source code, and now I'm trying to save each url as comma-separated value file (.txt...
{ "language": "en", "url": "https://stackoverflow.com/questions/11312079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identify CD drive and eject using bat or vbs while in WinPE without external files I need to identify the CD drive and eject the tray. This is executed while booted in WinPE, so the WMP eject function is not available. This script will be used on various computer models/configurations. I'm currently using this: For ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14220273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Azure Portal - adding role groups is not working properly I'm trying to add a Developers group to the Reader role, for a Website, in the new Azure Portal and assign users to that group. When I add a specific user to the Reader role of a Website the user can see everything fine but when I remove that user and add th...
{ "language": "en", "url": "https://stackoverflow.com/questions/27725001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AWS Glue job to merge columns into a timestamp I'm very new to using AWS Glue and Spark. I'm trying to run an ETL job so my data which is currently parsed as three separate columns(year, month and day) and I need to merge these columns into a datetime(or timestamp) format. Glue generated a basic script that I'm tryi...
{ "language": "en", "url": "https://stackoverflow.com/questions/55263317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to limit the child process in perl? I have written a script which includes generation of gcov in parallel.I succeeded in that but it is creating 17 child process at a time.But i want to create only 6 child processes at a time,the 7th child should create after 1child process terminate. sub gcov_parallel() 2 { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16538708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't use ng2-bootstrap-modal in Angular 4 I'm trying to use ng2-bootstrap-modal in Angular 4 and ASP NET 5(VS 2017). I've followed instructions provided there: In systemjs.config.js I've added: map: {.... 'ng2-bootstrap-modal': 'npm:ng2-bootstrap-modal', ... packages: { .... 'ng2-boo...
{ "language": "en", "url": "https://stackoverflow.com/questions/45770256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting multiple LinkedIN members using API Is it possible to get basic profile data from a list of people, using one app, akin to the LinkedIN Member Profile Plugin? I want to get the basic profile information of about 40 people, for which the Profile Plugin is too slow, but I can only find how to get my own accoun...
{ "language": "en", "url": "https://stackoverflow.com/questions/45739621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Querying a 1 to many table where the many side has at least one row Have a common schema, with two tables. users table contains the columns id, name. checkins table contains the columns user_id, checkin_date. in this hypothetical, users can have many instances of rows in the checkins table. checkin_date in this cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/35236198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to "properly" override a base class method? Whenever i override a method of a base class, other than my implementation of this method, i seem to have 3 choices. 1) Call base.Method(), and then provide my implementation. 2) Provide my implementation and then call base.Method() 3) Just provide my implementation. R...
{ "language": "en", "url": "https://stackoverflow.com/questions/3152996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Calculated summary field based on child table I have two tables, Order and OrderItem. There is a one-to-many relationship on Order.Order_ID=OrderItem.Order_ID I want a query to return a list showing the status of each Order, COMPLETE or INCOMPLETE. A COMPLETE Order is defined as one where all the related OrderItem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17310693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Want to extend from java.sql.ResultSet I would like to create myRecordSet object that extends java.sql.ResultSet and to implement a method that returns UTC date from SQL statement. How can I extend from java.sql.ResultSet, I need an example. 10X A: Do not extend ResultSet. Create your entity class, let say Person. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2445828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The following _TypeError was thrown building -Exception caught by widgets library The following _TypeError was thrown building BlurImagePageScaffold(dirty): type 'List' is not a subtype of type 'Widget' I'm getting above error when Im trying to run my code. I have included my codes files below. how to solve thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/70930487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Opencart Filter Pagination Issue I have assigned a filter(default) in my opencart(1.5.6.4) store. I have 16 product displaying at single page. So whenever I select a filter module & refine search it worked ok for first 16 product but when page 2 is clicked it shows all product.Suppose I have selected 27 product in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38182255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel injections and services I have two services with business logic: ItemService and BagService. And each service have writeOff method. And i can't figure out how to implement logic when ItemService writeOff method needs to use BagService service writeoff method and BagService writeoff method need to use ItemSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/70032581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to capture html frame as an image I need to open a webpage from Python and capture what I see in browser as an image(or rather what should be seen, because I want to execute it in background). The webpage contains JavaScript - one frame has caption dependent on script evaluation and I want it also to be capture...
{ "language": "en", "url": "https://stackoverflow.com/questions/4948945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SignalR Azure function with input binding returning value An azure function with signalR input binding can get some parameters. For example [FunctionName("SignalRTest")] public async Task SendMessage([SignalRTrigger]InvocationContext invocationContext, string message, ILogger logger) { logger.LogInf...
{ "language": "en", "url": "https://stackoverflow.com/questions/67726114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pushing to state array in ReactNative I have my code where I assign an onPress event the following function (please mind the annotation): export default class App extends React.Component { state = { noteArray: [], noteText: "", }; constructor(props: any) { super(props); } addNote() { if (this.state.noteText)...
{ "language": "en", "url": "https://stackoverflow.com/questions/64617040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: onClick are open all Text here is my code, when I click on an Icon(4 icons) they all show text, my 4 icons have the same code structure, I don't know maybe I should add some id ? or do you have a more good choice? can you help me, please :) const [showText, setShowText] = useState(false) const toggleText = () =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/74849263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android BLE: server side changes for onCharacteristicChanged callback? I have an ios app in which I am doing BLE communication with a medical device. I am creating android version of same app. In my android application for implementing BLE communication with that medical device I have written following gatt callback...
{ "language": "en", "url": "https://stackoverflow.com/questions/41339991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error LNK2019 external I can't quite make sense of the errors i get when trying to get my project to work. Can someone maybe point me in the right direction? I am fairly new to C++, so I might be doing something crucially wrong here without being aware of it. The errormessages I get are as following: Fehler 6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38362656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create exact type d-dimension points, segments, etc... in using CGAL Here is how I create 2D points with various precisions by using CGAL #include <CGAL/Cartesian.h> #include <CGAL/Exact_predicates_exact_constructions_kernel.h> typedef CGAL::Cartesian<float> Kernel_float; typedef Exact_predicates_exact_constructio...
{ "language": "en", "url": "https://stackoverflow.com/questions/25496334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Boost Filesystem: recursive_directory_iterator constructor causes SIGTRAPS and debug problems I want to use the recursive_directory_iterator offered by boost::filesystem to delete a directory. But at construction time the debugger stops with the message Signal Received: Sigtrap . I can choose to continue ( have to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/3469463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do I need service to do something when app is in background? I have to write an app that is supposed to send user location to server. I have class that is listening events from Android and it sends data to server bia webservice. Do I have to put that in some service, or I can just put it into my MainActivity class c...
{ "language": "en", "url": "https://stackoverflow.com/questions/28771686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IShellDispatch NameSpace-call fails, don't know why First time working with COM from C++, been using C# and Delphi before. So here's the code HRESULT Result; Result = CoInitialize(nullptr); if (!SUCCEEDED(Result)) return Result; IShellDispatch* API; Result = CoCreateInstance(CLSID_Shell, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52705339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: anchor tag getting appended multiple times to child div I have the following html that has images embedded into links.I am trying to append an achor tag into the div,however the anchor tags gets added multiple times. this is my code original <div id="Banner" style="display: block; position: relative;"> <div id="Sett...
{ "language": "en", "url": "https://stackoverflow.com/questions/58434024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Trying to convert data in one column from string to integer I have a dataframe called df['code'] which looks like this. 0 1 1 2 2 3 3 6 4 9 5 12 6 15 in which the first column are indexes and the second one is the column I wanted to convert to integers....
{ "language": "en", "url": "https://stackoverflow.com/questions/56159638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Call a method of specific child classes I have these following interfaces interface Driveable{ public void drive(); } interface Flies{ public void isFlying(); public Integer fliesKmPerHour(); } Abstract class abstract class WarMachine{ ... class Vehlice extends WarMachine implements Driveable{ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66374731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: React Native error: Cannot find module 'jest-serializer' any one can help me? i have a problem when i run 'npm start'. this is the Error Message A: Try to run npm install jest-serializer before doing npm start. If that is still not working, rm -rf node modules npm install npm start
{ "language": "en", "url": "https://stackoverflow.com/questions/53751008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: adb and multiple device simultaneously I am automating some test on android devices. I am using Jenkins in order to run the tests (via jobs) each job runs with a 95% success rate when only 1 device is connected to the machine but when I plug 2 android devices or more, it seems adb has some trouble and I get a 5% suc...
{ "language": "en", "url": "https://stackoverflow.com/questions/16969490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: CMPLX Yields Undefined Symbol with GCC I'm trying to hunt down a problem using complex literals when compiling with GCC. Consider the following #include <stdio.h> #include <complex.h> int main(void) { double complex z = CMPLX(0.0, -1.0); printf("z = %.1f%+.1fi\n", creal(z), cimag(z)); return 0; } (sli...
{ "language": "en", "url": "https://stackoverflow.com/questions/58937664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adding labels to graphs I am dealing with an excel file. I am plotting two graphs and trying to add labels. But in the first one labels do not show up. Here is my code: import numpy as np import pandas as pd import matplotlib.pyplot as plt df = pd.read_excel("C:/Users/Jack/Desktop/Final Excel.xlsx") fig_1 = plt.fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/66387202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: String concatenation error? [PHP] i want to upload and then move a video to a directory i just created. Instead of moving the video to /var/www/html/ProductVideos/lazar108@hotmail.com it sends the video to /var/www/html/ProductVideos/ It works if i make $location = "/var/www/html/ProductVideos/lazar108@hotmail.com" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36005960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex ArgumentError: Error #2025 in ItemRenderer I've got a problem in an ItemRenderer in Flex 3.5. I've looked at the other posts regarding this error but still can't figure it out. The ItemRenderer is part of an AdvancedDataGrid who's data provider is HierarchicalData. I'm getting the ArgumentError but the trace...
{ "language": "en", "url": "https://stackoverflow.com/questions/3215159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling loyalty credits with different expiry date and calculation I'm creating a membership system with loyalty point for a restaurant. Every member spend at the restaurant the merchant will issue loyalty point for member as cashback, and they were able to use the loyalty point in their account and act as money f...
{ "language": "en", "url": "https://stackoverflow.com/questions/60389943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Postman only runs half of the requests in my collection There are 107 requests in my collection folder (postman). This collection was running perfectly fine before with all 107 requests executed. Now, i only see half of the requests running in the collection folder and no error prompted anywhere. is there a limit on...
{ "language": "en", "url": "https://stackoverflow.com/questions/56769444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass Commands to a Server with C++ I am working on a project utilizes an Android tablet/smartphone as an IP Camera and uses Open CV to process that video feed on a Windows PC. I want to be able to send data back to the phone application depending on the results of the image processing. I have managed to get on to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19817966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UICollectionView received layout attributes for a cell in ios 7 I'm using custom UICollectionView on my app. However, I have a problem that make my app crash. The log for the crash: Note: This bug doesn't occur on iOS 8 2015-05-29 11:49:26.316 app9to5[1834:607] Terminating app due to uncaught exception 'NSInternalIn...
{ "language": "en", "url": "https://stackoverflow.com/questions/30523728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to hide the textbox and float up when an item is selected from listview? I have a WPF application in which there are certain listview items.Like in the image there are 3 items, A, B, C. initially when user does not select any item, textbox will be hidden. ListView Items when the TextBox is hidden When the user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55336729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What properties of sound can be represented / computed in code? This one is probably for someone with some knowledge of music theory. Humans can identify certain characteristics of sounds such as pitch, frequency etc. Based on these properties, we can compare one sound to another and get a measure pf likeliness. For...
{ "language": "en", "url": "https://stackoverflow.com/questions/3365934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is my encryption example secure? A while ago I was developing a little encryption technique to learn more about computer security. Well, this was about 8 months ago now and I kind of never went back to it. That has changed! I'm writing a small asp.net website for my works Intranet where a login system will be needed...
{ "language": "en", "url": "https://stackoverflow.com/questions/29607917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: 3D model (.gltf format) from a local file is not being read through aframe Please help why the local version of aframe code is not working. from flask import Flask, render_template app = Flask(__name__) @app.route('/') def main(): return render_template('tree1.html') return render_template('tree2.html') 'Ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/73078335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Read Specific Strings from Text File I'm trying to get certain strings out of a text file and put it in a variable. This is what the structure of the text file looks like keep in mind this is just one line and each line looks like this and is separated by a blank line: Date: 8/12/2013 12:00:00 AM Source Path: \\bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/18256653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing to a file in a for loop and def is not defined In Python, This can not loop many times and cannot find ID number in def. Every time I try to run the program I get the error "NameError: name 'askname' is not defined" and in textfile Keep only the latest data * *I expect the output of #def new_booking t...
{ "language": "en", "url": "https://stackoverflow.com/questions/58793235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Death of the Cell processor in the last times I heard lots of people claiming that the Cell processor is dead, mainly due to the following reasons: * *Lack of support in the new playstation 3, as the user can not install linux *The increasing processing power of the GPU's and its costs sinking *The existence of...
{ "language": "en", "url": "https://stackoverflow.com/questions/1660391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: python mocking open method using mox When I try to mock open method, I am facing issue. Please find the sample code : import glob import re #from __builtin__ import open class DiskManager: def __init__(self): print("Called init method") def __get_xyz_from_serial(self, serial): for host in glob.glob("dir/*/host"...
{ "language": "en", "url": "https://stackoverflow.com/questions/57118325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RStudio - blank screen on Mac I got blank screen in RStudio - it's first launch. Got already installed R, tried to reinstall, but it didn't work to me. I already found a lot answers for Windows, but still no solution for OS X with the same problem. OS X 10.10.3 RStudio Desktop 0.99.441
{ "language": "en", "url": "https://stackoverflow.com/questions/30732031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Angularjs pass value from one page to another In the following code i am trying to change to another page on click and want to pass the object i how can i do it. In the following code i get it as undefined.how to go about this <button ng-href="#/page1" value="{{i.display}}"></button> app.controller("ctrls",['$scope...
{ "language": "en", "url": "https://stackoverflow.com/questions/29099969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL - getting record with maximum value I am trying to retrieve the product with the highest price: SELECT ProductName, Price FROM [Products] ORDER BY Price DESC LIMIT 1 I wanted to know if there is another way of doing this in a more efficient way, with MAX for example. A: Use MAX and GROUP BY SELECT ProductName...
{ "language": "en", "url": "https://stackoverflow.com/questions/37132341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unexpected CORS issue for normal images in Chrome and iOS Safari I'm facing a CORS issue that is driving me insane. Allow me to share an example URL: http://www.jungledragon.com/image/19905/mature_female_eastern_forktail.html/zoom As the issue can only be reproduced once per page, here is a list of other images: htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/25024403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why would I want to pay my webhost for a MS SQL database over a MySQL database? I'm in the market for an ASP.NET host to start learning on and to host personal projects. I've noticed most of them provided both MySQL and MS SQL databases. However, usually they will only provided a couple MS SQL databases, but a large...
{ "language": "en", "url": "https://stackoverflow.com/questions/3592579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to print the exception in selenium and testng I have an issue that I am facing in java and selenium and testng. I am trying to locate an element, and in the test I made a mistake and the element not exists (xpath not returned answer). The problem is that the exception i printed is not the full selenium excepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/61754931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lazy-loaded singleton: Double-checked locking vs Initialization on demand holder idiom I have a requirement to lazy-load resources in a concurrent environment. The code to load the resources should be executed only once. Both Double-checked locking (using JRE 5+ and the volatile keyword) and Initialization on demand...
{ "language": "en", "url": "https://stackoverflow.com/questions/6189099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Perl regex for a digit/letter combination I'm looking for a perl regex for a combination of digits and letters, with allowing for spaces and "/" and "-" characters as possible separators. Basically, I want it to match expressions that contain a combination of letters and digits and/or separators, like this: ATG567A...
{ "language": "en", "url": "https://stackoverflow.com/questions/18963918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Powershell crashes on startup Ok, my powershell crashes on startup. System.TypeInitializationException: The type initializer for 'System.Management.Automation.TypeAccelerators' threw an exception. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception. at System.Management.Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/62776824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript code partially not executed in test environment, works in production, development (Rails 3 app) Rails 3 I have a list inside a form: <%= form_for @article do |f| %> <ul> <% @product.each do |p| %> <li id="product_<%=p.id%>"> <div> <%= f.radio_button(:p_id, p.id, class: 'hidden...
{ "language": "en", "url": "https://stackoverflow.com/questions/12504679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET MAUI Android button pressed effect Is there a way to change the pressed effect of a button on Android in a .NET MAUI project. Now it is showing a dark ripple effect when dark mode is on and a white ripple effect when the light mode is on. I would like to have the same ripple color for both dark and light mode. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75245604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to cache object using pickle in __new__ method? I'd like to cache an object in __new__ method so that it can load the cache when a new object is constructed, but now the following code will got an exception: RecursionError: maximum recursion depth exceeded while calling a Python object I have no idea about how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68878621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening android app from browser: How to specify URI-path/HOST in intent URI? I want to open an android app from the browser. I also want to pass a specific host URL (https://example.com/mypath) to the intent. My app already has an intent-filter that I'm referencing here. I'm using the following intent URI to open t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63980857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: intellij macro or live template to get breadcrumb in the clipboard or directly in template intellij has the cool breadcrumb that is shows on/below the editor window. is there a cool way to get this breadcrumb in clipboard? for example ctrl+alt+shift+C gets the file path with line number. so is there a way to copy th...
{ "language": "en", "url": "https://stackoverflow.com/questions/45218041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: questionnaire with feedback redirect based on score I would like to add to my site a simple questionnaire with few multiple choice questions. Each question has a score and at the end tha user is redirected to a custom page based on overall score. Can somebody recommend me such php or javascript script or any other ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14034113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EasyPHP custom java extension I am using EasyPHP for test purposes, and I wish to apply an XSLT 2.0 processor in my php code. EasyPHP 5.3.9 standard xslt processor is of 1.0 version though. What do I have to do to apply the xslt processor in Saxon9he.jar or XSLT2Processor.jar (found on sourceforge.net)? Stuff I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/11011649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: string.IsNullOrEmpty(string)' has some invalid arguments I converted MVC 3.5 to MVC2 4.0, get an error The best overloaded method match for 'string.IsNullOrEmpty(string)' has some invalid arguments Here is my code: <% if (this.Model.VisitId == 0) { %> mustSave = true; <% } else { %> mustSave = fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/4219882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android auto update using playstore I have an Android application that is uploaded to play store. I need to use playstore to update the app, that is when there is an update for the app, I should send the user to the play store. My problem is that there is always an "Open" button in play store, and I never see "Updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/34580671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Array object to php using ajax How can i send data like this to php using ajax ["{"title":"mr","fname":"john","lname":"Annah","oname":"Clement","staffid":"123"}"] A: try json_encode for more refer - http://php.net/manual/en/function.json-encode.php A: stringify before sending Eg : var postData = [ { "id":...
{ "language": "en", "url": "https://stackoverflow.com/questions/35264211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to create two columns of cardviews in xml I want to create two columns of social media contact list cardviews in xml android kotlin. I want to apply cardview to each Email, Github, LinkedIn, Instagram and Twitter contact list. How can I achieve this? I tried this, but the cardview is applied to the whole list, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/74583760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails CXF plugin not found I am trying to implement SOAP services in my app, the best plugin I found is CXF, but I couln't install it, it looks like that I should put some additional repository. I raised an issue in the source page, but if someone has faced this before, can share the solution plz? A: If you are tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/64350481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to use AWS as a web host? Is it possible to load / host an entire website using AWS? Or is it only a service that can load specific pieces of a website - such as images, etc. Obviously, I'd want to use my own domain. If you can use it, are there any limitations? Here's the AWS link, for context: http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/2113370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 I want to make an logharitmic fit. But I keep getting the a runtime error: Optimal parameters not found: Number of calls to function has reached maxfev = 1000 I use the following script. Can anyone tel...
{ "language": "en", "url": "https://stackoverflow.com/questions/15831763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: How do I best manage SQL Server insertions from Databricks spark session and identity columns? I have a batch-processing transaction data transformation/validation pipeline written in a Scala Databricks notebook, and when the pipeline is finished, it dumps my validated data into a SQL server for later use. Ongoing r...
{ "language": "en", "url": "https://stackoverflow.com/questions/69946707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: log parser for a log file on remote windows machine I have a log parser2.2 query for parsing log on remote windows machine. When the query is run, on log parser command prompt; i get successful output. Following is the query : logparser -i:Textline -rtp:-1 -stats:OFF \"SELECT EXTRACT_SUFFIX(text,0,\'(IBM PC)\') AS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28628914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't successfully return a const char* I have created by calling c_str() on a string. (C++) I have a class in my program that has a member variable, an int called number, and a member function, getName(), that is MEANT to return the words "Dice: #" as a const char*, but with the # replaced by the number stored in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/38044998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multi factor authentication text message service I am in new MFA, I am looking for text message service providers i saw MS Azure is providing that service not sure who else providing that service, Can any one tell me who is best text message provider for MFA security? Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/29356232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I adjust microphone input levels in HoloLens? In our communications app, some people's voices are too quiet. So we want to be able to change the system level of their microphone input. I searched through all the Windows Universal App samples and Unity documentation and I couldn't find how to change the volum...
{ "language": "en", "url": "https://stackoverflow.com/questions/66094556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: App Engine Endpoints Im starting a new application with AppEngine and I need a REST Service. I was looking at Endpoints and I think they are exactly what I need. I also read Google don't recommend to use Endpoints in production but my app first version is not going out until April approximately. How mature do you t...
{ "language": "en", "url": "https://stackoverflow.com/questions/14609424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I extract the className from a span that is selected using javascript? I have this HTML: <span class="redColor">gold</span> And when I have the text selected that is within the span tags, I need to be able to somehow extract the className from the span using javascript. I don't know anything about the class...
{ "language": "en", "url": "https://stackoverflow.com/questions/21871967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hooking zend_execute() to retrieve PHP bytecode I'm trying to retrieve PHP bytecode (and saving it to a file for further analysis) but I'm not sure exactly how to do it... I'm torn between two options: 1) Extending the Zend framework. A good article I found about this was this one: https://nikic.github.io/2012/07/2...
{ "language": "en", "url": "https://stackoverflow.com/questions/46719391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails: Conditionally Load Spring Security LDAP Plugin I have an app that runs in multiple production environments. In one environment we want to authenticate with LDAP, in the other we do not. If the Spring Security LDAP plugin is included in BuildConfig.groovy, the non-LDAP environment fails to authenticate beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/29489443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: postgres log queries for other database/application but not mine i need to see the performance of the queries in a Java app which use JPA/Hibernate/postgres, took me a while to find the postgres log file /var/lib/pgsql/9.2/data/pg_log/postgresql-*.log however i only found the queries from other application on other...
{ "language": "en", "url": "https://stackoverflow.com/questions/20412590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Highcharts : Single point in x-axis of datetime type shows 00:00:00:0000 I render a chart using highcharts the x-axis is of 'datetime' type . When I have single point in the chart the x-axis label is shown as 00:00:00:0000 instead of ('18 Nov') the given date value. This seems to happen in highcharts version 3.0.1 w...
{ "language": "en", "url": "https://stackoverflow.com/questions/20049830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculate the space complexity and time complexity of a function As a part of my course work i need to calculate the complexity of programs. I'd like to calculate the space complexity and time complexity of the below program.How do i calculate it? It would be really helpful for me if somebody can explain it in deta...
{ "language": "en", "url": "https://stackoverflow.com/questions/24634206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I display an event’s time alone (without the title) on a jQuery FullCalendar? I am wondering if it's possible to just show the time reserved on the calendar, not the title of the event, using jQuery’s FullCalendar plug-in? Thank you very much for your help! A: You can do everything you want with altering CS...
{ "language": "en", "url": "https://stackoverflow.com/questions/5982203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does there exist something like .table? I'm currently working on my thesis and it will include a lot of tables. I was wondering whether there exists an extension like .table or something so that I could fill my tables in that document and do not have all the code in my main 'script'. \begin{table} \begin{tabular}{c...
{ "language": "en", "url": "https://stackoverflow.com/questions/37787917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove certain number of div from another div using Jquery without loop I want to remove all div after 12 div inside the parent div using jquery. The markup is like : <div id="dvNames" class="container grayBox float-left"> <div class="float-left margin-bottom-10 width-33-per divContainer"><div class="float-left"><in...
{ "language": "en", "url": "https://stackoverflow.com/questions/19971518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery - filter child divs? I wound up converting a table to just divs... But, in doing that, I need to rewrite a function and I'm having some issues... I've tried to implement $(this).closest('div'), but it's not doing what I thought that would do... Still reading, but if someone knows of a solution, I'd be a hap...
{ "language": "en", "url": "https://stackoverflow.com/questions/1885661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Part of ajax responseText Can you please tell me how to obtain a certain part from ajax responseText? Example: <div id="first">Text1<div> <div id="second">I want to use this text<div> <div id="third">Text 3<div> I thought about passing the responseText to a div, and then accessing it with document.getElementById('i...
{ "language": "en", "url": "https://stackoverflow.com/questions/27021239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }