text
stringlengths
175
47.7k
meta
dict
Q: Dynamic href changing source from mysql Dynamic href changing source from mysql database <table> <tr th:each="c : ${contents}"> <td><a href="#" th:href="@{c.content}" onclick="loadSWF(this.href, 'flashcontent'); return false;" >Click here </a></td> </tr> </table> Above code is examble...
{ "pile_set_name": "StackExchange" }
Q: getting data from api before page renders react-native hooks thats it i need to get the values from the api before this one loads the slider this is how i call the api useEffect(() => { async function BCcontroller() { const vCreationUser = 6; const vSolicitudeId = 8; const { data } = await ForceApi....
{ "pile_set_name": "StackExchange" }
Q: Xcode 6.1 crashing when running the project I searched StackOverflow and it doesn't look like many people are having this problem, but for me, this happens very, very frequently. Maybe not every time, but perhaps every other time. Once I try to build and run the app, Xcode crashes, and in a strange way: it just d...
{ "pile_set_name": "StackExchange" }
Q: Characteristic polynomial of an inverse Given the characteristic polynomial $\chi_A$ of an invertible matrix $A$, I'm to find $\chi_{A^{-1}}$. I can see that this is theoretically possible. $\chi_A$ uniquely determines the similarity class of $A$, which uniquely determines the similarity class of $A^{-1}$, which u...
{ "pile_set_name": "StackExchange" }
Q: Visual Studio Razor Page False Syntax Errors Whenever I use the @ sign with a Razor page, such as this: <script type="text/javascript"> if( @(ProjectName.NameSpace.booleanVariable) ) { doStuff(); } </script> then I get syntax error notifications all over the place that turn out fine after the conversion to HT...
{ "pile_set_name": "StackExchange" }
Q: Loop to iterate over an array based on a pointer? If I have declared an external variable like extern char **seasons. Any tips on how to write a loop to iterate through this array? Assuming that a NULL value is the stopping condition? A: Assuming your array look like this : const char *data[] = {"This", "is", "a...
{ "pile_set_name": "StackExchange" }
Q: jQuery : Resizing the layouts I want re-sizable feature like jsFiddle : link. If i explain in my own words there are four layouts [1. HTML, 2. javascript, 3. CSS & 4.Result] and we can re-size the layout inwards & outwards. I have been tried to make resizable using jQuery but failed to do like jsFiddle. my...
{ "pile_set_name": "StackExchange" }
Q: Python Using mysql connection from super class Below is just example code that provides the error I am hoping to get help on fixing, or getting an understanding of a better way to write this. I have a mysql "super" class called mysql_connection. In this class, the connection to the database is made. I also have a ...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to hire Wolgraff if my personality is Priest? I've set my male character's personality to none or knight (I'm not sure) and my female character's personality to priest. When I try to hire Wolgraff my female character responds: He'll consider no such thing, we'll not align ourselves with a brigand ...
{ "pile_set_name": "StackExchange" }
Q: Navigation Drawer hangs while opening/closing on some devices While working with my android app, I found out that navigation drawer hangs while opening as well as closing. It hangs for 2-3 seconds. On most devices, it's fine (mostly with Stock Android) but on some devices, it hangs (Mostly Samsung). Home.java (act...
{ "pile_set_name": "StackExchange" }
Q: Unity3d vector and matrix operations I have the following three vectors: posA: (1,2,3) normal: (0,1,0) offset: (2,3,1) I want to get the vector representing the position which is offset in the direction of the normal from posA. I know how to do this by cheating (not using matrix operations): Vector3 result =...
{ "pile_set_name": "StackExchange" }
Q: All permutations of a tree I need an algorithm that computes all possible permutations of a given tree structure, for example: 4 3 \ | \ 2 \ / 1 This means, that (4) needs to be ordered before (1), (3) before (2) and (2) before (1).Thus the output should contain all of and not mor...
{ "pile_set_name": "StackExchange" }
Q: linking error Ipad Hi am having this error when I am trying to compile my application. Can any one please let me what this error is? Thanks Ld /Users/DineshParchuri/Library/Developer/Xcode/DerivedData/Graph_Theory-bxoahqkbiemabledhmfyzkqpotjr/Build/Products/Debug-iphonesimulator/Graph_Theory.app/Graph_Theory norma...
{ "pile_set_name": "StackExchange" }
Q: How to install Ubuntu while keeping my files' backup disk partition I made with windows (D:)? So I have my 2TB disk into two partitions (C:) and (D:), I don't care about (C:) which hosts windows. I want only Ubuntu as an operating system while keeping everything at the (D:) partition. Any idea if that is possible?...
{ "pile_set_name": "StackExchange" }
Q: Fast find of all local maximums in C++ Problem I have a formula for calculation of 1D polynomial, joint function. I want to find all local maximums of that function within a given range. My approach My current solution is that i evaluate my function in a certain number of points from the range and then I go throug...
{ "pile_set_name": "StackExchange" }
Q: When and how should a layperson declare their achievements? I have on occasion seen commenters here and elsewhere who declare their achievements, such as being a sotāpanna. These comments are downvoted, so they do not appear to be appreciated. If comments like these show up on public forums then casual visitors ma...
{ "pile_set_name": "StackExchange" }
Q: iPhone 4S Home Button Flush I've noticed over the last couple of weeks (to month) that the home button on my black 4S is becoming depressed relative to the case - only a very small amount but it now lacks the feedback it had when new. Having looked at my housemate's 4S of the same age and probably slightly worse ...
{ "pile_set_name": "StackExchange" }
Q: Advantages of using standard .Net Async patterns? I am designing a class that performs long running tasks. The first design I came up with was: public TaskHandle DoSomethingAsync(DoSomethingCompleteCallback completedCallback); public void CancelDoSomething(TaskHandle handle); This is simple and concise. How...
{ "pile_set_name": "StackExchange" }
Q: MustUnderstand attribute in WCF response causes error for Java/Axis client We have developed a WCF4 service with usernameToken authentication that is being consumed by a Java/Axis client (that we have no control over). I can see that the body of the request coming in looks like this... <soapenv:Envelope xmlns:soap...
{ "pile_set_name": "StackExchange" }
Q: how can one run video.js in phantomjs browser I was trying to automate phantomjs using selenium when I encountered that the page that was loading had a video.js tag and was trying to play a video. Please suggest me how to do it ? A: Unfortunately PhantomJS doesn't support html5 video: documentation You could tr...
{ "pile_set_name": "StackExchange" }
Q: Making music digitally -- where should children start? Digital musical instruments: How could children play with and learn, alongside traditional instruments? And how do the ecosystems for making music in iOS, Android, and Windows tablet compare? Virtual instruments, sequencers, sound editors. Accompanying yourse...
{ "pile_set_name": "StackExchange" }
Q: How to show 5 post each page with next & previous button feature? I have a page named 'job.php', currently this page is showing all posted job. But now I want to show only 5 latest posts. And if anyone want to check the previous posts, they can click next button thus more 5 posts will be seen. There should be a pr...
{ "pile_set_name": "StackExchange" }
Q: Is there a good tutorial or example that shows the combination of protobuf-net and zeromq? Is there a good tutorial or example that shows how to use protobuf-net and zeromq together? Maybe a sample client / server application showing this usage? A: That is a very specific pairing. I would instead focus on two qu...
{ "pile_set_name": "StackExchange" }
Q: MinkContext - it is not an interface Im trying to integrate behat on symfony 3.4 with the mink component, i already create the following behat.yml: default: extensions: Behat\Symfony2Extension: ~ Behat\MinkExtension: goutte: ~ selenium2: ~ base_url: http://mastersymfony.dev/app_dev.php bu...
{ "pile_set_name": "StackExchange" }
Q: Making sense of Scala FP Libraries Just for the sake of quick clarity for someone who wants to start working with Scala FP library, on a journey to become better at pure FP. Would someone clarify the difference/relation between Cats and Cats-Effect, Cats-Effects IO? On top of that, where does Zio, and Monix stand...
{ "pile_set_name": "StackExchange" }
Q: how to call a c# function in anchor tag click event How to call server side function using HTML anchor tag. Here I showed some example of my code. HTML <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Update</title> </head> <body> <form id="form1" runat="server"> ...
{ "pile_set_name": "StackExchange" }
Q: uploadify file object structure Can anyone tell me the structure of the uploadify file object (used by methods such as onSelect and onUploadSuccess). I have scoured the official documentation but with little success; although I know I can access file.name from the documentation (and after a bit of trial and error ...
{ "pile_set_name": "StackExchange" }
Q: How to put a background on ListView? I'am to develop an activity with ListView. I want to put a background to the ListView but when I lower the image remains on the same side but ListView moves. I want the image is adapted to ListView. My code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi...
{ "pile_set_name": "StackExchange" }
Q: Public Folder Contacts - Exchange 2010 So we are running Exchange 2010 and have a public folder containing thousands of contacts. Recently, someone created 10,000 duplicates but we don't know who. My question is, is there a way to tell who created these contacts via the powershell or EMC? Thanks A: Ah, it seems ...
{ "pile_set_name": "StackExchange" }
Q: Python Flask - TypeError: an integer is required (got type str) I'm building a simple web-app in Python Flask but when I am trying to submit the form, I am getting this error message - "TypeError: an integer is required (got type str)" from flask import Flask, render_template, request, flash, redirect, url_for, s...
{ "pile_set_name": "StackExchange" }
Q: iPhone - Does iPhone support RTSP? I am trying to implement streaming video on iPhone with RTSP protocol. On Mac, the QuickTime support RTSP and I tested streaming video with this. This means iPhone can support RTSP, I think. But I could not implement on iPhone with MPMoviePlayerController. Who knows about this. R...
{ "pile_set_name": "StackExchange" }
Q: Is there a sequel to Hitchhiker's Guide to the Galaxy (2005)? Wasn't there a sequel to The Hitchhiker's Guide to the Galaxy (2005)? I can't seem to find it online. I'm pretty sure that Restaurant at the end of the Universe got made into a film. No? Did I just imagine that? All...so...vividly?! A: There was no f...
{ "pile_set_name": "StackExchange" }
Q: Trying to create a Pong game I'm trying to create a pong game in Java, and I'm having a little trouble with the ball physics. It all works pretty much perfectly, until the ball gets too slow. I made it so the ball decreases in speed by 0.02 pixels per frame per frame, but I don't want the it to get too slow, so ...
{ "pile_set_name": "StackExchange" }
Q: Trouble with scipy kmeans and kmeans2 clustering in Python I have a question about scipy's kmeans and kmeans2. I have a set of 1700 lat-long data points. I want to spatially cluster them into 100 clusters. However, I get drastically different results when using kmeans vs kmeans2. Can you explain why this is? My co...
{ "pile_set_name": "StackExchange" }
Q: Modify reassign task form Can't figure it out, how do I open reassign task form in InfoPath? I need it to modify that it would be fit for me. A: I found where it is. You have to open you desired form then go to Page Design > View: Click on view drop down list and you can see reassigntask form
{ "pile_set_name": "StackExchange" }
Q: Selenium (Python) - Get webdriver's page_source after page is fully loaded I have to get data from a dynamic page (many of them in fact). I can access the page using Selenium in Python. However, the driver.page_source is incomplete. Even if I try driver.implicitly_wait(100) nothing changes. I also tried: from sel...
{ "pile_set_name": "StackExchange" }
Q: C#/WPF Textbox error : "Value '' cannot be converted", TargetNull not working I have a Listview and a Textboxbinded to the selected item. When the user deletes the value in the textbox (which is a double), I get the following error : Value '' cannot be converted. So I had TargetNullValue='', like this : <TextBox ...
{ "pile_set_name": "StackExchange" }
Q: Is a creature that used the 2nd option of Improved Grab grappling or not? This question is related to another recent one, since I couldn't figure out the answer, even though I had all the resources. Let's have an owlbear character that uses Improved Grab after successfully attacking with its claw. Now, from SRD, ...
{ "pile_set_name": "StackExchange" }
Q: Is it required to call base method when deriving from TObject? I have a class that descents from TObject, if I do not call the parent method, is it bad? I ask because when looking at TObject.Create/Destroy, they do nothing. That's why we override/expose them ourselves. There's no code example, I just want to make ...
{ "pile_set_name": "StackExchange" }
Q: Regex match tags with specific text within I have an XML document where I am trying to match the full tag if it contains sometextv2 within. Here's the sample dataset I am working with: <mm_reportitem> <mm_file>file.cfm</mm_file> <mm_displaystr><![CDATA[ <cfinvoke component="/sometextv2" ]]></mm_displaystr>...
{ "pile_set_name": "StackExchange" }
Q: Windows phone 8 Images inside LongListSelector memory leak I have a LongListSelector which contains a image control which loads a lot of images from the web, this works fine for some time, but after i loaded some images i get out of memory exception. I read other people having the same issue regarding out of memor...
{ "pile_set_name": "StackExchange" }
Q: toBoolean method similar like toString Is there a way to define a method on an object / class in JavaScript that acts like toString just for booleans? Example (es6): class MyClass { toBoolean() { return this.foo === bar; } } so I can do something like this const myClass = new MyClass(); if (myClass === tr...
{ "pile_set_name": "StackExchange" }
Q: Replace function not replacing I followed some documentation to use the JavaScript replace function and it's not changing anything. No errors are thrown. Any idea what I'm doing wrong? The variable is retrieved from XML - maybe it needs to be cast as a string or something? for (var i = 0, iln = projects.length; i ...
{ "pile_set_name": "StackExchange" }
Q: REST API: is a redirect (303) a good idea In my RESTful API I return a redirect (303) in some special cases (e.g. an internal subscription is expired; I know this doesn't sound REST). In order to test my API I wrote a simple webpage using jQuery. However, in case I get a 303 it seems like the browser (XHR?) takes ...
{ "pile_set_name": "StackExchange" }
Q: How can I align the full names in a list of acronyms? I am using latex to write my thesis report and would like to generate list of abbreviation for same. I use the acrnonyms package to generate it. Following is my minimal code: \documentclass[a4paper,12pt]{article} \usepackage{hyperref} \usepackage{acronym} \begi...
{ "pile_set_name": "StackExchange" }
Q: Autofac Dependency Injection in Azure Function I am trying to implement DI using Autofac IOC in Azure function. I need to build the container, but not sure where to put the code to build the container A: I did write a blog entry for doing dependency injection with Autofac in Azure Functions. Have a look here: Az...
{ "pile_set_name": "StackExchange" }
Q: How to use default primary key as a sequence value when creating table for oracle database columns We have a tool and this tool create some insert scripts to add rows in our plsql table. this scripts is not modifiable and we can't see this scripts. so, when data row comes (with insert script that we don't know str...
{ "pile_set_name": "StackExchange" }
Q: Creating a reply using PHP and the Twitter API This is the PHP code im using in conjunction with jQuery .ajax to create a new Tweets: /* Create a TwitterOauth object with consumer/user tokens. */ $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_...
{ "pile_set_name": "StackExchange" }
Q: Quickly creating a sparse array The motivation for my question is that I'm creating very large, very sparse symmetric matrices and finding the largest eigenvalue. (Think upwards of $10^5\times 10^5$ size matrices, with at most $10^2$ nonzero entries on each row. However, to give a workable example, below I'll us...
{ "pile_set_name": "StackExchange" }
Q: In cassandra when to use decimal Vs float/double? I am using apache cassandra 3.x version. I am bit confused regarding when should I use decimal vs float types? Is there any specific use-cases/differences when should go for float or avoid decimal and vice-versa? I have gone through some quick tutorial none c...
{ "pile_set_name": "StackExchange" }
Q: problemas con SharedPreferences la aplicacion se detuvo! Mi clase: conf.java public class conf extends AppCompatActivity { EditText idplacatxt; Button guardar_btn; TextView idplacalbl; private configuracion conf; @Override protected void onCreate(Bundle savedInstanceState) { super....
{ "pile_set_name": "StackExchange" }
Q: GLSL shader compilation When i'm compiling a shader does it have to be complete? Can i use glCompileShader on a shader without a main() function? The OpenGL reference documentation has a nice writeup on program linking errors, but i can't find one for shader linking, so i have to ask here. I want to have the abili...
{ "pile_set_name": "StackExchange" }
Q: GetTimeZoneInformation function returns struct with "incorrect" values I have an issue with calling the function GetTimeZoneInformation on a certain machine. Specifically, my machine is set to EST/EDT (auto adjust for DST is disabled) and after a call to the function my TIME_ZONE_INFORMATION struct has an identic...
{ "pile_set_name": "StackExchange" }
Q: Do NCAA College Football athletes have to provide their own helmets? As someone not living in the US and not seen much of the NCAA college football, I was wondering whether or not the athletes have to supply their own helmets as they get sprayed and painted the university's logo or do they just choose a helmet and...
{ "pile_set_name": "StackExchange" }
Q: .htaccess rewrite to add country code (if missing) I am using a .htaccess file in the subdirectory /cms and using this subdirectory as RewriteBase. The redirections go to 'backend.php' and send the variables I want. It is a dual language site (nl|en), dutch and english. Everything works fine, as long as the %{REQU...
{ "pile_set_name": "StackExchange" }
Q: SSIS Derived column padding of leading zeroes I want to be able to add leading zeroes in following scenarios - I need leading zeroes before [ACCOUNT ID] if [ACCOUNT ID] < 17 {For APPLICATION = RCC, SEC, HOGAN CIS} I need leading zeroes before [ACCOUNT ID] if ([ACCOUNT ID] + [ACCOUNT NUMBER]) < 17 {For APPLICATION...
{ "pile_set_name": "StackExchange" }
Q: Thunderbird forward only most recent message from conversation Sounds simple but I can't figure it out: I have a lengthy email conversation chain. I would like to forward only the top (most recent) message to another person. I don't really want to have to delete all the other messages manually, because it would ta...
{ "pile_set_name": "StackExchange" }
Q: Angular: MatSelectionList additional clickable option I have a MatSelectionList, where I must display multiple lines for each option and have a faMap icon displayed. If the user clicks on the map, I should display an actual map elsewhere in the application. The problem is, the material selection list allows the fu...
{ "pile_set_name": "StackExchange" }
Q: Format output of array elements with variable lenght I have this arrays, with output to a file.txt: the first array contains all IPs in subnet (192.168.1.0, 192.168.1.1, ecc) the second array contains an 1 if that host is up, a 0 if down, in order to obtain a matrix like this: 192.168.1.0 192.168.1.1 ... 0 ...
{ "pile_set_name": "StackExchange" }
Q: Get instance of a Listener in a Fragment I'm implementing a Fragment that calls two TimePickerDialog's as answered here. But that answer implements it in a activity and then uses a instance of the listener using mListener = getActivity() instanceof TimePickerDialogListener ? (TimePickerDialogListener) getActivit...
{ "pile_set_name": "StackExchange" }
Q: "Build" a prepared SQL statement based on user-inputs with PHP This question is a bit hard to phrase, but basically I have a form. It's an account information form where a person can change the information associated with their account. The catch is that the entire form gets submitted with each input being optio...
{ "pile_set_name": "StackExchange" }
Q: Solving an ODE using Picard's Iteration Method Find the exact solution of the IVP $y'=y^2$, $y(0)=1$ Starting with $y_0(x)=1$, apply Picard's method to calculate $y_1(x),y_2(x),y_3(x)$, and compare these results with the exact solution. Solving this IVP with separation of variables, I get that $y(x)=\frac{1}{1-x}...
{ "pile_set_name": "StackExchange" }
Q: Count occurrences for each day of week I have this table: | name | gender | date | ------------------------------------ | Foo | male | 2013-09-16 10:23 | | Name | male | 2013-09-16 09:10 | | Red | male | 2013-09-15 09:10 | | Bar | female | 2013-09-15 10:10 | etc... I need to get the number of...
{ "pile_set_name": "StackExchange" }
Q: Insert a pipe delimiter after every 39 characters I originally asked the question where I was requiring to remove the blank spaces and replace the one with 13 spaces with a pipe delimiter. I now have a different file with 1 line of very long text in which I need to insert a pipe "|" delimiter after every 39 charac...
{ "pile_set_name": "StackExchange" }
Q: Simpson's Rule error This code is using Simpson's rule to calculate the integral of x*sin(x) with the bounds of (1,2). The problem I am having is, while its getting very close to the actual value. Even with 999 iterations, it still doesn’t hit the point. While I have a separate program that uses trapezoidal rule f...
{ "pile_set_name": "StackExchange" }
Q: facet_grid weird rearrangement of values I have this plot that I've generated using ggplot2 in R. The code that produces this plot is: plot <- ggplot(mockdata, aes(variable, Measurement)) + geom_tile(aes(fill = mockdata$plotval), colour = "dark red") + facet_grid(~type, scales='free', space='free') + sca...
{ "pile_set_name": "StackExchange" }
Q: How to avoid this strange date coercion I have this formula in C4: =TEXT(EOMONTH(NOW(),-1),"MMM-yy") The date being displayed is Dec-16 i.e. December 2016 When I then run this vba: Sub makeDateValues() With Range("C4") .Value = .Value End With End Sub The date becomes 16/12/2017. How do I safely amen...
{ "pile_set_name": "StackExchange" }
Q: Finding if a point is in a polygon I have this code here that is attempting to work out if a point latLng passes through a polygon Maps.area. Maps.ui.contains = function(latLng){ //poly.getBounds gets the 'box' around the polygon if(!Maps.ui.getBounds().contains(latLng)) return false; //So we d...
{ "pile_set_name": "StackExchange" }
Q: Update multiple rows based on values in other rows in same table I need to update multiple rows based on value in other rows with matching id. Table structure: ID | Sub-ID | value ---------------------------- 1 | 1 | a 1 | 2 | b 1 | 3 | c 2 | 1 | x 2 ...
{ "pile_set_name": "StackExchange" }
Q: assets in the vendor directory not loading with require_tree in Rails I'm using Rails 3.2.9. I have some Javascript/jQuery libraries I use, so I placed them in /app/assets/javascripts. They automatically load and everything works fine because I have the following manifest in application.js: //= require_tree . But...
{ "pile_set_name": "StackExchange" }
Q: extract numerical values from string after dash (-) I have string value like this Rs.100 - Rs.250 Now I want only 250 from this string. I tried this but it's not getting output var result = str.Substring(str.LastIndexOf('-') + 1); UPDATE string result = price.Text; string[] final_result = result.Split('.'); dynam...
{ "pile_set_name": "StackExchange" }
Q: C# WCF Web Api 4 MaxReceivedMessageSize I am using the WCF Web Api 4.0 framework and am running into the maxReceivedMessageSize has exceeded 65,000 error. I've updated my webconfig to look like this but because I am uisng the WCF Web Api I think this isn't even used anymore as I am no longer using a webHttpEndpoin...
{ "pile_set_name": "StackExchange" }
Q: Display Image from ViewData Can you help me with a problem loading an Image from a ViewData? In my model I load an image from the server by company name: System.Drawing.Image image = System.Drawing.Image.FromFile(HttpContext.Server.MapPath("~/Logos/"+ companyName +".png")) I load this Image into a Viewdata: Vie...
{ "pile_set_name": "StackExchange" }
Q: Please translate the image (Characters identified: 虾炒饭(大)) Can someone explain the symbol at the end... the symbol that looks like breasts? A: It is 虾炒飯(大). The one stoke in the middle had faded out, the ink just fell off Appearnently it is “Shrimp fried rice (large)” on a menu
{ "pile_set_name": "StackExchange" }
Q: Minimum number of repeated edges to solve Chinese postman problem on $Q_n$ Minimum number of repeated edges to solve the Chinese postman problem on $Q_n$ ($n$-dimensional hypercube). Chinese postman problem is very famous in graph theory, especially on Eulerian and Hamiltonian. The Chinese Postman Problem is to fi...
{ "pile_set_name": "StackExchange" }
Q: gulp-watch in combination with gulp-less caching issue I have the following setup: // watch for changes gulp.task('watch', function () { gulp.watch('./assets/**/*.less', ['compile-less']); }); gulp.task("compile-less", () => { return gulp.src('./assets/build-packages/*.less') .pipe($.less({ path...
{ "pile_set_name": "StackExchange" }
Q: Changing nvarchar fields fails in SQL Server Management Studio 2008 R2 with weird message I'm trying to edit a value in a table with about 50 columns using SQL Server Management Studio 2008 R2 (10.50.2500.0). One of the columns is a normal standard text column for email (no constraints, no FKs, nothing): CREATE TA...
{ "pile_set_name": "StackExchange" }
Q: Loading static properties file class Currently I am using a singleton class to read and load the propertied file. I get an instance of this in any class where I want to use a property value. Would not it be better to use a static class instead which can be loaded once (when server started or something .. ) instea...
{ "pile_set_name": "StackExchange" }
Q: Sleek way of un/commenting out html tags in markdown I'm trying to find a nice way of wrapping html tags in html comments without writing 5 functions and 50 lines of code. Using an example code : <section class="left span9"> ### Test </section> I need to transform it to : <!--<section class="left span9">--> ### T...
{ "pile_set_name": "StackExchange" }
Q: Is the Roman Catholic church condemning Protestants? In the early church the apostles often use the term 'let them be anathema'. But even if we, or an angel from heaven, were to preach any other gospel unto you than that which we have preached unto you, let him be anathema. Galatians 1:8 If any man does not ...
{ "pile_set_name": "StackExchange" }
Q: Finding homomorphisms $f: \mathbb{Z}_{12} \to \mathbb{Z}_{18}$ with image of size $3$ I'm looking at the number of group homomorphisms $f:\mathbb{Z}_{12} \to\mathbb{Z}_{18}$ whose image is of size 3. I read from another post that the total number of group homomorphisms is $1 +$ the number of elements of order $12...
{ "pile_set_name": "StackExchange" }
Q: Can anyone explain what is going wrong with this simple bash script? Below I have a simple bash script that I basically want to run for X number of seconds and then restart itself. The problem I am having and to be honest somewhat confused about is that I am defining $SECONDS in the script and never redefine or ma...
{ "pile_set_name": "StackExchange" }
Q: Magento shipping method I want to make a shipping method rule based on subcart total. If the subcart total > X then shipping method is free shipping but if subcart total < X then shipping method is flat rate. I tried with the following rule, but it doesn't work. If ANY of these conditions are TRUE : Subtotal ...
{ "pile_set_name": "StackExchange" }
Q: Update IIS 6 IP Restrictions using command line I found the command line below that is used to add IP addresses to restrict in IIS 7 appcmd set config /section:ipsecurity /+"[ipaddress='10.0.0.1',allowed='false']" Is there an equivalent command for IIS 6? Thanks! A: No, there's no built-in Windows command to do ...
{ "pile_set_name": "StackExchange" }
Q: Django: Password_reset_complete error I'm using django v1.8 In urls.py I have url(r'^user/password/reset/$', 'django.contrib.auth.views.password_reset', {'post_reset_redirect' : '/user/password/reset/done/'}, name="password_reset"), url(r'^user/password/reset/done/$', 'django.contrib.auth.views.password_reset_done...
{ "pile_set_name": "StackExchange" }
Q: Print NSMutableArray to email body I am new to iOS development and i am working on my first app. I have a piece of code that is suppose to add data from my NSMutableArray to the body of an email when i share it. I ran into an issue where the array description just prints out the address of the data and not the act...
{ "pile_set_name": "StackExchange" }
Q: Sacar el valor de una columna según el máximo de otra Si tengo una tabla con, por ejemplo, 3 registros que tienen id, numero, estado valores | id | numero | estado | ------------------------ | 1 | 123 | 1 | ------------------------ | 2 | 123 | 3 | ------------------------ | 3 | 123 | 4 |...
{ "pile_set_name": "StackExchange" }
Q: How to UPDATE thousands of records in an MDB file in C# I recently asked a question about how to insert 100,000 records in an MDB file in C#. The given answers reduced the required time from 45 secs to 10 secs. It was even possible to be reduced to 2~3 secs using Number Tables. Now I have problem updating a simila...
{ "pile_set_name": "StackExchange" }
Q: Unity 5 Delay em animação Acabei de criar animação de correr e pular com o unity, mas estou com um problema na hora de o player voltar para o estado inicial o do IdlePlayer, quando eu paro de correr ou pular ele continua por mais 1 segundo, já tentei diminuir os frames mas nada. Segue o meu código abaixo e um prin...
{ "pile_set_name": "StackExchange" }
Q: Looking for a simple way to manipulate one column of a matrix Given {{a, b}, {c, d}} I want to get {{c, b}, {a, d}} with one simple expression. Is this possible? A: You can use SubsetMap for this: l = {{a, b}, {c, d}} SubsetMap[Reverse, l, {All, 1}] {{c, b}, {a, d}} That is, Reverse and replace the lis...
{ "pile_set_name": "StackExchange" }
Q: Switching methods/functions with a button I am trying to program a basic counter using 7segment display and a button. What I am trying to achieve is the following: Display 0 at the beginning. When the button is pressed: Start Loop 0-9 Display 0 when the button is pressed the second time. So basically the butt...
{ "pile_set_name": "StackExchange" }
Q: array value to array single characters $array=@("blue","green","black") [string]$input=Read-host "Input:" $array[$input] If I enter the number 1 into the input this gives no output. When I Write-host $input I get System.Collections.ArrayList+ArrayListEnumeratorSimple What I'm looking to do next is: $inputlist=...
{ "pile_set_name": "StackExchange" }
Q: The Canonical Bundle over a Riemann Surface I am trying to understand an example of a line bundle over a Riemann surface; as it is very terse and short, I have lots of trouble. It is written in block-quotes below, and I ask questions as I go. The canonical bundle $K$ over a Riemann surface $M$ is the cotangent bu...
{ "pile_set_name": "StackExchange" }
Q: Choose where to install bitcoin-qt (linux) I don't have much space on my / (~12GB) so I would like to install bitcoin-qt to some other drive with free space (since the data files will take around 10GB after synchronization). How do I do that? A: Run bitcoin with the flag -datadir=<path to a directory>
{ "pile_set_name": "StackExchange" }
Q: Activity Diagram for Game Functions/Interaction I am creating an activity diagram for a game, although I am not sure if I am using the correct diagram. Is this the correct diagram to represent the functions of the game? Functions: The aim of the game is for the character to move around the screen to collect 'good'...
{ "pile_set_name": "StackExchange" }
Q: Error While Comparing Dates I have an NVARCHAR column named Receivingdate. I want to compare its content with the current time, but when I call WHERE (Receivingdate < Getdate()), I get the following error: The conversion of nvarchar to datetime resulted in an out of range value I insert the data using the follow...
{ "pile_set_name": "StackExchange" }
Q: How can I get StackOverflow style timestamps with the DateTime class? How can I get a date that looks like this: 2010-07-08 23:59:59Z from .NET's DateTime class? A: You're looking for the universal sortable format string, like this: string str = DateTime.Now.ToString("u"); A: See: Standard Date and Time Forma...
{ "pile_set_name": "StackExchange" }
Q: REST URL naming convention /users/{id}/cars/{carId} vs /cars/{carId}? I have a simple model Each Use can have multiple cars Now when I decide to name the related REST URL naming for Cars service Initially I suggest to be as the following GET /cars/{carId} But when I read about best practices in REST Resource Id...
{ "pile_set_name": "StackExchange" }
Q: Seeing the shadow of a black hole Why can't we see the shadow of a black hole cast on Earth. Shouldn't the black hole block some light from a star or a galaxy far behind as they line up? A: Yes, it will block some light. But barely anyone would notice if Gliese 581 were suddenly covered up by a black hole, and i...
{ "pile_set_name": "StackExchange" }
Q: Why do airlines not have you put your bag underneath your own seat? On airplanes, they tell you to put your bags either in the overhead or under the seat in front of you. Considering that the front row doesn't have a seat in front of them, and the back seats don't have anything under them, would it not be more eff...
{ "pile_set_name": "StackExchange" }