id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_23537000
This is what I have tryed. files = ["file1.xml", "file2.xml", "file3.xml"]; let res = get_files(files); //TypeError: res[0] is undefined console.log("res: " + res[0].getElementsByTagName("NAME")[0].childNodes[0].nodeValue); function get_files(files){ let ret_files = []; files.map(file => { //Create a new...
doc_23537001
public class id { public int childID {get;set;} public int parentID {get;set;} public string text{get;set;} } and I want a loop, base on currentID (currentChildID) that has a parentID . e.g: in my list (supposedly this is the data): childID --- parentID --- text 1 0 ...
doc_23537002
So - I am trying to rewrite the field value in the view to include an a tag with the appropriate link... Example: <a href="[field_course_numb_value]">My course</a> Instead I would like to use: <a href="[some way to get current path][field_course_numb_value]">My course</a> A: I ended up solving it by making a customf...
doc_23537003
var cities = ['USA/Aberdeen', 'USA/Abilene', 'USA/Akron', 'USA/Albany', 'USA/Albuquerque', 'China/Guangzhou', 'China/Fuzhou', 'China/Beijing', 'China/Baotou', 'China/Hohhot' ... ] var filters = ['Akron', 'Albuquerque', 'Fuzhou', 'Baotou']; My progress so far: var filterList; if (reject) { filterList = angular.cop...
doc_23537004
fun isDarkTheme(activity: Activity): Boolean { return activity.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == Configuration.UI_MODE_NIGHT_YES } IF it is correct, then can I please have it in Java? :) A: Here is the java Version private Boolean isDarkTheme(Activity activity) { ...
doc_23537005
I am having an issue passing the value to the second script. The session variable 'captcha_string' is fully visible in the first script, but is not passed to the second page. I am brand new at this, and frustrated. My understanding is, that as long as I start session, the entire $_SESSION array should be available. Whe...
doc_23537006
When not passing scope, or passing an empty scope Identity Server complains about no scopes have been allowed, because I don't want any? I have not set any anywhere How can I get an access token without scopes? A: According to OAuth 2.0 specification, an application can request one or more scopes. Which means, you mus...
doc_23537007
Parent_section(id) Assessment_Question(id,parent_section_id) Assessment_Answer(id,assessment_question_id) I am trying to inner join parent_section and assessment_qestion, and left join assessment_question and assessment_Answer So far joining parent_Section and assessment_question I have this, not sure how to do it for ...
doc_23537008
<?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="wrap_content" xmlns:app="http://schemas.android.com/apk/res-auto" tools:parentTag="androi...
doc_23537009
Below I try to be as descriptive as possible: Directory structure: ├── _includes │ ├── footer.html │ ├── head.html │ ├── header.html │ └── scripts.html ├── _layouts │ └── default.html ├── _site │ └── ... │ ├── css │ └── style.css ├── fonts │ └── ... ├── img ...
doc_23537010
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script> <script> $(document).ready(function(){ $("#flip").click(function(){ $("#panel").slideToggle("slow"); }); }); </script> <style type="text/css"> #panel,#flip { padding:5px; text-ali...
doc_23537011
And when making school projects, I'm sending the netbeans project, and there's a chance that the one that will test my code don't have the newest version. Do you think I should use lambda expressions? I do like that cleaner and simpler code, but I want it to work everywhere also. A: If you are using it at school, th...
doc_23537012
In a web api controller I have public RedirectToRouteResult GetSlideSet(int id) { var whatdoIHave = ObjectFactory.WhatDoIHave(); var dbctx = ObjectFactory.GetInstance<MyProject.Models.MyDbContext>(); return RedirectToRoute(WebApiConfig.DefaultRouteName, new {controller="SlideSet", id}); ...
doc_23537013
This is my Simple java source code: import rx.functions.Action1; import rx.Observable; public class HelloWorld{ public static void main(String[] args) { hello("Wjm"); } public static void hello(String... names){ Observable.from(names).subscribe(new Action1<String>(){ @Override ...
doc_23537014
server { listen 80; server_name symfony.dev; root /home/vagrant/Workspace/symfony/web; access_log off; error_log /var/log/nginx/symfony.dev-error.log error; location / { # try to serve file directly, fallback to app.php try_files $uri /app.php$is_args$args; } location ~ ^/(app|app_dev|config)\.php(/|$) { ...
doc_23537015
I have a datatable that has a edit and delete button for each row. The table contains the correct data. When I press the delete button for a row, I send the user to a delete confirm view. The error happens in the delete view. This is the line that errors <form id="deleteForm" class="form-horizontal" method="post" acti...
doc_23537016
the code i have below will not work. I copied the below code minus the line with the http address in it. It was set up to use a local file for the .msi installer. But i have to install this on 200 computers and its just a pain in the back side to download it on each computer. Is there a way to make this work with out ...
doc_23537017
I'm also making use o the meta tag viewport. For this question I'm leaving it as attached bellow. I was expecting the content (header, content, footer) to fit on the viewport (img 1) on mobiles and it does in some but I noticed that in some devices it's actually showing only part of the content and giving me a horizon...
doc_23537018
I would like to extend it such that the entire C column runs the same formula for values. Please help. If a script is necessary to achieve this, I'd like to explore that option too. A: Use Apps Script! Sheet functions (formulae) work great (especially if you are a master like player0), but I find it much easier to wor...
doc_23537019
Please help me. Thank you. A: If you are trying to reuse an image fetched in ActivityA in ActivityB without fetching again, you don't have to do anything apart from calling Picasso.with(context).load(url).into(imageView) at both places. If the url parameter is the same for both the activities, Picasso automatically f...
doc_23537020
Im using fiddler to find out the GET and POST requests I need to make. Done that and my app is successfully recreating these as best as I can see. The steps are; 1) GET request with cookie container to login uri. server response sets new cookie called jsessionID 2) do POST request with login credentials and same cookie...
doc_23537021
My solution is to create a list of size 26 and append letters A-Z into each sequence using a variable called alphabet = "abcdefghijklmnopqrstuvwxyz" and iterating over it with a Repeat block and appending LETTER COUNT of ALPHABET to the list.The result is a list data structure with letters A_Z between location 1 to 26...
doc_23537022
Once the download is complete the requestFinished is called via the ASIHTTPReqest delegate. That part is working correctly. I get the file and I see it on the file system. Then I immediately try to unzip the file from the requestFinished callback, but the unzip fails. If I call the method to unzip the file afterwards...
doc_23537023
File containing the action I want to test: technology.js (action) import { types } from "../types/types"; import swal from "sweetalert"; export const startFetchTechnologies = () => { return async (dispatch) => { try { dispatch(startLoading()); const res = await fetch( "http://url.com/techs" ...
doc_23537024
class MainMenuVC: UIViewController { @IBOutlet weak var timeLabel: UILabel! @IBOutlet weak var dateLabel: UILabel! @IBOutlet weak var checkinStatusLabel: UILabel! var employee : Employee? var time : String? var date : String? override func viewDidLoad() { super.viewDidLoad() ...
doc_23537025
<div id="attach" style="height: 500px; width: 500px; background: red;"></div> The page fragment in test.html: <div id="test"> <h3>this is a page fragment</h3> </div> I'm using jQuery as below: $('#attach').load("/test.html #test"); Based on jQuery documentation this should work, however I get the following error...
doc_23537026
What I have tried: df = df[['Country', 'Year','NumInstances']].groupby(['Country', 'Year']).agg(['count']) df = df.sort_values(by='NumInstances', ascending=False) print(df) Error: ValueError: The column label 'NumInstances' is not unique. For a multi-index, the label must be a tuple with elements corresponding to ea...
doc_23537027
@IBAction func SAVEButtonTapped(sender: AnyObject) { let viewcontroller = SecondViewController(); viewcontroller.name = self.nametextfield.text; viewcontroller.phone = self.phonetextfield.text; viewcontroller.city = self.citytextfield.text; } A: I found my Problem @IBAction func SAVEButtonTapped(sen...
doc_23537028
For various reasons, we want to (for testing) trigger the harder version (e.g. click all the images that show food) instead of just the "I am not a robot" checkbox. A: You might just use iMacros code. It makes google to suspect bot visiting and thus put forth the image puzzle. VERSION BUILD=9052613 TAB T=1 TAB CLOSEAL...
doc_23537029
In the following example, the bbar for the panel is displayed 2ems narrower than the panel it is attached to (it's left aligned) in IE6, where as in Firefox it is displayed as the same width as the panel. Can anyone suggest how to fix this? I seem to be able to work around either by specifying the width of the panel in...
doc_23537030
$this->db->from('addresses'); $this->db->where('user_id', $this->session->userdata('user.id')); $this->db->like('country', $pSearch); $this->db->or_like('state', $pSearch); $this->db->or_like('city', $pSearch); $this->db->or_like('zip', $pSearch); which generates the following SQL SELECT * FROM (`addres...
doc_23537031
The only problem I am running into is that to draw in Java the drawing is from x & y which are both located at 0, moving x left(West), and y is going south. Resizing the width is simple since I am just using a method with a single parameter to increase or decrease width. With height, moving it up is fine (I have y set ...
doc_23537032
but it return the fatel error error Fatal error: require(): Failed opening required '/home/customer/www/easy-websites.online/public_html/../quickquiz/vendor/autoload.php' (include_path='.:/usr/local/php73/pear') in /home/customer/www/easy-websites.online/public_html/index.php on line 24 I have not seperate directory...
doc_23537033
If I set a height, it goes from https://i.stack.imgur.com/GH3UT.png to https://i.stack.imgur.com/rjj6D.png. Code #home { height: 600px; position: relative; } .overlay { position: absolute; left: 0; bottom: 0; width: 100vw; height: 250px; <- setting this causes it } Within my body I have body { posit...
doc_23537034
MY dataframe looks like: root |-- CreatedOn: string (nullable = true) |-- ID: string (nullable = true) |-- Industry: string (nullable = true) |-- region: string (nullable = true) |-- Customer: string (nullable = true) For eg. count number of times the ID and region were used in last 3/2/1 months. For this I have ...
doc_23537035
A: This is only possible for private repositories managed by organisations. * *https://docs.github.com/en/organizations/managing-access-to-your-organizations-repositories/repository-permission-levels-for-an-organization If your repository is an organisation one, you can visit: * *https://github.com/`OWNER`/`REPO`/...
doc_23537036
How important is the safeness of a services password (mysql, for example) inside a single namespace? My thoughts: It's not important at all. Why? All related pods include the password anyway and the services are not available outside of the specific namespace. Though someone would gain access to a pod in that specifi...
doc_23537037
import ( "code.google.com/p/go.net/websocket" "fmt" "log" "net/http" "os" ) type MessageReceived struct { Name string Nbmsg int } func Echo(ws *websocket.Conn) { msg := new(MessageReceived) for { websocket.JSON.Receive(ws, &msg) fmt.Printf("Received message: %+v\n"...
doc_23537038
I tried the code below and don't work it gives me wrong date , i think has something to do with the amount of digits $epoch = 1532131481886863; $dt = new DateTime("@$epoch"); // convert UNIX timestamp to PHP DateTime echo $dt->format('Y-m-d H:i:s'); A: The only thing I can think of is that the last six digits is mic...
doc_23537039
private async Task DoAsync() { Console.WriteLine(@"(1.1)"); Thread.Sleep(200); Console.WriteLine(@"(1.2)"); await Task.Delay(1000); Console.WriteLine(@"(1.3)"); } and you call it asynchronously with Dispatcher: Console.WriteLine(@"(1)"); await Applica...
doc_23537040
INSERT INTO movies table (movie_id, release_year, movie_title,movie_descrption, number_in_stock_,rental_or_sale_or_both, rental_daily_rate) INSERT INTO movies VALUES('10101', '1985','top gun', 'airplains', '50', 'both', '$5' And here is my table SQL database table for Movies tables CREATE TABLE movies_id ( movie_...
doc_23537041
var = [8113,8114,8112] def avg(): for i in range (len(var)): mycursor.execute("SELECT list_id, avg(called_count) FROM list WHERE list_id ={}".format(var[i])) myresult = mycursor.fetchall() for x in myresult: print(x[1]) avg() If I use print(x) then it will return: (8113, Decim...
doc_23537042
What we have - * *SVN Code base where all of code has been stored. *Multiple unrelated dev orgs. *Current Org and code base have lots of Apex, Pages, Email templates, reports, dashboards, Workflow , Profiles, triggers and most of the standard as well as Custom Salesforce functionalities. What we want to do - 1....
doc_23537043
<xsl:apply-templates select="file:file/file:description" /> Why are there 3 files ? I know one of my tags in the XML file is named "file", but why prefixing "file:" ? Here's the actual code: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml...
doc_23537044
how can i convert Input.GetTouch(0).deltaPosition.x to Input.GetMouseButtonDown(0) then drag left and right? A: There is no direct conversion between the two. I would create method, what returns the value, and implement the logic per platform. Something like this: #if UNITY_STANDALONE private Vector2 _prevPos; #endif ...
doc_23537045
Image I want it to be working on each of the browser without any pixelate issue Requesting your best suggestion........... Thanks A: Just try this: { -webkit-text-stroke: 0.6px; } A: You cannot possibly control how a browser like Chrome renders fonts. You just have control over choosing the best font at best font-...
doc_23537046
Any help will be appreciated. I tried searching and found out like GitHub is not very good with very files but didn't find anything which can explain this behaviour. A: This probably has nothing to do with text files vs. binary files. GitHub Pages sites are build using background jobs. Depending on how busy the Pages ...
doc_23537047
This is what I am trying to do This is what I am able to do And this is the piece of code I am using: <nb-alert outline="basic" style="display: flex; justify-content: flex-start;"> <div> <div style="float: left;"> <nb-icon icon="alert-t...
doc_23537048
The results must look like this: https://imgur.com/vsOZjNi So far I have this, but I can't figure out how to fill the tables, its all empty: select mm as "Month", [1] as '2011', [2] as '2012', [3] as '2013', [4] as '2014' from( select year(h.orderdate) as yy, month(h.orderdate) as mm, d.OrderQty from sales.SalesOrderHe...
doc_23537049
We are able to use comm with success, but I am not getting the correct results when used with a conditional in script. #!/bin/bash # http://stackoverflow.com/a/14500821/175063 comm -23 <(sort /home/folder/old.txt) <(sort /home/folder/new.txt) if [ $? -eq 0 ];then echo "There are no changes in the files" else ech...
doc_23537050
Unfortunately for me, that's not what I'm after. For instance, 1 June 2012 -> 30 June 2012 crosses 4 boundaries, but covers 5 weeks. Is there an alternative query that I can run which will give me the number of weeks that a month intersects? UPDATE To try and clarify exactly what I'm after: For any given month I need t...
doc_23537051
Using an existing CMS is not an option (don't know why), I never had to implement such a thing and I'm not able to find any tutorials, articles about this topic. Can you provide some basic logic, or good tutorial on how to build such a basic functionality, it seems like a general question but still the idea is to work ...
doc_23537052
As I click on the radio button1 = Group Box 2 currently the following happens: * *The text in button 1 changes to group box 1 *The group box 2 is displayed on the dialog *Group Box 1 is hidden I know how to hide the group boxes what I am not sure is the toggling part A: You can use the following approach: Cre...
doc_23537053
and at some point i got very Weird Error. I've a Class Background In Package objects: package objects { import core.Assets; import starling.display.Image; import starling.display.Sprite; public class Background extends Sprite { private var sky1:Image; private var sky2:Image; public function Background...
doc_23537054
The first step is trying to get the tag for the username and password input boxes. I've used inspect elements to determine the tags and I think they are "username" and "password". However, this does not work. Unfortunately, I've no experience of CSS. Here is my code. Sub MyLogin() Set ie = CreateObject("InternetE...
doc_23537055
Sorry if this a FAQ, I did search thoroughly. A: Babel converts ES6 syntax into ES5 syntax. It is up to you to load a polyfill so that new ES6 library functions are available. Generally you'd do this with import 'babel/polyfill';
doc_23537056
Everything works fine for around 60 pulls and then suddenly I get the error: Use of uninitialized value $_ in substitution (s///) while ( my $row = $ia_applicant_query->fetchrow_arrayref ) { s/\t/ /g for @$row; # <------- THIS IS WHAT THE ERROR POINTS TO my $line = join "\t", map { defined $_ ? $_ : '.' } @...
doc_23537057
Context: java 6, Spring 3.1.4, camel 2.11.1, Oracle driver 10.2.0.2. I have this bean in camel context file: <bean id="myDataSource" class="**org.springframework.jdbc.datasource.DriverManagerDataSource**"> <property name="driverClassName" value="**oracle.jdbc.driver.OracleDriver"**/> <property name="url" value="jd...
doc_23537058
.delete-ad-reason-box { display: inline-block; width: 100%; border: 2px solid red; border-radius: 0.25rem; color: red; font-size: 1em; margin: 30px 0; padding: 20px 15px; line-height: 20px; } .delete-ad-reason-box i { font-size: 1.5em; margin-bottom: 10px; color: red; } /* Here's the ":acti...
doc_23537059
=if(SUM(TOTAL)>= 400000, num((((SUM(TOTAL)-400000)*0.0118)+12000),'€ #.##0'), How do I do this? Thank you. A: The formula is incomplete. It doesn't state what you want to return if the condition is not met. The DAX syntax would be =If(SUM(TableName[Total])>=40000,((SUM(TableName[Total])-40000)*0.0118)+12000,null) The...
doc_23537060
For example, I would like to hide the 'Name' field when 'Selector' is True and hide the 'Nickname' field when 'Selector' is False, for the following model in SQLAlchemy. class Foobar(Base): __tablename__ = 'foobar' Selector = Column(Boolean) Name = Column(String(100)) Nickname = Column(String(100))
doc_23537061
if (!isset($_GET[""])) $_GET[""] = false; The compiler does not report an error. OK, we have this construction without variable name. Is here one way to use this construction in practice? I think it's nonsense. I think that only $_GET is usable in practice, like: if (count($_GET) > 0) do something A: If you're talki...
doc_23537062
Those publishing options are locked when the HostInBrowser property in the project file is set to True, which is necessary for the application i'm developing, however i need to make the installation of dependencies user friendly, and possibly from the .net framework installer already hosted in my server, as it would cu...
doc_23537063
twitter://user?screen_name=SCREEN_NAME I recently noticed that this opens the Twitter app as expected but it shows a screen as if I used it for the first time: The app is also completely frozen, I can't touch anything. If I keep the app open and klick on the UIButton in our app again, the profile will be shown correct...
doc_23537064
I am using beanstalkd for my queuing. A: I am using Redis instead of Beanstalkd but this should be the same in both. Restarting Redis doesn't solve the problem. I looked at RedisQueues in the Laravel 4.2 API Docs and found: public Job|null pop(string $queue = null) //Pop the next job off of the queue. This is the s...
doc_23537065
x = df1['DNA_2'] y = df1['DNA_1'] X = np.column_stack((x, y)) # create a 2D array from the two lists mod2 = GaussianMixture(n_components=5, covariance_type='tied', random_state=2) # build the gmm mod2.fit(X) I then use this model to make predictions which I then plot: df1['pred2'] = labels fig, ax = plt.subplots(1,1) ...
doc_23537066
The script for build project: cd FlashClipboard; /usr/lib64/qt5/bin/qmake FlashClipboard.pro; make clean; make; cppcheck --enable=all --suppress=missingIncludeSystem . --xml --xml-version=2 . 2> ./tmp/cppcheck.xml; Post-Build Actions: But I have error: [Cppcheck] Starting the cppcheck analysis. [Cppcheck] Processing...
doc_23537067
Background I'm creating a comic database for personal use, to track my comic reads. Every comic belongs to a series. Every comics has a release date. The release date of a series is the first release of the according comic. I have a eloquent function seriesByDate() for that: class Series extends Model { public $times...
doc_23537068
w3.org says: Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes or elements. I'm leaning towards keeping ids but some part of me thinks that future developers would think the ID's aren't used and remove them. Any best pra...
doc_23537069
Here is the relevant code to start the dot.exe process: private void MakePng() { string args = "-o" + graphPath + " -Tpng " + dotPath; Process process = new Process(); ProcessStartInfo info = new ProcessStartInfo(); info.FileName = VizGraphPath; info.Arguments = args; info.UseShellExecute = f...
doc_23537070
[DllImport("user32.dll")] static extern bool SetLayeredWindowAttributes(IntPtr hwnd, uint crKey, byte bAlpha, uint dwFlags); I'm getting two errors for this code: * *The modifier 'extern' is not valid for this item (on the closing square bracket of the attribute) *Expected class, delegate, enum, interface, or stru...
doc_23537071
body { background-color: black; } .button { background-color: white; border: 2px solid transparent; border-radius: 2em; color: #eff6f9; display: inline-block; font-family: Merriweather, Arial, sans-serif; font-weight: 300; font-style: italic; font-size: 0.7rem; font-weight: bold; ...
doc_23537072
I've written a Tokio server using services and I want to reuse the same codec and proto for the client. Part of the client is a function called read_prompt which returns a Stream. Essentially it is an infinite loop at which each iteration reads in some input from stdin. Here's the relevant code: main.rs use futures::{...
doc_23537073
public class MainActivity extends Activity implements OnClickListener { Button b1, b2,b3; ImageView i, i2, i3; TextView t1, t2, t3,t4; String s1, s2, s3, s4, s5; LinearLayout pooku; Button bk; int q, m, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, n[]; Random r1 = new Random(); Random r0 = new Random(); Handler ...
doc_23537074
{ path: "/items", name: "items", component: () => import("./myViews/itemsView.vue") }, if I click one of them I go to route: { path: "/items/:id", name: "singleItem", ***component: () => import("./myViews/singleItemView.vue")*** }, inside that view I have another list of other items and I need the route t...
doc_23537075
Is it possible to control the session creation policy in Spring (Security) on a per request basis? Long version... I have been using normal login form user authentication for our application. Some of the controllers are @RestControllers and up to now, the default user session tracked by cookie has allowed it to work fi...
doc_23537076
My boss is trying to convince me to make a custom application to handle the whole thing, but I've been considering trying to pitch an Infopath + Sharepoint solution to him for the form management. However, I have absolutely no experience with either, so I don't know if any kind of integration with Quickbooks would be p...
doc_23537077
My problem is that the proxy code is not re-generated. When I select to update the service reference, the following happens: * *A dialog with the title "Updating service reference 'name-of-reference'" is shown. This dialog has a progress bar. *The progressbar moves and the status text in the dialog is changed to "...
doc_23537078
How does everyone make their theme when creating their sencha touch 2 apps? Is using sass the recommended way for this even though its so trial and error/look better? Does Sencha Architect let me do this? A: To try out SASS without really changing and compiling your project styles, you can use this online tool to visu...
doc_23537079
<?php /* Template Name: 'Template 1' * Template Post Type: cpt1, cpt2, cpt3 */ ?> My problem is when I'm creating a new post. I have to choose the template each time...(> screenshot) Not really convenient for my client. A repetitive handling. Would it be possible to force a default template ? Any ideas ? Thank...
doc_23537080
applicationContect.xml: <bean id="CalcValidate" class="com.fmr.pmsvcs.orders.fixture.utility.CalcValidate" > <property name="orderRestServiceL" > <ref local="OrderRestService" /> </property> </bean> And my class looks like bellow : CalcValidate.java public class CalcValidate { public static Orde...
doc_23537081
It seems that Val only accepts strings that contains . as decimal separator. From the ASM code in _ValExt (which Val calls) it looks like it does not use DecimalSeparator. Can I safely rely on the fact (?) that Val accepts real number strings with . as decimal separator? A: Val is ancient, low level and a bit tricky ...
doc_23537082
Here's what I tried so far: self.navigationController?.navigationBar.translucent = true self.navigationController?.navigationBar.backgroundColor = UIColor.blueColor() The navigation bar does not change. Even setting the translucency to true has no effect at all. I can change the tint color without any problems...
doc_23537083
Tom,1,2,3,4,5,6,7,8,9,10 Steve,1,2,3 Bob,1,2,3,4,5,6 Cthulhu,1,2,3,4,5 Greg,1,2,3,4,5,6,7,8,9,10,11,12,13,14 I can't figure out how to parse this with FileHelpers. I would imagine I should be able to do something like this: [DelimitedRecord(",")] public class MyRecord { public string Name; public List<int> Va...
doc_23537084
Basically I wanted a near seamless way of downloading csv files from my dropbox folders from the commandline in R in one line of code so that I dont need to click on the allow button after the token request. Is this possible? Here is the code I used to wrap up a dropbox csv download. db.csv.download <- function(dropbo...
doc_23537085
My recorder is configured like this: public static int RECORDER_SAMPLERATE = 44100; ... mRecorder = new AudioRecord.Builder() .setAudioSource(MediaRecorder.AudioSource.MIC) .setAudioFormat( new AudioFormat.Builder() .setEncoding(AudioF...
doc_23537086
I'm using the following to disable a value in a dropdown, which works fine. $('*[id^="dd"] option[value=' + info.products_options_values_id_affected + ']').attr("disabled",vOut); The problem is, if the user selected this option before it was disabled, it needs to reset the dropdown to its default(top) value. The probl...
doc_23537087
function getColour(d) { switch (d) { case 'IPMSAN': return '#00FF00'; case 'PARK': return '#000000'; ; } }; var legend = L.control({position: 'bottomright'}); legend.onAdd = function (map) { var div = L.DomUtil.create('div', 'info legen...
doc_23537088
I am working on an android project and i have to make a smooth scrolling panel like shown in this app https://play.google.com/store/apps/details?id=com.paisaswipe.android I tried this with the help of panels, but when i tested it on a real android device then app goes crashed. And that layout is also not looks good and...
doc_23537089
Error: is.call(call) is not TRUE The results of a traceback(): 11: stop(sprintf(ngettext(length(r), "%s is not TRUE", "%s are not all TRUE"), ch), call. = FALSE, domain = NA) 10: stopifnot(is.call(call)) 9: standardise_call(call, env) 8: object_from_call(call, env, preref) 7: (function (call, ref, comment_r...
doc_23537090
I tried to use jQuery resize(), but it is not working properly. You can see working demo here: pepnest.com/hbs Here, when you resize browser, it cuts down height of slides. This is my code in JS file: $(document).ready(function(){ var width = $(window).width(); if (width < 368) { $('.bxslider').bxSlid...
doc_23537091
I am trying to do this using foreach or purrr, but I keep getting stuck. STATA Code: foreach v in zip income child{ g `v`_agg="" **generate an empty column with the specified name (e.g. address_agg or income_agg)** foreach l in 20190601 20180401 20171001 20160801{ replace `v'_agg=`v'`l' if missing (`v'_agg) **replace...
doc_23537092
gamer_user where u.id = gamer_rec t2.user_id where gamer_user has user_name, and gamer_rec has company name SELECT t1.company,usc.`name`,ur.id,u.id,t1.user_name,t2.user_name FROM `game_social` AS usc JOIN gamer_rec t2 ON t2.user_id = `usc`.`user_id` JOIN gamer_rec t1 ON t1.user_id = `u`.`id` JOIN `gamer_user` AS u...
doc_23537093
A: Not sure about the v19 support library, but the v20 one has the following methods: public void setColorSchemeResources(int colorRes1, int colorRes2, int colorRes3, int colorRes4) Which allows you to set the colors by resource. But the following method also exists, which takes colors: public void setColorSchemeColo...
doc_23537094
DECK = [] PLAYER = [] COMP = [] for x in PLAYER: if i,j in PLAYER: if i,j in DECK: p = DECK.index(i,j) p = -51+p DECK.pop(-p) I am aware that i,j does not work here. How can I represent the card in the hand so that I can index and remove it from the list that contains t...
doc_23537095
Is there a way within angular-ui-router to suppress abstract states from being added to the history? A: Have the same problem. I hope it will help you How do I get the Back Button to work with an AngularJS ui-router state machine? It's a little bit hard for me and it seems there must be a simpler solution Edit: I did...
doc_23537096
And then loading the newly generated component to my container, placed in the tabs, as i am creating the tabs dynamically as per the data. The process is working for first tab, but not for other tabs. That may mean, the container, where i am pushing my runtime component, is generated once, thus not reflecting for other...
doc_23537097
So, my app renders in a weird way: <my-app><div> <app-nav-bar _nghost-ile-2=""><ul _ngcontent-ile-2=""> <!--template bindings={ "ng-reflect-ng-for-of": "[object Object],[object Object],[object Object],[object Object]" }--><li _ngcontent-ile-2="" ng-reflect-raw-style="[object Object]" style="float: left;"> <a _ngconte...
doc_23537098
I have been using this which works, but I can't figure out how to do that with sum and case as I need to sum up the revenue together when it equals xyz code that works (replace(revenue, ',', '') code that doesn't work sum(replace(revenue, ',', '') case WHEN food in ('burgers', 'fries') then revenue else 0 end)) as fo...
doc_23537099
This doesn't work as I want because there are glitches - flickering, because the window is moved back to Left=0. I'm more interested in something like LocationChanging to prevent it from ever moving left or right. private void Window_LocationChanged(object sender, EventArgs e) { if (Left != 0) Left ...