text
stringlengths
181
35.5k
meta
dict
Q: Eclipse RCP Fragment How to Build library.jar I have a plug-in fragment which contributes a jar file to the host plug-in, following these instructions. It works by creating a file library.jar which is specified in build.properties and associated with a directory which contains the source to be built. It all works ...
{ "pile_set_name": "StackExchange" }
Q: Linux server compatibility questions I'm replacing an ancient server I have at home. The old machine is currently running Windows 2000 Server edition. It's an Active Directory domain controller, functions as a basic file server, hosts an ASP.Net 2.0 web site (dasBlog), and I occasionally need to remote in to it ...
{ "pile_set_name": "StackExchange" }
Q: Access instance members through local static instance I have a communication manager who is an instanced by de-serialization. Now I want to create some static methods to access instance data. On other posts i see people be advice not to access static fields of instance objects. But now I create the following code ...
{ "pile_set_name": "StackExchange" }
Q: PayPal Express not giving option for Check out as Guest, even if it is active (PayPal Paying Guest option to YES) I had some problems with paypal settings in Magento 1.7.0.2. The problem is this: I am using using paypal express (I have my account created and verified Paypal Company). It has active PayPal Paying Gu...
{ "pile_set_name": "StackExchange" }
Q: I'm looking for the sql term to remove duplicate rows from a report The adhoc report tool is a Shazam product and I have a sql filter that has these value options: Is Equal To Is Between Is Greater Than Is Greater or Equal Is Less Than Is Less or Equal To Is Like Is Not Equal To Is Not Between Is Not Like ...
{ "pile_set_name": "StackExchange" }
Q: How to access a compiled element's template after it's been compiled? Say I have an element like this: <elemental></elemental> I can pull the scope by running: angular.element($('elemental')).scope() Is it possible to get an element's source template after it's been compiled in a similar fashion from the DOM? A...
{ "pile_set_name": "StackExchange" }
Q: How to create this `through`` association? Organization and Link are associated through Node. Organization: has_many :nodes has_many :links, through: :nodes, source: :where_first_links Node: belongs_to :organization has_many :where_first_links, class_name: "Link", foreign_key: "firs...
{ "pile_set_name": "StackExchange" }
Q: How can I remove characters around words? I need to remove all characters that are not alphabetical from the beginning and end of each word. For example: --Hello& World-@ 1234... Should look like: Hello World 1234 I tried replaceAll, but I have no idea how many different characters I need to remove or w...
{ "pile_set_name": "StackExchange" }
Q: matlab - what is the equivalent of null / None / nil / NULL etc.? In most OO languages, where variables may point to objects, they may also have a null value, which is highly convenient. In Matlab, I have a function which parses a command, and then returns a cell array, or false (which is equal to zero — which is ...
{ "pile_set_name": "StackExchange" }
Q: finish activity from an other one I have an activity for my menu events: public class GlobalMenu extends Activity{ private MenuItem item; public boolean event(MenuItem item){ this.item = item; // Handle item selection switch (this.item.getItemId()) { case R.id.menu_sto...
{ "pile_set_name": "StackExchange" }
Q: Tunneling TCP ports through ssh without blocking I'm trying setup a ssh tunnel via pexpect with following code: #!/bin/env python2.4 import pexpect, sys child = pexpect.spawn('ssh -CfNL 0.0.0.0:3306:127.0.0.1:3306 user@server.com') child.logfile = sys.stdout while True: code = child.expect([ 'Are you ...
{ "pile_set_name": "StackExchange" }
Q: PHP echo to remain on the same line after HTML (<?php _e( 'Up to', 'test' ); ?> &pound; <?php $current_price = get_field( 'price_details_price_b', 'option' ); $exchange_rate = get_field( 'price_details_exchange_rate', 'option' ); $uk_price = ($current_price * $exchange_rate); echo $uk_price; ?>) This code outputs...
{ "pile_set_name": "StackExchange" }
Q: rounded parent border dosen't apply to child when i make the first layout with rounded border using this xml layout <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#00ffffff"/> <stroke android:width="3dp" android:color="#ffffff" /> <padding android:left="1dp" ...
{ "pile_set_name": "StackExchange" }
Q: Pycharm - Configure PYTHONPATH in Remote Interpreter I have PyCharm 2.7.3 installed on Windows, and I am trying to remotely develop an application on a Linux machine. So far I can run simple programs, however I'm trying to set my PYTHONPATH and it seems that PyCharm specifically ignores this configuration. Under m...
{ "pile_set_name": "StackExchange" }
Q: MonoTouch: CurrentCulture when "Language" set On an iPhone, when the user sets their Language to French and their Region Format to United States, the CurrentCulture represents en-US. Only when the user sets their Region Format to France do I get fr-FR; How can I determine the language if the user has set their Lan...
{ "pile_set_name": "StackExchange" }
Q: Oracle Trigger creation with compilation errors I am trying to create a simple trigger with following code - CREATE OR REPLACE TRIGGER trg_menu_id BEFORE INSERT ON "menu" FOR EACH ROW BEGIN SELECT menu_id_seq.NEXTVAL INTO : NEW.MENU_ID FROM dual ; END ; But I am getting - [Err] ORA-24344: success with c...
{ "pile_set_name": "StackExchange" }
Q: SelectionIndexChanged firing twice I am wondering why my selection index changed is firing twice when I click on an item on my list. This is the code I use in the selectionindexchanged private void listBoxFolders_SelectionChanged(object sender, SelectionChangedEventArgs e) { // Taking the name of the...
{ "pile_set_name": "StackExchange" }
Q: Processing form after modal submit in JSP I am displaying a modal after a button click . The code of button for opening a modal is as follows : <button type="button" name="btnEditIP" data-toggle="modal" data-target="#myModal" class="sultan_btn">Edit IP</button>\ The code of modal is as follows : <div id="myMod...
{ "pile_set_name": "StackExchange" }
Q: controlling the height change speed I have the below javascript for a height change of a div. However, I don't know how to adjust the speed when the div reveals. i know 500 is the speed when the height of the div changes to 30px, but i don't know how to control the speed when it changes back to 100%. can anyone...
{ "pile_set_name": "StackExchange" }
Q: How would I create a custom prompt for a response in AngularJS I basically have the UI all set up as well as all the scope variables. Let's say I have two buttons, left and right, and I only want the function to continue when one of them is clicked. That being $scope.isLeft of $scope.isRight is true. This would b...
{ "pile_set_name": "StackExchange" }
Q: Having a separable extension of degree $n$ implies having a Galois extension of degree $n$? I would like an explanation for the fact stated in the title. To repeat: Question: How does one prove that if a field has a separable extension of degree $n$, then it has a Galois extension of degree $n$? Note that the st...
{ "pile_set_name": "StackExchange" }
Q: Kernel 4.18.0-14-generic Borks Display Yesterday's apt update included the 4.18.0-14-generic kernel. On a couple of my Ubuntu 18.10 MATE laptops (older DELL and Samsung models . . . I can't recall the models; they're at a different location), when they rebooted, I was greeted with a blank screen. Evidently somethi...
{ "pile_set_name": "StackExchange" }
Q: How do I get the structural images BKChem produces to satisfy these conditions on Wikipedia? I'd like to know how to get BKChem to create structural images that satisfy these conditions. A: The instructions on the page seem fairly simple (make a couple of files that hold the contents as specified). But if you w...
{ "pile_set_name": "StackExchange" }
Q: Ubuntu One app installation "waiting" on iPad I would like to install the Ubuntu One app on my iPad. When I choose "install" in the app store, the Ubuntu One icon appears on my screen with a progress bar and the message "waiting." And it stays like that. I've tried removing it and restarting the installation and I...
{ "pile_set_name": "StackExchange" }
Q: Want to change my master to an older commit, how can I do this? I want to rollback to a previous commit, and then publish that code, then go back to the latest commit. i.e. so my master is pointing to an older commit version just so I can pulish that version, then I want to go back to the latest commit I was one i...
{ "pile_set_name": "StackExchange" }
Q: c++ failed to specialize function template 'iterator_traits' im trying to compile a school assignment but im getting an error, and since there is no qualified teacher available at uni at this hour, i've come here for help. im getting a error stating: "Error C2893 Failed to specialize function template 'iterator...
{ "pile_set_name": "StackExchange" }
Q: Which Ruby on Rails version should I upgrade to? I am using Ruby on Rails 3.2.9 and on the official blog it has been posted the following article: "[SEC] [ANN] Rails 3.2.13, 3.1.12, and 2.3.18 have been released!". My question is: Which Ruby on Rails version should I upgrade to? Note: I ask this because in the li...
{ "pile_set_name": "StackExchange" }
Q: ¿Como escapar caracteres en javascript? Tengo un script que agrega el contenido de una variable a una tabla y crea dinamicamente unos botones que deberian pasarle a una funcion un arreglo. pero este arreglo al tener caracteres especiales o espacios me genera conflicto. A continuacion el script que genera la tabla...
{ "pile_set_name": "StackExchange" }
Q: ディスカッションの発生を避けるための注記 phpでmysqlにデータを保存しているデータをid毎に静的フアィルhtmlに生成して書き出したいです この質問は、コメントと回答を駆使してディスカッションが行われた結果、第三者には全く話が追えない(=Q&Aリソースとしては無価値な)状態となっています。 これは極端な例としても、コメントや回答でディスカッションが行われる例は多数あります。 現状でも、コメントの入力欄に「コメントを使って情報の追加を求めたり改善方法を提案したりします。コメントを使って回答しないでください」と説明がありますが、 指摘に対しては質問や回答を編集することで応えるようにしコメントで返信すべきではないことは伝...
{ "pile_set_name": "StackExchange" }
Q: Detecting mouseReleaseEvent in pyqtgraph. Problem with inheritance Pyqtgraph does unfortunately not provide a mouseRelease signal. Therefore, I would like to modify the mouseReleaseEvent method in pyqtgraphs GraphicsScene class to emit a custom signal. But in my example below, the mouseReleaseEvent function overr...
{ "pile_set_name": "StackExchange" }
Q: Equivalents to Comptes Rendus The Comptes Rendus is (are) a French Academy of Sciences publication, essentially a 'rapid communication' format. It comes in many flavours, and maths is one of them. Proofs are non-existent (at least in older articles I've read), or perhaps only sketched. I don't know what the reach ...
{ "pile_set_name": "StackExchange" }
Q: Problema de Replace no sqlserver Tenho um campo na pagina que recebe somente numero, mais quando vou compara na função este valor da página com o que esta no banco, não retorna a pesquisar. Estou tentando usar o Replace para tira o formatação do valor do banco para compara com o valor vindo da pagina. este e o cód...
{ "pile_set_name": "StackExchange" }
Q: Doing a Line Integral Problem Here is my attempt: $$W=\int_C\vec{F}\cdot d\vec{r}\\=\int_C\frac{\alpha x}{(x^2+y^2)^{3/2}}dx+\frac{\alpha y}{(x^2+y^2)^{3/2}}dy\\Using\quad x=2t+1\quad and \quad y=-2t\quad for\quad 0\le t\le 1\\=\alpha\int_0^1\frac{8t+2}{[(2t+1)^2+4t^2]^{3/2}}dt$$ At this point, I am stuck. A: Hi...
{ "pile_set_name": "StackExchange" }
Q: ScrollTop animate does not work if html, body is overflow-x: hidden I have come upon an interesting problem. I am using jquery to animate scrolltop property of html and body tags to perform smooth scroll. It works nicely, but in MS Edge appears horizontal scrollbar (Mac, no problem, nothing is overflowing to sides...
{ "pile_set_name": "StackExchange" }
Q: Applying css on ActionLink in mvc? I am working in mvc5. I made a simple action link in a view using this syntax @Html.ActionLink("Manage List", "Index", new { @class = "ManageLink" }); But css was not working untill i added controller name like this: @Html.ActionLink("Manage List", "Index",new { controller = "Co...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to upload to Amazon S3 with part less then 5 MB? Is it possible to upload to Amazon s3 with part less then 5 MB? I'm now using Android client but I think it doesn't matter. I'm trying to upload file to Amazon S3 with Android by parts. And I want these parts be less the 5MB (1MB for example) but I ca...
{ "pile_set_name": "StackExchange" }
Q: Mathematica shows complex roots while asked for reals? I ran the following code in Mathematica ToRadicals[Reduce[-14848 c^4 + 38016 c^3 x - 30888 c^2 x^2 + 6480 c x^3 + 1215 x^4 == 0 && c < 0,x,Reals]] This should give the real roots of the polynomial. However, the output displays two complex roots? How is this p...
{ "pile_set_name": "StackExchange" }
Q: How to get a margin around the page without content being pushed out I want to have a somewhat fluid site where the min-width would be 1000px and the maximum width would be 1200px. Can someone either show me how to do this or point me to a tutorial? The issue that I was having was that if I gave a 10px margin on t...
{ "pile_set_name": "StackExchange" }
Q: CMake claims finding OpenGL but can't find EGL and OpenGL::GL CMake is giving me confusing results when trying to find OpenGL on Ubuntu. The context is I need to do headless rendering on the server / docker without X display. I have installed OpenGL via apt-get install libgl1-mesa-dev and apt-get install libegl1-m...
{ "pile_set_name": "StackExchange" }
Q: Recover formatted virtual drive with filesystem changed Here's an interesting problem and predicament that I'm currently in. I have a 239 GB large VHDX, originally formatted as NTFS. It contains a lot of important files, including proprietary code, game development assets and a ton of artwork. I was trying to crea...
{ "pile_set_name": "StackExchange" }
Q: What is the proper procedure for us laypeople to edit an answer? How do I get rid of adware from Search Conduit/White Smoke? A few days ago, I had this question answered with the assistance of another user. His answer did not entirely solve my problem, however. There were still a couple of things I had to figure o...
{ "pile_set_name": "StackExchange" }
Q: Android Java: Too many imageviews? I have an arraylist of 50 imageviews containing the same bitmap using this code: for (int i = 0; i < 50; i++) { ImageView imageView = new ImageView(getApplicationContext()); imageView.setImageResource(R.drawable.pic1); imageView.setVisibility(ImageView.VI...
{ "pile_set_name": "StackExchange" }
Q: Choosing specific dataview values from a SQL statement and assigning them a variable VB Good morning! I am attempting to create a timelog for a current project, I need to somehow assign a value to the variable 'depart' from a dataview that I've pulled. I'm sorry if this is like another question but I couldn't seem...
{ "pile_set_name": "StackExchange" }
Q: PHP Order Second Array ASC by Key I have an array inside an array that has the filename, modification time and size, but I need to be able to order the array either ascending or descending by each one of these properties. I have the following, which gets the information //SCAN THE DIRECTORY $directories = scandir(...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to avoid constexpr function used in header file from entering global scope without extra namespace for it? I have a header file with code simply looking like this: constexpr uint32 GenTag(const char tag[5]) { ... } class SomeClass { static constexpr uint32 TAG1 = GenTag("smth"); static conste...
{ "pile_set_name": "StackExchange" }
Q: Can't open module file using gfortran I am using gfortran to run an .F90 code, and I am getting two errors, program fhello_world_mpi.F90 1 Error: Invalid form of PROGRAM statement at (1) fhello_world_mpi.F90:2:6: use mpi 1 Fatal Error: Can't open module file ‘mpi.mod’ for reading at (1): No such f...
{ "pile_set_name": "StackExchange" }
Q: neo4j, python and netbeans I'm having trouble with my code in python using neo4j. My code: from neo4jrestclient.client import GraphDatabase db = GraphDatabase("http://localhost:7474",username="neo4j", password="neo4j") # Create some nodes with labels user = db.labels.create("User") u1 = db.nodes.create(name="Mar...
{ "pile_set_name": "StackExchange" }
Q: how to force stop Intellij on linux I am using a scratch file for some Kotlin work. I accidentally created an endless loop in one of my functions and ran the file, so Intellij is not responding. There is no button for stopping the execution of the scratch file and even if there were, that wouldn't work because ...
{ "pile_set_name": "StackExchange" }
Q: Setting TexParams on sprite in Cocos2dx 3.0 I will be grateful for advice, how to update this code from cocos2dx 2.2.1 to 3.0: ccTexParams tp = {GL_LINEAR, GL_LINEAR,GL_REPEAT , GL_REPEAT}; sprite->getTexture()->setTexParameters(&tp); Now I got an error that ccTexParams is unknown type. A: Remove the cc. It ...
{ "pile_set_name": "StackExchange" }
Q: The proper order of time stamp and content under a heading in org mode I just wonder whether there is some instruction on the proper order of the time stamp and the contents under one heading. For example, Style 1: * Heading 1 <2015-11-13 Fri 10:30> Some contents. Style 2: * Heading 1 Some contents. <201...
{ "pile_set_name": "StackExchange" }
Q: sys.exit(): is there a less extreme alternative? I was hoping to get some kind of advice regarding the use of sys.exit(). I have used sys.exit() to stop a script from running any further: My code: if x != 20: query = raw_input("X does not equal 20. Do you want to continue? (Y/N)") if query in ['y', 'Y']:...
{ "pile_set_name": "StackExchange" }
Q: R using max function in data table I'm using R and have a problem in a data.table Both of these commands return NA for all rows: AfAm[, sizediffpos := max(0,sizediff)] AfAm[, sizediffpos := max(0,sizediff, na.rm = TRUE)] Is there any way I can rectify the error? A: As rawr points out, the correct way is to use ...
{ "pile_set_name": "StackExchange" }
Q: In Managed C++, what is the proper way to define a static singleton instance in a class? Jumping to Visual Studio 2015 from Visual Studio 2013, I've noticed some differences in how static self-instances in managed C++ classes are accepted by the compiler. Consider these two examples: Method 1: public ref class CRe...
{ "pile_set_name": "StackExchange" }
Q: My specified font size does not apply when i install the program in windows7 I specify a font and its size for my listview items using win32 api and it works properly in Windows Xp. I install it in Windows 7 and see size of fonts are too small and hard to read although i specified 17 for its size. I increased def...
{ "pile_set_name": "StackExchange" }
Q: StackOverflowError in servlet mapping with url-pattern "/*" I have a set of JSP pages and I want to hide the .jsp extension (after a bit of research it seems it's good for SEO). One solution I came across was the following: <servlet> <servlet-name>mypage</servlet-name> <jsp-file>/some-page.jsp</jsp-file> <...
{ "pile_set_name": "StackExchange" }
Q: Anonymous struct with enable/disable I have the following vector class (vector as in spatial, not array): template<typename T0, size_t S, typename = typename std::enable_if<std::is_arithmetic<T0>::value && (S > 1 && S < 5)>::type> struct Vec { using value_type = T0; using vector_type = Vec<T0, S>; usin...
{ "pile_set_name": "StackExchange" }
Q: How to use an element belonging to an if-else cycle outside the cycle? I need to use the variable of an if-else loop as an argument of a method or lets say somewhere out of the if-else loop but in the same class. public static String myvar; if(x > 5) { myvar = 0 ; ...
{ "pile_set_name": "StackExchange" }
Q: Sylow $p$-subgroup of GL I know that for general linear group $\mathrm{GL}(n,p^r)$, one Sylow $p$-subgroup is the set of all unitriangular matrices. I need a reference for this theorem. Thank you. A: Steinberg's "Lecture Notes on Chevalley Groups" the Corollary of Lemma 54 on page 132. There is possibly a more...
{ "pile_set_name": "StackExchange" }
Q: Repartition my existing hard disk First time Mac user here. I'm quite aware with all the posts here about repartitioning hard disk but I'm quite confused if repartitioning would erase all my data on my hard disk. I recently bought my Mac and it was pre-installed with Lion, and my hard disk size is 750GB, and under...
{ "pile_set_name": "StackExchange" }
Q: Does the green-flame blade extra damage work on normal attacks? Can you do a green-flame blade cantrip (duration of 1 round), do an Action Surge and then a normal attack action with Extra Attack and have all attacks have the green-flame blade bonus damage since it have a duration of 1 round and should also work wi...
{ "pile_set_name": "StackExchange" }
Q: dplyr lag across groups I am trying to do something like a lag, but across and not within groups. Sample data: df <- data.frame(flag = c("A", "B", "A", "B", "B", "B", "A", "B", "B", "A", "B"), var = c("AB123","AC124", "AD125", "AE126", "AF127", "AG128", "AF129", ...
{ "pile_set_name": "StackExchange" }
Q: STP in a mixed environment Good day all, We have some a mixed environment of Dell Powerconnect and Cisco switches. On both brands of switches, I am seeing numerous STP topology changes. I've decided to try on work on the Dell switches first. The root switch is a Cisco 6500. Though the logs on the Dell switches sho...
{ "pile_set_name": "StackExchange" }
Q: C#: How does the static object.Equals check for equality? Say you have two different classes where each have their own implementation of Equals; which one is used? What if only one of them have one? Or none of them? Are any of the following lines equivalent? object .Equals( first, second ) first .Equals( second ) ...
{ "pile_set_name": "StackExchange" }
Q: How can I optimize my Two Sums code in Python? I'm attempting the first problem on leetcode and my code passes the first 19 tests but fails due to a time exceeded failure on the last test. This is what I have so far: class Solution: def twoSum(self, nums, target): k = 0 n = len(nums)-1 ...
{ "pile_set_name": "StackExchange" }
Q: Does iOS 6 support the timezone PHT when trying to use NSDateFormat? I am having problems with my code and not sure what is wrong with it. NSString* dateFormat1 = @"EEE MMM dd HH:mm:ss V yyyy"; NSString* dateString1 = @"Fri Jul 26 00:00:00 PHT 2013"; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; ...
{ "pile_set_name": "StackExchange" }
Q: How to encode Email if it contains "+" to %2B in Ruby How to encode URL parameters with UTF8 encoding: URL?email=test+@gmail.com to URL?email=test%2B@gmail.com I tried 'test+@gmail.com'.encode("UTF-8") CGI::escape('test+@gmail.com') it returns 'test%2B%40gmail.com But i need test%2B@gmail.com email=test+@gmail.com...
{ "pile_set_name": "StackExchange" }
Q: Runnig python from sublime text extremely slow I'm testing Sublime Text 2 with Python. A simple hello python script takes multiple seconds. print "Hello from Python" Hello from Python [Finished in 11.8s] Any ideas why? A: Just the first run, since the second it's fast. Because it takes time to load python inte...
{ "pile_set_name": "StackExchange" }
Q: Design of high volume TCP Client I have a .NET TCP Client that sends high volumes of messages to a (.NET async) TCP server. I need to keep sending messages to the server but I run out of ports on the client due to TIME_WAIT. How can a program continually and reliably send messages without using all of the availa...
{ "pile_set_name": "StackExchange" }
Q: Does the Burning Disarm spell allow the target to attempt a Reflex save if the metal object is worn, but not locked? The Burning Disarm spell says the target gets a Reflex save if they can drop it, but don't if they can't drop it (emphasis mine): This spell causes a metal object to instantly become red hot. A cre...
{ "pile_set_name": "StackExchange" }
Q: free() collecting garbage value in c code and code doesn't work even when setting the pointer to NULL after freeing When I try to call free() function to free the memory, it isn't working properly. Here is my code: unsigned char *indata; unsigned char *outdata; int file_func(const char *filename) { //some other ...
{ "pile_set_name": "StackExchange" }
Q: R difftime off by 1 year I'm trying to calculate the difference-in-years between 2 dates. time1 <- as.Date(x = "2017-02-14", format = "%Y-%m-%d", origin = "", tz = "") time2 <- as.Date(x = "1972-02-17", format = "%Y-%m-%d", origi...
{ "pile_set_name": "StackExchange" }
Q: How to find unknown character in mysql or in array First I created database with utf8mb4_general_ci collation and created table with same collation. Then I import csv file with load data local infile '/mnt/c/Users/justi/Desktop/enml/enml.csv' into table dict CHARACTER SET utf8mb4 fields terminated by '\t' IGN...
{ "pile_set_name": "StackExchange" }
Q: Using "there're" to abbreviate "there are" Possible Duplicate: Is “there're” (similar to “there's”) a correct contraction? Since using there's for a plural object would be incorrect, would it be possible to use there're to abbreviate there are? e.g. I've been told there're many different ways to solve this prob...
{ "pile_set_name": "StackExchange" }
Q: Detect repetitive pixel patterns in an image and remove them using matlab I'm using Matlab R2017a and I have a RGB image (TIFF 128x128 uint16), shown below as a png image: Actual TIFF image: http://s000.tinyupload.com/index.php?file_id=13823805859248753003 As shown above, there's a repeating pattern of really lig...
{ "pile_set_name": "StackExchange" }
Q: How to set an alert box in Android and is there any API to send data from an app to a URL I am a new developer. I am facing some problems in my new app. I have placed three edit boxes. When the user hits the button next to those edit boxes, I want to set up an alert box if any of the edit boxes is not yet filled ...
{ "pile_set_name": "StackExchange" }
Q: How to hide a custom text attribute which displayed in product edit backend I am using Magento 2.2.5 I need to hide a text attribute which I'm using to save serialized data of custom options of product. I think this can be done using adminhtml/ui_component/product_form.xml file, but don't know how. Thanks A: Yo...
{ "pile_set_name": "StackExchange" }
Q: Symfony2 Doctrine2 - generate Many-To-Many annotation from existing database by doctrine:mapping:import I want to generate Entities from an Existing Database by using Doctrine tools for reverse engineering you can ask Doctrine to import the schema and build related entity classes by executing the following two co...
{ "pile_set_name": "StackExchange" }
Q: Обобщения по Шилдту закрытый / открытый тип Господа, учу обобщения по Шилдту и наткнулся на такую вот цитату: C# чаще определяются такие понятия, как открытый и закрытый типы. Открытым типом считается такой параметр типа или любой обобщенный тип, для которого аргумент типа является параметром типа или же включает...
{ "pile_set_name": "StackExchange" }
Q: Ansible - combining string with an existing variable to register into another variable I want to combine a fact set with set_facts with a string variable and register it as a new variable. I think, we cannot register a new variable in an Ansible playbook. So can I use set_facts again to combine a previous set_fact...
{ "pile_set_name": "StackExchange" }
Q: Why is $e$ a good base to use whenever you have a moving exponent While trying to evaluate a limit involving $x^x$ our professor told us that whenever dealing with moving exponents the best thing to do is to use "base $e$", why is that? A: Using $e$ simplifies lot of calculation, because number $e$ itself is the...
{ "pile_set_name": "StackExchange" }
Q: Verifying email and hashed password always returns None when details are definitely in DB I have a simple program to check if an email and hashed password are in a Postgres database (It's meant to be a cgi app, but because it fails, I'm testing it as a script first): import cgi import cgitb import hashlib import p...
{ "pile_set_name": "StackExchange" }
Q: Does an RL agent still learn if its actions are "blocked"? Say we have a game that is a maze environment where there is a character to be controlled through the maze. When the agent (the character) approaches a wall, it may try to execute an action that would lead it into the wall, which is not permitted. Instead ...
{ "pile_set_name": "StackExchange" }
Q: Laravel form submission sending to the wrong route? I have a very simple form: {!! Form::open(['route' => ['complete.order']]) !!} {!! Form::hidden('date', \Carbon\Carbon::now()->format('F j, Y ')) !!} {!! Form::hidden('web_token', $order->web_token) !!} {!! Form::submit('Place this order', ['class'=>...
{ "pile_set_name": "StackExchange" }
Q: How can I see raw bytes stored in a MySQL column? I have a MySQL table properly set to the UTF-8 character set. I suspect some data inserted into one of my columns has been double encoded. I am expecting to see a non-breaking space character (UTF-8 0xC2A0), but what I get when selecting this column out of this t...
{ "pile_set_name": "StackExchange" }
Q: how to add sequence to primary key in plSQL I'm using pl sql developer 12.what i want is to add the make the primary key sequential using oracle 12' windows and forms , not by scripting. I can't find out how?. aslo, how can i make one to one relation between 2 tables (user,role), in user table i added role_id as ...
{ "pile_set_name": "StackExchange" }
Q: Crawling sites with certain domain suffix I am interested in finding as much domain names as possible that have a given domain suffix that I am interested in, for instance: ".com", ".net", ".org", etc. I tried to crawl Google, but it obviuosly isn't legal and is hard to do. Does there exist a large list with domai...
{ "pile_set_name": "StackExchange" }
Q: Padrino app with REST API Within a Padrino application I have a posts controller with the conventional routes: Blog::App.controllers :posts do get :index do ... end get :show, :with => :id do ... end end This gives me therefore the normal URL access within the posts namespace http://blog.dev/po...
{ "pile_set_name": "StackExchange" }
Q: Script only partially runs on theme activation, but runs fully on deactivation? The code below is near the top of my functions.php and is set to run only when my theme is activated: if ( is_admin() && isset($_GET['activated'] ) && $pagenow == 'themes.php' ) { However, even though its creating the category "my-uti...
{ "pile_set_name": "StackExchange" }
Q: UITextView shouldChangeCharactersInRange in Swift Trying to disable/enable the next button (which begins disabled on the storyboard) based on how many characters are in the textView field. It isn't working, which makes me think that only the textField has this feature and not the textView (they were really lazy wi...
{ "pile_set_name": "StackExchange" }
Q: Best practice for single-valued result in SSRS 2012 I'm new to Reporting Services and using SQL Server Data Tools (Visual Studio 2012). I want to add an item that will display a single value - in this case, the result of a stored procedure call. The value would probably be displayed in the report header. I've lo...
{ "pile_set_name": "StackExchange" }
Q: JAWS / Web-Aim Is there any way to specify text as "a time" for screen readers? If JAWS comes across a time in my page like so: <div> <span>20:15</span> <!-- either of these times --> <span>04:15</span> <!-- either of these times --> </div> Then it reads them as "Twenty colon fifteen" which doesn't really sou...
{ "pile_set_name": "StackExchange" }
Q: How to create a list from another list using specific criteria in Python? How can I create a list from another list using python? If I have a list: input = ['a/b', 'g', 'c/d', 'h', 'e/f'] How can I create the list of only those letters that follow slash "/" i.e. desired_output = ['b','d','f'] A code would be ver...
{ "pile_set_name": "StackExchange" }
Q: how to pass id across tabs in mvc razor view I have an mvc view with multiple bootstrap tabs. Once i clicked on save in the first tab an entry will be generated in the database and an id (identity key in the db) will be generated. When i click on the next tab (i use the jQuery click event) i want to pass the id ge...
{ "pile_set_name": "StackExchange" }
Q: Aligning labels at the side of tikz diagram I'm using the tikz package to create diagrams showing the formation process of simple fractals, the first one being is the Cantor set. I'm showing a couple of iterations each one below the previous with its corresponding label at the side and then a larger space before t...
{ "pile_set_name": "StackExchange" }
Q: Cin loop never terminating I'm having trouble getting my cin loop to terminate in my program. My program uses Linux redirection to read in input from the file hw07data, the data file look like this: 100 20 50 100 40 -1 A34F 90 15 50 99 32 -1 N12O 80 15 34 90 22 -1 The first portion is the total points for the cl...
{ "pile_set_name": "StackExchange" }
Q: Melhor centralizar por margin:auto ou text-align:center? Buscando boas práticas em HTML, qual a melhor forma de centralizar? Vejo que consigo centralizar o menu de uma página por ambas as opções, porém fico na duvida de qual a melhor forma e também de qual é a forma correta ao invés de apenas usar uma que funcione...
{ "pile_set_name": "StackExchange" }
Q: Sorting and keeping the main format of list numbers I have a list with these elements: list={1/2 (1 + Sqrt[5]), 1, 1, 1/2 (1 - Sqrt[5]), 0}; I want to sort them with Sort[list]; I see the bellow result: Which is incorrect, because N[1/2 (1 - Sqrt[5])]= -0.6, However I can write Sort[N[list]] but I need to have ...
{ "pile_set_name": "StackExchange" }
Q: What is the difference between off vs. from? What is the difference between off vs. from? For example, I fall from the car or I fall off the car? A: "I fall from the car" means there was no specific relation between you and the car before you fell. In this usage it is more likely to refer to you being in the ca...
{ "pile_set_name": "StackExchange" }
Q: Solve $f(x) = 6x^3 + 27x^2 + 17x + 20 \equiv 0 \pmod{30}$ Problem Solve $f(x) = 6x^3 + 27x^2 + 17x + 20 \equiv 0 \pmod{30}$ My attempt was: Since $30 = 2.3.5$, we then have: $$ \begin{cases} f(x) \equiv 0 \pmod{2}\\ f(x) \equiv 0 \pmod{3}\\ f(x) \equiv 0 \pmod{5}\\ \end{cases} $$ By inspection, we see that...
{ "pile_set_name": "StackExchange" }
Q: Adding a button for google signin using f#/fable/asp.net/react I'm working with the SAFE stack (https://safe-stack.github.io/) and through the example dojo. It's great so far. I'd like to extend the example to include a button to login/auth via Google. So I looked at an example on the Google website (https://deve...
{ "pile_set_name": "StackExchange" }