text
stringlengths
181
35.5k
meta
dict
Q: Calling JavaScript function from [WebMethod] I need to call a JavaScript function that shows a Bootstrap modal. I have the following code: [System.Web.Services.WebMethod()] [System.Web.Script.Services.ScriptMethod()] public static void execModal(string groupname, int zw) { //need to generate the data first ...
{ "pile_set_name": "StackExchange" }
Q: DataTables YajraBox Laravel extension with Eloquent Query String Filtering im newbie Laravel, im trying to create a data table with YajraBox extension. Im stuck on ajax controller: public function indexData(LotFilters $filters) { $lots = Lot::filter($filters)->get(); return Datatables::of($lot...
{ "pile_set_name": "StackExchange" }
Q: Exclude element from zooming using SvgPanZoom I have an SVG and in it a lot of elements. I also have a popup element which is shown on an element click. When I zoom the SVG the popup should not be zoomed. How can I prevent this popup from being zoomed with the SVG? A: See this demo. Basically you can zoom only o...
{ "pile_set_name": "StackExchange" }
Q: Creating an object of an inherited class in c# This should be a pretty straight-forward question. I only ask for a simple easy to understand answer. No, I don't want a textbook definition or a link to documentation, please, if possible answer this as simply as possible. Consider the following: class Monster { ...
{ "pile_set_name": "StackExchange" }
Q: Extracting different length of numbers (latitude and longitude) from unstructured text file with R I want to extract differents latitudes and longitudes from from unstructured text file. The coordinates can take these forms : "0.41566" ; "-0.41566" ; "21.36584785" ; "100.2457 This syntax works only for numbers l...
{ "pile_set_name": "StackExchange" }
Q: How to create a file in shell script I need to write a shell script where I read a variable from environment. If the file pointed by it doesn't exist, I want to create it. This file path could contain some intermediate non-existent directories, so these also need to be created. So neither mkdir -p works here nor s...
{ "pile_set_name": "StackExchange" }
Q: Merge Elements Of int array C# I've been looking around on MSDN and Stack overflow for a while now, but i can't seem to find anything, i want to merge elements of an int array. I've looked at string.join but can't seem to find an equivalent for int int[] myArray = new int[] {1,4}; int myArray[0] + myArray[1] would...
{ "pile_set_name": "StackExchange" }
Q: Why does bodies move after an perfect inelastic collision? This might be a very basic concept but I have never been able to understand it. Lets say a object with speed $v$ collides with another of same mass at rest in an perfectly inelastic collision in which the momentum. Why does then the both object join and m...
{ "pile_set_name": "StackExchange" }
Q: Create a QDockWidget that resizes to it's contents I have an application where fixed-size child widgets need to be added programatically to a dock widget at run time based on user input. I want to add these widgets to a dock on the Qt::RightDockArea, from top to bottom until it runs out of space, then create a new...
{ "pile_set_name": "StackExchange" }
Q: Laravel Route URI: Add or condition I have written a route with uri, which accepts /app/12/password Route::get('app/{id}/password', 'AppController@pwd')->name('apwd'); Now i want to extend it to also accept /app/12/pwd. What is standard way to do this, since i can't write different route. I tried. Route::get('...
{ "pile_set_name": "StackExchange" }
Q: Is it safe to recycle DatagramPacket objects? The Question: Assuming you are transferring up to 10 MB/s, is it a good idea to recycle DatagramPacket objects, instead of creating a new one every time a packet is to be sent? The Story: I'm creating a LAN file-sync application that deals with files over 30 GB at tim...
{ "pile_set_name": "StackExchange" }
Q: C: program prints garbage text even after structs are freed I have a program with the following structs: typedef struct slide { int number; int maxX; int y; int r, g, b; struct line *first; } slide; typedef struct line { char content[256]; // number subject to change int r, g, b; s...
{ "pile_set_name": "StackExchange" }
Q: How to Make ZURB Foundation Top-Bar Dropdown Menu 100% Width? Did some searching but only found info for the megaBar. Would like to have 100% width dropdown widths and implement it with as little css/js on top of Foundation as possible. I'd like to do a sub menu (ul > li.has-dropdown -> ul.dropdown) that is 100% w...
{ "pile_set_name": "StackExchange" }
Q: Spring Integration - how to send POST parameters with http outbound-gateway I'm trying to put together a really simple HTTP POST example using Spring Integration and a http outbound-gateway. I need to be able to send a HTTP POST message with some POST parameters, as I would with curl: $ curl -d 'fName=Fred&sName=B...
{ "pile_set_name": "StackExchange" }
Q: What properties are allowed in comprehension axiom of ZFC? I am trying to understand the axioms of ZFC. The axiom schema of specification or the comprehension axioms says: If A is a set and $\phi(x)$ formalizes a property of sets then there exists a set C whose elements are the elements of A with this property. I ...
{ "pile_set_name": "StackExchange" }
Q: how to populate input type tesxt with ajax I want to know how can i populate a value of input type text with ajax. Thanks. A: By, AJAX I assume you mean JavaScript. Well, you could use something like this: <html> <head> <title>Form Example</title> <script type="text/javascript"> window.onload = function() { ...
{ "pile_set_name": "StackExchange" }
Q: Collections.shuffle only working once I checked a previous answer but it didn't work for me. I have the following code public static void createPopulation(ArrayList<City> city) { for (int i = 0; i<gen.getSize(); i++) { ArrayList<City> copy = new ArrayList<City> (city); //added from previous questi...
{ "pile_set_name": "StackExchange" }
Q: Avoiding race conditions in Python 3's multiprocessing Queues I'm trying to find the maximum weight of about 6.1 billion (custom) items and I would like to do this with parallel processing. For my particular application there are better algorithms that don't require my iterating over 6.1 billion items, but the tex...
{ "pile_set_name": "StackExchange" }
Q: Сохранение данных из запроса в Redux хранилище необходимо получить информацию запросом (готово при помощи Axios) и сохранить её в Redux хранилище для дальнейшего использования в разных компонентах, как это сделать? Где правильно разместить функцию с запросом и как передать результат в хранилище? Может у кого то ес...
{ "pile_set_name": "StackExchange" }
Q: django DEBUG=False still runs in debug mode I'm having issues setting my DEBUG = False on my deployed server (on heroku). I don't believe I've seen this before, but setting debug to false is not getting rid of debug mode for my project. This means that when there are 500 errors it shows the error, and 404 errors a...
{ "pile_set_name": "StackExchange" }
Q: setting the NR to 1 does not work (awk) I have the following script in bash. awk -F ":" '{if($1 ~ "^fall") { NR==1 {{printf "\t<course id=\"%s\">\n",$1} } } }' file1.txt > container.xml So what I have a small file. If ANY line starts with fall, then I want the first f...
{ "pile_set_name": "StackExchange" }
Q: What are the largest Technic-compatible tires on the market? I am looking for the largest LEGO wheels with tires available to build a nice-sized RC LEGO car. Of course I will start with the simplest prototype, but I would like to achieve a design which will embed an automatic gear box and quite a large propulsion ...
{ "pile_set_name": "StackExchange" }
Q: Resolve container name in extra_hosts option in docker-compose I need to curl my API from another container. Container 1 is called nginx Container 2 is called fpm I need to by able to bash into my FPM container and curl the nginx container. Config: services: nginx: build: context: . dockerfile: ...
{ "pile_set_name": "StackExchange" }
Q: How to sort an array given a range? First of all I am using java and my first objective is to use bubble sort to sort an array in descending order given the range lowindex..highindex (inclusive). So my question is how to sort an array given a range? An example would be greatly appreciated to get me started on doin...
{ "pile_set_name": "StackExchange" }
Q: Lookup exchanged data between PHP and Flash I'ld like to see the data that is exchanged between a Flash based web app and PHP. What is the tool of choice for that? A: Fiddler is a great tool for sniffing HTTP requests. You can download it here. Also, Google Chrome's Developer section (shortcut : ctrl + shift + j...
{ "pile_set_name": "StackExchange" }
Q: Matchmaking program in C? The problem I am given is the following: Write a program to discover the answer to this puzzle:"Let's say men and women are paid equally (from the same uniform distribution). If women date randomly and marry the first man with a higher salary, what fraction of the population will get mar...
{ "pile_set_name": "StackExchange" }
Q: .HTACCESS RewriteRule force default page to HTTP I did a lot of searching on this, and just couldn't quite find the right answer. A lot of things got me close, but nothing worked like I wanted it to. I'm working on a site where, because of an external JQuery add-on library, I need to force certain pages to be HTT...
{ "pile_set_name": "StackExchange" }
Q: Controlling multiple pointers with Xlib or xinput in ubuntu/linux I'm creating a system that uses multiple cursors (pointers) in multiple xsessions. My computer has multiple video cards in it for controlling different monitors. I want to have a different cursor on each screen and control each. Each monitor is a di...
{ "pile_set_name": "StackExchange" }
Q: Fermat's proof for $x^3-y^2=2$ Fermat proved that $x^3-y^2=2$ has only one solution $(x,y)=(3,5)$. After some search,i found only proofs using factorization over the ring $Z[\sqrt{-2}]$. My question is: Is this Fermat's original proof?If not where can i find it? Thank you for viewing Note: I am not expecting to f...
{ "pile_set_name": "StackExchange" }
Q: How should I handle total freeze upon launching iPhone simulator? I updated Xcode (11.4.1) this afternoon and noticed the new iPhone SE 2 simulator option. Cool! My iOS app was running fine on my physical device and all simulator before this update, but now when I launch the simulator, it freezes my MBP (2019 16",...
{ "pile_set_name": "StackExchange" }
Q: I need jquery UI auto complete source from mysql database I create auto complete but its source coming from javascript, now i want to get source from mysql database using php language.Below is my script, Please help me <SCRIPT language="javascript"> $(document).ready(function() { $("input#autocomplete").autocomp...
{ "pile_set_name": "StackExchange" }
Q: How to loop over array of hashes and remove a hash where a key has a specific value? I'm trying to loop over an array of hashes containing a set of keys and values, in this loop I want to check whether any key (or a set of specific keys, whatever that is most simple) has a certain value. This is what I've got so f...
{ "pile_set_name": "StackExchange" }
Q: Oracle Java - Add optional date parameter to Prepared statement I want to add optional "todate" parameter to Prepared statement One way is to add a placeholder for optional parameter(s) and replace it before execute where id=? OPTIONAL_SECTION For example OPTIONAL_SECTION will be set to TO_DATE <=sysdate -1 A...
{ "pile_set_name": "StackExchange" }
Q: Use JetBrains Toolbox to get Early Access versions I am using the Jetbrains Toolbox tool to auto-install updates to IntelliJ IDE. This works well for regular releases. But how do I use this tool to obtain an Early Access pre-release? I see a hexagon-shape icon that displays a menu. But the menu items there say no...
{ "pile_set_name": "StackExchange" }
Q: Select Values While Sum I have a table with a date and an integer value. I want to sort the table by the date and pick the top n rows until the integer values sum up to 12 or more. A: You can use a cumulative sum: select t.* from (select t.*, sum(val) over (order by date) as sum_val from t ) t where...
{ "pile_set_name": "StackExchange" }
Q: PostgreSQL: How to differentiate stored procedures and table-valued functions? Question: In Microsoft SQL Server, there are stored procedures, and there are table-valued functions. The difference is, from a stored procedure, I cannot do further selects, while from a table-valued function, I can. e.g. SELECT * FROM...
{ "pile_set_name": "StackExchange" }
Q: Convert column of strings representing variously formatted dates into a column of dates I'm looking for an efficient way to convert a column of strings in a data table into a column of dates with the proviso that the strings may be in one of three date formats -- number, %Y-%m-%d, %m/%d/%Y. The following illustrat...
{ "pile_set_name": "StackExchange" }
Q: How to get the index of the element by class that is clicked I have this code: <button class="remove" value="1" /> <button class="remove" value="2" /> <button class="remove" value="3" /> $(document).on('click', ".remove", function(e) { alert($(this).index()); }); It is always alerting 0. If the user clicked ...
{ "pile_set_name": "StackExchange" }
Q: Does Flask-Login not support roles? If not, are there any projects that have added this feature to Flask-Login? Otherwise, it appears to be a bit daunting to migrate from Flask-Login to Flask-User. Otherwise, is there any sort of direction out there for migrating from Flask-Login to Flask-User? A: Again, answeri...
{ "pile_set_name": "StackExchange" }
Q: Boolean coding for date class Date { private int day; private int month; private int year; public Date() { } public Date(int day, int month, int year) { this.day = day; this.month = month; this.year = year; } public int getDay() { return this.day;...
{ "pile_set_name": "StackExchange" }
Q: self referencing generic with inheritence I have a class AnimalQueue which is a queue of Animals. Each queue will only store a certain type of Animal, and I want to make sure that only Animals that match the type of the queue are added to it: Public Class AnimalQueue(Of T As Animal) Public Sub Add(pA As T) ...
{ "pile_set_name": "StackExchange" }
Q: swipes are not getting detected In the below posted code, I am trying to detect swipes using onDown and onFling but when I run the App, nothing appears. I expected to see output coming from onFling when I hold touching the screen and drag my finger across it quickly, but i received nothing. Also, I expected to se...
{ "pile_set_name": "StackExchange" }
Q: SQL Server Trigger not Working i have this 2 triggers and no one is working, but i dont know why, can´t everyone help me: Insert: CREATE TRIGGER [dbo].[afterInsert] ON [dbo].[LinhasVenda] FOR INSERT AS BEGIN DECLARE @IdVenda INT, @PrecoTotalSIva MONEY, @PrecoTotalCIva MONEY SELE...
{ "pile_set_name": "StackExchange" }
Q: Revision control -- Title Color Overlap I am looking at the rev control for this question and on my screen in Chrome 13.0.7 it looks like this: This should be remedied because it can get hard to read if the title is more than one line. It might just be a minor css issue. The same happens if you click on the secon...
{ "pile_set_name": "StackExchange" }
Q: Determine the region bounded by the inequalities Determine the region bounded by the inequalities: $$ 0 \leq x + y \leq 1 \\ 0 \leq x - y \leq x + y $$ I don't know what to solve for first, so I just added them: $$ 0 \leq x \leq 1 + x + y \\ $$ I guess I can subtract $x$: $$ -x \leq 0 \leq 1 + y \\ $$ Or: $$ -...
{ "pile_set_name": "StackExchange" }
Q: Parsing charts from a series of webpages Maybe there is something regarding this subject but I haven t found it, yet. I have parsed a list of webpages and I am extracting the lists I need from the https://tradingeconomics.com/ website. In any page appears a list of countries with an hyperlink for any country to h...
{ "pile_set_name": "StackExchange" }
Q: Negation of verb/gerund I made up the following sentences. Which version is correct? I prefer being by myself and not depend on others. I prefer being by myself and don't depend on others. I prefer being by myself and not depending on others. The first version looks to me a nice version to hear it. But n...
{ "pile_set_name": "StackExchange" }
Q: (ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found I have installed Python 3.8.1 and have installed the ibm_db 3.0.1 API for IBM DB2. When I try to 'import ibm_db' in debug mode I get "ImportError: DLL load failed while importing ibm_db: The specified module coul...
{ "pile_set_name": "StackExchange" }
Q: Errors with configuring Propel ORM in Symfony2 I'm trying to configure propel ORM in Symfony2 project, but I keep getting this error message when ever I run symfony command lin tool: [Symfony\Component\Config\Exception\FileLoaderLoadException] There is no extension able to load the configuration for "propel" (in...
{ "pile_set_name": "StackExchange" }
Q: Modular exponentiation fails for large mod in C++ This is the code I'm using for calculating (n^p)%mod. Unfortunately, it fails for large values of mod (in my case mod = 10000000000ULL) when I call it from main() method. Any idea; why? ull powMod(ull n, ull p, ull mod) { ull ans = 1; n = n%mod; while(p...
{ "pile_set_name": "StackExchange" }
Q: Encryption & Decryption Question Greetings all i want to know how to make good encryption and decryption for something in java and is is possible for anyone to decrypt something encrypted ? A: It's always possible. Encryption/decryption is only as good as the underlying algorithm. Given enough time and comput...
{ "pile_set_name": "StackExchange" }
Q: How to use "due to" for two clauses I am wondering which of the following sentences is properly written: This is due to {First Clause} and to {Second Clause}. or This is due to {First Clause} and {Second Clause}. The question is how we should distribute "to" between clauses? This question also remains for othe...
{ "pile_set_name": "StackExchange" }
Q: Critique my SMPS buck design I'm using an LM2734 buck regulator to get +3.3V at 400mA. The datasheet is unclear on how to lay out the supply, so I tried to follow some common sense, keeping all power traces short where possible. The power supply has to be very small, which is why it uses ceramic caps and the LM273...
{ "pile_set_name": "StackExchange" }
Q: Oracle Procedure create or replace function gen.sample_func(owner varchar2) return varchar2 as data_t varchar2(10); cursor cur is select data_type from SYS.DBA_TAB_COLUMNS; begin open cur; dbms_output.put_line('Done'); close cur; return data_t; ...
{ "pile_set_name": "StackExchange" }
Q: YAML $ref is not control-clickable (hyperlink) in IntelliJ IDEA We have a .yml file defining the REST API, with many entries like this /projects/{projectId}/jobs/{jobId}: parameters: - $ref: '#/parameters/projectId' - $ref: '#/parameters/jobId' get: summary: Get Job responses: ...
{ "pile_set_name": "StackExchange" }
Q: Pushing data from one workbook to another I have an Excel workbook book1.xlsm and another one as book2.xls. I want to push values from book1 to book2 via a macro running in book1. Is there a way in which even if the workbook book2 is closed the value is pushed to it? The main reason for asking this is that it will...
{ "pile_set_name": "StackExchange" }
Q: How to work with Dropbox Paper TODOs via API? I have gone through the API documentation on the Dropbox website, and have found the section that relates to Paper, however I don't see a way to work with the TODO's for a document or a user. Is this something that is not yet supported or have I missed it ? A: The Dr...
{ "pile_set_name": "StackExchange" }
Q: Custom Compare function for std::binary_search Is there any problem with this code? bool Spellcheck::smart_comp(string value, string key){ return true; } void func(){ std::string aprox_key = "hello"; if(std::binary_search(this->words.begin(), this->words.end(), aprox_key, smart_comp)){ std::co...
{ "pile_set_name": "StackExchange" }
Q: Can I use a deep fryer instead of a pot with oil? I got a deep fryer for Christmas, and that made me think of all the donut recipes I have seen floating about, like this one for crullers or this one for chocolate dipped donuts. These are just two examples, but I noticed they all call for a pot filled with about 2 ...
{ "pile_set_name": "StackExchange" }
Q: Storing a word with double quotes into a char array How do I store the following into a char array: AT+CIPSTART="TCP","103.6.157.239","8085" When I do the following : char L []="AT+CIPSTART="TCP","103.6.157.239","8085""; I get an error : ../GPRS.c:48: error: expected ',' or ';' before 'TCP' A: Try this char ...
{ "pile_set_name": "StackExchange" }
Q: Is there an acceptable cross-platform method for displaying a numeric keypad in standard web forms on a touch-based device? The goal: To find a cross-platform solution for displaying numeric keyboards on mobile touch-based devices, with a minimum of hacks. The problem: I have a regular web application using data ...
{ "pile_set_name": "StackExchange" }
Q: Setting Privacy Settings using the Facebook API I am working with the Facebook API for C#. I am unable to find any reference to changing privacy settings using the API. I've looked at a lot of different places, with no success. Could anyone guide me in the right direction? Thanks! A: You can't. Only through the ...
{ "pile_set_name": "StackExchange" }
Q: Eilenberg-MacLane Spaces of "large" groups It is well-known that if $G$ is a discrete group, then $BG=K(G,1)$. I'm interested in comparing classifying spaces of topological groups with the classifying spaces of the same groups but equipped with the discrete topology. They will be quite different in general, that m...
{ "pile_set_name": "StackExchange" }
Q: Rejected gated check-in (old vb.net Website) I have an old vb.net Website that targets .NET Framework 2.0. When I build and run the project locally, everything works fine. When I queue a build on the tfs I get the following error: ~\Website.metaproj: .NET Framework v3.5 Service Pack 1 was not found. In order to t...
{ "pile_set_name": "StackExchange" }
Q: What is Android CameraX? What is Android CameraX? There is a session about CameraX planned in Google I/O 2019. What is it? Is it a new framework API? Is it a new library? https://events.google.com/io/schedule/events/8d400240-f31f-4ac2-bfab-f8347ef3ab3e Does it mean that Camera2 API is deprecated? https://github.co...
{ "pile_set_name": "StackExchange" }
Q: Creating A Sign Up Activity using Parse In my application I am creating a sign up activity using parse database and I used the signUpInBackground() but when I run the code on the emulator the parse is giving me a message that says "unauthorised. Join.setOnClickListener(new View.OnClickListener() { @Overrid...
{ "pile_set_name": "StackExchange" }
Q: photo gallery php echo pic on submit I got an assignment to build a photo gallery that works without JS, and you have a working navigation where you can go to next or previous photo. I did a counter that counted from 1-6 (number of pics) then I made if statsment. That is if $spaceship = 1,2,3,4,5,6 echo "that img"...
{ "pile_set_name": "StackExchange" }
Q: problems with ordering dates in r I am trying to order dates in R. I have some strings which look like this jnk <- c("2016-01-12T10:54:41Z", "2016-01-12T12:40:30Z", "2016-01-12T14:59:22Z", "2016-01-12T15:55:10Z", "2015-03-29T02:56:42Z", "2015-03-29T02:40:56Z") So I format them with strptime jnk2 <- strp...
{ "pile_set_name": "StackExchange" }
Q: Check if dropdown's selected option is not the first with JavaScript Below are the options that i have in my HTML code: <label id="subn"> <select name="subs" id="subs"> <option value="nothing">Choose a Subject</option> <option value="General Question">General Question</option> <op...
{ "pile_set_name": "StackExchange" }
Q: Is there a publicly available instance of ArcGIS Server Are there any publicly available instances of ArcGIS Server for learning? I have searched Amazon EC2 but I don't see any public instances available (unless you already have an ArcGIS Server license). A: When you say instances, I am assuming you mean to hoo...
{ "pile_set_name": "StackExchange" }
Q: How do i send enum string values to client I have defined an enum as following. public enum Month { January, February, March, April, May, June, July, August, September, October, November, December } I am getting and sending it back to client. public List<Month> Get...
{ "pile_set_name": "StackExchange" }
Q: Typing a question ID in the search box doesn't "work" If I type question or answer ID into the search box, I would expect that to shortcut me to that question or at least a search results page with that answer/question. But it doesn't. A: uhh.. it already does that? https://meta.stackoverflow.com/search?q=33155...
{ "pile_set_name": "StackExchange" }
Q: Are there surahs in the quran which state that the moon is lit by reflected sunlight? When I look up at the moon at night, it looks like a source of its own light just like the sun. surah 71:16 expresses this observation as: And made the moon therein a [reflected] light and made the sun a burning lamp? The [refl...
{ "pile_set_name": "StackExchange" }
Q: Install python-glpk I want to install python-glpk I followed the instructions here: https://en.wikibooks.org/wiki/GLPK/Python But when I tried to do this: import glpk print glpk.glp_version() I have these errors Thank you A: Bug For Ubuntu 16.04 LTS it is known issue - it was reported to LaunchPad.net on 2016...
{ "pile_set_name": "StackExchange" }
Q: jQuery Json and Each There is my code: $.ajax({ url: "?module=gestionApplication&action=importScenario&fichierconf="+$fichierconf, dataType: "json", success: function( data ) { $( "#dialog-scenario input#fichierxml" ).val( data.FICHIERXML ); $( "#dialog-scenario input#fichierproxy" )....
{ "pile_set_name": "StackExchange" }
Q: Meaning of the Poynting vector In a book I am studying, the Poynting vector is defined as: $$ \mathcal{P} = \mathbb{E} \times\mathbb{H} $$ and it is described the Poynting's theorem, that states that the flux through a surface wrapping a volume is the energy balance on that volume. In another part of the book, it ...
{ "pile_set_name": "StackExchange" }
Q: Is using __PACKAGE__ inside my methods bad for inheritance? If inside my code I'll have calls like: __PACKAGE__->method; will this limit the usability of this module, if this module is inherited? A: It depends on what you want to do: #!/usr/bin/perl package A; use strict; use warnings; sub new { bless {} => ...
{ "pile_set_name": "StackExchange" }
Q: how to change constants of class in Magento\Framwork? I'm newbie. My boss want to increase value of this const: const MAX_NUM_COOKIES = 50; path: vendor/magento/framework/Stdlib/Cookie/PhpCookieManager.php is it possible? if yes, which's the best way to do that? A: First, your boss should be aware of the implica...
{ "pile_set_name": "StackExchange" }
Q: Naming global variables in a structured way My current project has global constants that define certain rows and columns in workbooks that this project will be searching through. I have defined them as such: Public Const headRow As Integer = 1 Public Const descRow As Integer = 2 Public Const pnumCol As Integer = 1...
{ "pile_set_name": "StackExchange" }
Q: Using AngularJS 1.2.16, unique issue with data escaping for href links having issues with ng-href i can use target="_blank" using AngularJS 1.2 ,old post but found what is going on leading me to another question,I have a page that has a table inside an accordian, in the JS file i have my angular functions and i ha...
{ "pile_set_name": "StackExchange" }
Q: useless pin_ptr while copying array I have some legacy code, which copy a native array into a managed one: float* nativeValues = new float[NumberOfSamples]; array<double>^ managedValues = gcnew array<double>(NumberOfSamples); pin_ptr<double> pinnedValues = &managedValues[0]; for (int i = 0; i < managedValues->Len...
{ "pile_set_name": "StackExchange" }
Q: Trying to add a column of logicals by looping over time in a tibble in R I started replicating the value factor used by Fama and French in r to build a portfolio strategy for my final dissertation. I have a dataset of monthly market caps from the S&P 500 over the years. I created a loop to determine whether the v...
{ "pile_set_name": "StackExchange" }
Q: How can I change serenity-bdd log settings I use Serenity BDD for test automation on my project, IntelliJ IDEA as IDE. I would like to change format and debug level of the logs I can see everytime I run tests. For example, I want to see logs only from [main] thread: [main] INFO net.thucydides.core.reports.junit.J...
{ "pile_set_name": "StackExchange" }
Q: Project Euler 22: Names scores by Loki 2 Alternative to Project Euler 22 solution. Project Euler 22 Slightly more brittle than the original. This code depends on the input stream being exactly as specified. But on the other side of the coin it's slightly easier to read because you don't have to wonder about std::l...
{ "pile_set_name": "StackExchange" }
Q: Is there a good javascript WYSIWYG tool that uses absolute positioning? I'm building a site where users (with no knowledge of html/css) will custom-design simple static HTML pages. Years ago, I used a CMS that used absolute positioning with drag and drop for designing static pages, and it was a fantastically easy...
{ "pile_set_name": "StackExchange" }
Q: Is the coefficient of restitution frame independent and energy conservation? In this question I am ignoring relativistic effects. The following statements I think are true: change in Kinetic energy is not invariant under change of frame Force is invariant under change in frame Change in velocity and relative velo...
{ "pile_set_name": "StackExchange" }
Q: Why SmtpClient SendAsync throws Exceptions with combinations of UseDefaultCredentials and EnableSsl, while Send works fine I'm using the System.Net.Mail. There are some topics around this area, but they are ASP.NET and often VB related. I'm isolating the code into a desktop skeleton code, I use .NET 3.5 and C#. So...
{ "pile_set_name": "StackExchange" }
Q: ggplot2: plot all attributes per id I have a survey where each line represents a person and each column represents how long they took to complete the survey I would like to plot a dot per timing per person so that if for example a person they completed the first part x1 in 10 minutes and the second part x2 in 12 m...
{ "pile_set_name": "StackExchange" }
Q: Print lines from one file that are not contained in another file I wish to print lines that are in one file but not in another file. However, neither files are sorted, and I need to retain the original order in both files. contents of file1: string2 string1 string3 contents of file2: string3 string1 Out...
{ "pile_set_name": "StackExchange" }
Q: How can I create an empty sql.Rows instance? I have a function that returns (*sql.Rows, error) in Go. Under some circumstances, there's nothing to return, but also no error. The choices seems to be: if (...) { return nil, nil } and then, in the caller: rows, err := fn() if err != nil { return nil, err } ...
{ "pile_set_name": "StackExchange" }
Q: get all table names with the primary key row count I have a scenario, where I need to compare data between two servers. Long story short, I need a result set which gives the output like SchemaName|TableName|RowCount_PrimaryKey Whenever a new student joins a unique schema is created say Stu1200 and this schema ha...
{ "pile_set_name": "StackExchange" }
Q: Cordova/Android: change app banner color (NOT status bar) I am currently using Apache Cordova to experiment with all of it's capabilities. I can't seem to find out how to change the banner that appears when you tap the "view open application" option on android. How do I change the color of the banner seen here? ...
{ "pile_set_name": "StackExchange" }
Q: How to get jquery append to only append at the bottom of the element and not multiple times When using append the element that I add is added several times to my page. From what I understand append adds to all appended elements which is why it is appending several times. I tried using clone, but had no success. ...
{ "pile_set_name": "StackExchange" }
Q: js/css add multiple backgrounds i have seen several usages of the .css() function or simply setting element.style.background in js what i want is to stack multiple backgrounds, ie add another background over the 1st one. i tried input.style.background.add("white url('http://cssdeck.com/uploads/media/items/5/5JuDg...
{ "pile_set_name": "StackExchange" }
Q: Full width mega menu on desktop within a Bootstrap Container I'm trying to create a mega menu that lives within the navigation list element but at the same time the mega menu needs to span the full width of the page. I'm stuck in that the mega menu is relative to where it's parent resides. The mega menu is alig...
{ "pile_set_name": "StackExchange" }
Q: Error: Objects are not valid as a React child, prop not returning in React Hook I am receiving an error when trying to return ( <div id="info_side">{info}</div> ) below. I have a _onClick function that works and I can console log info if I do not include {info} anywhere in the return. How can I fix this? Here is t...
{ "pile_set_name": "StackExchange" }
Q: How can I use lodash to filter value between two date? created_at is the value I Want to compare with the beginDate and the endDate. var newARRA = chain(this.props.transferts.transfertAccount) .filter({ 'officeSender': this.props.users.user.office,officeReceiver:this.state.selectedOffice, 'created_at':...
{ "pile_set_name": "StackExchange" }
Q: Get latest version in Chart.yaml I got the following Chart.yaml file for kubernetes: apiVersion: v1 description: Chart for installing myapp name: myapp version: 1.5.0 namespace: my-app How do I get the latest version without updating manually every new version? A: helm install myapp will always install latest a...
{ "pile_set_name": "StackExchange" }
Q: Each array need an unique key in React JS I'm using React-Slick slider component for React JS, but I'm getting a warning that each array has to have an unique key. I have an array inside of settings for the slider component. Settings are : const settings = { dots: false, arrows: false, aut...
{ "pile_set_name": "StackExchange" }
Q: How to StartEdit in EditingPlugin in grid? I know row index and column name. But EditingPlugin need startEdit( Ext.data.Model record, Ext.data.Model columnHeader )</code>. How I can take it and give it back? A: For the record you can do record = grid.getStore().getAt(recordIndex); but for the column header, I ...
{ "pile_set_name": "StackExchange" }