text
stringlengths
15
59.8k
meta
dict
Q: Intelligent credit cards fields iOS i'm currently developing an app for iOS 8 in swift with a credit card payment functionality. I searched on the web for a library with intelligent credit card fields, but all i could find is BKMoneyKit, which is not really customizable, and doesn't fit my needs. What i want is some...
{ "language": "en", "url": "https://stackoverflow.com/questions/34038553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to store and pass information between list views The functionality of my app can be modeled after something like wanelo. The user will enter a search term for what they want to buy in one Activity. They will get presented with a list of items that match that search term. So, the ListView will contain Items. An I...
{ "language": "en", "url": "https://stackoverflow.com/questions/14428253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: calling instance method on model and passing its parameters I have model.rb class Foo def baz(param1, param2, param3, param4) puts 'something' end end controller.rb def signup param4 = params[:param4] || 'N' begin @foo.baz(Integer(params[:param1]), params[:param2], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42776363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wordpress Custom Fields not displaying the section I have added a new layout in the Wordpress Custom fields plugin, and after adding it I have added the fields in the corresponding php file too. But for some reason, its printing the code in the browser. I am not sure what I am doing wrong here. I am new to WordPress...
{ "language": "en", "url": "https://stackoverflow.com/questions/63318214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Covert name part after "ACCOUNTS\\" to lower case? I have web method to get user from this.User.Identity.Name.string username = "ACCOUNTS\Ninja.Developer" I want to convert username part after "ACCOUNTS\" to lower case to be username = "ACCOUNTS\ninja.developer" public User GetUser() { var user = new User ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37687261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Swift 2.0 NSJSONSerialization fails if response has only one item Here is a snippet of my code: let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {(data, response, error) in do { guard let json = try NSJSONSerialization.JSONObjectWithData (data!, options: .MutableContainers) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/36901231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read a text file into a pandas dataframe or numpy array I have a file that looks like this - http://pastebin.com/u1A7v1CV It's just a sample of two rows from a file. The rows contain word_label_id followed by freq. For example, word_label_id 1237 occurs 1 time in the first row, 1390 occurs 1 time and so on... I ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/39969302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting cache info using C/C++ with inline assembly/intrinsics in osx I wrote the following program using both gcc __get_cpuid and inline assembly to get the cache info of my laptop but fail to identify them on the table about (Encoding of Cache and TLB Descriptors) I found online. #include <stdio.h> #include <stdl...
{ "language": "en", "url": "https://stackoverflow.com/questions/35395811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android 6 Permissions - managing foreign apps permissions Using the package manager I can see what permissions foreign apps request. But is it possible to find out what permissions the user allows for other apps? And can you change the permissions of other apps from your application? These questions apply on non-roo...
{ "language": "en", "url": "https://stackoverflow.com/questions/36425774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 0 value not working when import excel sheet for if condition in laravel excel Excel file as below Id | pro name | status 1 | test. | 0 * *Laravel 5.6 *PHP 7.2 *Maatwebsite/excel 2.* Below my Laravel code $data = Excel::load($path)->get(); if print $data then its show me 0. echo $data[0]->sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/54127938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Attempting to set variable based on conditional statement in Python So today is literally my first day of learning a programming language so I'm very new to Python. I'm taking the online Python for Informatics course at the University of Michigan and our first real assignment is to create a simple gross pay rate cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/31497989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unknown permission android.permission.RECORD_VIDEO Suddenly in my logs in "warn" I've found this : unknown permission android.permission.RECORD_VIDEO And this happened on a device that fails to do a MediaRecorder.start() method with simple and uninformative "start fails" error message. java.lang.RuntimeException: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37755734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to edit a user in ASP.NET Identity I am new to the ASP.NET Identity framework and I am trying to do some things. What I want to do is to edit the user who has already register and then update the user details to the database... Previously, I use entity framework, and then its generated my controller view and mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/43362226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ASP.NET C# OData Service + Navigation Property + $expand = null. What am I missing? I will try to explain my problem as thoroughly as possible with a simplified example. Please note that I am NOT using Entity Framework. I have this model: public class Person { [Key] public Guid Id { get; set; } public st...
{ "language": "en", "url": "https://stackoverflow.com/questions/66387369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HH:MM:SS:Msec to HH:MM:SS in stored procedure I have a stored procedure which update a table based on such calculation and the calculation is done as column name (Calendatedate) - (Current System Date Time) and update this information to a column (TimeSpent) and display the value in Hh:Mm:SS:Msec format. The query ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11102895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add(3)(5) nn.Sequential. How it works? class Add(nn.Module): def __init__(self, value): super().__init__() self.value = value def forward(self, x): return x + self.value calculator = nn.Sequential( Add(3), Add(2), Add(5), ) x = torch.tensor([1]) output = calculator(x) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70754176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DialogFragment return onClick result to MainActivity This has been asked and answered at least a dozen times yet I still can't get mine going. I've tried 4 or more of the listed answers and get no errors, a result simply isn't returned. here's the most recent code that I've tried. I really wanted this solution to wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/33378531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bitbucket call webhook php code not executing git command and when I execute from command prompt same command runs perfectly When I commit my code form source tree bitbucket triggers a webhook that hit php code exec('cd /d ' . $web_root_dir . ' && '. $git_bin_path . ' pull origin master'); it won't execute but wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/68728328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android, Java, Eclipse: Syntax Error on token "if", ( expected after this token Why do i get the following Syntax error ? public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences pvtPref = getPreferences(MODE_PRIVATE); Boolean isFirstLaunch = pvtPref.getBool...
{ "language": "en", "url": "https://stackoverflow.com/questions/11492657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Firefox and IE6 issue with document.ready() I have created an html page with a Tabber tab functionality. * *Each tab has its own table that loads when the tab is clicked and only loads once on the initial tab click to stop the tables loading more than once. *Each tab table exists in its own .jsp html file and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3326081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to increase the base address of this string? I'm trying to get a pointer to the fourth element of this array, but I keep getting type mismatch errors when doing so. What am I doing wrong? How do I fix this? int main() { char str[]="0111010"; str = str+3; printf("%s",str); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43088017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: alignment breaks when placed inside other container I am exploring Flexbox and am trying to align some items. The following code works and shows what I want to achieve (successful codepen here): .labelinput { display: flex; flex-flow: row; margin: 1px; } .labelinput > *:first-child { flex-basis: 10em...
{ "language": "en", "url": "https://stackoverflow.com/questions/40476931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: proportion data frame for each factor level based on another column I would like to summarize a data frame by month where each column is the proportion of each factor level based on the Records column in the data frame below. I have been attempting to use dplyr but haven't quite figured it out. library(dplyr) set.se...
{ "language": "en", "url": "https://stackoverflow.com/questions/52573655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to write to file in C++ without locking it? C++ In Windows 7. When writing to my log file, i sometimes set a breakpoint, or the program gets stuck at something. When i try too peek in my logfile from another program it says "The file cannot be opened because it is in use by another process". Well thats true, how...
{ "language": "en", "url": "https://stackoverflow.com/questions/26198169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: in Unix concatenation of two variables i have a file C20140728 I want a variable which will store C and other varibale which will store 20140728(here second variable is current systemdate in %Y%m%d format) and third variable when I echo should concatenatae and show C20140728 A: In general to concatenate two variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/25013796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the maximum value(s) in a (seaborn) JointKDE plot? How do I get the maximum value(s) in a (seaborn) JointKDE plot? Like the image below. I want to get the blue points coordinate like (121.53,31.29) and (121.58,31.27)。 Thanks a lot!
{ "language": "en", "url": "https://stackoverflow.com/questions/64019217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: c++ - char const * const * - I have a variable that is a pointer to a constant pointer to a constant char. char const * const * words; I then add the word "dog" to that variable. words = (char const * const *)"dog"; However, when when I debug the code, it states this about words: {0x616d7251 Error reading charac...
{ "language": "en", "url": "https://stackoverflow.com/questions/48567148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I want to make the spline chart from highcharts.com smaller in size I want to minify the chart Interface. Currently I am using chart with size 600 x 300 px, which is working fine. Now I want to show 3 charts at the same place so in order to save space. I want to show 3 charts thumbnails (working charts). If user cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/46620911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pagination. Why only one page is showing? I have been trying to get pagination to work and I have to a certain extent but it only shows one page of results. I have 18 listings in my database and have it set to show 6 per page. Can anyone see what the problem is? <?php include('includes/configsql.php'); //include...
{ "language": "en", "url": "https://stackoverflow.com/questions/29729569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular-fullstack get current user ID I'm using https://github.com/DaftMonk/generator-angular-fullstack. I have 2 schemas: * *charts * *title: String *datasets: Array *_creator: logged in user ID *users * *name *email *_id When I console.log the current user returns $scope.getCurrentUser = Au...
{ "language": "en", "url": "https://stackoverflow.com/questions/28966023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Permutations of a list with constraints python I am desperately trying to get all the permutations of a list while enforcing position assignment constraints. I have a list [1,2,3,4,5,6] (6 is just an example, I would like to find something that could work with every lenght) and I want to find all the lists of lenght...
{ "language": "en", "url": "https://stackoverflow.com/questions/41409481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Lazy Deferred List reaching maximum recursion depth I have a large list of documents to upsert into MongoDB (possibly n > 100000). I don't want to create 100000 deferreds all at once, but I don't want to execute and wait for each query sequentially because I have a connection pool to MongoDB and I want to utilize it...
{ "language": "en", "url": "https://stackoverflow.com/questions/15626076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linq Group By With Having Here is my example: class test{ public DateTime dt; public double value; public int id; } i have: IEnumerable<Test> TestList; I want select rows from it, with group by id, with max(dt). my query: var q = from p in TestList group p by p.id into g select ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3870884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to mock an object with a function that has a callback? I have this simple method that i'm trying to test. function isS3Healthy(s3, logger = console) { return new Promise((resolve, reject) => { s3.listObjects({}, (err, data) => { if (err) { logger.error(err) return resolve(['s3', false...
{ "language": "en", "url": "https://stackoverflow.com/questions/54892171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to start up MySQL Instance before Apache Instance on Scalr? I am using Scalr for scaling the website server. On the Apache server, I have installed Sakai, and created an boot-up script for Linux machine. The question is, how can I ensure that MySQL Instance is booted up and running before the Apache s...
{ "language": "en", "url": "https://stackoverflow.com/questions/5506821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I dynamically change ng-grid table size when parent containing div size changes? I am changing the size of the containing div using ng-class and an expression that evaluates whether or not an edit form is displayed. If the edit form is displayed I want to change the size of the div containing the ng-grid and...
{ "language": "en", "url": "https://stackoverflow.com/questions/21917942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Storage additional on AWS Lightsail I need to free up space on disc on AWS lightsail but I prefer to add storage to increase the limit, somebody knows a easy way to do that? Im not good at coding A: You can add additional disks to an Amazon Lightsail instance. (It seems like you cannot extend an existing disk.) The...
{ "language": "en", "url": "https://stackoverflow.com/questions/68213527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Chrome refused to display GoogleMaps Frame because X-Frame-Options is set to deny I'm working on a website for a shop and I'm using the GooleMaps Engine Lite to show his location. It works on IE9 and 10, Safari for Windows, iOS and MacOs and Mozilla Firefox, but it's not working on Chrome. If I use the Javasc...
{ "language": "en", "url": "https://stackoverflow.com/questions/20702957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does committing peer sign the new block using private key to produce new block in Hyperledger Fabric? I tried to find about how committing peer works in hyperledger fabric technically in producing new block but I couldn't seem to find resources that explain to me in a very detail manner(such as sign using private ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/70416736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: keras ImageDataGenerator flow_from_directory generated data I'm trying to see the result of using ImageDataGenerator for data augmentation. Keras reads the data but it seems that it doesn't perform any generation on them. I get as output: Found 32 images belonging to 1 classes. but no generated images are saved in...
{ "language": "en", "url": "https://stackoverflow.com/questions/46391810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maven only picks src/main/java or src/main/scala as source folder, never both I'm using Eclipse 3.7 w/ m2e (installed 2 weeks ago), with Java 6 and Scala 2.10. When ever I use m2e to update the project configuration, depending on how I have my .pom configured, it always either picks src/main/java && src/test/java or...
{ "language": "en", "url": "https://stackoverflow.com/questions/15236687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Either disable double tap or detect second tap location I have a GLSurfaceView with a GestureDetector and an extended SimpleOnGestureListener. I need to be able to select multiple items on the surface view by tapping them quickly. I overrode onSingleTapUp to detect the touches quickly since onSingleTapConfirmed wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/10824388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to add company name field in admin console (new user) alfresco community? I'm using Alfresco Community 5.0.d and it does not show the fields for company info. If I search for user then it shows all details but don't let me add company info while creating a user. So far I came across user.js file at /Applications...
{ "language": "en", "url": "https://stackoverflow.com/questions/42342490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: select a specific range on a excel sheet in vba I am trying to developp a small tool in vba and as I am a beginner in this, I am having some trouble. I would like to apply on specific cells of a column a treatment. This is my actual code : For Each C In ActiveSheet.UsedRange.Columns("B").Cells The problem with thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/28673441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replacing a character in a textbox? in vb6 i would like to be able to detect when the user presses the space key and instead of putting in a space an underscore symbol is used. is that a possibility or am i just being hopeful? i cant seem to quite make out how to do this, i have tried fiddling around with the key-pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/23699656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selecting IDs linked with CPC codes in the same column I am using the PATSTAT database to select the APPLN_ID of patent applications that have a cpc classification symbol but not another. I need to do this in order to retrieve a control dataset of patents to verify my hypothesis. PATSTAT is a relational database whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/64634509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cluster environment with SQL Server 2008 Does SQL Server 2008 web edition support cluster environment? A: Only Standard, Enterprise and Datacenter editions support clustering: SQL 2008 - Compare Edition Features
{ "language": "en", "url": "https://stackoverflow.com/questions/3953578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angularjs give classes based on variable value I have the following php expression. $isActive = ($value['is_active'] == 1) ? '<i class="btn fa fa-toggle-on isActive"></i>' : '<i class="btn fa fa-toggle-off isInactive"></i>'; How can i translate that into angularjs if statement? Thanks in advance! A: I believe you...
{ "language": "en", "url": "https://stackoverflow.com/questions/28405196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nativescript onesignal push notification ios error i've a nativescript (2.4.0) project with platform ios and android with this plugin to use onesignal push notifications. Android works perfectly but not Ios. When i try to build ios i receive these messages: app/main.ts(9,30): error TS2304: Cannot find name 'UIRespo...
{ "language": "en", "url": "https://stackoverflow.com/questions/41084388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Consistent width for geom_bar when y-axis is a "Count" rather than an explicit variable I am attempting to make a bar graph figure in ggplot2 with all bars having an equal width regardless if there is data present for a particular variable combination. This question is quite similar to the one found here "Consistent...
{ "language": "en", "url": "https://stackoverflow.com/questions/35366703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: eclipse JSP line wrapping In Eclipse, I've setup the Java formatter to wrap lines only when they exceed 120 characters. I would like the same setting to be used when I format JSP files, but at the moment it wraps them when they exceed 90 characters, is it possible to change this? A: Note in the latest version of ec...
{ "language": "en", "url": "https://stackoverflow.com/questions/6637734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Boost rng vs OpenCV rng vs c++11 std::random? It is just a simple question, I need some opinions. I am using both boost and OpenCV, and I want to generate a random number. Which is better to use: the boost::random::uniform_int_distribution (boost random integer generator) or cv::RNG? I have written this: // OpenCV R...
{ "language": "en", "url": "https://stackoverflow.com/questions/25058844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does post-training quantization work? I am currently interested in model quantization, especially that of post-training quantization of neural network models. I simply want to convert the existing model (i.e., TensorFlow model) using float32 weights into a quantized model with float16 weights. Simply changing ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/75529539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CHtmlEditCtrl::PrintDocument() - lines near the page bottom have wrong spacing? I am trying to print document using the method of CHtmlEditCtrl::PrintDocument() as described here (Printing In MFC Application). Below is my test code where I plan to print a pretty big table. void CMyView::OnFilePrint() { CHtmlEdit...
{ "language": "en", "url": "https://stackoverflow.com/questions/59459495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Git made 3 Gits And Now Not Working At All Help! I implemented Git to my project and somehow Git has made 3 files for saving my information: (1) Saves all of my view controllers, (2) The same file as (1), (3) my pods only. The one containing my pods seems to be broken as I can not commit anything to it. First I tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/48046142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How can I iterate through a list and use the values as labels or assigned names when instantiating a variable? If a user inputs a list of strings, I want to be able to iterate through that list and for each string in that list use that as a label for a variable. For example: User enters ["one", "three", "myVar"]. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60480297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Default page code behind not working when published on hosting server I decided not to redirect a first visitor from default to my "Not Logged In" page and just turn default in the "Not Logged In" page. When i did this, none of the code is working in the codebehind except for the page load. I have a menu that works...
{ "language": "en", "url": "https://stackoverflow.com/questions/8827056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IOS : passing data between viewController (destination embedded in a NavigationController) I'm just learning IOS development, I would like to pass data between ViewController. I'm using Storyboard and I'm using the "prepareForSegue" method. My main question is about the pattern I found in many forums and blogs about...
{ "language": "en", "url": "https://stackoverflow.com/questions/21101642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enter UserForm Data into the next empty cell range I have a UserForm which takes text entry, and an OptionButton Selection, to enter data onto a Worksheet, with a certain classification. The entries are placed in a specific cell in the sheet using the value from a counter, i, and can be removed to an "archive" works...
{ "language": "en", "url": "https://stackoverflow.com/questions/43871977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to hide hover and click event of UniformGrid? I try to create a list of buttons with two columns using a ListBox and UniformGrid. Everything seemed to be okay until I faced the following issue. The margin space of the button was shown with light blue color when I click it or hover over it. How to remove this eff...
{ "language": "en", "url": "https://stackoverflow.com/questions/70167279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error in your SQL syntax for INNER JOINS I have been trying to run this mysql query through rstudio, but I keep getting an error. Any idea why? Here is my query: SELECT host.key AS 'uid', daily_summary.date AS 'date' FROM host INNER JOIN daily_summary USING(weekly_id); This is the error I get. 42000 1064 [MyS...
{ "language": "en", "url": "https://stackoverflow.com/questions/28976001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: using handler for every single task(method) in android Hello i am new to android and android thread so want to know that How could we use more number of thread in order to perform every single task or method so that while user click on any UI component it does effect the performance ,having little knowledge of how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14960695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running Program from Call Doesn't Seg Fault My program writenotes keeps seg faulting when I try to write a note that is too long. ./writenotes lolololololololololololololololololololololololololololololololololololololololololololololololololololololololololololololololololo [ * ] Writing notes Segmentation fault ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29786041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to recuperate data entered by user in a dynamic table I have created a dynamic table using html+php with input like a form (this is a matrix in reality) and I want to know if it is possible to recuperate data entered by user in a dynamic table? This is my code: <?php $rows = 3; // define number of...
{ "language": "en", "url": "https://stackoverflow.com/questions/44403092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Daemon java process - is there such a thing? My java program creates a process in the following manner: ProcessBuilder builder = new ProcessBuilder("phantomjs.exe crawl.js"); Process proc = builder.start(); In case the java program terminates abruptly (could always happen), the phantomjs process (which is not a jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/35920139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: c++ mysql connection bad_alloc using c++ connector Trying to build a simple mysql connection, but getting a bad_alloc and I can't figure out how to solve this, even looking at similar posts here is my code #include <iostream> #include <stdlib.h> #include <sstream> #include <memory> #include <string> #include <stdexc...
{ "language": "en", "url": "https://stackoverflow.com/questions/39101671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Combine table and matrix with R I am performing an analysis in R. I want to fill the first row of an matrix with the content of a table. The problem I have is that the content of the table is variable depending on the data so sometimes certain identifiers that appear in the matrix do not appear in the table. > rando...
{ "language": "en", "url": "https://stackoverflow.com/questions/69815818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make a iOS WebView behave like a ebook reader Normally within a webview, when your page is too long, you can scroll vertically like a browser, that is the default. I want to make this webview behave like a ebook reader, say when you need 3 pages to display the whole content, instead of scrolling vertically, you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11708451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spring Boot Security: Why Strict-Transport-Security header is not including preload; when preload set to true I have a spring boot application where i have added WebSecurityConfigurerAdapter. I want to have the response header strict-transport-security: max-age=16000000; includeSubDomains; preload; I have added the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68952339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In android, what can I use for a root element (View, ViewGroup, etc.) of my custom control which only allows a single child? Trying to write better-encapsulated custom views and composite controls. The old way I would do this was to subclass a ViewGroup such as LinearLayout, like so... public class RadioButton exten...
{ "language": "en", "url": "https://stackoverflow.com/questions/45330741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Run Multiple timer simultaneously in datagrid wpf I am new to the Window Presentation Foundation (WPF). I have a Data grid showing data very well but I now want to show time in Time column dynamic like call time which is changed every second for every row of data. here is my class public class UserTab { public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70445744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTPD ReverseProxy ProxyPass directive ending in wrong Location header HTTPD is configure as following: #redirectder edit Location "(^http[s]?://)([^/]+)" "" port 80 to secure <VirtualHost *:80> ServerName mitestui02.sn.test.net #ServerAlias server server2.domain.com server2 ServerAdmin support.p240@tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/69894703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using std::size in a function i have written the following code. The std::size() function ist executing properly in the main() function but not in the getMin() function. Why? #include <iostream> int getMin(int numbers[]) { int temp = numbers[0]; int sizeA = std::size(numbers); for (int i = 1; i < sizeA;...
{ "language": "en", "url": "https://stackoverflow.com/questions/67990671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Maps API Solid State Borders When creating a map, the state borders keep coming up as dashed lines. Is there any way to make them solid? I am working with the province settings in the json but I cannot seem to find a directive for solid line, perhaps in .stroke? A: If you can't do it with Styled Maps (and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53337405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery form plugin does not work I am a newbie programmer. I have been stuck for two days with a simple coding problem.I try to use jquery form plugin for submitting a form to another page and get feedback from that page.The problem is the plugin is not working, the form is submitted normally without feedback. Here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15598535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FileDialog does not work in some excel versions VBA I have a code that works in the excel version 2010 normally, but in the 2013 version does not. Take a look. Sub select_strategy() 'Subroutine that lets the user select a strategy table ' 'Declare local variables Dim strategyFileDialog As Office.FileDialog ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40889976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GoCD - Task Plugins not adding tasks I have setup a GoCD server and agent (on a Windows machine if that matters). I am using it to build a .NET application. I have installed a few Task plugins (Powershell, Xunit-converter) and when I restart the server I see those as loaded and installed without issue in the plugin ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43212589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to get the value in the shell variable #!/bin/ksh for i in 1 2 3 4 5 do echo "hello world"> $i done v = echo $? if [ $v -eq 0 ]; then echo " Completed" else echo "Not completed" fi Unable to get the value in v = echo s?, due to this if condition always fails...
{ "language": "en", "url": "https://stackoverflow.com/questions/25602133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Xcode 9.2 - Can't see "iOS Simulator" within run destination I'm trying to run my application with a Xcode simulator but I can't select any simulator since my only options are the one showed in this screenshot As per apple guide, I should see the section "iOS Simulator" below "Build Only Device", but within my Xcode...
{ "language": "en", "url": "https://stackoverflow.com/questions/49301814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Start and Stop indicatorView and put it in centre tableView in swift I am using a spinner in bottom of tableView to show the spinner when data is reloading. var sneakers: [sneakerModel] = [] I stored all my data in sneakers and returning the count on numberOfRowsInSection method. func tableView(_ tableView: UITabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/53442594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incoming IP addresses for webhooks? What IP Address range do your webhooks come from? We need to white list them to receive your Copyleaks results to our web server. Thank You, A: As of now, Copyleaks API not arriving from fixed list of IP addresses. But, you have other alternatives to securing your endpoints. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75597132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - Refactoring / improving Ifs I have the following data structure; Array ( [0] => Array ([suit] => c [rank] => A ) [1] => Array ( [suit] => d [rank] => A ) ) I want to test if these cards are certain values and display an appropriate message; if ( (($hand[0]['rank'] == "A") && ($hand[1]['rank'] == ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19425606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UserDefine Runtime Attributes doesn't work in Xcode8.0 It seems like xcode8.0 does not set the value of user runtime attributes when set from storyboard.What am trying to do is simple,set the label inside a cell as corneRadius of 10 which has width/height of 20. When i try to debug the views i got the following outp...
{ "language": "en", "url": "https://stackoverflow.com/questions/40506568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails "where" statement: How do i ignore blank params I am pretty new to Rails and I have a feeling I'm approaching this from the wrong angle but here it goes... I have a list page that displays vehicles and i am trying to add filter functionality where the user can filter the results by vehicle_size, manufacturer a...
{ "language": "en", "url": "https://stackoverflow.com/questions/18184965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XText - get content (compiled value) of XExpression I have a certain part of my XText grammer that defines a block for classes that shall print all its expressions. The XText grammar part for this looks as follows: Print: {Print} 'print' '{' print += PrintLine* '}'; PrintLine: obj += XExpr...
{ "language": "en", "url": "https://stackoverflow.com/questions/34434562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No cached version of androidx.databinding:databinding-compiler:3.4.2 available for offline mode Could not determine the dependencies of task :app:compileDebugJavaWithJavac. > Could not resolve all task dependencies for configuration ':app:debugAnnotationProcessorClasspath'. > Could not resolve androidx.databindin...
{ "language": "en", "url": "https://stackoverflow.com/questions/60808458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UNMET PEER DEPENDENCY ISSUE I have been trying to install the ngx bootstrap from [https://ng-bootstrap.github.io/#/getting-started] by entering the command: npm install ngx-bootstrap --save but the result is this: +-- UNMET PEER DEPENDENCY @angular/common@2.4.10 +-- UNMET PEER DEPENDENCY @angular/compiler@2.4.10 +-...
{ "language": "en", "url": "https://stackoverflow.com/questions/47485983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wraping text within a table's td I am working on trying to clean up a customers evaluation software. In this example, the text doesn't wrap within the box. Adding a fixed size to the table doesn't help, as the information called from the SQL database just places it on top with no warping. <tr> <td valign...
{ "language": "en", "url": "https://stackoverflow.com/questions/27195309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android JSON Get via HttpURLConnection error 405 so I'm trying to do a GET Request to my web service, and since I saw that the HttpGet class is being deprecated, I try to use the HttpURLConnection class instead, and I used it successfully with a 'POST' method... however when I try to do a simple 'GET' request - I ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/29206860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Angular 2 : How to keep two methods from repeating How can I implement my if/else statement only once so that I don't repeat this fragment of code in my header component as shown below: export class HeaderMainComponent { logoAlt = 'We Craft beautiful websites'; // Logo alt and title texts @ViewChild('navTrigger') n...
{ "language": "en", "url": "https://stackoverflow.com/questions/43048682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Viewing Equirectangular Map I'm writing an equirectangular map viewer, all the stuff I have found so far are about the projection, conversions and inverse ones, which is the easiest part. I don't want to use OpenGL or DirectX sphere texture solutions, I want to draw the image pixel by pixel. The only problem I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/9743017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQueryUI add click function for multiple buttons I have a page with some number of info dialog boxes (5 in this example). The objective is to have a variable number of info boxes on a page each called by a unique button. When the button is clicked, any other box is closed and the current box appears. Instead of tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/18566190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to cleanly stub out REST client when in test environment I have a basic model like the following class MyModel def initialize(attrs) @attrs = attrs @rest_client = Some::REST::Client.new end def do_a_rest_call(some_str) @rest_client.create_thing(some_str) end end For te...
{ "language": "en", "url": "https://stackoverflow.com/questions/55123380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update databindings when a TextBox changes rather than loses focus I'm learning to develop for compact framework and I've come across an issue that's bugging me. I've bound a couple of textboxes to some properties (firstname & lastname of a person class) and have a menuitem which just does a showmessage of the full ...
{ "language": "en", "url": "https://stackoverflow.com/questions/929216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fullscreen Frame Borders in Java LWJGL I want to make a game with Java and LWJGL. In many videogames you can see the black fields at the top and the bottom of the display, which is used to size the display in the resolution the game can work with. I searched for this two days, but maybe I used wrong keywords. So is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32153210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Second date Picker should show dates after the date selected in first date picker I have two date pickers. In first I'm selecting a date, and I want second date picker to show the dates after that particular date. Previous dates should be disabled. A: Use minimum date property of the date picker to disable the all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35955151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I apply MVVM and Commands in this specific WPF situation? I am having trouble with the MVVM pattern and Commands in my WPF app. The problem is not so much the MVVM pattern, but more the stuff that is going on on my GUI. I'll explain the situation: My app can DoStuff to some files. I have a class with a funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/2118632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular component as the Mapbox control Does anybody know: can I use an angular component as the Mapbox custom control? I need to add a few buttons on the map, but I see I have to pass an HTML element. A: I did this using https://stackoverflow.com/a/54561421/12302484. I've made the class that implements the IContro...
{ "language": "en", "url": "https://stackoverflow.com/questions/63961330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix segfault caused by a realloc going out of bounds? Hello and TIA for your help. As I am new to to posting questions, I welcome any feedback on how this quesiton has been asked. I have researched much in SO without finding what I thought I was looking for. I'm still working on it, and I'm not really good a...
{ "language": "en", "url": "https://stackoverflow.com/questions/57924738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Displaying images and their accompanying information from a database with codeigniter Ok so im uploading images to a folder on my server, and then trying to re-display them with their information. This is the function in my model that i am using to pull the info: public function pull_all(){ $this->db->selec...
{ "language": "en", "url": "https://stackoverflow.com/questions/17820218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }