text
stringlengths
15
59.8k
meta
dict
Q: Ignore No Subdomain In htaccess RewriteCond I've got htaccess set up that redirects all subdomains except www to https. However I'd also like it to ignore http://domain.com - currently it redirects to https://domain.com which is no good for what I'm doing. Any idea what the rewrite condition is for that? I've tried:...
{ "language": "en", "url": "https://stackoverflow.com/questions/6328792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React Lazy loading and infinite scoll to top I am currently working on a messaging platform and previously, we just load all the messages at once as there are not that many messages. Now that that there are many messages, it is starting to take a long time to load everything. As such, I would like to implement lazy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73001847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Keeping file permissions with FTP Is there a way I can upload my files from my computer to my server without losing the permissions? Everything is linux. Thank you! A: You are aware that ftp is not the program to use on the internet in 2011. The password will be send in cleartext. (In a wired or WPA Enterprise prot...
{ "language": "en", "url": "https://stackoverflow.com/questions/6961966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Generate unique ID of an object that stays the same across instances I am generating an object from the database using the following: $game = $this->game_model->get_by('slug', 'some-title'); I am also using a cache library in Codeigniter where I write to a cache file by: $this->cache->write($game, $cache); where $...
{ "language": "en", "url": "https://stackoverflow.com/questions/16305786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Update Frame of Rotated UIView I am trying to update the size of rotated UIView. I tried using CGAffineTransform for rotation but whenever I tried updating the size after rotation it messed up the frame. I somehow managed to update size of rotated view using this stackoverflow answer: rotate-uiimage-and-move which s...
{ "language": "en", "url": "https://stackoverflow.com/questions/71476356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bug in Storyboards? I'm trying to follow a YouTube tutorial on using constraints, etc and it gets you to set up a basic Storyboard along with some different coloured views. I can set them up fine, and put the widths, and heights in but as soon as I try to resize a view by the resizing arrows that appear around it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27270946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GWT + JDO + ArrayList I'm getting a Null ArrayList in a program i'm developing. For testing purposes I created this really small example that still has the same problem. I already tried diferent Primary Keys, but the problem persists. Any ideas or suggestions? 1-Employee class @PersistenceCapable(identityType = Iden...
{ "language": "en", "url": "https://stackoverflow.com/questions/1662467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show all data in a single object instead of nested object I am using sequelize ORM and for DB I am using MySQL, in which I have associated two tables and getting the data, but I want 2nd data (another table's data) should not come in like nested object instead could we show all data in a single object (both table da...
{ "language": "en", "url": "https://stackoverflow.com/questions/66765007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting property of anonymous type using LINQ throws exception My Linq query (i want to get list of items sorted by number of orders) var x = context.Items.Include("Item_qualities").Join( context.Orders, i => i.Id, o => o.Item_id, (i, o) => new { i, o } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42055299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What's the Return of GetQueuedCompletionStatus when the I/O is cancelled via CancelIoEx? Imagine I have a thread waiting for some I/O packets with GetQueuedCompletionStatus(). Another thread uses CancelIoEx() with lpOverlapped == nullptr to cancel all of the I/Os that the first thread initiated. Will GetQueuedCompl...
{ "language": "en", "url": "https://stackoverflow.com/questions/64863170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data-Visualization Python *Plot 4 different line plots for the 4 companies in dataframe open_prices. Year would be on X-axis, stock price on Y axis, you will need (2,2) plot. Set figure size to 10, 8 and share X-axis for better visualization import pandas as pd import numpy as np import matplotlib.pyplot as plt fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/58387520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recommended video profile We are encoding our videos thinking about being played on Android and iOS native apps, and with bitmovin player on browsers (desktop and mobile). Which video profile should we use? Will the high profile be supported on all devices (Android 4.1+)? We are encoding on h264 and mp4 format. Than...
{ "language": "en", "url": "https://stackoverflow.com/questions/38120482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I was training an Ann machine learning model using GridSearchCV and got stuck with an IndexError in gridSearchCV My model starts to train and while executing for sometime it gives an error :- IndexError: index 37 is out of bounds for axis 0 with size 37 It executes properly for my model without using gridsearchCV wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/58131814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a way to specify an editor on a git command in a one-off style As mentioned above, I am looking for something like this: $ git commit -m "my first commit" --editor="vim" that will allow me to one-off swap editor for a single run. Examples where this might be useful is when squashing lengthy histories or w...
{ "language": "en", "url": "https://stackoverflow.com/questions/38576906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Obtain Date value from HTML form and pass it in PHP I'm trying to get a date from an HTML form into PHP, to then pass it to a MYSQL database. In PHP I get the date with a POST method. $Data = $_POST['Data']; //Data In HTML i made up this: <input type="date" name="Data" id="Data" required/> When I try to send it t...
{ "language": "en", "url": "https://stackoverflow.com/questions/63015747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing Alpha of UITableView Section on Cell Select I have an issue when using multiple table view sections. I am trying to change the alpha for a cell when the user taps it. Each section in the table view has one row. Here is my code. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27193098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jenkins - shell script - find parameter format not correct hope one of you can help - I'm running a script in jenkins pipeline, so that I can upload source maps to rollbar, so I need to loop through the minified js files - I'm trying to do this with the FIND command but it keeps giving me an error: find parameter f...
{ "language": "en", "url": "https://stackoverflow.com/questions/65916274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I deal with app state in a multi-"page" application? I'm having trouble envisioning application state. For a multi-page application, should each page only load a chunk of the app state? For example, let's say I have an app that manages my favorite things, books, movies, and games. Each one of those domains ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51851157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uploading string value into azure storage location as a file content I want to upload a string value as file content into azure storage location but without writing any code and using azure components only. Is there any option available? A: There are a lot of ways to do this: * *Write a string into .txt file and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67943128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Dialog dismiss animation not applying I have a DialogFragment whose only child is a StackView. The dialog is launched when a button is clicked in the parent fragment. I tried to add animations to the fragment via getWindow().setWindowAnimations() but for some reason it was not working. The approach that I took is to...
{ "language": "en", "url": "https://stackoverflow.com/questions/38984947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Wordpress xmlrpc SSL Certificate Error (Only On 1 Machine) I'm using the Wordpress xmlrpc Python module on Python 3.6 to automatically write and publish blog posts to my Wordpress site (hosted directly by Wordpress). The program runs great on one of my Windows machines, but when I try to run it using my second Windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/47115581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When to split users into several Devise models? I have an Rails app with two types of users: customers and suppliers. Each type has access to completely different controllers. I'm in doubt know if I create one Devise model or two. Are there any conventions when to use more than one controller in Devise? I know that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41270349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R DT datatable - conditional colour format for continuous value I would like to apply conditional formatting using the datatable function in R. Consider the following scenario: test <- data.frame( var1 = sapply(1:L, function(x) paste("<X>",paste0(x, letters, LETTER...
{ "language": "en", "url": "https://stackoverflow.com/questions/38430713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML5 input type range is not setting to initial value of model AngularJS I am using HTML5 input type of range for slider functionality and binding it to my model. By default my model will have a value in it, but slider is taking only min and max not value. When I go back from that screen and coming back, slider goe...
{ "language": "en", "url": "https://stackoverflow.com/questions/36752572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get single value count across the whole dataset I'm new at pandas and surveying the internet for my learning I've used count(), value_counts() to count values column wise but now I'm stuck in a problem. I've a car crash reporting dataset that has it's empty value replaced with "Not Reported" so I wanted to count the...
{ "language": "en", "url": "https://stackoverflow.com/questions/74768146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resolving component from class name in Angular 4 Is it possible to resolve a component from string? Previously in Angular 2, we are able to do this see here. However, in Angular 4, the same method will throw error. private resolver: ComponentFactoryResolver var factories = Array.from(this.resolver['_factories'].key...
{ "language": "en", "url": "https://stackoverflow.com/questions/48300272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Finding the prime numbers used in RSA I got this question in a local hacking event, but I couldn't solve it. Problem Statement ---- Continuing their snooping habit, NSA kept bugging Alice's communication. Resorting to the age old RSA encryption, Alice used 128-bit RSA encryption to exchange messages. Alice shares he...
{ "language": "en", "url": "https://stackoverflow.com/questions/21347399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Volta with yarn run build system cannot find the path specified This is the first time I'm using Volta, so bear with me. I have installed globally typescript, node and yarn yarn -v >> 1.22.10 node -v >> v14.15.4 npm -v >> 6.14.10 These commands work inside and outside my project folder, with the same results. Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/66041147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: giving a default value for an angular number formcontrol I am working with angular. I am astonished that we cannot give an empty default value for an angular number formcontrol. At the beginning, I set it to 0, but it isn't my requirement, since my input display 0 before entering anything. It must be a solution A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66375755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: why does tar command in bash script with file list within quotes not work In the code below: #!/bin/bash echo AAAAAA > a.txt echo BBBBBB > b.txt echo CCCCCC > c.txt files="a.txt b.txt c.txt" tar -cvf archive1.tar $files # this line works tar -cvf archive2.tar "$files" # this line doesn't work - why??? the fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/73461313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP and OpenSSL stopped working after service change Recently I asked my hosting company to setup a new package and since then my existing package is now giving me errors with anything to do with using openSSL. For instance, I have a function to generate a GUID: function generateGUIDV4($data) { assert(strlen($da...
{ "language": "en", "url": "https://stackoverflow.com/questions/41589294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loop in property in constructor If you have a look at my code below. Is there ANY way to write some kind of loop instead of having repeat Row and ColumnDefinitions? var grid = new Grid { RowSpacing = 12, ColumnSpacing = 12, VerticalOptions = LayoutOptions....
{ "language": "en", "url": "https://stackoverflow.com/questions/35202799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between Tomcat's extraResourcePaths and aliases to access an external directory Simple question: In Tomcat7, what's the difference between using extraResourcePaths and aliases to access an directory outside the application? I can use either of these two server.xml snippets and they both seem to work. Bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/11138701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Invalid results from SQL Server "NOT IN" clause I have run a query on our SQL Server 2012 which returned no results. I discovered that this was incorrect and I SHOULD have gotten 16 records. I changed the query and get the answer expected but I am at a loss to understand why my original query did not work as expecte...
{ "language": "en", "url": "https://stackoverflow.com/questions/51283226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Return two different sections in my UITableView I'm trying to return two seperate .counts in my UITableView. I kind of know the logic behind it but not using the syntax right. How can I do this? What I want it to do is fill my tableview up with the both .counts. I would also like to put in a label on top of the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/28505240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Spring MVC - lookup validators automatically Suppose I have a sample entity class like this: public class Address { ... } and a corresponding validator: @Component public AddressValidator implements Validator { @Override public boolean supports(Class<?> entityClass) { return entityClass.equals(...
{ "language": "en", "url": "https://stackoverflow.com/questions/28915930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Runtime error while working with 2D arrays in a loop C I wrote this piece of code to find the GCD of any two numbers, and as I am working with multiple test cases, I used a 2D array with each testcase as a row and the first two elements in each row to store the numbers. FOr example, a[0][0] stores the first number ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70554189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP inheritance - methods and properties I'm obviously not understanding inheritance correctly. I'll let my code do the talking: abstract class Calc { private $x; private $y; public function AddNumbers() { echo $this->x. " + " .$this->y; } } class myCalc extends Calc { public function __construct ($x,$y) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18772870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show jquery confirmation dialogue with multiple forms and submit buttons mvc I have a mvc project and on one page there is a table of data with a submit button that is inside its own form tag. I want to have a pop up modal dialogue when the user clicks the delete button to ask for confirmation of the delete....
{ "language": "en", "url": "https://stackoverflow.com/questions/9955995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kohana 3 ORM query using NOTIN() Is there a way to use a http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_not-in with Kohana's ORM? Something like: $products = ORM::factory('products')->notin('contry_id', $csl)->find_all(); A: Use where statement: $products = ORM::factory('products')->wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/9428991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to focus on form input after appending it to dom? The snippet below adds a form to the page on click: $(document).ready(function () { $(".reply").click(function () { var form = '<form id="rform" action="/sendme" method="POST"><input class="title" name="title" type="text" /><textarea rows="8" name="body"></...
{ "language": "en", "url": "https://stackoverflow.com/questions/56180552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cast different objects and call a method in same line? I have the code: foreach(var o in objects) { o.Update(time); if(o is Portal) { var a = (Portal)o; a.Interact(ref player, player.Interact); } else if(o is...
{ "language": "en", "url": "https://stackoverflow.com/questions/41609905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can a variadic template match a non-variadic template parameter? Consider the following snippet: template<template<class> class T,class U> struct apply { typedef T<U> type; }; typedef apply<std::tuple,int>::type tuple_of_one_int; //Should be std::tuple<int> GCC 4.8.2. says: type/value mismatch at argument 1 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/20356486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Unable to use Imagick class I have installed imagick version:6.8.6-7 on my PC Operating system:Windows 7 32-bit Now i want to use Imagick for my PHP project.I am using Wampserver which provides me PHP version:5.3.10.So i also installed a .dll file,made changes in php.ini,verified if the path is set with php_info() b...
{ "language": "en", "url": "https://stackoverflow.com/questions/17887372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I plot a predicted vs actual graph for my Logit Model I'm new to R, and was wondering if any of you could help me out with the code to make a predicted vs actual graph. I am trying to predict the direction of stock price movements using a GLM Logit Model. Your help will be appreciated. cat("\014"); libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/59750790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eliminating a distinctive blur edge between UINavigationBar and UIVisualEffectView Currently, my view hierarchy consists of a UIViewController (NOT UITableViewController), a UITableView nested in the view controller and a UIVisualEffectView (set to Extra Light) in front of the UITableView, aligned to the bottom of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/38257979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to replace string value with numeric then change string object to numeric? I have a dataset that has numeric values but in some cells it has <0.0001 which is string. How can I replace these with 0.00005. Then I can try to convert to float from string, it won't let me do it since this has to be replaced first. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68007125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: on mouse over show associated div I have a div class "asset-container" with a data-id attribute. I also have a div class "popover-content" with an associated data-id. When I hover over "asset-container", I want the "popover-content" show. There are a lot of these, which is why I have data-id attached to each of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28225536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Postgresql: Searching a string with similar characters I have a POSTGRESQL Database with names like: ʿImād ad-Daula Abu ᾽l-Ḥasan The user may select this value by typing into a text field. But I would like the user to use similar characters. So, that he can type: "imad" or "hasan". And still get the same result. It...
{ "language": "en", "url": "https://stackoverflow.com/questions/66456834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to merge df1 & df2 but only keep the new rows of df2 I've been searching up for hours how to resolve my issue but found nothing. I have 2 dataframes that i want to merge on column X but i want to keep y column from df1 and only add the new rows from df2. Basically this situation: df1: x y A 1 B 2 C 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/66789673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQLite DB accessed from multiple threads Consider following: I've got Service, which writes into DB in AsyncTask. And my Activity reads data from DB(consider UI thread for simplicity). I access DB using SQLiteOpenHelper. I create single instance in Application onCreate() and then obtain it in service and activity. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/6225374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: AutoLayout - UIImageView that doesn't rotate How can I get a UIImageView to not rotate when the user rotates their phone? All other views in the view controller should update with auto-layout as normal, but I want the UIImageView to stay constant. How can I accomplish this? Right now I'm rotating the image in viewWi...
{ "language": "en", "url": "https://stackoverflow.com/questions/36970404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apply an operation across multiple lists I know in R if I have a list of matrices, I can use the Reduce function to apply an operation across all the matrices. For example: l <- list(matrix(rnorm(16), 4, 4), matrix(rnorm(16), 4, 4)) Reduce(`*`, l) But what if I want to apply this operation across multiple lists? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45220975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AudioRecord object not initializing In the below code my audioRecord object is not initializing. I tried moving it to the onCreate method and made it a global. I've logged the state and that returns a value of 1 which means ready to use. The debugger says that startRecording is being called on an uninitialized objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/4843739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: how to highlight ListView multiple views on click? Well I want to highlight the view so the user can see which item it have selected. I tried like this: View.setBackground(COLOR.RED); Inside listView on item click listener and it works, but if the list get scrolled random views start changing backgrounds. How can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14371694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error With UICollectionView Sections While Accessing Cells I'm writing a loop that will go through each one of my cells, and make them wiggle. (Like the deletion effect on iOS's home screen). When I do this with just one cell, it works like a charm. When I write a loop to do this, I get an odd error: Terminating ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/31351638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Valgrind's error message I got "Conditional jump or move depends on uninitialised value(s)" , and it is coming from function process_server(). I have tried to figure out where it is coming, but to no avail. Message from valgrind. ==2468== Conditional jump or move depends on uninitialised value(s) ==2468== at 0x...
{ "language": "en", "url": "https://stackoverflow.com/questions/38861700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: protect folders via htaccess i want to protect some folders from a normal user but i (from localhost or my IP address) m unable to see the folder structure...so i do this write a .htaccess file in that folder(eg.project/cms/js) and write below code # no nasty crackers in here! order deny,allow deny from all allow fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/2370095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Exposing a DataGridView's Columns Property on the Designer in a composite UserControl Suppose I have a composite UserControl (called 'ListTable'), consisting of a label, two buttons and a DataGridView. The label is the title for the DataGridView, and the two buttons are Add Row and Delete Row, with basic, obvious fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/13847303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gwt component to auto-complete text I am using Google Web Toolkit to create a web based XML and Code editor- in this code/xml data will be in a text area... What I want to do is allow code auto-completion- so when user starts typing some text, the possible complete values for the partially typed in text are shown, n...
{ "language": "en", "url": "https://stackoverflow.com/questions/8970171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get current controller in view I have a View - _Edit which lives in News M/V/C. I reuse the V/M via the CategoryController as: return PartialView("/Views/News/_Edit.cshtml", model); How from within the View - _Edit can I alert the controller name? When I: alert('@ViewContext. RouteData.Values["controller"].ToString...
{ "language": "en", "url": "https://stackoverflow.com/questions/6852979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: Loading files in a for loop in matlab I am trying to load different file names contained in a matlab vector inside a for loop. I wrote the following: fileNames = ['fileName1.mat', ..., 'fileName_n.mat']; for i=1:n load(fileNames(i)) ... end However, it doesn't work because fileNames(i) returns the first le...
{ "language": "en", "url": "https://stackoverflow.com/questions/27024444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to commit project's changes to git using ant? I need to commit changes in eclipse project. I use the code below to do this: <project name="my_library_project"> <macrodef name="git"> <attribute name="command" /> <attribute name="dir" default="" /> <element name="args" optional="true" /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21674284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can public_dependency contain references to objects not in all_objects? I have the query below: select * from public_dependency pd where REFERENCED_OBJECT_ID = 305318 The strange thing is that this returns 26 rows. When I join in the referenced objects, I get three null rows, but a count of 26. And if I use '...
{ "language": "en", "url": "https://stackoverflow.com/questions/24541307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does Math.Sign() throws exception when passed a NaN? Many mathematical functions return NaN when a NaN parameter is passed to them. I was wondering why does Math.Sign() throws an exception when passed a NaN? How is the decision made for which method return NaN and for which method throw exception. Understanding...
{ "language": "en", "url": "https://stackoverflow.com/questions/44826757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQL Server 2005 - Good SQL to create a data dictionary I have to create a data dictionary in an existing database for all user tables within that database in SQL Server 2005. Does anyone have a good piece of sql to use for this purpose. I am intending to add comments in myself after I have the details of the table...
{ "language": "en", "url": "https://stackoverflow.com/questions/2059516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: @keyframe animation on safari I'm trying to do a very simple rotation animation using keyframes. My animation is not showing up in Safari 6 using retina macbook pro and ipad mini. What's weird is that it does work inside jfiddle iframe window. <html> <head> <meta http-equiv="content-type" content="text/html...
{ "language": "en", "url": "https://stackoverflow.com/questions/30657398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a better way of structuring a functionality using BLoC? Im wrote a bloc for a functionality that has a home page (that fetches a list of items) and a create/edit page (that creates/updates items). My bloc is currently in charge of handling both pages since they belong to the same functionality, but my code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65778584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the parameter passed to the callback function of a promise in this example? I'm following an example online: const jeffBuysCake3 = cakeType => { return new Promise((resolve, reject) => { setTimeout(()=> { if (cakeType === 'black forest') { resolve('black forest cake!') //Callback functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/69616511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the architecture of BlogEngine.net extension manager? I was just wondering that what is the architecture of blogengine.net extension manager ? How it loads the extension dynamically, how can I use same kind of functionality in my web applications ? so that every time i just create one class and corresponding...
{ "language": "en", "url": "https://stackoverflow.com/questions/1319159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to validate the header of token for JSON? I am trying to use token in my search function. How to check the token is correct or not? If token correct then retrieve body to request the server. If wrong then just return the error message. Request JSON { "header": { "Token": "558fedce-a84e-4a9a-8698-5cd27d5af3ed" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60388124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bind a singleton bean in weld + jersey + javaSE My app needs to register with another app. The registration status needs to be available on a REST resource. How to bind/register a singleton object in weld? The registration process has to happen irrespective of whether the status endpoint is invoked or not. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/39075740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access AD users OneDrive for Businesses through Microsoft Graph in app-mode Is it possible to use the Microsoft Graph API to access a users OneDrive for Business folders and files when running in app-mode? I've successfully configured the app in Azure AD (with certificate, etc.), I've been able to get bearer token a...
{ "language": "en", "url": "https://stackoverflow.com/questions/38185025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I speed up this Where? Let's say I have a class like this: class ItemLimits { public string strAccountNumber = string.Empty; public string strUserCode = string.Empty; public long lAccumulatedAmount = 0L; } I have an array of these with 50000 elements in it. I also have a dataset of 50000 items (more or...
{ "language": "en", "url": "https://stackoverflow.com/questions/25995289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting top terms per affinity propagation cluster in scikit-learn I am trying different clustering methods for a bunch of news texts, and am struggling to find any way to find top terms per cluster for sklearns affinity propagation, and am becoming unsure if this is even possible. For k-means clustering I am using...
{ "language": "en", "url": "https://stackoverflow.com/questions/54346882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make global variables available in multiple modules I am creating an application consisting of several modules. There is one main.py file which will be the file to run the application. The main.py file will load the configuration file(s) and put them in the 'config'-variable. It will also import the application-modu...
{ "language": "en", "url": "https://stackoverflow.com/questions/26866722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: why should we use native php gettext instead of gettexxt library I'm including gettext library in my application. But, as our team decided to go with native php gettext. The gettext library accepts the string and converts it using the "Translate" function which is defined in the library. Now how can I shift suddenly...
{ "language": "en", "url": "https://stackoverflow.com/questions/21485999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Styled Components to change the color of an SVG's stroke I have an SVG I'm using as an <img> tag. Using Styled Components I am trying to get to a point where I change the stroke color upon hover. I imported the SVG: import BurgerOpenSvg from '../../images/burger_open.svg'; I Created a Styled Components for i...
{ "language": "en", "url": "https://stackoverflow.com/questions/56692784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Any Class Based Views or Package for Auth with related model? Currently I have two styles of templates: User + Client, and User + Company. And I want to create a view to create a User + account from either of these two related templates. Currently I have achieved this, but there is a problem: the code seems to be ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/55347588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Coordinate shift when converting from Kivy (origin at bottom left) to MatplotLib pyplot (top left) So I`m making an image annotation tool for images to use them with some tensor flow and OpenCV projects. (yes I know there are already made ones, I do it as part of learning experience) To ensure my script is versatile...
{ "language": "en", "url": "https://stackoverflow.com/questions/66868812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding Razorviews/.chtml files non-dynamically in .NET 6.0 I'm learning how to make a website and I want to add new views through a method. Instead of physically clicking add view and then editing it. The method would take in a Novel object, which is connected to a database. If that novel doesn't already have a view...
{ "language": "en", "url": "https://stackoverflow.com/questions/74105063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to accelerate DFT by specifying region of interest in frequency domain Note: This question is originally asked at OpenCV forum a couple of days ago. I'm building an image processing program which extensively uses 2-dimensional dft, discrete Fourier transform. I'm trying to speed up so as to run in real-time. In ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50521283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check if record exists in python. If exists then skip else process I have a function for extracting frames from videos. I have a csv file which has the names of the videos already processed. I want to check if the name of a newly added video file is present in the csv file. If present then exit the code else process...
{ "language": "en", "url": "https://stackoverflow.com/questions/56380564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python3 pika channel.basic_consume() causing MySQL too many connections I had using pika to make a connection to RabbitMQ and consume message, once I start the script on ubuntu prod environment it is working as expected but is opening mysql connection and never closes them and ends up in Too many connection on mysql...
{ "language": "en", "url": "https://stackoverflow.com/questions/62714779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I do for my Items inside a ListView start at the right to left? I want make my Items inside a ListView going right to left. At the moment I have default settings: As you can see I have a hole in the right and I want to reverse this, put a hole in the left. Hope you understand the problem. <telerikDataContr...
{ "language": "en", "url": "https://stackoverflow.com/questions/56508044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActiveRecord conditional count In my application, I'm trying to sort items by views within the last 10 days. I'm using the Impressionist gem, which creates a model called impression and records every view here. I've managed to get to this piece of code: @items = Item.joins("left join impressions on impressions.impre...
{ "language": "en", "url": "https://stackoverflow.com/questions/17454467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: not able to click the login button through selenium please create a selenium code for us where i am not able to hit the Login Button. see my code below and do the correction : driver.findElement(By.id("Log In")).click(); driver.findElement(By.className("submit")).click(); driver.findElement(By.cssSelect...
{ "language": "en", "url": "https://stackoverflow.com/questions/42552755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: In Asp.net, why is the request input stream position sometimes not at position 0 in my controller? Two methods in my ASP.NET MVC3 web service behave differently when I POST to them. /project /project/{id}/snapshots In the first method I can read the POST'ed JSON from the Request.InputStream however in the second m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7191862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I map two lists to one list in Automapper? I have the following setup: public class ClassA { public int Id { get; set; } public int JoinId { get; set; } } public class ClassB { public string Name { get; set; } public int JoinId { get; set; } } public class ClassC { public int Id { get; s...
{ "language": "en", "url": "https://stackoverflow.com/questions/29975419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a PNG-File-Array to an ArrayList - Java I have this method: private ArrayList<Image> imageArray(File files[]) { ArrayList<Image> images = null; for(int x = 0; files.length > x; x++) { //I want to add each PNG-File to the Image-Array try { images.add(x, ImageIO.read(...
{ "language": "en", "url": "https://stackoverflow.com/questions/48387712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding url to mysql row in python I am trying to add a url to a text row in mysql using python and the MySQLdb library, but when I run my code it says there is an error in my sql syntax. Can you tell me what im doing wrong? Here is my code: import MySQLdb as mdb connection = mdb.connect("Localhost", "root", "", "db"...
{ "language": "en", "url": "https://stackoverflow.com/questions/13042013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use output file in another powershell command? I'm using auto-editor first to cut out motionless parts, then Mp4Box to add my intro. I can't figure out how to automatically use the output from auto-editor into Mp4Box. This is what I have so far. Get-ChildItem -Filter *.mp4 | ForEach -Process {mp4box -add c:\i...
{ "language": "en", "url": "https://stackoverflow.com/questions/66143944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure a Daphne server to invite clients to add the Certificate Authority that issued my certificate if they hadn't done it yet? If I make a request to my Daphne/Django server in Postman or the Android app we're developing, Daphne serves the certificate, but it's rejected. If I first make a simple get requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62070297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python XML Parser not Returning XML Elemements I am trying to find a way to use Python to parse data from several .xml files that contain part numbers and descriptions for a system my team is working on. Here's what the files look like: Note: Actual data sanitized for confidentiality reasons. <DOCUMENT> <config> <lr...
{ "language": "en", "url": "https://stackoverflow.com/questions/57595352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Location of css file in a GWT project I have css file named Sample.css which contain the below contents. .bandit-report{ margin-left: 20px; } .bandit-report1{ margin-left: 50px; } I have the ABCD.gwt.xml where I have made the below entry for the css file <st...
{ "language": "en", "url": "https://stackoverflow.com/questions/17725542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compiling .xsl files into .class files I'm currently working on a Java web project (Spring) which involves heavy use of xsl transformations. The stylesheets seldom change, so they are currently cached. I was thinking of improving performance by compiling the xsl-s into class files so they wouldn't have to be interpr...
{ "language": "en", "url": "https://stackoverflow.com/questions/3052658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: netlink on ClearOS 7.3 issue I am trying following simple program on ClearOS 7.3, 64 bit #include <sys/socket.h> #include <linux/netlink.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> int main() { int flags =0; int bus = NETLINK_NETFILTER; int sock_fd = socket(AF_NETLI...
{ "language": "en", "url": "https://stackoverflow.com/questions/46341479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Copying a dynamic array of structs to another dynamic array of structs I am trying to copy the contents of a dynamic array of structs to another dynamic array of structs, but I am getting the error, 'invalid array assignment' and was hoping someone could point me in the right direction. Here is my struct: struct Age...
{ "language": "en", "url": "https://stackoverflow.com/questions/66733245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Java loop to Kotlin I'm studying implementation with Kotlin. When I implement Kotlin version by below situation, I can't imagine cool way. for(i = 0 ; i + 8 <= table.size; i++){ for(j = 0 ; j + 8 <= table[0].size; j++{ whatever } } Above code is Java version for(i in 0 until table.size){ if(i+8 > table...
{ "language": "en", "url": "https://stackoverflow.com/questions/69535836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uploading in IE fails while using jQuery to click on the input tags for file and submit in a form So I am trying to get this uploading script to work inside of IE. It works fine in other browsers but when I try it in IE the form doesn't submit. I am using jQuery and CSS to build my own form instead of using what t...
{ "language": "en", "url": "https://stackoverflow.com/questions/8099952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }