text
stringlengths
181
35.5k
meta
dict
Q: Colour the padding of a View Say i have View A, which covers the whole screen I then do a.setPadding(90, 0, 90, 0) So its now 90px down and 90 left How can i colour these 90 pixels, say, red? If i use .setBackgroundColour(int colour) it will, obviously, colour the whole View So what should i do? If this isn't pos...
{ "pile_set_name": "StackExchange" }
Q: How can I precompile jade.php templates? I've fallen in love with Jade, and can't bear to se any more, but now I have a WordPress theme to design.. So.. I use Codekit, and it handles jade just fine - can I somehow get it to use jade.php instead of the node module? (I couldn't find any packages which mentioned php...
{ "pile_set_name": "StackExchange" }
Q: Makefile Syntax unclear This is my first Makefile, and I am can't figure out some of the syntax used. The questions are marked below. $(BUILD_DIR)/%.o: %.c $(BUILD_DIR) $(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@ What is the usage of "$(BUILD_DIR)" in the dependency? What ...
{ "pile_set_name": "StackExchange" }
Q: Failing to set up (my own) prebuilt Rails app on OSX After completing the Rails Tutorial I wanted to extend it into a personal app so I created another directory and moved/copied all the files from tutorialFolder to appFolder. However I'm encountering some problems when I try to setup the gems again. bundle instal...
{ "pile_set_name": "StackExchange" }
Q: WP8 loading listbox locations on map I'm new to wp8 application development I would like to know how to load the map locations with listbox places.. I have no idea on it so please help me to know how to do it.. thanks in advance.. I have a listbox with the places loaded with its latitude and longitude and a MAP b...
{ "pile_set_name": "StackExchange" }
Q: I can only show $|X_{n}-X||Y_{n}-Y|\xrightarrow{P} 0$ for $0<\delta<1$ Say $X_{n}\xrightarrow{P} X$ and $Y_{n}\xrightarrow{P} Y$ (*) I want to show that: $|X_{n}-X||Y_{n}-Y|\xrightarrow{P} 0$ My ideas: Let $0<\delta\leq1$ $P( |X_{n}-X||Y_{n}-Y| \geq \delta )\leq P(|X_{n}-X|\geq\delta)+P(|Y_{n}-Y|\geq\delta)\xrig...
{ "pile_set_name": "StackExchange" }
Q: How to convert dynamic JSON reponse with Java Gson library I have an API that can return JSON arrays or objects. Example JSON object { "id": 1, "name": "name" } JSON array: [ { "id": 1, "name": "name" }, { "id": 1, "name": "name" } ] When mapping a JSON object response...
{ "pile_set_name": "StackExchange" }
Q: How to authorize with oauth 2.0 from appscript to Google APIs? I'm playing around with AppScript and try to get an oAuth 2.0 access token. Any sample out there how to get this working in AppScript? A: I am working on a cleaner tutorialized version of this, but here is a simple Gist that should give you some samp...
{ "pile_set_name": "StackExchange" }
Q: Can I enable vectorization only for one part of the code? Is there a way to enable vectorization only for some part of the code, like a pragma directive? Basically having as if the -ftree-vectorize is enabled only while compiling some part of the code? Pragma simd for example is not available with gcc... The reaso...
{ "pile_set_name": "StackExchange" }
Q: What is benefit of this constructor definition I was just going through random pages on Cprogramming.com and noticed the Constructors and Destructors tutorial/example page. They have used the following method of defining a constructor: class String { private: char *str; int size; public: ...
{ "pile_set_name": "StackExchange" }
Q: AxWindowsMediaPlayer control location/size I have a AxWindowsMediaPlayer control on my WinForm. Everything works so far. But I can't resize or move the control. I initialize the control like this: mediaPlayer = new AxWMPLib.AxWindowsMediaPlayer(); mediaPlayer.CreateControl(); mediaPlayer.enableContextMenu = false...
{ "pile_set_name": "StackExchange" }
Q: Want to disable image popup dragging on a page using highslide? I want to off the image dragging all over the page. I just want the image to be zoomed in.how to do that? A: You can add this to your highslide.config.js file, or put it in script tags in the head of your page (after highslide-full.js has been loade...
{ "pile_set_name": "StackExchange" }
Q: I want to list all countries in my dropdownlist, where can i get that web service? I want to list all the countries in my dropdown list. where can i get all the names? from service right? How to do this? A: Get the ISO 3166 country list; this is the world's official country list complete with official names and ...
{ "pile_set_name": "StackExchange" }
Q: check if there exists a[i] = 2*a[j] in an unsorted array a? Given a unsorted sequence of a[1,...,n] of integers, give an O(nlogn) runtime algorithm to check there are two indices i and j such that a[i] =2*a[j]. The algorithm should return i=0 and j=2 on input 4,12,8,10 and false on input 4,3,1,11. I think we have ...
{ "pile_set_name": "StackExchange" }
Q: Vertical NSLevelIndicator OSX I wonder if there is a way of creating/modifying a NSLevelIndicator object so it can be positioned vertically, i.e. display discrete levels from bottom up, not from left to right, so it can be also used as element of interface-building library in Xcode? There are lots of examples of s...
{ "pile_set_name": "StackExchange" }
Q: Как присвоить null календарю в asp.net c# Есть проблема с присвоением календарю значения null. Пишет что null присвоить ему нельзя, пытаюсь конвертировать календарь или как нибудь привести к стрингу, тоже не получается. Вот как я пытаюсь: cldDateReservCancel.SelectedDate.ToString() = null Подскажите пожалуйста ка...
{ "pile_set_name": "StackExchange" }
Q: I have to print some values from the nested arrays i tried with foreach syntax but somehow i'm not doing it right I have to print some values from the nested arrays i tried with foreach syntax but somehow i'm not doing it right . So this is the code : <?php echo "<strong><h1>EXERCISES</h1></strong>"; ...
{ "pile_set_name": "StackExchange" }
Q: Using computed min/max image values to set min/max visualization parameters in GEE I would like to use the calculated min/max values of an image region to set the min/max visualization parameters of that image. I can retrieve the actual numbers, but can't use them as variables in the visualization parameters bloc...
{ "pile_set_name": "StackExchange" }
Q: return value in localStorage as an Int in js? I understand that localStorage only stores strings, but lets say the string is '43', would there be a way of printing this as an int? I tried parseInt() but I keep getting NaN.. A: You should probably use isNaN() function to determine whether a value is an illegal nu...
{ "pile_set_name": "StackExchange" }
Q: CakePHP 2.0.4: Using the "Number" Helper in Controllers I know it's against MVC methodologies to use helpers in controllers, but there are some cases where it's useful. For example, consider this snippet of controller code from one of my CakePHP 1.3.13 projects that handles an image upload: elseif ($_FILES['data']...
{ "pile_set_name": "StackExchange" }
Q: Join csv files and sort to look like result from SQL query I have mysql database, and i run sql query on that database with joins and where clause, lets say query will look like SELECT a.value1, a.value2, b.value3, c.value4 FROM table1 a LEFT JOIN table2 b ON a.some_value=b.some_value LEFT JOI...
{ "pile_set_name": "StackExchange" }
Q: How to accelerate quartz 2d I have the scene stored in array as collection of shapes that is represented by sequence of points. I'm drawing this scene with CGContextMoveToPoint, CGContextAddLineToPoint, CGContextSetFillColorWithColor and CGContextFillPath functions. The problem is that i need to redraw scene on ti...
{ "pile_set_name": "StackExchange" }
Q: Does ownership based sharing rule also shares records of users' subordinates? Sales Manager A has subordinates A1, A2. Sales Manager B has subordinates B1, B2. Using ownership based sharing rule, records owned by A are shard with B. Does it also share records owned by A1 and A2? A: I can presume that, Sales Mana...
{ "pile_set_name": "StackExchange" }
Q: Button of UIAlertController changes its color on click. How to solve? - Swift I have a UIAlertController with the tintColor orange but everytime I click on the Button it changes its color to blue (I guess the native color). How do i solve it? let orange: UIColor = UIColor(red: 232.0/255, green: 121.0/255, blue: 23...
{ "pile_set_name": "StackExchange" }
Q: How does the tag "status-declined" explanation in the faq make any sense? It says in the faq: Why was my feature/bug declined or closed without explanation? Meta Stack Overflow has been around for a while, and as a result, many issues have been considered in the past. If your feature request has been marked as st...
{ "pile_set_name": "StackExchange" }
Q: How to send image byte to Lambda through Boto3? Is it possible to send image byte through Lambda using Boto3? The byte will be sent to Lambda function which will then forward the image to Rekognition. I've tried this but it didn't work: with open(image_name) as image_source: image_bytes = image_source.read()...
{ "pile_set_name": "StackExchange" }
Q: pygame not reaching K_a input or any input from input in my class I'm making a class that allows users to make text boxes for pygame games. I'm able to reach the mousebuttondown command but it doesn't reach that keyboard input statement. Given below is my whole code along with that part that is giving me an issue....
{ "pile_set_name": "StackExchange" }
Q: Favorite question/Star button. What is it for? I've looked through the FAQ and about page and i can't seem to find any mention of the favorite/star button... Whats it for? Thanks! A: It is for you to star your favourite questions so you can find them easily at a later date. If you go to your profile you will se...
{ "pile_set_name": "StackExchange" }
Q: How to do not redirect specific file on nginx? I just set to redirect when visitors visit my website from http to https using below code. server { listen 80; ssl off; server_name seoartgallery.com www.seoartgallery.com ja.seoartgallery.com www.ja.seoartgallery.com; root /var/www/seoart; locat...
{ "pile_set_name": "StackExchange" }
Q: calling resource menu into other activity Please help me how can i call a menu resource in other activity . Here is code of main activity public class ControlMenu extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { s...
{ "pile_set_name": "StackExchange" }
Q: CSS: Div resizing depending on original size I have time blocks whose size is calculated programmatically. The objective is: -If the content is bigger than its container, when you hover over the element it expands to show all of it. -If the content is smaller than its container, nothing happens. Here is a fiddle. ...
{ "pile_set_name": "StackExchange" }
Q: Writing to websocket with BLWebSocketsServer Not sure how many of you are familiar with BLWebsocketsServer. Available at: https://github.com/benlodotcom/BLWebSocketsServer. It's an Objective-C wrapper for LibWebSocket (Written in C). It basically only provides functionality to callback based on what is received fr...
{ "pile_set_name": "StackExchange" }
Q: Spark DataFrame UDF Partitioning Columns I want to transform a column. The new column should only contain a partition of the original column. I defined the following udf: def extract (index : Integer) = udf((v: Seq[Double]) => v.grouped(16).toSeq(index)) To use it in a loop later with myDF = myDF.withColumn("meas...
{ "pile_set_name": "StackExchange" }
Q: Insert formula into cell with VBA: Object-defined error I'm trying to use this in my VBA code: ActiveSheet.Range("A1:A1:).Formula = "='Sheet1'!A1" & Chr(34) & Chr(47) & Chr(34) & "'Sheet1'!A2" This gives me Error: 1004, Object-defined error. I'd like to see in the cell formula that: ='Sheet1'!A1"/"'Sheet1'!A2 ...
{ "pile_set_name": "StackExchange" }
Q: Passing state from child to parent in React; child has separate state I have three components, from outermost to innermost: App => Welcome => SearchBar. There's a state defined in App and SearchBar, but what I want is to get the user-inputted data in SearchBar and display that in a "Results" page. As such, I'm try...
{ "pile_set_name": "StackExchange" }
Q: hide my apps picture from gallery (exect use .nomedia) I use this method to convert my bitmap file and then put these images uri in data base. but I want this folder "my_app" dose not show in gallery. what do I do?! any solution exept use no media?! public File bitmapConvertToFile(Bitmap bitmap){ FileOutputStr...
{ "pile_set_name": "StackExchange" }
Q: Is there a Listener that will return when the phone GPS enters a certain longitude or latitude area Does the Android SDK have a Listener that will return when the phone GPS enters a certain longitude or latitude area? A: Yes. There is a function called addProximityAlert Document says: It sets a proximity aler...
{ "pile_set_name": "StackExchange" }
Q: How can I have a traditional src/main/scala directory in a Play Application? I wish to move some of my normal SBT Scala code across to my Play Application. So my first thought was I'll just create a src directory and put it there, but it seems not working. What is the right way to put normal Scala code into the Sc...
{ "pile_set_name": "StackExchange" }
Q: java.lang.NoClassDefFoundError: Could not initialize class org.aspectj.weaver.reflect.ReflectionWorld So I used Spring to developed a webapp on my local machine, and it works perfectly fine locally. Then I tried to deploy it, and I uploaded the .war file to my site. I got the NoClassDefFoundError, here's the stack...
{ "pile_set_name": "StackExchange" }
Q: VCFloatingButtonAction error I am getting these two error in my project after importing VCFloatingActionButton 1. Undefined symbols for architecture x86_64: "OBJC_CLASS$_VCFloatingActionButton", referenced from: objc-class-ref in CreateServiceWizardViewController.o ld: symbol(s) not found for architecture x86_64 2...
{ "pile_set_name": "StackExchange" }
Q: JavaScript Prototype function Issue I have built a Constructor and added 3 functions to its prototype. When I try to call a function from the prototype i get this error TypeError: undefined is not a function (evaluating 'fireOne.addLogs(8)') Please can someone tell me what I am doing wrong. I cannot figure it out....
{ "pile_set_name": "StackExchange" }
Q: Random double between min and max double get_random(double min, double max) { /* Returns a random double between min and max */ return min * ((double) rand() / (double) RAND_MAX) - max; } That's my function to generate random doubles between a min and a max. However, when I call get_random(-1.0, 1.0);, I get...
{ "pile_set_name": "StackExchange" }
Q: Wildcard in jquery autocomplete field name I need a wildcard for digits that come after my #TagEntry in this jquery selector. I tried the code below and a number of other variations but it does not work. I want it to accept #TagEntry1, #TagEntry2, all the way up to #TagEntry999. //jQuery Auto Complete jQuery(docum...
{ "pile_set_name": "StackExchange" }
Q: Create a trusted ssl handshake with server using Java I need help creating a trusted connection with a web service using Axis2 and org.jsslutils.sslcontext.X509SSLContextFactory. I have a generated client cert from the web service's admin console (client.p12). I also have grabbed the server's public cert by goin...
{ "pile_set_name": "StackExchange" }
Q: According to Catholicism do any of the Ten Commandments directly relate to tax evasion? Evasion of tax eg. Income Tax is a punishable offence under the civil laws in many countries. But many Christians seldom get the feeling of having sinned if they have evaded tax. I wish to know if any of the Ten Commandments di...
{ "pile_set_name": "StackExchange" }
Q: How to declare record containing events which use record as parameter I'm trying to figure out how to declare both a record and a number of object events which use each other. The problem is no matter which way I declare them, I have an "undeclared identifier". So with the code below, can I get them to use each ot...
{ "pile_set_name": "StackExchange" }
Q: ECG Bash selection tool I made the following bash script for extracting a group of ECG signals from ECG files. I would like to know if there is any mistakes and/or weaknesses. I have experienced difficulties in integrating bash parameters to it as a function because of AWK part. I think it would be better not to u...
{ "pile_set_name": "StackExchange" }
Q: Spring: Do I need @EnableAspectJAutoProxy with Compile time weaving? I've looked around the internet and found a few suggestions, and also tried different configurations, but I'm totally unsure if it works correctly. pom.xml (full pom.xml: http://pastebin.com/5Y2qksTH ): <build> <pluginManagement> <plu...
{ "pile_set_name": "StackExchange" }
Q: How to select objects without UV maps I am using Blender 2.80. I exported selected meshes to Substance Painter and got a warning that some objects has no UV maps. Is there any quick way to see what objects have missing UV maps? A: I don't think there is a build in way, but you can run this script to select meshe...
{ "pile_set_name": "StackExchange" }
Q: Applying angular2 form directives to custom input form elements I want to create a custom InputCustom component and use it to create model-driven forms. My custom component just wraps an input field and uses Bootstrap material design for look'n'feel. @Component({ selector:'inputCustom', template:` <div class...
{ "pile_set_name": "StackExchange" }
Q: Error building Repository in a seprate project(library) within the same solution So, I was following this Link to learn and implement Repository pattern in my solution which consisted of a single project. But my senior told me this is not the way we usually use and the repository is referenced from a different way...
{ "pile_set_name": "StackExchange" }
Q: Mixing http and https in RestKit I have an RestKit-enabled app which makes HTTP GET calls and should make HTTPS POST calls, to protect user data that otherwise would get sent unencrypted. As far as I know, it's possible to set the RestKit framework to either use unencrypted HTTP or SSL-encrypted HTTPS for the enti...
{ "pile_set_name": "StackExchange" }
Q: My program won't print my results I recently wrote a brute force program to turn the octal data from permissions in Unix into the human readable form (e.g. 755 -> rwxr-xr-x) However whenever I run my program called myperm I don't get a result (e.g. ./myperm 755 -> nothing) and I'm not quite sure why can anyone hel...
{ "pile_set_name": "StackExchange" }
Q: Command line software to batch convert TIFF to indexable PDF I need a utility to batch convert TIFF files to indexable PDF's. The software needs to run on linux and must work from the command line. The software does not need to be open source. I've tried the conversion using tesseract and hocr2pdf however they pro...
{ "pile_set_name": "StackExchange" }
Q: Add an Index to a list that resets depending on Id group Given an object such as: public class Test { public int Id { get; set;} public int Field1 { get; set; } public int Field2 { get; set; } } Which is populated like this: List<Test> list = new List<Test>(); list.Add( new Test { Id = 1, field1 = 1}); ...
{ "pile_set_name": "StackExchange" }
Q: Как получить данные из SQlite по id? Есть база данных SQLITE. Элементы базы данных выводятся в ListView. Моя задача: в onItemClick перейти в другой активити, где выводятся все данные нажатого элемента ListView. Для этого передаю в новый активити через intent.putextra ID элемента. Подскажите, как получить данные ...
{ "pile_set_name": "StackExchange" }
Q: Windows XP, Bluetooth, & accepting files I've got a cell phone and hooked it up to my laptop running Windows XP. I can send files from my laptop to my phone and from my phone to my laptop just fine, but only one at a time. Questions: How can I transfer more than 1 file at a time from Windows to my cell phone? I'm...
{ "pile_set_name": "StackExchange" }
Q: Port blocking on iPhone 6 I am unable to get email to connect to my IMAP server using an iPhone 6+ with iOS 8.3. The telco (Telstra Australia) loves telling me that they do not block ports. Either the telco is blocking ports or the phone is blocking ports. Can a hotspot connected computer route port 993 requests t...
{ "pile_set_name": "StackExchange" }
Q: Simple Username and Password logon Python 3 I wrote a simple login program using a user name and password. I am just learning the basics of Python so I thought this was an easy project to try. The program runs just fine but I would like to know how an experienced programmer would improve it, purely for learning an...
{ "pile_set_name": "StackExchange" }
Q: How to integral $\int_{\sqrt{a}}^{\infty}{ e^{-t^2+\beta t} \sin(\beta t)}~\mathrm{d}t$? I would like to plot the following integral but it gives undefined. Please kindly help me about solving the following integral to plot : $$ I(t)=\int_{\sqrt{a}}^{\infty}{ e^{-t^2+\beta t} \sin(\beta t)}~\mathrm{d}t $$ where...
{ "pile_set_name": "StackExchange" }
Q: How to compress a few files to zip in Qt? I need to zip a few files in Qt. I am trying Quazip. But the zip file contains files with 0kb size. Something goes wrong. Can somebody help me out here! The code for zipping is given here: QString testZip = location + "/tempTheme/test.zip"; QuaZip zip(testZip);...
{ "pile_set_name": "StackExchange" }
Q: Java tiled based rendering, possible to move the already painted? So if I don't clear my painting area it will just paint over there I paint and leave the other parts there I haven't painted as the old was. So can I take what's already is painted and move it to the left for example. So I can fit an new set of tile...
{ "pile_set_name": "StackExchange" }
Q: Correct vertex normals on a heightmapped geodesic sphere Have generated a geodesic sphere, and am using perlin noise to generate hills etc. Will be looking into using the tessalation shader to divide further. However, I'm using normal mapping, and to do this I am generating tangents and bitangents in the following...
{ "pile_set_name": "StackExchange" }
Q: Rserve - Multiple instances on one server? Is it possible to run multiple instances of Rserve on one server at the same time? For example 10 instances meaning 10 separate R workspaces listening on different ports via Rserve on the same machine? A: In the same document specified by @Oleksandr, it clearly states o...
{ "pile_set_name": "StackExchange" }
Q: What populates this array list? My array list somehow becomes populated. Look at this code: final ListView list = getListView(); boolean threadNeeded = true; //settings list.setItemsCanFocus(false); Bundle extras = getIntent().getExtras(); allFriends = getIntent().getParcelableExtra("shibby.whisper.allFriends"); s...
{ "pile_set_name": "StackExchange" }
Q: Run 2 seperate IIS sites, with seperate SSL certificates on same server I am trying to setup 2 completely separate IIS sites on a single server (single IP address) that will both use different DNS entries but the same port (443) to access the site over SSL. For example, Site 1: www.application.subdomain.domain1.uk...
{ "pile_set_name": "StackExchange" }
Q: Bokeh: linking a line plot and a scatter plot I have a line plot and a scatter plot that are conceptually linked by sample IDs, i.e. each dot on the 2D scatter plot corresponds to a line on the line plot. While I have done linked plotting before using scatter plots, I have not seen examples of this for the situat...
{ "pile_set_name": "StackExchange" }
Q: "Закон сохранения энергии". Нужны ли кавычки? Фраза такая: "В фильме это называют "закон сохранения энергии". Я написал "закон..." в кавычках. Но, с другой стороны, данный закон, точнее, его формулировка в кавычки не берется. Так вот, нужны ли они тут? A: В такой формулировке, возможно, кавычки и нужны, ибо здес...
{ "pile_set_name": "StackExchange" }
Q: Reserving space with fseek safe? If you can guarantee that there is data to be written after seeking, is it safe to use fseek to reserve bytes at the beginning of a file? For example: // reserve space fseek(f, 4096, SEEK_SET); // ... // write some data after the reserved space fwrite(buf, 1, bufsize, f); // go ...
{ "pile_set_name": "StackExchange" }
Q: PHP Sessions, issue with printing session information I've written a bit of code to upload a file to a server. When the file is successful I made my code go to another web page. On this web page I want to print the file properties which were gained from the previous page so I am using Sessions in PHP. //Starts...
{ "pile_set_name": "StackExchange" }
Q: Reference request: proof that if $L \in DCFL$, then $L \Sigma^* \in DCFL$ So, it's fairly easy to prove that if $L \in DCFL$, then $L \Sigma^* \in DCFL$. Basically, you take the DPDA accepting $L$. You remove all transitions on final states, and then for each $a \in \Sigma$ and each final state $q$, you add a tran...
{ "pile_set_name": "StackExchange" }
Q: Simultaneous resolutions and deformations of simple singularities Let $X\to \Delta$ be a flat family of complex surfaces with at most a finite number of singularities of simple type, where $\Delta$ is a complex domain in $\mathbb C$. Here simple type means rational double point. By a result of Tyurina, it is know...
{ "pile_set_name": "StackExchange" }
Q: HTML5 web app bypass browser permissions for local caching in ALL MAJOR browsers (Safari/Firefox/Opera/Chrome/IE)? I have been playing around with the HTML5 offline application cache, running boundary tests to study browser behaviour in edge cases, specifically to find out about the cache quota. So what I did is ...
{ "pile_set_name": "StackExchange" }
Q: displaying an image in ASP.NET How to an image which is retrieved from MYSQL database. To display a text in textbox we use textbox.TEXT --> We use .TEXT to display text Likewise how to display an Image retrieved from MYSQL database?? Image1.[___] = dr[0].[_____]; What to be filled in the above blanks??... I used ...
{ "pile_set_name": "StackExchange" }
Q: How to improve auc of a classifier? I have a data set with binary imbalanced class problem. Only 12% of the records belong to positive class. The auc of the original dataset for many classifiers were around 0.6 or less. So I applied minority class oversampling techniques and majority class under sampling technique...
{ "pile_set_name": "StackExchange" }
Q: file download permission denied to read the file I am using php readfile function to ignore giving full direct url of the file on server. However it displays error only instead of downloading the file, stating failed to open stream: No such file or directory in However the file is in the specified directory. The f...
{ "pile_set_name": "StackExchange" }
Q: Big O of this code I am doing the exercise of Skiena's book on algorithms and I am stuck in this question: I need to calculate the big O of the following algorithm: function mystery() r=0 for i=1 to n-1 do for j=i+1 to n do for k=1 to j do r=r+1 Here, the big...
{ "pile_set_name": "StackExchange" }
Q: Group by based on a value of a column i have the following DataFrame: it contains user_ids, tweets, and the classification of the tweet as negative and positive. i want to create a new dataframe that has the following columns: user_id count of negative tweets by that user_id count of positive tweets by that user...
{ "pile_set_name": "StackExchange" }
Q: Where does PHP Output go on MAMP I'm running a MAMP server and printing data with the echo command in PHP to debug my scripts. I'm looking for where the log that contains this output would be located. It doesn't appear to be in the Apache access log or the PHP error log, so I'm not sure where else to look. Thanks!...
{ "pile_set_name": "StackExchange" }
Q: Compare two large dataframes using pyspark I am currently working on a data migration assignment, trying to compare two dataframes from two different databases using pyspark to find out the differences between two dataframes and record the results in a csv file as part of data validation. I am trying for a perform...
{ "pile_set_name": "StackExchange" }
Q: How to efficiently make the function pointer in the java class? While coding in Java programming, I have a question as below. Below is c++ code. As you know, variable Alpha in the SomParam class is function pointer. When the user set the function address to the Alpha in the constructor, then the variable Alpha exe...
{ "pile_set_name": "StackExchange" }
Q: How is $ds/d\theta =R_0/\cos^2\Psi$ derived? I have a textbook on general relativity that states the following: The general straight line is: $r\cos( \theta - a ) = R_0$ where $a$ and $R_0$ are arbitrary constants. This equation, and $ds^2 = dr^2 + r^2d\theta^2$, give $ds/d\theta =R_0/\cos^2\Psi$ where $\Psi=\thet...
{ "pile_set_name": "StackExchange" }
Q: TSQL Passing MultiValued Reporting Services Parameter into Dynamic SQL Duplicate of: TSQL varchar string manipulation I'm building a dynamic SQL statement out of parameters from a reporting services report. Reporting services passes MutiValue Parameters in a basic CSV format. For example a list of states may be ...
{ "pile_set_name": "StackExchange" }
Q: VT-X not turned on, HAXM error, Android Studio I just installed the android studio on my laptop, and while running my program on the virtual device, it gives me an HAXM error and ask to turn on VT-x. I know that i am not the first person ask this question but I didn't found a solution. I have a intel i7 cpu with...
{ "pile_set_name": "StackExchange" }
Q: Refresh div without reload the page with jquery I have a page in php and I need to refresh only a div of this page <body> .... page code here .... ?><div id="chattext"> <div id="list"><ul><?php echo "ttt ".time(); ... code php ... </body> In head tag I hage this code <...
{ "pile_set_name": "StackExchange" }
Q: Load infile statement throws error I have a table where i am trying to insert data from a text file but it throws some error the command is mysql -u user -p<pwd> -h <server> --local-infile bsm -sse LOAD DATA LOCAL INFILE '/tmp/file.txt' INTO table test_jan2 FIELDS terminated by '|' LINES terminated by '\n' (value...
{ "pile_set_name": "StackExchange" }
Q: grep count of a string with a filter condition I need to do a grep count of a string with a filter condition . The context is Data will be genearetd in the below format in our log files 2013-05-17 10:06:40,693[qtp1957835280-12 Selector1] ERROR(CustomThread.java:<disconnect>:202)- onDisconnect: CustomThread [cust...
{ "pile_set_name": "StackExchange" }
Q: How to normalise a table which can link to one or more tables? I was wondering if someone can help me with a normalisation issue I am facing, when trying to create a seperate communication table, for a personal project I am working on. Lets say I have the following tables and table columns: Table A: Table_A_Id, D...
{ "pile_set_name": "StackExchange" }
Q: Model null when use Route attribute In my WebAPI I have model public class ListRequest { public int Skip { get; set; } = 0; public int Take { get; set; } = 30; } My action is [HttpGet] [Route("api/users")] public IHttpActionResult Get([FromUri] ListRequest request) { ... } I need to have poss...
{ "pile_set_name": "StackExchange" }
Q: CSS Mega Drop down Menu Fiddle Link I just want to make a mega drop down menu for my website . the above link is what I've done for now . what i just want is make all main titles inline . but it just stay like block . how can i make the header "Loans", ""Leasing (Automotive)" in one line and other lists under them...
{ "pile_set_name": "StackExchange" }
Q: List to Map of List using java streams I have a class Company public class Company { private String companyid; private List<Employee> employees; } Which is related to Employee in One2Many relationship public class Employee { private String employeeId; private Company company; } I am supplied...
{ "pile_set_name": "StackExchange" }
Q: Adding UIBarButtonItem to all Navigation View Controllers inside a UITabBarController programmatically The structure is as follows: View Tab Bar Controller Navigation Controller View Controller Navigation Controller View Controller Navigation Controller View Controller Navigation Controller View Controlle...
{ "pile_set_name": "StackExchange" }
Q: How can I create a plot like this in mathematica? I think this is called a caterpillar plot. The dot is the mean and the lines represent a 95% confidence interval. On the x axis there are several different test cycles, the red line is the true value. A: Here is a cheat using BoxWhiskerChart. The error bars are q...
{ "pile_set_name": "StackExchange" }
Q: Setting the sku name and tier of Azure ARM template serverfarm We are creating a deployment template using Azure resource manager. We have virtually everything set up however the created hostplan does not pick up the correct pricing tier. No matter what values we use it always seems to default to the 'Free' 'F1'...
{ "pile_set_name": "StackExchange" }
Q: In kubernetes POD will have IP address and Node will have IP address In kubernetes POD will have IP address and Node will have IP address. I know we use POD IP address for accessing the containers in it with containers port. Do we use Node IP for any purpose? Also Will kubernetes takes care of creating IP address ...
{ "pile_set_name": "StackExchange" }
Q: git checkout my_branch vs. git checkout origin/my_branch I was on branch1 when I checkout branch2 like this (both branches are existing). git checkout origin/branch2 then I got a detached head error: You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can disca...
{ "pile_set_name": "StackExchange" }
Q: How do I print all lines of current file with list command in gdb? How do I print all lines of current file with list command in gdb? list command show only 10 lines by default, so I want to show all lines of current file. How do I do it? A: You can use list 1,10000 where 10000 is large enough number so that the...
{ "pile_set_name": "StackExchange" }
Q: I need to expand my root partition by deleting another partition apparently not in use This is a screen shot of my gparted: I am new to Linux. I had a d:\ drive on my Windows machine which I intended to use for Linux but during installation failed to create a root partition.. ended up shrinking C: too create the ...
{ "pile_set_name": "StackExchange" }
Q: Htaccess redirect subdirectory extension and query string I have url like this http://www.example.com/subdir/Subcontent?QUERY=420501 i want to redirect it to http://www.example.com/subcontent.html?QUERY=420501 so if Subcontent is dynamic in url then it will change first letter of Subcontent to small and redirect t...
{ "pile_set_name": "StackExchange" }
Q: how do i get the position in the original string where the last character of the captured substring found Guys this is my original string, '010000111' i need to find this pattern '10000111'.So i used below regular expression to do that. Match m = Regex.Match("010000111", @"[1][0][0][0][0][1]+"); I get the correct ...
{ "pile_set_name": "StackExchange" }