id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_11900
I need to 'reset' back to a previous commit on my branch, before I did this accidental merge. I've looked at many similar questions on Stack Overflow and they all say to just use git reset --hard <sha1_of_where_you_want_to_be> which I have done. But I don't see any changes. git status shows nothing and when I push back...
doc_11901
There were similar threads here and there but none of the solution did not help me. I installed node.js and created the following files. <!---app.component.ts:---> import { Component } from '@angular/core'; @Component({ selector: 'my-app', template: 'My First Angular App - Demo' }) ...
doc_11902
I want to make some custom URL guessing, before the default one. It would look something like this: function custom_redirect_guessing( $requested_url = null, $do_redirect = true ) { // My custom logic // If none of my logic checks out, execute the default one. default_guessing(); } add_filter( 'redirect...
doc_11903
Edward Elric : 2000 300 3000 300 Super Trunks : 100 300 4000 900 Saitama Genos: Goku Black: 12 333 33 I want the program to start reading the scores in each line but skip the blank spaces for example each record has a maximum of 4 scores however some records have less than 4 scores which are denoted by the whitespac...
doc_11904
But my requirement is on windows it should be like it is & on Mac the title bar should show close, max min buttons on left. I tried to identify the platform on which the application is running but I was not able to get that. I don't know how but creating two css & applying accordingly would work but don't know how to ...
doc_11905
phoneBooksBindingSource.Filter = string.Format("PhoneNumber = '{0}' OR FullName LIKE '*{1}*' OR Email='{2}' OR Adress LIKE '*{3}*'", txtPhoneNumber.Text, txtFullName.Text, txtEmail.Text, txtAdress.Text); I tried to use % instead of *. Didnt work. A: In linked source code you have extra space in second format item: y...
doc_11906
I didn't realize that more than half the spectrum was spent between green and blue. But I'd really like it to look much more like this: With a nice even blend of that "standard" rainbow colors. I'd imagine that this would end up being some sort of s-curve of the normal hue values, but am not really sure how to calcul...
doc_11907
protected void User_Querytime() { DataClasses2DataContext dc1 = new DataClasses2DataContext(); String Data = Request.QueryString["TimeOfMessage"]; var query7 = from u in dc1.syncback_logs where u.TimeOfMessage = Data orderby u.Ti...
doc_11908
I'm trying to get a value from a document, that looks like this: { "id" : player:(some number)", "name" : "Martinez, Javi", "type" : "midfielder", "jersey_number" : 8, "position" : "Central defender" } I have players in an ArrayList<Document> playersOnPitchHome and want to find one wi...
doc_11909
I want the security to do the following * *Use Basic Authentication on specified URLs (/api/service/**) *Do not validate Basic Auth if sent with all other URL's Currently whenever I send a request to any URL outside of /api/service/** it works fine HOWEVER if I send a Basic Auth token with those it then tried to a...
doc_11910
My ViewController in the storyboard won't have any objects. Everything I created programmatically. I have three views named firstView, secondView and thirdView. UIView *firstView = [[UIView alloc] init]; UIView *secondView = [[UIView alloc] init]; UIView *thirdView = [[UIView alloc] init]; Constraints for these views ...
doc_11911
1 - Sort multiple float vectors in the same order (keeping correspondance) 2 - QCustomPlot (QCP) plots ONLY outer boundary of a scatter plot. (answering either of these 2 questions would solve my problem) Situation: I have 3 vectors for plotting: std::vector<float> x, y; std::vector<int> hits; The resulting plot is a ...
doc_11912
What I'd like to implement is to crawl over network drives and let users find files fast using a full-text indexing. My current indexing strategy is Lucene.net But I am not sure how often I should be indexing network drives because there are millions of documents to index and not to mention packets traveling over netw...
doc_11913
Vector<Integer> v = new Vector<>(); v.add(14); ... v.add(47); .. Now I want to release the memory for this Vector. I am trying to figure out the difference between the following three statements FROM THE GARBAGE COLLECTION PERSPECTIVE. Option 1: v.clear(); /*This will iterate over each object reference contained in v ...
doc_11914
In Apple's Creating Face-Based AR Experiences the ViewController is passed an ARFaceTrackingConfiguration instance and so the ARSession appears to create an ARFaceAnchor instance and keep it updated with the face tracked by the TrueDepth Camera. This can be clearly seen in the ARSession's delegate's renderer method ren...
doc_11915
glibc detected malloc(): memory corruption and I cannot find out why... the substring() just return you part of the original string by giving the starting index and length. e.g. substring("this is example",0,4) = "this"; char *substring(char* str, int start, int length) { char *newString = (char *)malloc(length...
doc_11916
xmerl:export_simple([XmerlRecords], xmerl_xml). It works as expected and generates an IO list of XML. However, the <?xml> tag looks like this: <?xml version="1.0"?>. I want it to include the encoding as well. Like so: <?xml version="1.0" encoding="utf-8"?>. How do I do that with Erlang 18.2 (xmerl version 1.3.9)? I re...
doc_11917
The problem is that the solution includes a vsix project that relies on the microsoft.vssdk.buildtools which are not supported by dotnet build. This results in an error message when trying to build the solution in the command line with dotnet build: microsoft.vssdk.buildtools\17.4.2119\tools\VSSDK\Microsoft.VsSDK.targe...
doc_11918
<div id="wrap"> <div class="parent1"> <div class="parent2"> <b>Text</b> </div> </div> </div> $(function(){ $('#wrap').children('parent1').children('parent2').$('b').css('color':'red'); }) Here is my jsFiddle example: http://jsfiddle.net/L5aSt/ A: You have a lot of things wrong...
doc_11919
The out-of-the-box looks like the typical, basic button/file info: But even if I try to assign it to a class with styling for all input fields, nothing seems to be affecting it. For example... <p class="text-center"> {{ Form::file('photo', array('class'=>'form-control')) }} </p> ...will only style the outer conta...
doc_11920
### Convert myData$x from factor to numeric myData$x <- as.numeric(levels(myData$x))[ myData$x] it seems it works, but I got this warning message: Warning message: NAs introduced by coercion Is that something I should be worried about? And how can I fix it?
doc_11921
A: Why not actually try that out in a small experiment? If you perform a HEAD request and see something triggered on your server (for example, either look in your webserver's log file or call some script or application that is able to write a custom log file), then the resource was properly requested. If you perform a...
doc_11922
This is a clause with -value1- and -_value_2_- having a subclause of -value.3- items. And i would like to extract all strings with the opening "-" and closing "-" characters. Needed output should be: Array ( [0] => Array ( [0] => -_value1_- [1] => -_value_2_- [2] => -...
doc_11923
When the user is in the app everything works (obviously) When the app is either quit or put in the background (user presses home button) I want to trigger Function A When the user is in the app and simply locks there phone (doesn’t exit the app or anything) , I want to trigger Function C. I'm aware of the Pause functio...
doc_11924
I have notice, if I am putting break point(while debugging), My code runs ok, the data received and then my code manipulate that data. If I am not using any break point my array is null, the code did not wait for the data to arrive. I have tried, Thread.sleep(timeInMills); and SystemClock.sleep(timeInMills); but t...
doc_11925
I am trying to insert a listview but without success when using Fragment. I'm not finding any example here and Google. Maybe I was not knowing the correct search term. A: You have to use a MasterDetail Page for the same. It is a page that manages two related pages of information – a master page that presents items, a...
doc_11926
Source;Destination;Service;Action;Comment 10.0.0.0/8 172.16.0.0/16 192.168.0.0/24 23.2.20.6;10.0.0.1 10.0.0.2 10.0.0.3;udp:53 tcp:53;accept;No.10: ID: INC0000000001 And correlates the IPs contained within. I created the following base: import ipaddress import csv with open('BE-E2_D1_Source.csv', 'rt') as f: reader...
doc_11927
But, when I convert bytes to utf-8, some of the HTML code just disappears. Here is my code: import urllib.request req = urllib.request.Request('http://avast.softonic.com/') response = urllib.request.urlopen(req) the_page = response.read() For example, the content of the DIV which ID is "review_data" in "the_page" is:...
doc_11928
public class AdminTicket { public int Id; public string Title; public string Description; public DateTime CreationDate; } The action is public ViewResult EditTicket(int id) { return View(_ticketRepository.Tickets.FirstOrDefault(c => c.Id == id)); } (I checked, an action give to a v...
doc_11929
IOError: [Errno 2] No such file or directory: 'main.kv' I've tried adding the .kv file, as well as a mdb and dsn file (for pypyodbc) using --add-data, but I get an error: unrecognized arguments: --add-data'main.kv'. (There were more --add-data arguments for the other files mentioned.) Are there any solutions for this...
doc_11930
Why does my code not work? window.onload = function() { $('p').css('color', 'rgb(255,0,0)') $('#button').click(function() { color = $('p').css('color') if (color == 'rgb(255,0,0)') { $('p').css('color', 'green') } else { $('p').css('color', 'red') } }) } <script sr...
doc_11931
$('#text1').on('changeDate', function () { var sdate = moment.utc((<any>$('#text1')).datepicker('getFormattedDate')).subtract(1, "days"); (<any>$("#LossDate")).datepicker('minDate', sdate.format("MM-DD-YYYY")); }); i am also try with $('#text1').on('changeDate', function ()...
doc_11932
I successfully added Azure Blob Storage and Azure Key Vault to the linked services, but got stuck on adding (serverless)Azure Synapse Analytics, as simply I was not able to find the relevant class within azure.mgmt.datafactory.models. I'm sure I'm something missing, as I could add it flawlessly through UI, so there mus...
doc_11933
Thanks, Yingjie A: The issues with Netty has already been identified, assessed as "not applicable", and added to the suppression list (CASSANDRA-17368). In any case, the Netty upgrade to a newer version is already in progress (CASSANDRA-17392, CASSANDRA-17992), particularly since it is required for supporting Java 17 ...
doc_11934
(function(){ function MyObject() { this.MyMethod = function() { //code here } } first = new MyObject(); first.MyMethod(); })(); And (function(){ function MyObject(){}; MyObject.prototype.MyMethod = function() { //code here } first = new MyObject...
doc_11935
Edit:- Many developers are saying to use SliverAppBar. SliverAppBar basically collapses the app bar when we scroll up the listview or any other widget, whereas I want an app bar that pulls down i.e when we tap the app bar and scroll it down only the app bar grows on top of the body. So basically when we navigate to the...
doc_11936
Also ordering for me only works when I am overriding the default groupX.all() function with groupX.all = function() { return groupX.top(Infinity); } How can I make my bar chart order itself everytime it's redrawn? A: How about this (untested): chart.on('preRedraw', function() { chart.rescale(); }); Since the ...
doc_11937
However, whether the columns list is actually populated seems to depend on SchemaRetrievalOptions (or, more precisely, on the result of a informationSchemaViews.hasQuery(CONSTRAINT_COLUMN_USAGE) call in method retrieveTableConstraintsColumns in file TableConstraintRetriever.java of the SchemaCrawler sources; informatio...
doc_11938
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class RegistrationForm(UserCreationForm): email = forms.EmailField(required=True) first_name = forms.CharField(max_length=20, required=True) last_name = forms.CharField(max_length=20...
doc_11939
DESCRIBE Table1; col1 int col2 int col3 int col4 int col5 int DESCRIBE Table2; col1 int col2 int mapcol map<string, int> I would now like to copy data from Table1 to Table2 where col3, col4,col5 would be stored in the mapcol as key value pairs. something like mapcol < col3:value_of_col3, col4:value_of_col4, col5:va...
doc_11940
FROM [Client] A JOIN [Price] B ON A.SID = B.SID WHERE A.Date BETWEEN '$from' AND '$to' AND A.ClientID = '$client' ORDER BY A.Date"; I use the above query to display fee of transactions in a period (usually monthly), and where there's no transaction in a day it should display the fee from the last day transaction while...
doc_11941
trait Trait<T> {} struct Struct<U>; impl<T, U: Trait<T>> Struct<U> {} Error: error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates --> src/main.rs:5:6 | 5 | impl<T, U: Trait<T>> Struct<U> {} | ^ unconstrained type parameter It seems that RFC 447 prohibits this...
doc_11942
This is my code private void button3_Click(object sender, EventArgs e) { StreamReader sr = new StreamReader(textBox1.Text); richTextBox1.Text = sr.ReadToEnd(); sr.Close(); } How can I go about it? A: A few if-statements and the namespace System.IO will do it string filename = textBox1.Text; if (Path.GetEx...
doc_11943
export class MyComponent implements AfterViewInit { private visibilityChange$ = fromEvent(document, 'visibilitychange').pipe(startWith('visible'), shareReplay({ refCount: true, bufferSize: 1 })); private show$ = this.visibilityChange$.pipe(filter(() => document.visibilityState === 'visible')); private hide$ = thi...
doc_11944
module PriceHelper def price_range_human( range ) "$%s to $%s" % [range.begin, range.end].map(:number_to_currency) end end I know that I can use array coercion as a really bad hack: first, *center, last = *rng "$%s to $%s" % [first, last].map(:number_to_currency) But is there a syntactical way to get begin an...
doc_11945
The final code is to put the table in an ArrayList and finally to put it in a list view. This is my code: public class Cluka2 extends AsyncTask<Void, Void, String> { Document document = null; public ArrayList<String> list = new ArrayList<>(); @Override protected String doInBackground(Void... params) ...
doc_11946
If I try to add 'jspm_packages' into exclude section then I get following errors: DEBUG [web-server]: serving (cached): /Users/jm/dev/monka/node_modules/gulp-helpers/node_modules/karma-jspm/src/adapter.js PhantomJS 1.9.8 (Mac OS X 0.0.0) ERROR ReferenceError: Can't find variable: System at /Users/jm/dev/monka/syst...
doc_11947
public class MapsActivity extends AppCompatActivity implements OnMapReadyCallback { final String dbname = "myapp"; private Manager manager; private Database database; private static final String SYNC_URL = "http://url/myapp/"; private static final String TAG = "MapsActivity"; GoogleMap googleMap; private String d...
doc_11948
my code is public class SplashScreen extends Activity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { public static int SPLASH_TIME_OUT = 3000; private final String LOG_TAG = "logTagMngr"; private TextView loactionout; private GoogleApiClie...
doc_11949
I would like to display the data in the json file by using a bar graph in 0 to 100% on the x axis, and convert it to a percentage and graph it. I do not know how to change the data value to a percentage. So there is no longer any progress in the code. <%@ page language="java" contentType="text/html; charset=UTF-8" ...
doc_11950
Normally this is fine, but it actually takes the contents out of the form tag. This makes it so that submit buttons within the colorbox no longer cause post backs. Here is a fiddle representing the problem: http://jsfiddle.net/Chevex/vbLFD/ If you click the submit changes button you will notice that the form posts to g...
doc_11951
java.security.SignatureException: error decoding signature bytes. at com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSABase.engineVerify(DSABase.java:82) at java.security.Signature$Delegate.engineVerify(Signature.java:1380) at java.security.Signature.verify(Signature.java:806) What has been changed in ...
doc_11952
This is what one of file looks like. A: tagged_contents is returning a list to you, which is one value. But you trying to do _, name = tagged_contents("head", lines)[0].strip().split(':'), which means you are telling python that tagged_contents will return two values. Hence the error not enough values to unpack (ex...
doc_11953
ng-click="create({{item.variants[0].id}},{{item.variants[0].title}})" and the errors : Error: [$parse:syntax] Syntax Error: Token 'Title' is unexpected, expecting [)] at column 26 of the expression [create(743922959,Default Title)] starting at [Title)]. what should i suppose to do in order to make clean function witho...
doc_11954
Is it possible to use an IF or conditional statement to join the tables else leave the fields as null? Here is a fiddle: http://sqlfiddle.com/#!3/aaa38/5 Transactions table: posted_date person_id description 2015-11-01 2 BZ#1414 Description 1414 2015-11-01 2 Another type of transaction with spa...
doc_11955
s.executables = Dir["bin/*"].map &File.method(:basename) If I have a ruby file at bin/my_file which had chmod a+x run, then it's found in the PATH in bash: #!/usr/bin/env ruby puts "working ruby script" However I have another executable written in coffeescript at bin/my_file.coffee: #!/usr/bin/env coffee console.dir ...
doc_11956
I've searched and finds things like: hardlim(N,FP) and satlin(N,FP) but threshold is not custom. Also using of bias is not much useful because each neuron in every layer, has different threshold. Thanks.
doc_11957
I need to have plant names correctly formatted: Italise: genus, species, subspecies, or variety But not italise the words: subsp., var., x, f. aff. or any words within quotation marks '' i.e. Olea europaea subsp. cuspidata or Malus domestica 'Golden Delicious' Thanks A: The basic syntax for specifying which characte...
doc_11958
I have written the query as: SELECT column FROM table WHERE column ~ '(\[| )1732529(\]|,)'; But the results contain rows where the entry includes other numbers as well such as: [1732604] or [1732561, 1738189]. I am expecting the return to include only rows where the entry matches the expression. For example: [1732529]...
doc_11959
Sel * from Core_t1 where Rec_status <>'DELETED' table doesn't display any values. I have to incorporate this logic for future although we don't have any 'DELETED' records at the moment.Kindly let me know your inputs. Data type of Rec_status :VARCHAR(30) CHARACTER SET UNICODE NOT CASESPECIFIC A: ...
doc_11960
The rewrite url is this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^.*\.(jpg|css|js|gif|png|html|woff)$ RewriteRule ^ index.html [L] I want that all the URL that contains path /old/ and with path /images/ aren't rewritten! Someone can hel...
doc_11961
"q":"IBASEDESCRIPTION:(ankor sunnyvale tokyo^3 london labs)", "defType":"dismax", "fl":"score, IBASEDESCRIPTION", "q.op":"AND", "rows":"3", "debug.explain.structured":"true", "debugQuery":"on" This is what I see in the response header. mm=2 it means 2 optional clauses should match. q.op is AND - I assume...
doc_11962
if strings.ToUpper(request.DialogState) == "STARTED" { log.Println("DialogState == STARTED") // Pre-fill slots: update the intent object with slot values for which // you have defaults, then return Dialog.Delegate with this updated intent // in the updatedIntent property. slots :...
doc_11963
Under BC i can verify it easily, but when i`m doing it on JavaCard it send me false everytime(Curve secp192r1 from NIST). Certificate hold sign in plain (non X9.62 mean just r+s without any TAGs). There is my code to verify it (with values putted as constant - for tests of course). byte[] certdata = {...} Signatu...
doc_11964
String b = "[B@64964f8e"; this is the byte[] output which i store in a string Now I would like to convert it back to byte[] byte[] c = b.getBytes(); but it gave me different byte which is [B@9615a1f how can I get back the same as [B@64964f8e ? A: String b = "[B@64964f8e"; that's not a real string. That's the ty...
doc_11965
Why can't we have a repl mode or kind of a shell for Java. Say I just want to do Math.max(2,3) to get output 3. It can be similar to Scala repl mode, where by default the class and main declarations are handled (it extends to App) and only an expression is evaluated. Technically: * *There is an interpreter running b...
doc_11966
circle http://api.ning.com/files/oKZwndeqeam7%2aMiO7f4BDUT%2aAgw3WsK3kW-b-wXjR8gCrCqVAv3RpyBAdi%2adYSLaca0kAYCY0Wk13bSHDnEbOVR1NNUuYotV/diversity_wheel3.JPG?width=500 I know how to draw a circle, but I don't know how to draw the curvilinear rectangle based on the circle coordinates. How can I do this? A: Since you kn...
doc_11967
I believe all my nugets are fairly up to date so how do I upgrade? I have changed <PropertyGroup> <TargetFramework>netstandard2.1</TargetFramework> </PropertyGroup> to <PropertyGroup> <TargetFramework>net7.0</TargetFramework> </PropertyGroup> and the various other versions but that just throws up err...
doc_11968
This is all working fine, but now I want to give every model its own Rotation. Currently I am using a BasicEffect to draw all the models. I can set its rotation, but then all the objects will have that same rotation. Is there any way to set a different rotation for every object? I've currently come up with a couple of ...
doc_11969
When i insert data to textbox it's shows on the gridview after clicking "Save". I need to clear the content of fieds after i click on "Save". I tried alot of things and searched in google but nothing works. I am new at .net.. Can someone help please? This is my save button fuction: protected void btnSave_Click(object s...
doc_11970
<EditText ... /> <EditText ... /> <Radio ... /> <EditText ... /> <Spinner ... /> <EditText ... /> I have used android:imeOptions="actionNext" for moving from one to the next. The last edit text has android:imeOptions="actionDone" As a result the focus moves from one edit text to another. But mi...
doc_11971
What is the best/most efficient way of copying/updating periodically a table? Should I make a plain php script that fetches and updates the data (my app is in php)? Isn't there a better way? A: Well, if you can only read from that DB, it means you can't create a trigger, or setup replication which would be most-effici...
doc_11972
It automatically inserts the Repro steps into the Bug but the formatting is very poor; see image. Is there a workaround to make the columns wider?
doc_11973
I added all necessary open graph tags for my resource and the app links as stated here: https://developers.facebook.com/docs/applinks/add-to-content Has anyone experienced the same behaviour since the new Facebook app update? Version: (34.0.0.36.265) I'm getting the usual prompt if I want to leave Facebook but upon cl...
doc_11974
If not, any way to integrate a Java program into Excel? Currently, I have to write the output of my java program to text files, then write a macro to load the data into the Excel spread sheets and do the plotting there. Thanks much! A: You can try JFreeChart. It's pretty good, open source and pretty actively devolope...
doc_11975
<xsl:analyze-string regex="^^([0-9-]+)([A-Z ]*)[ ]*([\(](.*)[\)])*$" select="/fault/informations/restriction1"> <xsl:matching-substring> <group> <x><xsl:value-of select="regex-group(1)"/></x> <y><xsl:value-of select="regex-group(4)"/></y> </group> </xsl:matching-substring> </xsl:analyze-string> </xsl:v...
doc_11976
{ fin.getline(read, 49); subcnt++; i_sequence = subcnt; i_name = my_tok(read, "/"); i_price = atoi(my_tok(NULL, "/")); i_quantity = atoi(my_tok(NULL, "/")); if (subcnt <= 10) loadlist[subcnt-1].setList(i_sequence, i_name, i_price, i_quantity); } my_tok is...
doc_11977
I have a normal textarea like this: <textarea id="usermsg"></textarea> I want to be able to select text within it and then click a button somewhere on the page to perform a function with that selection but the text gets deselected as I click outside the text area. Any way to prevent that? I tried this //clicking the '...
doc_11978
<textarea class="tinymce" name="frmbody" id="frmbody" cols="30" rows="20"></textarea> I'm trying to get the contents of the textarea as the user types. $("#frmbody").live('keyup', function(e) { alert("keyup"); }); The code above is not working and I'm not sure why. If I remove the tinyMCE instance, the code ab...
doc_11979
public class PersonModel { public int ID { get; set; } public string Name{ get; set; } public string Address{ get; set; } public DateTime? DateofBirth{ get; set; } public GenderEnum Gender{ get; set; } public PersonDetailModel PersonDetail { get; set; } public PersonDetailModel PersonDetail...
doc_11980
This page isn’t working; localhost didn’t send any data. ERR_EMPTY_RESPONSE I've been searching for 2h now and I've found nothing. I've checked the port 3000 in cmd with netstat -a -n -o and it says that the port is listening (so I guess it is working). So what is preventing me from accesing to that port. Here it my ...
doc_11981
There is a parent component, which has several children. Children are just input elements with build-in validation. <ParamInput type="number" value={item.capacity} name="capacity" min="1" validators={[Validator.required]} onValidation={this.validate} /> I'd like the parent to be aware which of its children...
doc_11982
Problem when the device size changes say from iPhone 6 to iPhone 5, the view_1 adjust correctly but its height I am passing to a function to draw its subview view_2 is still what was set in interface builder and so it is out of bounds in iPhone 4 moving from iPhone 6 Thus I want to know how can I get the correct size o...
doc_11983
/** * @var string $slug * @Gedmo\Slug(fields={"label"}, separator="+") * @ORM\Column(length=130, unique=true) * @Expose */ protected $slug; It doesn't work, I get the following error: [Symfony\Component\Debug\Exception\ContextErrorException] Warning: preg_match(): Compilation failed: nothing to repeat at offset 2...
doc_11984
Is there a way to change from vertical to horizontal? Example: mtcars$cyl <- factor(mtcars$cyl, labels=c("four","six","eight")) ggplot(mtcars, aes(x=wt, y=mpg, colour=cyl)) + geom_point(aes(colour=cyl)) + opts(legend.position = c(0, 1), title="Legend placement makes me sad") A: You get horizontal legend b...
doc_11985
If I have to create my own I'd create a polymorphic model/migration and re-use the shareable links across users, businesses, events, etc. Since these links are usually small each column would be a string data type. A: Depending on how much information you're gonna store, think you could just add these columns directly...
doc_11986
Below code is a snip for Selection sort in ADA: procedure Selection_Sort(Data : in out List) is begin for Destination_Index in Data'Range loop for Source_Index in Destination_Index + 1 .. Data'Last loop if Data(Source_Index) < Data(Destination_Index) then Swap(Data, Sourc...
doc_11987
* *Problem: If you upload images to your gallery that have different sizes, the thumbnails are displayed in different heights on each row. Fix: All images will have a squared shape. *Problem: When adding 4 photos to a 3 rows Gutenberg Gallery Block, always the 4th picture takes the entire width of the container. Fix...
doc_11988
Please check, i would like to add a .solo class on the element mentionned : <figure> <figure class="vertical" ADD SOLO CLASS> <p> <figure> <h1> <p> <figure class="vertical"> <figure class="vertical"> <figure> <p> <figure class="vertical"> <figure class="vertical"> <figure class="vertical"> <figure> <figure class="vert...
doc_11989
<input name="item.AutoOpen" class="check-box" id="item_AutoOpen" type="checkbox" CHECKED="checked" data-val-required="The Auto Open field is required." data-val="true" value="true"/> <button class='m-btn blue' title="test" style='width: 200px;margin:4px;'>hello</button> ​ <script type="text/javascript"> $(functio...
doc_11990
I have the need for each instance of the class that the logs from that instance goes to its MemoryTarget aggregated instance. I use SimpleConfigurator.ConfigureForTargetLogging(instance.MemoryTarget, LogLevel.Trace) to initialise the logger, which causes the last ConfigureForTargetLogging call on the last instance to d...
doc_11991
sleep 0.001 command in Ubuntu. I want to know if this command effect the c state of the core or the package somehow. Does it force a c state on the hardware? Thanks! Code example: /bin/sh sleep 0.01 sleep 0.01 A: The sleep is purely software, the process executing it is not eligible for the CPU/cores during at leas...
doc_11992
*** Exception: neo.txt: openFile: resource busy (file is locked) This is my code. import Data.Char import Prelude import Data.List import Text.Printf import Data.Tuple import Data.Ord import Control.Monad import Control.Applicative((<*)) import Text.Parsec ( Parsec, ParseError, parse -- Types and parser ...
doc_11993
OSError Traceback (most recent call last) <ipython-input-43-d2334601378c> in <module>() 5 dst= '/Users/user/Downloads/audio_files/5.wav' 6 ----> 7 sound = AudioSegment.from_mp3(src) 8 sound.export(dst, format="wav") /anaconda2/lib/python2.7/site-packages/pydub/audio...
doc_11994
WITH validyears as (SELECT Year FROM movies WHERE Year > 2005) SELECT * FROM movies WHERE Year IN validyears I get "Unrecognized name" error. A: Try this WITH validyears as (SELECT Year FROM movies WHERE Year > 2005) SELECT * FROM movies WHERE Year IN (Select year from validyears)
doc_11995
"; expected" "Unexpected character '$'" "Invalid token ')'". These errors seem to indicate I might be missing a library or some necessary file for Xamarin to compile my app. Any thoughts? Thanks
doc_11996
getStudentPersonalDetails(studentId?: number) { console.log(studentId) this.apollo.watchQuery<QueryResponse>({ query: StudentPersonalDetailsQ, variables: { studentId: studentId } }).subscribe(({ data }) => { if (typeof data.allStudentDetails != 'undefined') { ...
doc_11997
The XML format. <table name="spelers"> <column name="ID">4565</column> <column name="Voornaam">Ivo</column> <column name="Achternaam">Dolman</column> <column name="SchoolID">5811</column> </table> What I try to do, if column name="Tussenvoegsel"> does not exist is to add it after "Voornaam" <table name="sp...
doc_11998
import java.io.File; import java.io.FileNotFoundException; import java.util.*; public class QSortLab { static int findpivot(Comparable[] A, int i, int j) { return (i + j) / 2; } static <E> void swap(E[] A, int p1, int p2) { E temp = A[p1]; A[p1] = A[p2]; A[p2] = temp; ...
doc_11999
This is a global variable. @Value("${config.key}") public String variable; for My use case I need to the value of this variable to another global variable: String secondVariable = variable; logs show that the key is stored inside the variable but I assign secondVariable the value of first it gives null. The secon...