text
stringlengths
175
47.7k
meta
dict
Q: jump stubs in PE files Recently I disassembled a DLL (written in c/c++) and noticed that there are many "jump stubs" inside the code segment. These stubs do nothing but jump to a function inside the DLL. eg: jmp foo() jmp foo2() ... Why does the compiler (Visual studio 2012) include these function stubs inside...
{ "pile_set_name": "StackExchange" }
Q: In how many ways we could divide 300 same balls into three boxes so in each box not will be more than 180 balls In how many ways we could divide 300 same balls into 3 boxes so in each box will not be more than 180 balls. Is it correct if I want to sum all the options with $n+k+1\choose n-1$ and subtract all the "...
{ "pile_set_name": "StackExchange" }
Q: How to reach AVX computation throughput for a simple loop Recently I am working on a numerical solver on computational Electrodynamics by Finite difference method. The solver was very simple to implement, but it is very difficult to reach the theoretical throughput of modern processors, because there is only 1 ma...
{ "pile_set_name": "StackExchange" }
Q: How to update the repository with unaccepted pull requests? The common circumstance is like this: in the github.com, we could fork another developing repository into our own account and continue the development with our own ideas. But meanwhile, the original repository we forked would also be alive thus have many ...
{ "pile_set_name": "StackExchange" }
Q: List item inside model always null on post - Asp.net MVC I am trying to post model which contains List<> item looks like below: public class AddSubscriptionPlanModel { public AddSubscriptionPlanModel() { AllFeatures = new List<Feature>(); } public int Id { get; set; } public int Subscri...
{ "pile_set_name": "StackExchange" }
Q: i am able to get the the text results how can i push them into array I am able to get all the contact numbers,but result is coming in text format(8045318762,9632427326). How can I store them into array like ["9632427326","8045318762"]. I mean similar to push. My DOM is: <span style="font-weight:bold;" class="numbe...
{ "pile_set_name": "StackExchange" }
Q: (error) FindRoot limits of integration I have a function u[y] and I want to find the limit of integration that integration is equal zero. Λ = -30; u[η_] := (2*η - 2*η^3 + η^4) + Λ/6*(η - 3*η^2 + 3*η^3 - η^4); θ = Integrate[u[η]*(1 - u[η]), {, 0, 1}] // N; δ = 1/θ; u[y_] := Piecewise[{{1,y > δ}}, (2*y/δ - 2*(y/δ)^3...
{ "pile_set_name": "StackExchange" }
Q: Load ~ 400 (Bad Request). XmlHttpRequest works on local, but not on server-side I am working on async load (using XMLHttpRequest .readystate & .responseText) of product table contents on pagination or filter changing. Funtions I wrote work perfectly but on local only. On apache/ngnix server-side it returns bad re...
{ "pile_set_name": "StackExchange" }
Q: Is there a better way to set lots of required properties than sending as parameters in a Constructor? I have a class that in order to do it's job needs to have 8 different property values set. I want to make sure that all 8 properties are set before trying to execute a method. I currently have all the parameters ...
{ "pile_set_name": "StackExchange" }
Q: Using DBSCAN to find the most dense cluster? Ive been looking at Geoff Boeing's excellent blog posts on DBSCAN. The page I'm most interested in is - http://geoffboeing.com/2014/08/clustering-to-reduce-spatial-data-set-size/ How can I amend this approach to return the center of the largest cluster(cluster center w...
{ "pile_set_name": "StackExchange" }
Q: window.location and window.open problem I can't seem to solve this. Originally the JSP code had a function in Javascript that would call a jsp from another server: window.open("<%= otherServer %>/ourreports/Company/fooreport.jsp?index"+index,"Foo",options); where otherServer was a local server (http://192.168.4.4...
{ "pile_set_name": "StackExchange" }
Q: How long can I soak gulab jamun before serving? I would like to make some gulab jamun for a party in the afternoon. Because it's a work party, I can't prepare them in the morning and let them soak the recommended few hours. Instead, I need to prepare them the night before. I have read many recipes and they all rec...
{ "pile_set_name": "StackExchange" }
Q: How to integrate bitly api to shorten my link in iphone sdk I created an app which get the url of my youtube videos in the text field using GData Client Library. Now i want to shorten that url using bitly api.. But i don't have an idea about that. if anybody done it before me, please tell me how you did it. Than...
{ "pile_set_name": "StackExchange" }
Q: Get minimum value row based on column values I have below table which stores my product prices and special prices data for my products. I want to get the least price product from below data. +------+-------+---------------+-------------------+-----------------+ | id | price | special_price | special_from_date | ...
{ "pile_set_name": "StackExchange" }
Q: React.js undefined function Following the Microsoft tutorial on React.js which is here. I am trying to map a list to function so it repeats itself many times. This is what is the main piece of code that error is: {[1,2,3].map(this.renderInboxItem)} The error I get is: bundle.js:8488 Uncaught TypeError: undefi...
{ "pile_set_name": "StackExchange" }
Q: Volatile array - memory visibility of the elements Consider the code snippet class A { private Map<String, Object> taskMap = new HashMap<>(); private volatile Object[] tasksArray ; // assume this happens on thread1 public void assignTasks() { synchronized(taskMap){ // put new tasks in...
{ "pile_set_name": "StackExchange" }
Q: How do I access things returned by GroupBy Ridiculously simple question that for the life of me I cant figure out. How do I 'get' at the values returned by GroupBy? Take simple example below. I want to print out the first value that occurs more than once. Looking at the output in the watch window (image below) it ...
{ "pile_set_name": "StackExchange" }
Q: How to properly link ed25519-donna with c++? (where is the -mbits flag?) I've found this great question and this one which seems even greater where productivity's concerned. However, the ed25519-donna docs suggest To use the code, link against ed25519.o -mbits and: #include "ed25519.h" First, I can't find the -m...
{ "pile_set_name": "StackExchange" }
Q: Angular Naming Convention I'm currently learning Angular|AngularJS|Angular.js. I'm curious, is there an official name for this AWESOME framework? If so, what is it? I see AngularJS used a lot with 'Angular' being the brevity option. However, I personally prefer Angular.js because I see projections like Angular.da...
{ "pile_set_name": "StackExchange" }
Q: Check if columns have similar like value in Excel I have below mentioned excel sheet: ID column1 column2 column3 1 Apple X apple - x Apple - le 2 Mango Y banana cat 3 Dog DOG - A DOG - B 4 L-Lion Lion Lion- Cd I want to check if three of these column have any wor...
{ "pile_set_name": "StackExchange" }
Q: Windows 10 won't accept Firefox as the default browser I have recently upgraded my Windows 7 Pro to Windows 10 and basically everything seems to be working fine. Except for the fact that Win10 won't get Firefox as the default browser in the system... It started when I noticed that nothing happens when I click on l...
{ "pile_set_name": "StackExchange" }
Q: Difference- ApplicationContext() VS. Activity Context in ANDROID..? Possible Duplicate: Difference between Activity Context and Application Context I want to know the actual difference between Application Context and Activity Context in Android..? These two are confusing me very time. Please find me difference f...
{ "pile_set_name": "StackExchange" }
Q: How to load a Javascript in WebView I have loaded my Webpage in Android WebView using webview.loadUrl() and I am trying to inject a Javascript into the WebView using webview.evaluateJavascript(). But the problem here is, the Javascript is available in a remote location/url. I want to get the javascript from a remo...
{ "pile_set_name": "StackExchange" }
Q: Do you need to hire a professional in order to be pci compliant? i run an organic food store, and after a conference call with my credit card service (card connect), do i really have to hire a PCI certified professional once a year in order to be pci compliant? If this is the case, how much does it cost? Or am I j...
{ "pile_set_name": "StackExchange" }
Q: array_rand function returns empty sometimes I want to make a little service.The service's main idea is to show one record from mysql table and it makes this per click at randomly. Here is the code that i wrote: <?php require'connection.php'; $dbQueryFirst = $nesnePDO->prepare("SELECT CategoryID FROM Categories");...
{ "pile_set_name": "StackExchange" }
Q: destructors on gc-ed lua objects I know that Lua is gc-ed. I know that Lua can deal with c objects via userdata. Here is my question: is there anyway to register a function so that it's called when a C userdata object is gc-ed by lua? [Basically a destructor]. Thanks! A: Yes, there is a metamethod called __gc sp...
{ "pile_set_name": "StackExchange" }
Q: How to install Web Platform Tools in Eclipse? Which URL do I install this and any pre-reqs from, and how can I install them? Been struggling with this for the last 1 hour with no luck. A: new 2013 answer: it seems to depend on what version of eclipse you're running. click "help" -> "about eclipse sdk" to find ...
{ "pile_set_name": "StackExchange" }
Q: 1400 year old virgin? Reading Quran 19:27,28 Christians and Jews encounter something that raises alarms. Then she brought him to her people, carrying him. They said, "O Mary, you have certainly done a thing unprecedented. O sister of Aaron, your father was not a man of evil, nor was your mother unchaste." The sa...
{ "pile_set_name": "StackExchange" }
Q: How to submit a valid user request to Liferay Default Landing Page I am using Liferay 6 . I have created a page and added 6 portlets to it and configured inside portal-ext.properties file as auth.forward.by.last.path=true default.landing.page.path=/user/test/home This private page with all my 6 portlets is shown...
{ "pile_set_name": "StackExchange" }
Q: ActiveRecord condition syntax question Is there a better way of writing this? Is it possible to do cleanly in one line? conditions = ["category = ?", params[:category]] if params[:category] @events = CalendarEvent.all( :conditions => conditions ) A: Not really too much to consolidate but you don't have a lot go...
{ "pile_set_name": "StackExchange" }
Q: Python Pandas aggregating whitespace-separated values in text field I have a dataframe like this: 0 A\nA\nA 1 na\nB|D|E|F|G|H\nB|D|E|F|G|H 2 B\nB|C\nB 3 na\nna\nna And I would like to aggregate the values by highest count : 0 A 1 B|D|E|F|G|H 2 B 3 na I assume I should deli...
{ "pile_set_name": "StackExchange" }
Q: Is there a standard uninstall procedure on Mac OS X? I've seen advice on an per-application basis, but is there a standard approach like Add/Remove Programs in Windows? A: Remember that (most) Mac OS X apps are installed self-contained; i.e., you simply drag a copy of the *.app folder into the Applications direc...
{ "pile_set_name": "StackExchange" }
Q: using ControllerContext.RequestContext in a web api controller I am try to integrate SagePayMvc.dll into a ASP.NET Web API project which requires ControllerContext.RequestContext to be passed in order to form the Notification Url. Currently I am experiencing some difficulties in achieving this, I need to pass the ...
{ "pile_set_name": "StackExchange" }
Q: Create a question submission form for stackoverflow with required fields A lot of time before answering question on StackOverflow, we spent some time asking for clear objective, stack, exact exception message and also reviewing tags. I would suggest that if a question submission fields can be created like: Title ...
{ "pile_set_name": "StackExchange" }
Q: Center a div with a max-width without margin: auto; Thats my pen: http://codepen.io/helloworld/pen/oxgqpJ I want to center a div with a fixed max width, but when I am under the fixed max width I want a margin of 10% on each side , because at the moment there is no visible margin in that resolution area. The drawba...
{ "pile_set_name": "StackExchange" }
Q: Difficulty finding the sum of a hyperbolic function. Can someone please point out where I am (If I am) going wrong during the solution process of the following question: I have been presented with the following : $$4sinh(2ln(2))-cosh(ln2)$$ and told by my tutor the solution is 10. however I cannot obtain this valu...
{ "pile_set_name": "StackExchange" }
Q: Is there a way to reference instance function when calling SequenceType.forEach? Consider type Foo: class Foo { var isBaz: Bool { return false } func bar() { print("some boring print") } } Now let's say I want to iterate through a collection of class instances and call some funct...
{ "pile_set_name": "StackExchange" }
Q: Usage of enclosing braces {} as arguments to commands and their options Examples I've recently found examples of using pairs of enclosing braces {}, with nothing in between the opening and closing braces, as arguments to commands and even to their options: cat foo | xargs -I{} echo {} find . -size 0 -exec rm -i {}...
{ "pile_set_name": "StackExchange" }
Q: how to execute sql command from command line using NO script file? is there any way to execute update contact set email_address='foo@bar.com'; using isql (firebird) on linux? I don't want to use -i switch to specify sql script file. And I cannot use interactive mode as I will run the sql command from php script. ...
{ "pile_set_name": "StackExchange" }
Q: How do I change my Qt app name on the Mac OS X system menu? My Qt application is showing up with a rather unfriendly name on the Mac OS X menu. The name looks like my_funky_app. How do I change this to something more likeable? A: Have an Info.plist and set the CFBundleName as your nice name. <key>CFBundleName</k...
{ "pile_set_name": "StackExchange" }
Q: Not working jQuery easy ticker in wordpress I am coding a WordPress template .I want the contents of the proposed I use the jquery easy-ticker. while Coding this sector, all the loading and I saw that the proposed materials that are writings and photos from top to bottom , on the contrary, it didn't work out and s...
{ "pile_set_name": "StackExchange" }
Q: PHP Transaction confirm with javascript I want to confirm transaction from other third-party, e.g I pay goods of $50 to juma Joe after click pay button and pay page is still loading and tell me to wait almost 5 seconds to check if the transaction is processing succeed, and if the transaction succeeds, it redirects...
{ "pile_set_name": "StackExchange" }
Q: Cocoa accessibility API, can I click a window in the background without activating it? I've been searching forever for a solution to this, so I thought I'd seek out the brainpower of greater minds than mine. I'm developing a Cocoa app that uses the Accessibility API to manipulate another program (it's a hotkey ap...
{ "pile_set_name": "StackExchange" }
Q: Sequelize: Using "where" inside a child include overrides parent's "where" criteria. Composite primary key involved So, I have two tables, with a 1:M relationship. They have in common two primary keys: tenant and user_id. I have defined the model relationship and btw, I am not sure if I did it correctly because I ...
{ "pile_set_name": "StackExchange" }
Q: Iterate through FieldArray redux-form Could anyone point me in the right direction of iterating through the values of a FieldArray in redux-form? I'm making a form review page where I want to display all the values of the form. I currently have a FieldArray called customTrips that looks like this: "customTrips": ...
{ "pile_set_name": "StackExchange" }
Q: Measuring and benchmarking processing power of a javascript engine in a browser What is an accurate way to measure the performance of a javascript engine like v8 or spidermonkey ? It should at least have not very high deviations from one evaluation and another, probably allow to rank between different javascript e...
{ "pile_set_name": "StackExchange" }
Q: Long exposure shots showing huge bright spot. What happened to my sensor? Recently I noticed the appearance of a quite big spot of increased brightness and strange colour in my longer exposure photos. I'm using a Samsung NX300m (I know, not a good camera for low light...). As an example, this was shot last night (...
{ "pile_set_name": "StackExchange" }
Q: Hyper -V 2012-R2 Expanding VHDX for VM did not expand the current file size Hyper-V 2012-R2 with 1 VM (Windows 7). I increased the VM disk size from 60 GB to 80 GB and the operation completed OK. When I click on "Inspect Disk", it says: Current File Size: 59.97 GB Maximum disk Size: 82 GB When I go on the VM ->...
{ "pile_set_name": "StackExchange" }
Q: Retrieve calling url in Java Webservice We have a web service that is deployed on 2 separate machines in different locations. Is it possible to monitor the url that a person used to call our webservice using java code? We have a 3DNS url set up and we want all clients to use this url as oppossed hitting the boxes ...
{ "pile_set_name": "StackExchange" }
Q: Proving certain properties using curl, divergence, and gradient Sorry about the confusing title; it was hard to phrase this. For some context, I have an exam very soon and these are mock questions, my teacher has not provided any solutions to theses. So I am working my way through the questions. I think I have sol...
{ "pile_set_name": "StackExchange" }
Q: Is it possible include javascript in url link? What I want to do is when I reach the site the link guide to, then execute some javascript So is it possible include javascript code in url link, or I can attach a javascript file link after the url? Edited: for instance, when the someone reach my twitter site, then e...
{ "pile_set_name": "StackExchange" }
Q: Laravel weird Eloquent error I cannot find the problem in this code. public function dovoljenjaZaposlenega($id) { echo Dovoljenja::find($id)->naziv; } When I do this, i get a following error: Trying to get property of non-object But when i just echo $id out, it's working public function dovol...
{ "pile_set_name": "StackExchange" }
Q: Robot Framework - Case sensitive I need to know if there is a workaround on this error: When I use Keywords like: Location Should Be Location Should Contain (Which are both part of the Selenium2Library.) I get this error: "Location should have been 'http://www.google.pt' but was 'http://WwW.GooGLe.Pt' I think ...
{ "pile_set_name": "StackExchange" }
Q: Get file ID by its folder and name I'm copying a specific file to a specific folder, here's the code: var fileID = "123abc"; var folderID = "abc123"; var name = "Conferencia " + Utilities.formatDate(source.getRange(2,4).getValue(), "GMT", "dd-MM-yyyy"); var file = DriveApp.getFileById(fileID); var fo...
{ "pile_set_name": "StackExchange" }
Q: Getting DbContext via Configuration with DbContextOptions I am trying to get the DbContext I registered with options via services.AddDbContext(...) on the service provider of the project, but when calling configuration.Get<ModelContext> it can not be constructed as the options apparently weren't provided and there...
{ "pile_set_name": "StackExchange" }
Q: Zeta function for negative integers I already proved that $\zeta(z)=\frac{1}{\Gamma(z)}\int_0^\infty\frac{t^{z-1}}{e^t-1}dt=\frac{\Gamma(z-1)}{2\pi i}\int_{-\infty}^0\frac{t^{z-1}}{e^{-t}-1}dt$ Now the Benoulli numbers are defined by $\frac{1}{e^t-1}=\sum_{m=0}^{\infty}B_m\frac{t^{m-1}}{m!}$ where $B_0=1, B_1=1/2,...
{ "pile_set_name": "StackExchange" }
Q: Copy file into install directory of metro-style-app Is there a way to copy a file (selected with filepicker) to the installdir of the currently running metro style app? I tried to get the InstallationFolder with: Windows.ApplicationModel.Package package = Windows.ApplicationModel.Package.Current; Windows.Storage.S...
{ "pile_set_name": "StackExchange" }
Q: What are your recommendations for porting a huge VC++6 project to later VS version? We have a huge legacy C project which runs in VC++6. And I hope this will be ported to later versions of visual studio. But I think it will be a huge work. Actually, I just tried to recompile the project with VS2005 and got so many...
{ "pile_set_name": "StackExchange" }
Q: UIImagePickerController inside UIPopoverController doesn't show Cancel button on iOS7 I'm using UIImagePickerController inside a UIPopoverController to select image just from photo albums. When I launch app on device running iOS 8, the Cancel button on the top right of the pop over appeared normally like this: Bu...
{ "pile_set_name": "StackExchange" }
Q: Finding New/Existing Customers from a Dataframe I need to create a categorical column indicating whether the client account code has occurred for the first time i.e. "New" or it has occurred before i.e. "Existing". Only the first occurrence needs to be considered as "New", the rest of the occurrences, irrespective...
{ "pile_set_name": "StackExchange" }
Q: What's the cause of Diesels' typical clatter noise? I guess it's related to their basically running off knocking, but if I were to explain it to someone like this, it wouldn't convince me neither. [Edit] From http://www.ford-trucks.com/forums/369700-what-exactly-causes-the-diesel-noise.html The Loud knock is caus...
{ "pile_set_name": "StackExchange" }
Q: Complex SQL converted to active record I have been puzzling over the following query, and how it could be done using active record. select * from links where id in (select id from (select votable_id as id, count(votable_id) as count from votes where vote_scope = 'flag' and votable_type = 'Link' group...
{ "pile_set_name": "StackExchange" }
Q: Can I have an .NET 4.0 instance of the CLR and a .NET 3.5 instance of the CLR in the same Windows process? I have an multiple assembly C# Excel addin which passes embedded interop types across assembly boundaries. When I run this in an Excel process configured to use .NET 3.5, everything is OK. When I run this in ...
{ "pile_set_name": "StackExchange" }
Q: debuild failed at dh_install with cp: cannot stat `debian/tmp//path/to/install/bin/': No such file or directory I am creating a binary package for local usage by reading http://chat.stackexchange.com/transcript/message/1313226#1313226 chat session. I followed the steps mentioned in the list. My environment: ubunt...
{ "pile_set_name": "StackExchange" }
Q: Command failed due to signal: Abort trap: 6 Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here: I have no idea where this is coming from, cleaning and deleting derived data didn't work. Anyone else experiencing this problem? Project settings: Target settings: A: Go to project...
{ "pile_set_name": "StackExchange" }
Q: on iOS, how can I shift navigationItem.leftBarButtonItem horizontally right? A cusomized UINavigationBar requires me to present a customized "back" button, I use navigationItem.leftBarButtonItem = myCustomizedButton, but its position is fixed. Would anyone be so kind to share how can I shift this button 40pixels t...
{ "pile_set_name": "StackExchange" }
Q: General min and max - C++ Writing a general minimum function, Two questions came to my mind. The code works fine with any input type and different argument number: namespace xyz { template <typename T1, typename T2> auto min(const T1 &a, const T2 &b) -> decltype(a+b) { return a < b ? a : b; } template <typen...
{ "pile_set_name": "StackExchange" }
Q: Simple C code not working properly when input.txt file is passed to it So I have written a simple C code which generates N members of Fibonacci then writes every member into a linked list node then writes it all out. I code in windows in Geany, but I've tested the code in ubuntu cause gcc works weird in windows. I...
{ "pile_set_name": "StackExchange" }
Q: Track amount of webservice calls by same user I'm currently developing a web-service based application that needs to track how often a specific client called it in a certain time frame. The service is set up in a way where the client calls one specific url, which triggers one specific function; the service does wh...
{ "pile_set_name": "StackExchange" }
Q: Convert SteamID64 to SteamID I'm looking for a way that I can take a SteamID64 (76561198032122624) and convert it to a SteamID (STEAM_0:0:35928448) in PHP. I've searched this quite a bit and I'm unable to find how to do this. I'm almost sure it's possible since sites like steamid.io are able to find it, but I don'...
{ "pile_set_name": "StackExchange" }
Q: C# HMACSHA256 gives different result than PHP hash_hmac I have the following code in php: demo function generateHash($hashSecret,$postData) { ksort($postData); $message=""; $appendAmp=0; foreach($postData as $key => $value) { if (strlen($value) > 0) { if ($appen...
{ "pile_set_name": "StackExchange" }
Q: How do you change the foreground color of the VS Package Manager Console with PowerShell? Using PowerShell, how do I change the foreground font color in the Visual Studio Package Manager Console? When an error occurs, the foreground color turns white, and the background turns red, so it seems possible to modify th...
{ "pile_set_name": "StackExchange" }
Q: sum Vs simpleSum vs sumCompensation in DoubleSummaryStatistics? What is significant having them? How is use of having these three things. public class DoubleSummaryStatistics implements DoubleConsumer { private long count; private double sum; private double sumCompensation; pr...
{ "pile_set_name": "StackExchange" }
Q: For very beginning startup: home server or EC2? The micro instance of Amazon EC2 only has ram of 613MB, my laptop got 8GB. And I suppose likewise the processing power of my computer would be better than the micro instance. My question is, what are the considerations in deciding to host yourself or on Amazon EC2, ...
{ "pile_set_name": "StackExchange" }
Q: Improving readability of pandas chains I am used to writing one-liners for whatever pandas operations/changing I have, and it is a bit difficult for me to read/understand after I've come back to it (similar to writing one long SQL statement...). What are some ways to improve readability on chained operations? Righ...
{ "pile_set_name": "StackExchange" }
Q: Could anyone with access to a nation's nuclear launch codes unilaterally fire nukes as they please? If someone were to have a country's (Take the U.S, for the sake of being specific) nuclear launch codes, could he unilaterally fires nukes as he pleases? Assumptions: 1) He's among the military's top brass and can, ...
{ "pile_set_name": "StackExchange" }
Q: Convert from utf-8 hex code to character in PHP I have the hex code c2ae, how to I convert this to the UTF-8 character: ®. I need a generic and SIMPLE solution for any hex code. Update: this should work for any utf-8 hex code like d0a6 A: function hexStringToString($hex) { return pack('H*', $hex); }
{ "pile_set_name": "StackExchange" }
Q: Why is "evil" such a taboo word in English conversations? evil (noun): [uncountable] a force that causes bad things to happen; morally bad behaviour. evil (adjective): having a harmful effect on people; morally bad extremely unpleasant (OLD) That's a very readable definition with a very wide range of applicabil...
{ "pile_set_name": "StackExchange" }
Q: Removing words from list in python I have a list 'abc' (strings) and I am trying to remove some words present in list 'stop' from the list 'abc' and all the digits present in abc. abc=[ 'issues in performance 421', 'how are you doing', 'hey my name is abc, 143 what is your name', 'attention pleased', 'complia...
{ "pile_set_name": "StackExchange" }
Q: Unable to start activity ComponentInfo android.view.InflateException: Binary XML file line #27: Error inflating class fragment When I run YouTube WatchMe android project, I get below exception: 02-03 14:06:36.865: E/AndroidRuntime(14244): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.googl...
{ "pile_set_name": "StackExchange" }
Q: Named Cells and Formulas In Excel How do I utilize named cell references in Excel that aren't absolute. I want to be able to take a formula and be able to drag it across excel and have one name cell reference update to a different named cell as I move across. For example: I want to keep RevenuePerStay going ac...
{ "pile_set_name": "StackExchange" }
Q: Pion decay constant: How to know which convention to follow? As summarized by Wikipedia, different sources use different choices for the (pion) decay constant. This means that the numerical value can vary between $$ \sqrt 2\ f_\pi \quad\leftrightarrow\quad f_\pi \quad\leftrightarrow\quad \frac{1}{\sqrt 2}\ f_\pi $...
{ "pile_set_name": "StackExchange" }
Q: How to update multi-rows in ORACLE with C# at once(one time IO) or it isn't impossible to happen How to update data with difference condition and set, it will be under one time Input and Output For example as following Update set column1='1' where id=10; Update set column1='2' where id=20; Update set column1...
{ "pile_set_name": "StackExchange" }
Q: Vectorization of for-loop for calculations between two datasets in R I have a dataset A with a place, starting date and finish date. On the other hand, I have a dataset B also with a place, a date and number of cars. library(data.table) A <- data.table(Place = c(rep(c("Place_1","Place_2"), each = 20)), S...
{ "pile_set_name": "StackExchange" }
Q: setOnClickListener not working android kotlin I'm learning android and kotlin, and I'm building a practice app. When I run my code the button isn't working and i don't know why or what I'm doing wrong/forgot to add. Any help is appreciated! My xml code: <Button android:id="@+id/solveBtn" android:layout_wi...
{ "pile_set_name": "StackExchange" }
Q: Как передать переменную в render? Ребят, помогите разобраться, я с node js совсем недавно, да и с js тоже. Программировал на PHP, но тут совсем другое и все въехать не могу в работу node js. На странице нужно сделать две выборки, вывести разделы (категории) и сами записи из mongodb Делаю так exports.get = function...
{ "pile_set_name": "StackExchange" }
Q: Sum of complex number I tried to solve the following Sum of complex number: $\sum_{k=0}^{32} (\frac{1}{2}+i\frac{\sqrt{3}}{2})^k$ I proceeded like this : $\sum_{k=0}^{32} (\frac{1}{2}+i\frac{\sqrt{3}}{2})^k$= $\sum_{k=0}^{32}e^{i\frac{2k\pi}{3}}$=$\frac{1-e^{i\frac{2*33\pi}{3}}}{1-e^{i\frac{2\pi}{3}}}$= $\frac...
{ "pile_set_name": "StackExchange" }
Q: Regexp_substr expression I have problem with my REGEXP expression which I want to loop and every iteration deletes text after slash. My expression looks like this now REGEXP_SUBSTR('L1161148/1/10', '.*(/)') I'm getting L1161148/1/ instead of L1161148/1 A: You said you wanted to loop. CAVEAT: Both of these sol...
{ "pile_set_name": "StackExchange" }
Q: XSLT - How to combine XSLT files Is there a simple way of combining XSLT's. I am new to XSLT, and i getting the hang of how to create them and the funny ways of using them to get my desired outcome. However at the moment I am able to use one XSLT to convert my output into the desired output; BUT then straight afte...
{ "pile_set_name": "StackExchange" }
Q: How to remove non-valid unicode characters from strings in java I am using the CoreNLP Neural Network Dependency Parser to parse some social media content. Unfortunately, the file contains characters which are, according to fileformat.info, not valid unicode characters or unicode replacement characters. These are ...
{ "pile_set_name": "StackExchange" }
Q: not able to append to a file using bash script This is my code: #!/bin/bash -e dirs=( * ) for f in "${dirs[@]}" do while IFS= read -r line; do case "$line" in *disabled\>true* ) sed -i '1i "$f"' list.txt;; esac done < "$f/config.xml" done Instead of sed, I tried echo and printf too ...
{ "pile_set_name": "StackExchange" }
Q: Character Sets, Locales, Fonts and Code Pages? I can't figure out the relation between those terms. I actually need a brief explanation for each and eventually a relation between them. Moreover, where do all these stuff reside? Where are they implemented? Is it the job of the operating system to manage the aforeme...
{ "pile_set_name": "StackExchange" }
Q: Looking through a glass hemisphere I've found the following question on IsaacPhysics.org . I've been working on it for a couple of hours but I cannot figure it out. A looking glass is used to read an ancient scroll. This lens has a hemispherical shape with radius R and its flat surface is placed on top of the scr...
{ "pile_set_name": "StackExchange" }
Q: Is there a grammar issue with 'See vote breakout, expandable usercard'? In the 'Next privilege' sub-section of the 'Activity' section of a user's profile it is written: See vote breakout, expandable usercard Which seems to imply that at the referenced level of reputation, one would be able to see the expandable u...
{ "pile_set_name": "StackExchange" }
Q: Convert & display UTC format of mongodb to EST format in javascript When i insert date time in mongodb, It's in UTC format ISODate("2016-03-29T07:53:02.847Z") When i fetch this result, it's in IST Tue Mar 29 2016 13:23:02 GMT+0530 (IST) I want to convert it to EST and display (only date and time) Tue Mar 29 2...
{ "pile_set_name": "StackExchange" }
Q: How to get deserialized xml attribute from dynamic object I can get the element innertext from expandoobject without any problem. I can't figure out how to get the attribute's value. By doing Console.WriteLine(obj.Message.Body), I can get the expected string inside the body element. private void TestXML() ...
{ "pile_set_name": "StackExchange" }
Q: Nokogiri and Openshift I uploaded my Rails app in Openshift server and I obtained the following error: I searched in Google but I didn't find solutions. I have Ruby 2.0 and Rails 4. On my local host my application works without problem but when I upload it it doesn't work because of this error. I'm on Windows 8. ...
{ "pile_set_name": "StackExchange" }
Q: How to call a factory method of an Objective-C class from Swift? I have an obj-c class that uses a factory method to instantiate itself as a singleton. I added that class to my Swift bridge header and want to call this factory method from a swift class. However, XCode won't let me. The obj-c code is: @interface MO...
{ "pile_set_name": "StackExchange" }
Q: Angular App works when all components are in one file, but throws 'nomod' error when components are in separate files I'm working through this tutorial on creating a single-page MEAN stack todo app. I'm on this step, specifically. The tutorial covers modularization of code, and while I was able to separate my ba...
{ "pile_set_name": "StackExchange" }
Q: vba Word: Why can Word use special chars in bookmark creation, and I cant? Here's a head-splitter: I'm trying to programmatically create hidden bookmarks for existing headings in a doc, so that I can create hyperlinks elsewhere in the doc that point to these bookmarks. (I want to use hyperlinks instead of cross-r...
{ "pile_set_name": "StackExchange" }