title stringlengths 10 150 | body stringlengths 17 64.2k | label int64 0 3 |
|---|---|---|
Spark SQL UNION - ORDER BY column not in SELECT | <p>I'm doing a UNION of two temp tables and trying to order by column but spark complains that the column I am ordering by cannot be resolved. Is this a bug or I'm missing something?</p>
<pre class="lang-scala prettyprint-override"><code>lazy val spark: SparkSession = SparkSession.builder.master("local[*]").g... | 0 |
log4j.xml Rolling Appender based on size | <p>Please find below my log4.xml configuration for rolling file appender</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="instrumentationAppender" cla... | 0 |
set device time programmatically in android | <p>I need to set device time dynamically.if it possible please guide me </p>
<p>So far as I tried</p>
<p><strong>MainActivity.java</strong></p>
<pre><code>Calendar c = Calendar.getInstance();
c.set(2010, 1, 1, 12, 00, 00);
</code></pre>
<p><strong>manifest.xml</strong></p>
<pre><code><permission android:nam... | 0 |
How to restart ADB manually from Android Studio | <p>I previously developped Android apps on Android Studio . Everything works fine.</p>
<p>I work on real device, and Android Studio recognize it without issue.</p>
<p>Suddenly when I exit android studio and disconnect and reconnect my device, it doesn't recognize my device anymore, I have to exit and restart Android... | 0 |
Java client call to Windows Integated Authentication web service | <p>I am writing a Java 1.5+ client that needs to fetch data from an IIS-hosted web service. I created a new web service client in Eclipse and used the Java Proxy client type and Apache Axis2 web service runtime when generating the client proxy. The web service itself runs on Windows 2003 and security is set to use on... | 0 |
How to list class objects in listbox using C#? | <p>I have a custom class</p>
<pre><code>class RouteStop
{
public int number;
public string location;
public string street;
public string city;
public string state;
public string zip;
public RouteStop(int INnumber, string INlocation, string INstreet, string INcity, string INstate, string IN... | 0 |
Removing Previous Button on First Step jQuery Steps | <p>I'm using jQuery Steps for my site signup wizard, works awesome with the exception that on the first step I'm getting the previous button, which really makes no sense since there is no previous content.</p>
<p>I looked at the <code>onInit()</code> function in the API but there is no setting for <code>enablePrevious... | 0 |
OpenXml Edit text in the header of a word file | <p>I'm using Open XML and I should change the text in the header of a word file. To change a specific paragraph in the document I have used the following code:</p>
<pre><code>Dim body = wdDoc.MainDocumentPart.Document.Body
Dim paras = body.Elements(Of DocumentFormat.OpenXml.Wordprocessing.Paragraph)()
... | 0 |
In Vue.js how do I write custom filters in separate file and use them in various components by declaring in main.js? | <p>I tried doing this, but it does not work. </p>
<pre class="lang-js prettyprint-override"><code>// filter.js
export default {
converTimestamp: function (seconds) {
var date = new Date(seconds * 1000);
return date.toDateString();
}
};
// main.js
import customFilters from './store/filters';
<... | 0 |
How to set items spacing in a horizontal menu? | <p>Horizontal menu items: </p>
<pre><code> <asp:MenuItem Text="Registration" Value="Registration"></asp:MenuItem>
<asp:MenuItem Text="Log In" Value="Log In"></asp:MenuItem>
<asp:MenuItem Text="About Us" Value="About Us"></asp:MenuItem>
</code></pre>
<p>Pro... | 0 |
How to clear input buffer in C? | <p>I have the following program:</p>
<pre><code>int main(int argc, char *argv[])
{
char ch1, ch2;
printf("Input the first character:"); // Line 1
scanf("%c", &ch1);
printf("Input the second character:"); // Line 2
ch2 = getchar();
printf("ch1=%c, ASCII code = %d\n", ch1, ch1);
printf("ch2=%c, ASCII... | 0 |
Convert into void* | <p>how can I convert any object of my own class convert into pointer to void?</p>
<pre><code>MyClass obj;
(void*)obj; // Fail
</code></pre> | 0 |
Why is std::unordered_map slow, and can I use it more effectively to alleviate that? | <p>I’ve recently found out an odd thing. It seems that calculating Collatz sequence lengths with <a href="http://melpon.org/wandbox/permlink/xpx3rSzV6thjfz1q" rel="noreferrer">no caching at all</a> is over 2 times <em>faster</em> than <a href="http://melpon.org/wandbox/permlink/Omhqamehs2P6y7Or" rel="noreferrer">using ... | 0 |
How to rename a column and change its type by migration same time | <p>In my <code>general_exams</code> table, I have a column named <code>semester</code>, type is <code>string</code>. Now I want to change its name to <code>semester_id</code>, type is <code>integer</code>. I have read about migration and it has available transformations:</p>
<ul>
<li>rename_column(table_name, column_n... | 0 |
Changing the background color of the selected options in a select box | <p><img src="https://i.stack.imgur.com/8Bdta.png" alt="enter image description here"></p>
<p>I have to create a select box like this. I have been able to get this tree structure using optgroup but I am facing problems in changing the default background color of the selected option from default color to this orange col... | 0 |
header/footer/nav tags - what happens to these in IE7, IE8 and browsers than don't support HTML5? | <p>I am eager to start using Html5 in particular the <code><header>/<footer>/<article>/<nav></code> tags.</p>
<p>What happens if the browser doesn't support these?</p>
<p>Also I need to style these so: For Example: The <code>nav</code> has borders and margins etc. You know standard CSS stuff.<... | 0 |
Can Spring Boot test classes reuse application context for faster test run? | <p><code>@ContextConfiguration</code> location attribute does not make sense for Spring Boot integration testing. Is there any other way for reusing application context across multiple test classes annotated with <code>@SpringBootTest</code> ? </p> | 0 |
How to use Fonts in iText PDF | <p>I have a java application where i have to use "Bodoni MT Black" font using FontFactory in itextPdf how should i modify my code?
This is my code,</p>
<pre><code>Font base = FontFactory.getFont(FontFactory.TIMES_ROMAN, 6);
</code></pre>
<p>how to change font to "Bodoni MT Black" (Not supported in FontFactory) inste... | 0 |
How to catch the event of clicking the app window's close button in Electron app | <p>I wish to catch the event of clicking the app window's close button in Electron app.</p>
<p>I'm trying to develope Electron app for Mac OSX.
I want to hide the app window, not to terminate the app when a user clicks the window's close button like other Mac apps.</p>
<p>However, I can not detect wether the system ... | 0 |
Add ReportViewer to Toolbox VB.NET 2013 | <p>I installed Report Viewer 2012 in VS 2013 (VB.NET), but it's not listed as an component in toolbox. Where is the location to reference the ReportViewer via browse, or how do I add the ReportViewer to toolbox?</p>
<p>I wasted all day trying to create a simple report.</p>
<p>Any help greatly appreciated.</p> | 0 |
How to give System property to my test via Gradle and -D | <p>I have a a Java program which reads a System property</p>
<pre><code>System.getProperty("cassandra.ip");
</code></pre>
<p>and I have a Gradle build file that I start with </p>
<pre><code>gradle test -Pcassandra.ip=192.168.33.13
</code></pre>
<p>or </p>
<pre><code>gradle test -Dcassandra.ip=192.168.33.13
</code>... | 0 |
Project not Built in Active Configuration - Xamarin/Xamarin.Form | <p>I have downloaded Xamarin.Form sample projects from github <a href="https://github.com/xamarin/xamarin-forms-samples" rel="noreferrer">https://github.com/xamarin/xamarin-forms-samples</a></p>
<p>Once I open any sample projects, it does not allow me to run on iOS Simulator.</p>
<p>Does any one know how to handle th... | 0 |
Dynamically add controls to a silveright StackPanel to Create a menu | <p>hello community any one can please say how to add controls dynamically into a Stack Panel </p>
<p>note: what i need is i have to create a menu which get data from database and creates menu items accordingly can any one say how can i create such menus i am new to silver light </p>
<p>I am using silverlight 3 beta ... | 0 |
Can I instantiate a PHP class inside another class? | <p>I was wondering if it is allowed to create an instance of a class inside another class.</p>
<p>Or, do I have to create it outside and then pass it in through the constructor? But then I would have created it without knowing if I would need it.</p>
<p>Example (a database class):</p>
<pre><code>class some{
if(....... | 0 |
Reading from a cryptostream to the end of the stream | <p>I'm having some trouble with the code below. I have a file in a temporary location which is in need of encryption, this function encrypts that data which is then stored at the "pathToSave" location.</p>
<p>On inspection is does not seem to be handling the whole file properly - There are bits missing from my output ... | 0 |
Merging cv::Mat horizontally | <p>I want to merge a few <code>cv::Mat</code>, when I use <code>mat1.push_back(mat2)</code> it add <code>mat2</code> to the end of <code>mat1</code> vertically , is there a way to do this horizontally?
The only other option I can think of is making every <code>cv::Mat</code> into a <code>cv::RotatedRect</code>, rotate ... | 0 |
Generate random int in 3D array | <p>l would like to generate a random 3d array containing random integers (coordinates) in the intervalle [0,100].</p>
<p>so, <code>coordinates=dim(30,10,2)</code></p>
<p>What l have tried ?</p>
<pre><code>coordinates = [[random.randint(0,100), random.randint(0,100)] for _i in range(30)]
</code></pre>
<p>which ret... | 0 |
How to force FormRequest return json in Laravel 5.1? | <p>I'm using <a href="http://laravel.com/docs/5.1/validation#form-request-validation">FormRequest</a> to validate from which is sent in an API call from my smartphone app. So, I want FormRequest alway return json when validation fail.</p>
<p>I saw the following source code of Laravel framework, the default behaviour ... | 0 |
resolve a java.util.ArrayList$SubList notSerializable Exception | <p>I am using SubList function on an object of type List. The problem is that I am using RMI and because the java.util.ArrayList$SubList is implemented by a non-serializable class I got the Exception described above when I try to pass the resulting object to a remote function taking as an argument a List as well.
I've... | 0 |
Remove milliseconds in a datetime field | <p>I converted a database from MS SQL to MySql using workbench. There is a table that has a column called <code>ActivityDate</code> (<code>datetime(6)</code>) . For some reason, when that column got converted it has a dot in the date like (<code>2013-05-03 11:20:20.420000</code>) .</p>
<p>I want to remove the .420000 ... | 0 |
Sorting an array of Objective-c objects | <p>So I have a custom class <code>Foo</code> that has a number of members:</p>
<pre><code>@interface Foo : NSObject {
NSString *title;
BOOL taken;
NSDate *dateCreated;
}
</code></pre>
<p>And in another class I have an <code>NSMutableArray</code> containing a list of these objects. I would very much ... | 0 |
attempting to reference a deleted function | <p>I'm trying to learn about the fstream class and I'm having some trouble. I created a couple of txt files, one with a joke and the other with a punchline (joke.txt) and (punchline.txt) just for the sake of reading in and displaying content. I ask the user for the file name and if found it should open it up, clear the... | 0 |
Tracking model changes in SQLAlchemy | <p>I want to log every action what will be done with some SQLAlchemy-Models.</p>
<p>So, I have a after_insert, after_delete and before_update hooks, where I will save previous and current representation of model,</p>
<pre><code>def keep_logs(cls):
@event.listens_for(cls, 'after_delete')
def after_delete_trigg... | 0 |
Calculate days to go until a particular date with momentjs | <p>I want to count down the days until a particular event using momentjs but I'm getting an unexpected result.</p>
<p>With today's date being 17th April, and the event date being 14th May, I want the resulting number of days to be 27, however my code gives me a result of 57. What's wrong?</p>
<pre><code>function days... | 0 |
java 101, how do I count the number of arguments passed into main? | <p>For example</p>
<pre><code>public static void main(String[] args) {
int count = 0;
for (String s: args) {
System.out.println(s);
count++;
}
}
</code></pre>
<p>is there some way of doing something like</p>
<p>int count = args.length()? or args.size()?</... | 0 |
Export DataTable to Excel with Open Xml SDK in c# | <p>My program have ability to export some data and DataTable to Excel file (template)
In the template I insert the data to some placeholders. It's works very good, but I need to insert a DataTable too...
My sample code:</p>
<pre><code>using (Stream OutStream = new MemoryStream())
{
// read teamplate
using (var ... | 0 |
Connecting Crystal Reports to an SQL Server | <p>So I've gone into the 'database expert', but I can't seem to figure out how to add the db to the report.</p>
<p>Any ideas?</p>
<p>P.S. I'm using CR 13 and SQL Server 2012</p> | 0 |
Show untracked files as git diff | <p>When using <code>git diff</code> it only shows files which are already been tracked. Is there a way to show the untracked files as well for a diff? The goal is to get a git patch that also contains this, namely I have a script which starts with <code>git diff</code> and eventually pipes it to <code>git apply</code><... | 0 |
NodeJS /Electron Confusion about client/server code | <p>This is a beginner kind of question. I haven't used NodeJS before, so it's a bit confusing to me. I don't see a clear separation between server modules and client modules. It seems like I can use "npm" (Node's package manager) to install both client modules and server modules.</p>
<p>My question is specifically rel... | 0 |
How to set and trigger an css transition from JavaScript | <p>I'm new to html5, css and javascript, And mostly I've just been playing around.
What I want to do is to set and trigger a transition of a div. After the page is loaded, I manage to do that by setting a transition. But that doesn't feel very dynamic and doesn't seem the right way to go. I am thankful for any help</p>... | 0 |
Scrolling a Scroll Area in Qt | <p>I just have a Scroll Area widget that consists of several Qlabels .</p>
<p>take a look at the situation:</p>
<p><img src="https://i.stack.imgur.com/oifPV.png" alt="Widgets Inside Scroll Area" /></p>
<p>I tried to to do the following but it didn't work out, its doesn't scroll ...</p>
<pre><code>#include "form1.h... | 0 |
How to populate the value of a Text Box based on the value in a Combo Box in MS Access 2007? | <p>I have a combo box which is of a lookup type, i.e., I've selected the source to be a column from a table and am storing the selected value in another table. The table which I am looking up has another column and I need the value in this column to be displayed in a text box and each time I change the value in the com... | 0 |
UNION ALL query: "Too Many Fields Defined" | <p>I'm trying to get a UNION of 3 tables, each of which have 97 fields. I've tried the following:</p>
<pre><code>select * from table1
union all
select * from table2
union all
select * from table3
</code></pre>
<p>This gives me an error message:</p>
<pre><code>Too many fields defined.
</code></pre>
<p>I also tried ... | 0 |
Android Custom Shape Button | <p>How can i make a custom shaped clickable view or button in Android? </p>
<p>When I click , I want to avoid touching on an empty area .</p>
<p><img src="https://i.stack.imgur.com/PpkBo.png" alt="enter image description here"></p>
<p>please help. Thank you. </p> | 0 |
Inserting blocks into custom places in Magento2 | <p>In Magento 1</p>
<p>I can edit <code>local.xml</code> like so:</p>
<pre><code><default>
<reference name="root">
<block type="core/template" name="above_main" template="page/html/banner.phtml" />
</reference>
</default>
</code></pre>
<p>I can edit a template file like ... | 0 |
Oracle ManagedDataAccess - Connection Request Timed out - Pooling | <p>I'm finally admitting defeat and asking for help. I've done everything I can think of to solve this problem, but it seems I'm incapable of doing it.</p>
<p>I'm working with:
VS2010 C#
Oracle 12c
ODP.Net Managed121012</p>
<p>I have inherited an app that uses both the managed and unmanaged dataaccess dll. It was wor... | 0 |
Convert multiple lines to single line using text editor | <p>I have the following words each in a line in a text editor</p>
<pre><code> 'about',
'above',
'across',
'after',
'afterwards',
'again',
'against',
'all',
'almost',
'alone',
</code></pre>
<p>Can some help me to convert the above content into a single line using a text editor</p>
<pre><code>'about', 'above', ... | 0 |
Live reload for thymeleaf template | <p>When I change a thymeleaf .html file residing inside /templates , I expect the browser to automatically reload the page. I have the live reload plugin installed and its able to do a handshake with the spring boot server. However , upon chaning a thymeleaf template file , I have to manually reload the browser.
Any su... | 0 |
modifying arrays in java | <p>So I'm trying to figure out how to take user input thru the Scanner object, place it in each slot of an array, then read those numbers back to the user plus one. Problem is I have to use a a loop for the read back statement.Heres what I have so far. I figured out the first loop fine with the scanner, but I don't kno... | 0 |
gettimeofday() not declared in this scope - Cygwin | <p>Can cygwin make use of gettimeofday()? I'm getting the error:</p>
<pre><code>lab8.cpp: In function ‘int main()’:
lab8.cpp:62:30: error: ‘gettimeofday’ was not declared in this scope
gettimeofday(&start, NULL);
^
makefile:14: recipe for target 'lab8.o' failed
make: *** [lab8.o]... | 0 |
UIView doesn't resize to full screen when hiding the nav bar & tab bar | <p>I have an app that has a tab bar & nav bar for normal interaction. One of my screens is a large portion of text, so I allow the user to tap to go full screen (sort of like Photos.app).</p>
<p>The nav bar & tab bar are hidden, and I set the the text view's frame to be full screen. The problem is, there is a... | 0 |
Python and Intellisense | <p>Is there an equivalent to 'intellisense' for Python?</p>
<p>Perhaps i shouldn't admit it but I find having intellisense really speeds up the 'discovery phase' of learning a new language. For instance switching from VB.net to C# was a breeze due to snippets and intellisense helping me along.</p> | 0 |
Taking multiple integers on the same line as input from the user in python | <p>I know how to take a single input from user in <code>python 2.5</code>:</p>
<pre><code>raw_input("enter 1st number")
</code></pre>
<p>This opens up one input screen and takes in the first number. If I want to take a second input I need to repeat the same command and that opens up in another dialogue box.
How can I... | 0 |
Running an angular 2 application built locally on Chrome using angular-cli without a node server | <p>I will make my <strong>Angular 2</strong> question very precise.</p>
<p><strong>1. I am using:</strong> </p>
<p>Angular 2,
angular-cli: 1.0.0-beta.15, ( webpack building )
node: 6.4.0,
os: linux x64</p>
<p><strong>2. What I want to achieve:</strong></p>
<p>I want to build my project in a way that after... | 0 |
np arrays being immutable - "assignment destination is read-only" | <p>FD** - I am a Python newb as well as a stack overflow newb as you can tell. I have edited the question based on comments.</p>
<p>My goal is to read a set of PNG files, create Image(s) with Image.open('filename') and convert them to simple 2D arrays with only 1s and 0s. The PNG is of the format RGBA with mostly only... | 0 |
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' - Gulp | <p>Consider the following two files:</p>
<p><code>app.js</code></p>
<pre><code>import Game from './game/game';
import React from 'react';
import ReactDOM from 'react-dom';
export default (absPath) => {
let gameElement = document.getElementById("container");
if (gameElement !== null) {
Reac... | 0 |
keras error on predict | <p>I am trying to use a keras neural network to recognize canvas images of drawn digits and output the digit. I have saved the neural network and use django to run the web interface. But whenever I run it, I get an internal server error and an error on the server side code. The error says <strong>Exception: Error when ... | 0 |
How to setup conditionals for BPMN2 Exclusive Gateway | <p>I'm using Camunda BPMN2 for the first time in my spring project and trying to get my head around a couple of things ...</p>
<p>In my applicationContext, I have the following block to setup Camunda:</p>
<pre><code> <!-- Setup BPMN Process Engine -->
<bean id="processEngineConfiguration" class="org.c... | 0 |
How do I add a manifest to an executable using mt.exe? | <p>I'm trying to use mt.exe from the Windows SDK to add a manifest to an executable file that doesn't have one, using the following command line:</p>
<pre><code>C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl.exe.manifest" -updateresource:"r:\shared\hl33m.exe;#1"
</code></pre>
<p>Unfortunately, when I do, I get... | 0 |
Easy way to determine leap year in ruby? | <p>Is there an easy way to determine if a year is a leap year?</p> | 0 |
intellij-idea The system cannot find the file specified, | <p>can someone help me? i'm pretty new to programming, I decided to give IDEA a try comming from eclipse and I have run into a problem I have imported a project from eclipse that works but in IDEA I cant referance my res folder like I do in eclipse like I cant use res/image.png I can only do c:\ect. anyone know why? I... | 0 |
How to create an iOS Time Picker programmatically? | <p>I have a tiny little problem. </p>
<p>I'd like to implement the time picker like:</p>
<p><img src="https://i.stack.imgur.com/G7ja3.png" alt="http://i.stack.imgur.com/G7ja3.png"></p>
<p>This screen grab is from iOS 6's day notifications of DO NOT DISTURB</p>
<p>My question is how to do it ?</p>
<p>Any ideas ???... | 0 |
ActionBarCompat - how to use it | <p>I'm trying to use ActionBarCompat on my own project.
I've already opened the sample project (http://developer.android.com/resources/samples/ActionBarCompat/index.html), But I don't know how to implement it on my own.</p>
<p>I can't find any tutorial of some kind.
Should I make this project as a library?
Can someone... | 0 |
Ruby Activerecord IN clause | <p>I was wondering if anyone knew how to do an "IN" clause in activerecord. Unfortunately, the "IN" clause is pretty much un-googleable so I have to post here. Basically I want to answer a question like this "Give me all the college students that are in these dormitories where the dormitory id is in this array [id ar... | 0 |
Server returned HTTP response code: 401 for URL: https | <p>I'm using Java to access a HTTPS site which returns the display in an XML format. I pass the login credentials in the URL itself. Here is the code snippet:</p>
<pre><code>DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
requestURL = "https://Administr... | 0 |
Symfony2 : accessing entity fields in Twig with an entity field type | <p>Here is my FormType :</p>
<pre><code>public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('user', 'entity', array(
'class' => 'UserBundle:User',
'expanded' => true,
'property' => 'name',
));
}
</code></pre>
<p>Is ther... | 0 |
MVC Razor Radio Button | <p><strong>In partial view</strong>
I work with textboxes like this.</p>
<pre><code>@model Dictionary<string, string>
@Html.TextBox("XYZ", @Model["XYZ"])
</code></pre>
<p>How can i generate radiobuttons, and get the desired value in the form collection as YES/NO True/False) ? Currently i am getting null for "A... | 0 |
Rock-paper-scissors game c++ | <p>Rock-paper-scissors game c++ doesn't display the cout to tell who win the game, i dont know what wrong and why is the program doesn't show the cout. Please let me know whats wrong and how to fix it and why it happened and i think the cstdlib is doing nothing there.</p>
<blockquote>
<p>Objective: To score the rock... | 0 |
How to add data in charsequence [] dynamically in Java? | <p>One way to initialize a <code>charsequence[]</code> is</p>
<pre><code>charsequence[] item = {"abc", "def"};
</code></pre>
<p>but I don't want to initialize it this way. Can someone please suggest some other way like the way we initialize <code>string[]</code> arrays?</p> | 0 |
Why shouldn't Java enum literals be able to have generic type parameters? | <p>Java enums are great. So are generics. Of course we all know the limitations of the latter because of type erasure. But there is one thing I don't understand, Why can't I create an enum like this:</p>
<pre><code>public enum MyEnum<T> {
LITERAL1<String>,
LITERAL2<Integer>,
LITERAL3<O... | 0 |
Why does String.valueOf(null) throw a NullPointerException? | <p>according to the documentation, the method <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html#valueOf(java.lang.Object)" rel="noreferrer"><code>String.valueOf(Object obj)</code></a> returns:</p>
<blockquote>
<p>if the argument is <code>null</code>, then a string equal to <code>"null"</code>; oth... | 0 |
Is Catching a Null Pointer Exception a Code Smell? | <p>Recently a co-worker of mine wrote in some code to catch a null pointer exception around an entire method, and return a single result. I pointed out how there could've been any number of reasons for the null pointer, so we changed it to a defensive check for the one result.</p>
<p>However, catching NullPointerExcep... | 0 |
Ruby RVM apt-get update error | <p>I get following error when trying to install anything with RVM:</p>
<pre><code>Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..kshitiz passw... | 0 |
How to find a specific cell and make it the ActiveCell | <p>I am writing a VBA code that will open a specific worksheet in my workbook in Excel, and then find the cell in Column A that has the value "TOTAL". This then must be set as the ActiveCell, so that the rest of my macro can perform actions on the row containing this cell.</p>
<p>I want it so that when the user runs t... | 0 |
`fatal: Not a valid object name: 'master'` when creating a new branch in git | <p>I followed <a href="https://www.atlassian.com/git/tutorial/git-basics#!add" rel="noreferrer">this tutorial</a> but I'm having trouble creating a new branch in a new repository. This is the error I'm getting:</p>
<p><img src="https://i.stack.imgur.com/mySA5.jpg" alt="enter image description here"></p>
<p>What am I ... | 0 |
How to discard local changes and pull latest from GitHub repository | <p>I have a directory on my machine where I store all projects from GitHub. I opened one of them and made changes locally on my machine. Project got messed up and now I want to discard all the changes I made and pull the latest version from the repository. I am relatively new to GitHub, using Git Shell. </p>
<p>Would ... | 0 |
Passing data from one page to another in angular js | <p>How do I pass data from one page to another in angular js?
I have heard about using something as services but I am not sure how to use it!
Given below is the functionality I want to execute!
On page 1:</p>
<pre><code><div class="container" ng-controller="mycontrl">
<label for="singleSelect"> Select Da... | 0 |
Sending an e-mail through java application with excel file attached - not working | <p>I am trying to send a mail through Java application with excel file as attachment without actually creating the file.The data in the excel file comes from the database.
I am able to send the mail with attachment but the file is in Text(Tab Delimited) format. But I want the file to be in Excel format only.</p>
<p>Pl... | 0 |
Validating Google ID tokens in C# | <p>I need to validate a Google ID token passed from a mobile device at my ASP.NET web api.</p>
<p>Google have some sample code <a href="https://github.com/googleplus/gplus-verifytoken-csharp">here</a> but it relies on a JWT NuGet package which is .Net 4.5 only (I am using C#/.Net 4.0). Is anyone aware of any samples w... | 0 |
selenium.common.exceptions.WebDriverException: Message: 'Geckodriver' executable may have wrong permissions using GeckoDriver Firefox Selenium Python | <p>I get this error when I try to execute my first Selenium/python code.</p>
<blockquote>
<p>selenium.common.exceptions.WebDriverException: Message: 'Geckodriver' executable may have wrong permissions.</p>
</blockquote>
<p>My code : </p>
<pre><code>from selenium import webdriver
from selenium.webdriver.firefox.fir... | 0 |
SQL Connection Error: System.Data.SqlClient.SqlException (0x80131904) | <p>I am seeing this in several situations and it is intermittent in our web based application connecting to SQL 2008 R2 serve back end. Users are coming across a point 2 point connection and seeing this on and off. Thought it was bandwidth issues until I started seeing it on terminal servers that are on the same core ... | 0 |
Placeholder Color Change in Bootstrap | <p>How can I change the Placeholder Color in Bootstrap?</p>
<p>The following code, which I tried, doesn't work.</p>
<pre><code>input::-webkit-input-placeholder {
color: red;
}
input:-moz-placeholder {
color: red;
}
</code></pre> | 0 |
How can i clone an image in javascript | <p><br>
I'm trying to clone an image in javascript, bud without loading a new one.<br>
Normally new browsers will load an image once and there are several ways to use that image again.
The problem is that when I test it in IE 6 the image will request a new image from the server.
<br>
Anyone how has some info on how to... | 0 |
Where to write python code in anaconda | <p>I have downloaded the anaconda distribution for the python but now I didn't find that where to write python programs like I was writing python code using python IDLE. Please help me to get rid of this problem</p>
<p>Thanks in Advance :)</p>
<p>P.S:- I only have anaconda and I have not downloaded python from its we... | 0 |
is google maps api-key necessary for practice? | <p>(Starting June 11, 2018: All Google Maps Platform API requests must include an API key; we no longer support keyless access.)
I heard that the google maps api-key is not free.
Does anyone know if it is possible to start a project that is not for release and includes google maps api-key without getting billed?</p> | 0 |
how to use string builder to append double quotes and 'OR' between elements | <p>This is my code where I will get set of values in a list array.</p>
<p>how to use string builder to append double quotes and OR between all those elements and save to a string?</p>
<p>Also is it possible to get the elements in a split? For example I will get:</p>
<pre><code>a,b,c,d,e,f,g,h,i,j
</code></pre>
<p>... | 0 |
str.isdecimal() and str.isdigit() difference example | <p>Reading python docs I have come to .isdecimal() and .isdigit() string functions and i'm not finding literature too clear on their usable distinction. Could someone supply me with code examples of where these two functions differentiate please.</p>
<p>Similar behaviour:</p>
<pre><code>>>> str.isdecimal('1... | 0 |
How would I catch and deal with "undefined" from parsed json object | <p>I'm trying to populate a spreadsheet from a RESTful service and sometimes there's no such property so I get an "undefined" in my spreadsheet and the script stops and gives an error. I have no clue as to how to go about dealing with it, or skipping over the "undefined" part.</p>
<p>Here's a sample query in json</p>
... | 0 |
How feof() works in C | <p>Does feof() checks for eof for the current position of filepointer or checks for the position next to current filepointer?</p>
<p>Thanks for your help !</p> | 0 |
What is the best way to learn android quickly | <p>actually I am on 6 months internship program in a company and I am told to make an application in android with no help provided by the company and I have never done android before , so can you suggest me any faster way of learning android . Please let me know if there is .</p> | 0 |
How to change Foreground Color of each letter in a string in C# Console? | <p>I want to ask if how can I change a color of a specific letter in a string with a specific color i want.</p>
<p>For example:</p>
<pre><code>string letters = "Hello World"; //The string inputted.
</code></pre>
<p>I want to change "o" in the "Hello" to red. How do i do that? I know that</p>
<pre><code>Console.For... | 0 |
PHP - if dropdown selection = something | <p>How would I go about creating a conditional statement based on a dropdown list selection?</p>
<p>Lets say we have a dropdown list with entries:</p>
<pre><code>Alpha
Bravo
Charlie
Other
</code></pre>
<p>I want to create a conditional statement where if <code>Other</code> is the currently selected entry from the dr... | 0 |
Android AlertDialog Builder | <p>I have an alertdialog that I show but no matter what I do the alertdialog shows with a blank Title and Message.
The Icon, the Positive button and negative buttons show ok with correct descriptions.
Here is the snippets of code that I use:
In the Manifest file:</p>
<pre><code><uses-sdk
android:minSdkVersion="5"
a... | 0 |
Exception in thread "main" java.lang.NumberFormatException: For input string: "" | <h2>Original Question</h2>
<p>For the following small code I'm getting the error...</p>
<pre><code>import java.io.*;
class test
{
public static void main(String args[]) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int i;
System.out.p... | 0 |
Reading httprequest content from spring exception handler | <p>I Am using Spring's <code>@ExceptionHandler</code> annotation to catch exceptions in my controllers.</p>
<p>Some requests hold POST data as plain XML string written to the request body, I want to read that data in order to log the exception.
The problem is that when i request the inputstream in the exception handle... | 0 |
Iterate through rows from Sqlite-query | <p>I have a table layout that I want to populate with the result from a database query. I use a select all and the query returns four rows of data. </p>
<p>I use this code to populate the TextViews inside the table rows.</p>
<pre class="lang-java prettyprint-override"><code>Cursor c = null;
c = dh.getAlternative2();
... | 0 |
Excel VBA Macros to copy and paste cell value to certain cells based on text in column | <p>I am attempting to copy and paste text values to a certain amount of cells in excel based on a text comparison. </p>
<p>Please see below for explanation:</p>
<p>I have 2 column A(blank) and B(with values)</p>
<p><img src="https://i.stack.imgur.com/WqQvm.jpg" alt="enter image description here"></p>
<p>After the m... | 0 |
Default file transfer mode in SCP | <p>I want to know what is the default mode used (ASCII or binary like FTP) while transferring files using SCP.</p>
<p>Is there any file mode concept in SCP ? How does it work ?</p> | 0 |
Delete a very, very deep tree of subdirectories on windows? | <p>I was testing a file management program today and while looking to solve something else my program ended up not checking for moving a directory to the same directory.</p>
<p>The result is a possibly endless recursion of dir1s. I need to commit the changes so I'm desperate to get these out of my repository.</p>
<p>... | 0 |
React - Call props function inside of a components function | <p>Trying to do something like this:</p>
<p>// Component one</p>
<pre><code>toggleDropdown() {
setState({open: !open}
}
render () {
return (
ChildComponent toggle={this.toggleDropdown} />
)
}
</code></pre>
<p>Then in my child component I'd like to call that toggleDropdown function in another function li... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.