text
stringlengths
175
47.7k
meta
dict
Q: Easy SpriteKit question on creating a function The following code is what I'm working on to animate characters in a SK scene class. I can run the code without building, no problem, but I can't build it and run it; I get one error message: Binary operator '+=' cannot be applied to operands of type '[(SKTexture)]' a...
{ "pile_set_name": "StackExchange" }
Q: GNOME 3 - Fedora Where can I find administrative items? I recently migrated to FEDORA 15 (Devpt. Release) from Ubuntu, the I am unable to locate the items like firewall, services in the GUI offered. I am not keen on modifying through the configurations through the file system. A: Should be in one of these place...
{ "pile_set_name": "StackExchange" }
Q: How to format an Excel table using formula? I'm creating an Excel spreadsheet dynamically from information in my database using ColdFusion. I discovered that I can insert Excel formulas into cells and they will automatically be executed. I was wondering if it's possible to utilise Excel's 'Format as table' featur...
{ "pile_set_name": "StackExchange" }
Q: Enable Button Clickable after writing certain text in textview android I am trying to build a Sign in method in which one person has to write its Email Address of the particular domain e.g rob@playground.football.in Now my intention my codes should check the domain i.e playground.football.in then if it matches th...
{ "pile_set_name": "StackExchange" }
Q: How can I import a model object file into my watch extension if it has a lot of dependencies I am working on building a companion app to an existing iOS app that is quite large and has pieces that are somewhat archaic. There is a list in the iOS app that has items that are of type ClassA lets say. Persistence is h...
{ "pile_set_name": "StackExchange" }
Q: How to use delegated events? I'm using an event to replace "src" attributes in some layers (<div class="total-title" src="anURL">): $('.playOnAP').on('click',function() { $('#mp3-list ul li',this).each( function( index, element ) { $('.total-title').eq(index).attr('src', $(this).text() ); }); and it ...
{ "pile_set_name": "StackExchange" }
Q: Python (pandas) - sum multiple columns based on one column I have a dataframe of Covid-19 deaths by country. Countries are identified in the Country column. Sub-national classification is based on the Province column. I want to generate a dataframe which sums all columns based on the value in the Country column (e...
{ "pile_set_name": "StackExchange" }
Q: Is it common to have no MathSciNet version of a paper in Mathematics? For papers/books in mentioned in MathSciNet there is a way to get a BibTex version of the citation. I wanted to cite a paper and it is not in MathSciNet. It is a published paper in International Mathematics Research Notices in the year 2018. I ...
{ "pile_set_name": "StackExchange" }
Q: Rename variables in subclass I have a simple tuple class. public class Tuple<X, Y> { public X first; public Y second; public Tuple(X x, Y y) { this.first = x; this.second = y; } @Override public String toString() { return "(" + first + "," + second + ")"; ...
{ "pile_set_name": "StackExchange" }
Q: Why most of the atoms with fully filled outer orbits are gaseous? Most of the elements with fully filled outer orbits are gaseous in nature (He, Ne, Ar, Kr, Xe, Rn) with exception of Uuo (as per Wikipedia its solid). Why these fully filled outer orbit elements are always gaseous in nature? I couldn't find a any re...
{ "pile_set_name": "StackExchange" }
Q: How to capture raw signal from wireless router? I have seen several projects now which derive novel spatial information from radio data collected from a typical wireless router: http://wisee.cs.washington.edu/ http://www.extremetech.com/extreme/133936-using-wifi-to-see-through-walls The idea of using a wireless ro...
{ "pile_set_name": "StackExchange" }
Q: Add to a javascript function I have a function I can't modify: function addToMe() { doStuff(); } Can I add to this function? Obviously this syntax is terribly wrong but it's the general idea... function addToMe() { addToMe() + doOtherStuff(); } A: You could store a reference to the original function, and then o...
{ "pile_set_name": "StackExchange" }
Q: What upkeep is needed to run buildings and organizations? The Downtime Rules from Ultimate Campaign include rules for running buildings and organizations during downtime. One of the phases is the upkeep phase, which reads: Phase 1—Upkeep: Pay costs associated with maintaining completed buildings and organizations...
{ "pile_set_name": "StackExchange" }
Q: python looping with functions break and continue outside loop I am new to programming and so i'm practicing a bid. At this point i'm practicing with functions. In the code below break and continue are outside the loop i can not see why. I've tryed out different ways but the only thing i get to work is the last blo...
{ "pile_set_name": "StackExchange" }
Q: How to unit test localStorage using sinon I am trying to test localStorage using sinon. Basically I am very new to unit testing so this might be very basic. Update I managed to come up with this but now its giving me a new error Should wrap property of object Test describe('Initial State', () => { it('should s...
{ "pile_set_name": "StackExchange" }
Q: Does host file overrides DNS for SQLConnection? C:\Windows\System32\drivers\etc\hosts overrides DNS for MSDOS. For example, if you have the correct IP address in DNS and the incorrect IP address in the host file, then you will not be able to ping the domain name on the PC containing the host file. Does this same ...
{ "pile_set_name": "StackExchange" }
Q: AngularJS: ngMessages not working with ng-options in select I have seen few answers which were working for ng-repeat, but with ng-options I am facing issue. Problem : Want to show the error message required if the dropdown is touched and nothing is selected, I am able to do this with input fields. JS CODE $scope.p...
{ "pile_set_name": "StackExchange" }
Q: Triggering method from a started jar File which was loaded via Runtime...exec("..") in a java file this is what I want to do: I need to start two jar Files from out of a java file and i want to call a method from the firstly started jar file, when i read a specific status from the second jar file. I figured out ho...
{ "pile_set_name": "StackExchange" }
Q: Why does the odd part of the function integrate to $0$? When evaluating the integral $$\int^1_{-1}\frac{\cos(x)}{1+e^{1/x}}dx,$$ the author says that the odd part of the function integrates to $0$ over $-1$ to $1$. I have calculated the even part of the function ($\frac{1}{2}\cos(x)$), so the integral is equal to ...
{ "pile_set_name": "StackExchange" }
Q: Can I write to a live USB stick? I'm trying to create a Live USB stick with additional files on it. I created my live USB using Startup Disc Creator and I've tried to remount /cdrom directory as it described here but it answers mount: cannot remount rw read-write, is write-protected I even tried to write to the s...
{ "pile_set_name": "StackExchange" }
Q: Why does the settings application start up after I click on the Opera icon in my panel? When I click the Opera icon on my panel, Opera opens and settings also starts up, Why is this? I've checked my Opera settings and I can't find which setting triggers this. How do I stop this from happening? Any help would be gr...
{ "pile_set_name": "StackExchange" }
Q: ServiceM8 Development in C# (Contact Details and job sync) I just wanna ask How to sync the data of Contact Details to Jobs. I have tried them under the same UUID's but the Job is getting the Company Name(Client) only so basically my Job Record has name in Company column only, there is no Contact First and Contact...
{ "pile_set_name": "StackExchange" }
Q: is it possible to multiply the value of an input box this way? I have an input box, but I want an easy solution to multiply it by 2. What is the correct way to achieve this below: var input2 = parseInt($('#bx2').val() * 2); A: You aren't changing the value of the element. The easiest way to do this would be to p...
{ "pile_set_name": "StackExchange" }
Q: using variable with jquery selector I have following lines of code and I want to use visibleoffer variable as selector. How can I concatenate it? var visibleoffer = '.' + obj.parents('tbody').attr('providername') + ' .visible-offers'; //visibleoffer = .Txy .visible-offers $(obj).parents('.Provider').find(".Offers:...
{ "pile_set_name": "StackExchange" }
Q: Has anybody used Google Performance Tools? Looking for feedback on : http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools A: There's a pretty good post that I read a while back that outlines some testing and analysis of GPT in a variety of scenarios
{ "pile_set_name": "StackExchange" }
Q: Bad return type in method reference: Cannot convert Employee to Optional I am trying to write a lambda function that gets employee location preference and have the code sample below. But for my lambda function I get a compilation error at flatMap(this::buildEmployeeGeolocation) saying Bad return type in method ref...
{ "pile_set_name": "StackExchange" }
Q: Using WakefulIntentService for managing asynch GPS updates I developing an app which tracks a user via GPS and reminds them if they cross a toll bridge. I obviously need the GPS location listener to run in a service and I'll also need a partial-wakelock so it can run occasionaly when the phone is asleep. I also wa...
{ "pile_set_name": "StackExchange" }
Q: Bulk insert from excel to sql for selective fields on the basis of cell location I have a SSIS package where I have to select some values from an excel sheet and insert them into a SQL Server database table, i am doing it through Execute sql task. These are the steps: Select all records from mapping table, cell ...
{ "pile_set_name": "StackExchange" }
Q: Solve the recurrence relation $T(n)=4T(n/3) + n$, $T(3) = 1$, $n = 3^k$ then determine upper and lower bounds I would like to solve the following recurrence relation. After which I must find it's upper and lower bounds. $T(n)=4T(\frac{n}{3})+n, T(3)=1, n = 3^k$ I attempted to solve with substitution: k = 1: ...
{ "pile_set_name": "StackExchange" }
Q: Where in case in SQL Server If @IsPrice=0, ProductPrice=0 will return. If not, ProductPrice > 0 will return. This is what I want, but I could not write the code exactly. declare @Isprice bit=0 select * from [Product] p where case when @Isprice = 0 then p.ProductPrice = 0 else p.ProductPrice > 0 end A: A case...
{ "pile_set_name": "StackExchange" }
Q: Disable jquery in masterpage for a specific content page? I have this code that warns the user about unsaved changes and it's in the MasterPage of the site I'm working on. I have a search page that doesn't allow the user to save anything and it triggers the unsaved changes warning. Is there a way to disable the ...
{ "pile_set_name": "StackExchange" }
Q: How to generate rdoc-style collapsable code sections? I am creating internal documentation for a C++ project using Doxygen. I am having Doxygen include the source for methods, etc., but this makes the page kind of hard to scan. I'd like it to behave like rdoc and hide the source in a block that is collapsed by def...
{ "pile_set_name": "StackExchange" }
Q: headMap of JDBM I want to use JDBM for a rather large treeMap (a few hundred gigabytes if not some terabytes). Once created I'll use it heavily to answer headMap queries. Clearly, the answer headMap will be huge (on average half of the created database) but I'll need only a few first hundred tuples from the hashMa...
{ "pile_set_name": "StackExchange" }
Q: Combine multiple Python installations coming with GIS software On my laptop I have QGIS and ArcGIS installed. Both come with separate Python installations, and next to these two there is also a 'standard' Python installation I have for development. Now I have 3 Pythons: Standard Python - C:\Python27 QGIS Python -...
{ "pile_set_name": "StackExchange" }
Q: How to bring text on the top of raphael path? I have raphael paths plotted and text on its top but when two path overlaps the longer text are broken or hidden by other element. I have jsfiddle . I tried : r.toFront(); for path AND 'fill-opacity' : 0 for object but it is not working. I tried manually pos...
{ "pile_set_name": "StackExchange" }
Q: Compare Data in Two Tables I have two tables that I need to compare to make sure the values match. For context, one is the employee's time sheet and the other is a table to holds their requests. Each has a time sheet code and a number of hours. My plan was to compare by summary to see if they match. However, I am ...
{ "pile_set_name": "StackExchange" }
Q: How to make SET XACT_ABORT ON rollback the transaction? Based on the Books Online documentation of SET XACT_ABORT ON, i get the impression that if a T-SQL statement raises a run-time error, the entire transaction is terminated and rolled back: Remarks When SET XACT_ABORT is ON, if a Transact-SQL statement raises ...
{ "pile_set_name": "StackExchange" }
Q: warning: [unchecked] unchecked conversion ArrayList Java Tras compilar mi proyecto Clean and build, he encontrado que tengo bastantes warnings algunos de tipo conversión de datos. El proyecto me funciona correctamente pero querría limpiar los warnings. Algunos de ellos: linea 68: warning: [unchecked] unchecked co...
{ "pile_set_name": "StackExchange" }
Q: Kotlin - Trying to populate spinner from Fragment using findViewById(), but context: this is throwing an error Obligatory preface: I'm quite new to Kotlin and Android Studio. As the title states, I'm trying to populate a spinner in Android Studio from within a fragment. First, I had an issue with findViewById(R.id...
{ "pile_set_name": "StackExchange" }
Q: They asked me where I live. Is that question correct? I know in reported speech we have to change the present simple to the past simple but this question really makes me wonder if I can write it like They asked me where I live. Since it's something always true. A: You don't have to change to the past tense. It i...
{ "pile_set_name": "StackExchange" }
Q: Is there a more concise way to create pairs from a python list? I have a list where x[0][0] = position of x[0][1] in a string S. x = [[157, 'Start_Summary'], [1228, 'End_Summary'], [1233, 'Start_Skills'], [1540, 'End_Skills'], [1925, 'Start_Work'], [2392, 'profile_start'], [4378, 'profile_end'], [4451, 'profile_s...
{ "pile_set_name": "StackExchange" }
Q: Nilpotent elements in a commutative ring Let $R$ be a commutative ring. Show that for any $a,b \in R$ nilpotent that $a+b$ is also nilpotent in $R$. We know $a^n = 0$ for some n and $b^m = 0 $ for some m, so consider $(a+b)^{m+n} = (a+b)(a+b)...(a+b)$ $n+m$ times. I don't see how $R$ being commutative helps me he...
{ "pile_set_name": "StackExchange" }
Q: Equivalent to doing a join after the group by I am looking to merge the following two queries into one: select top 100 date, count(*) from sections where content not like '%some condition%' group by date order by date; select top 100 date, count(*) from sections group by date order by date; It is like this quest...
{ "pile_set_name": "StackExchange" }
Q: Why jQuery Form Plugin mixes the NULL and 0 I am using jQuery Form Plugin http://jquery.malsup.com/form/ to submit my form. Here is the code that is used to submit the form. var options = { beforeSubmit: showRequest, // pre-submit callback success: showResponse, // post-submit callback url:...
{ "pile_set_name": "StackExchange" }
Q: How to parse array/object sent by ajax in NodeJS server I have a array: passedWord = ['a', 'bbb'] Then I use ajax request to send this array to nodejs server. On server, by Body Parser I receive: { name: 'abc', score: '27', 'passedWord[]': [ 'a', 'bbb' ] } My code: app.post('/add-score', function (req, res){ co...
{ "pile_set_name": "StackExchange" }
Q: Expand one item only inside expandable item without being collapsed I have a drawer with multi expandable item inside each other, for an example "main1" (expandable item) inside it "main2-1","main2-2","main2-3" (expandable item) inside them "main3-1","main3-2","main3-3" (normal item) I want to let only one Expand...
{ "pile_set_name": "StackExchange" }
Q: javascript: recurring strings and performance I have a Java background. There, especially in the JDK 1.2 times, it was mandatory to have a frugal string management. So we would use constants everywhere, and minimize the use of strings, especially when used as keys which are repeated all over the code (and, even mo...
{ "pile_set_name": "StackExchange" }
Q: Comparing consecutive Numbers in .txt file in Python I am using Python 2.7 and I am struggling with a problem in my script: I want to read a .txt file and compare numbers in consecutive rows, and find at least 5 consecutive ones, which are below a threshold and save their position (the numbers of the lines) into a...
{ "pile_set_name": "StackExchange" }
Q: Implementing boolean similar to built-in boolean I am working through some Clojure tutorials and one of the problems is: Implement (boolean x), which works like the built-in boolean function: for nil and false, it returns false, and for all other values it returns true. You can use if in its implementation, but no...
{ "pile_set_name": "StackExchange" }
Q: Save pointer to array in struct Save pointer to array in struct. I would like to store the pointer to array of int into struct but I am having trouble. Below my code with commentaries: typedef struct _index { int *data; } Index; void adder(struct _index *s){ int i; int arr[maxint]; for(i=0; i<maxi...
{ "pile_set_name": "StackExchange" }
Q: Funny behavior in jqGrid so i am working with the navigation bar and I add this code to the delete options onclickSubmit: function (options, rowid) { var rowData = jQuery(this).jqGrid('getRowData', rowid); var params ={amount:rowData.amount,account:rowData.account.replace(/-/g,"")}; return params; },...
{ "pile_set_name": "StackExchange" }
Q: Facebook Post through iOS sdk, sometimes misses the picture I am posting to the Facebook feed of user through the following code. 70 - 90 % of the times it get posted fine, along with the image, but sometimes it gets posted but without image and without any error. Can anybody explain what can be the reason? [para...
{ "pile_set_name": "StackExchange" }
Q: jQuery functions not working after using $(document).click All functions stop working after I use for the first time this function: $(document).ready(function(){ var popbox = '#popbox'; $(document).click(function(event){ if(!$(event.target).closest(popbox).length && !$(event.target).hasClass('popper')){...
{ "pile_set_name": "StackExchange" }
Q: HTML - Arabic Support i have a website in which i have to put some lines in Arabic.... how to do it... where to get the Arabic text characters... how to make the page support Arabic... i have to put a line per page and there is a lotta lotta pages so can't go around making images and putting them... A: This is t...
{ "pile_set_name": "StackExchange" }
Q: DLL uploaded with TcmUploadAssembly.exe is missing classes We have a Tridion 2013 SP1 installation, with workflow enabled in PROD but not in DEV or UAT. I uploaded a new version of an existing DLL using TcmUploadAssembly.exe (verbose; to the right folder) and it looked successful. This was uploaded using the same ...
{ "pile_set_name": "StackExchange" }
Q: Projects, Files, Services, Navigator color background In netbeans when we choose a profile in fonts & colors option screen that change editor windows background color but not one in project, files, service navigator. like you can see in the picture i'm the only one with this issue? Edit seem like impossible NetB...
{ "pile_set_name": "StackExchange" }
Q: check whether Field[] contains a field with name XXX I got an array of Field of a class: Class<?> clazz = Class.forName(FULL_CLASS_NAME); Field[] fields = clazz.getFields(); I want to check whether the above fileds array contain a field named "sumUp". I am looking for a way which doesn't iterate through each elem...
{ "pile_set_name": "StackExchange" }
Q: Modify an object from OnClickListener non-final variable permited I have an adapter where I load my users and one button/textfiled for send invitations. In the adapter I do this: @Override public View getView(int position, View convertView, ViewGroup parent) { UserAgenda ua = getItem(posit...
{ "pile_set_name": "StackExchange" }
Q: Sorting tasks to assign I've got a problem that I don't know where to start. I'd realy appreciate some help. The problem: I have several T task that must be done in D days by just 1 employee (let's forget using several resources right now). Each task can be done in some times (not all tasks can be done all time). ...
{ "pile_set_name": "StackExchange" }
Q: Recursive sequence, $x_{1} \geq 0, x_{n+1}=\sqrt{x_{n}+2}$ Recursive sequence, $x_{1} \geq 0, x_{n+1}=\sqrt{x_{n}+2}$ and it is requested to prove that $\lim_{n \to \infty} x_n=2$. This is a common problem, but I found it quite more difficult when the value of $x_1$ is not established, as we cannot say it is a mon...
{ "pile_set_name": "StackExchange" }
Q: Do I need to save NSManagedObjectContext of Main thread concurrency inside a perform block of a private context? I need an answer from a reliable source, about saving NSManagedObjectContexts. Imagine I have a long writing task in in a global queue, I have two contexts as singleton reference (1 of NSMainQueueConcur...
{ "pile_set_name": "StackExchange" }
Q: Will my cat lose her extra skin (from losing weight)? My cat Ginger (10 years old, female, spayed) came to us overweight. We didn't really worry about it until she started showing signs of arthritis, but we've recently changed her diet and it seems to be helping. She's losing weight! She now has a lot of extra ski...
{ "pile_set_name": "StackExchange" }
Q: Purpose of %%GLOBAL_HeadFonts%% in Bigcommerce templates? Noticed the template variable %%GLOBAL_HeadFonts%% in HTMLHead.html in the Bigcommerce Blueprint theme as well as other themes. What I don't understand is where the value of this variable can be set in the Bigcommerce admin interface / back-end. I notice t...
{ "pile_set_name": "StackExchange" }
Q: correct format of URL rewrite in php i'm asking about htaccess url rewrite ( mod_rewrite ) actually i want to change below URL http://localhost/project/cms/edit_item.php?id=MYc= ( actually this is base 64 encoded) to http://localhost/project/cms/edit_item.php/id/MYc= i do it like this on .htaccess file RewriteEng...
{ "pile_set_name": "StackExchange" }
Q: How zoom and scroll selection on windows phone 8.1.Help me I'm going to finish a application but I have a problem about scroll selection. I has zoom in and out that's ok.I has asked so many question but no one are not reply.Help me about scroll... This picture is zooming in: <ListView Name="lst_intro"> ...
{ "pile_set_name": "StackExchange" }
Q: canvas.toDataUrl returns empty, canvas size is not zero Im writing app in html5 that needs to be work on cell phones, this app uploads an image from the phone to server of my company. Now its working on android and inthe computer, on Iphone its work only when i picture in the front camera, if i get a pic from the ...
{ "pile_set_name": "StackExchange" }
Q: Privileges to users in Apache Zeppelin from users in PostgreSQL I have set up a PostgreSQL database and created three users: - admin (all privileges) - user1 (access table1_for_user1) - user2 (access table2_for_user2) So same I created base this (somedatabase) and in it two tables: table1_for_user1 table2_for_us...
{ "pile_set_name": "StackExchange" }
Q: PHP auto assign IP I'm creating a little module for my web application and I need something that automatically assign an IP from a pool I implemented. I tried to add the database as: pool = 172.16.0.0 mask = 20 I want to add users and assign automatically 1 ip from this pool and do no repeat it. Basically I'm doi...
{ "pile_set_name": "StackExchange" }
Q: How do I update the canvas and call asynchronous methods inside the setInterval function? Okay here's a better example from: https://www.w3schools.com/graphics/tryit.asp?filename=trygame_component_move ... My question is how do I move the red rectangle first upwards by calling myGamePiece.moveUp(); and AFTER it to...
{ "pile_set_name": "StackExchange" }
Q: request_uri and array those kind of stuff I have a code which I need help on. if ($_SERVER['REQUEST_URI'] == '/testmore/' || $_SERVER['REQUEST_URI'] == '/testmore/home') { $_SERVER['REQUEST_URI'] = '/testmore/index'; } echo $_SERVER['REQUEST_URI']; echo '<br>'; $page = $_SERVER['REQUEST_URI']; f...
{ "pile_set_name": "StackExchange" }
Q: Безопасно ли получать адрес члена невыровненной структуры Меня интересует следующий вопрос: struct S { // ... int i; }; void f(uint8_t *_buf, size_t _offset) { uint8_t *pu = _buf + _offset; S *ps = (S*)pu; int *pi = &(ps->i);// UB or not UB? int i; memcpy(&i, pi, sizeof(int)); } У на...
{ "pile_set_name": "StackExchange" }
Q: How to calculate percentage of size change for window resize? I'm trying to calculate the percentage that the browser was resized but I can't seem to capture the size of the window before the resize began and then the size after it finishes. $(function () { var originalHeight = $(window).height(); $(window...
{ "pile_set_name": "StackExchange" }
Q: What are # and : used for in Qbasic? I have a legacy code doing math calculations. It is reportedly written in QBasic, and runs under VB6 successfully. I plan to write the code into a newer language/platform. For which I must first work backwards and come up with a detailed algorithm from existing code. The proble...
{ "pile_set_name": "StackExchange" }
Q: Autoplaying an MP4 video in a UIView that is on loop like a GIF? Once users go to this specific page, I want the video to immediately start playing inside of a UIView with no controls. It will just loop like a gif. This is code I found off of github and it doesn't seem to work. It just shows the white UIView when ...
{ "pile_set_name": "StackExchange" }
Q: Solution to Kickstart's Wiggle Walk I'm trying to optimize my solution to Wiggle Walk for Kickstart's round 1C. Problem Banny has just bought a new programmable robot. Eager to test his coding skills, he has placed the robot in a grid of squares with R rows (numbered 1 to R from north to south) and C columns...
{ "pile_set_name": "StackExchange" }
Q: Assign variables value through array in Haxe? How to assign variables a, b, c and d values to 1, 2, 3 and 4 through an array? var a:Int = 0, b:Int = 0, c:Int = 0, d:Int = 0; var array1:Array<Int> = [a, b, c, d]; var array2:Array<Int> = [1, 2, 3, 4]; for (i in 0...4) array1[i] = array2[i]; //this does not work...
{ "pile_set_name": "StackExchange" }
Q: Remove duplicates and combine multiple lists into one? How do I remove duplicates and combine multiple lists into one like so: function([["hello","me.txt"],["good","me.txt"],["good","money.txt"], ["rep", "money.txt"]]) should return exactly: [["good", ["me.txt", "money.txt"]], ["hello", ["me.txt"]], ["rep", ["mone...
{ "pile_set_name": "StackExchange" }
Q: Setting up SVN - Web based services VS your own SVN server I intend to implement subversioning for projects developed on with a handful of people in the same location. I am reviewing the options on whether to use a web based SVN storage or install SVN on a local machine and use it as the main repository. My comman...
{ "pile_set_name": "StackExchange" }
Q: get properties with reflection from an object in shared/pcl project I have an object with 500 parameters and I can not change it, because it is a shared project. My goal is to get the property value through reflection, but I can not do it. here is my code: public class MyObjects { public int RGP_Id { g...
{ "pile_set_name": "StackExchange" }
Q: "Through" vs. "by" in this sentence While solving a question, I came in to a situation where I was left wondering between two of the choices. The sentence was: Acquisition of certain specific skills can be facilitated by/through general awareness, education to novel situations. According to my understanding th...
{ "pile_set_name": "StackExchange" }
Q: SQL query to dynamically COUNT(FIELD) for all fields of table X This should be such an easy thing, but it has me totally stumped. You can easily return the count of each field of a table manually, with oneliners such as: select count(FIELD1) from TABLE1 --42,706 select count(FIELD5) from TABLE1 --42,686 select...
{ "pile_set_name": "StackExchange" }
Q: Diskutil can't find Core Storage Volumes My OSX Mountain Lion will no longer atart up. After the logon screen it spins forever (the Apple logon is replaced by an error sign). When I run in single user mode I get a "still waiting for root device" that repeats every few seconds. I suspect the problem is with core st...
{ "pile_set_name": "StackExchange" }
Q: PDE of the form $x \partial_x T - y \partial_y T = F(x,y)$ where $F$ is a given function. Is there a known solution, or technique, for solving the following PDE? $x \partial_x T - y \partial_y T = F(x,y)$ Here, $F$ is a given smooth function $\mathbb R^2 \to \mathbb R$, and $T: \mathbb R^2 \to \mathbb R$ is the so...
{ "pile_set_name": "StackExchange" }
Q: How to add textbox or label in aspx repeater control by using if statement? i would like to add textbox or label by using if statement. My coming data "-" or any price value. if data is equal to "-" (which means empty...), use label. OR if data is equal to "45 or 56 or etc" (which means price), use textbox. But er...
{ "pile_set_name": "StackExchange" }
Q: How to Convert a milliseconds to nsdate in objective C In instagram API,I got the below response "created_time" = 1379598284; I want to convert the created_time to NSDate please help me A: use this NSDate *date = [NSDate dateWithTimeIntervalSince1970:(ms / 1000.0)];
{ "pile_set_name": "StackExchange" }
Q: Return dynamic jsonobject from ASP.NET controller I'm trying to return a dynamic object deserialized from a json string. At runtime I don't know what the object looks like so I can't type it. I've tried this: var json = @"[{""clientNumber"":""3052394"",""accountStatus"":""Active""},{""clientNumber"":""1700630"",""...
{ "pile_set_name": "StackExchange" }
Q: Cygwin sshd service starts but only produces errors I know this has been asked before, but I looked at the other questions and they didn't help, so here goes... I installed cygwin (only OpenSSH and whatever else it automatically chose for it). I ran the ssh-host-config and entered 'yes' for everything (basically a...
{ "pile_set_name": "StackExchange" }
Q: Failed to create symbolic link, what should I do? When I enter the following command on a terminal session. $ sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver It shows me the following message ln: failed to create symbolic link ‘/usr/bin/utserver’: File exists sudo ln -s /opt/utorrent-server-v3_0/...
{ "pile_set_name": "StackExchange" }
Q: How to auto increment in Arduino Mega Board while loop? Please understand that the tone is awkward using a translator I coded the below code for Arduino Mega Board. However, the value of buf_i is not increasing in the second while loop. char buf[] = {0, }; if (Serial3.available()) { int inByte = Serial3.read(...
{ "pile_set_name": "StackExchange" }
Q: Can a multiclass Wizard copy any Wizard spell they find into their spellbook? The Wizard includes the following feature: Copying a Spell into the Book. When you find a wizard spell of 1st level or higher, you can add it to your spellbook if it is of a level for which you have spell slots and if you can spare the ...
{ "pile_set_name": "StackExchange" }
Q: How to create a top level object with no fields or methods in Golang? Since I am from Java and new to Golang, I will try to explain what I want in Java. interface Car { } class MyCarA implements Car { int specificToA } class MyCarB implements Car { int specificToB } I think such ...
{ "pile_set_name": "StackExchange" }
Q: SQL Server INSERT Command doesn't insert data I want to insert the content of some textboxes into a SQL Server database. This is the code I use: SqlConnection myConn = new SqlConnection(myConnection); myConn.Open(); SqlCommand InsertCommand = new SqlCommand("INSERT INTO invmgmt.Products (product_id, product_name...
{ "pile_set_name": "StackExchange" }
Q: Can someone tell why this flag was declined? This answer is just worthless. Why was the flag declined? A: The post you linked to had 11 flags on it: 7 not an answer, 2 spam, 1 very low quality, and an auto-flag for very low quality. All those flags were marked helpful. You are probably thinking of a "spam" flag ...
{ "pile_set_name": "StackExchange" }
Q: Why can stores around Diagon Alley use electricity? If magic interferes with electricity, shouldn't there be an area around Charing Cross Road where there is no power, or at least really unreliable power? I know of course that the real answer is the author wrote it that way. I'm just wondering if anyone had a bit...
{ "pile_set_name": "StackExchange" }
Q: tuples and list arrangements in python These fours 'teams' consequently did total number of 'goals': teams = ['W', 'X', 'Y', 'Z'] goals = [4, 5, 1, 9] Now, how to know which team did following goals? given_goals = [3, 2, 7, 15] The expected answer should be in this form: answers = [('W', (2, 3)), ('X'...
{ "pile_set_name": "StackExchange" }
Q: Unable to get correct posted data from AJAX call in asp.net handler I am calling a handler through a AJAX call . code var PostData = {"MyName": myName }; $_.ajax( { type: "POST", async: true, url: 'SomeGenericHandler.ashx', ...
{ "pile_set_name": "StackExchange" }
Q: Elements of a Negative Semidefinite Matrix Use the definition of a negative definite matrix to show that if A is negative semi-definite: $$A_{ii} ≤ 0 \ \forall i $$ I know the definition (in terms of quadratic form) and the equivalent rules (principal minors, eigenvalues, etc) but I can't seem to get this proof ou...
{ "pile_set_name": "StackExchange" }
Q: Attempting to remove a json object from an array by targeting key value Disclaimer: I'm somewhat new to PHP. I'm trying to remove single objects from a json array, but when I attempt to delete the DOM object rectangle (each of which represents an array object), then process.php ends up making a copy of the array a...
{ "pile_set_name": "StackExchange" }
Q: How do you write a script that alerts you in the Terminal like mail's "You have mail" I guess I'm looking for how to make a script to run whenever you press ENTER in bash, so that it can alert you by echoing a line about some event if an event has occurred. A: You can use the special PROMPT_COMMAND variable, lo...
{ "pile_set_name": "StackExchange" }
Q: undefined reference to `pow' - makefile I have a problem building a program using a makefile. Upon running make I'm getting an error: ScanData.o: In function `CheckGrade': ScanData.c:(.text+0x1ef): undefined reference to `pow' This is the makefile: a.out: Update.o ScanData.o ReallocAndFree.o PrintStudentMaxGrade....
{ "pile_set_name": "StackExchange" }