id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_35000
Hi I need a gridview which have 2 different layout in grid cells according to diffenrenrt grid cell type.here is I am giving the example screen A: You can use recyclerView as gridview as well.In recyclerview you can have different type of view holder based on some condition. for different type of view holder based on...
doc_35001
I know how to do this with xit or pending(), and JasmineReporters TerminalReporter is doing a nice job of color highlighting and listing pending specs. However, the pending tests always report No reason given, which implies it is possible to give a reason for the skipped test. I currently comment the spec with an iss...
doc_35002
What I am trying to do is pass a PFObject from my main viewController (a UITableView) to a PopOverViewController. I have done this successfully, but I need to pass the object. What would be the best way to pass from the mainController (SOITableViewController) to the popover (DetailPopViewController)? Where should the ...
doc_35003
I tried it once and I guess all the data got loaded, and of course my application got slow loading all that stuff. So, how could I optimize the data fetch from it? I will use select2 to get more functionalities, though I think I first need to address how to load the data. My code: <div id="inputs-postal"> <div clas...
doc_35004
Thanks in advance!!! ggballonplot chart Some code as an example library(ggplot2) library(ggpubr) plot4 <- ggballoonplot(data_matrix_comb, x = "Time", y = "Depth", size = "mean_percentage_of_indivuals", fill = "mean_variance", facet.by = "Stage", ggtheme = theme_bw()) + scale_fill_viridis_c...
doc_35005
In the below case, there are supposed to be 3 labs and 18 packages, however the the multiply with one another and the output is 54 of each. Below is the offending portion of the query. SELECT cef.ChangeId, COUNT(pac.PackageId) AS 'Packages', COUNT(lab.LabRequestId) AS 'Labs' FROM dbo.ChangeEvaluationForm cef LEFT JOIN ...
doc_35006
I also want to specify "private_dns_link" with terraform code. I want link AKS subnet to my hub network. I added this resource to my .tf file. resource "azurerm_private_dns_zone_virtual_network_link" "link_to_hub_vnet" { name = "link_to_hub_vnet" private_dns_zone_name = join(".", slice(split(".", azurerm_kubernetes_cl...
doc_35007
BASEPATH = C:\Users\me\x SOME_FILE_PATH = %(BASEPATH)s\a # Yields C:\Users\me\x\a What's the 's' for? Are there other characters that make the variable behave differently? A: The syntax comes from Python's string formatting syntax, which is based on C printf syntax. In short, %s means "substitute with a string", %(ab...
doc_35008
In theses two cases we need to use boto3 AWS SDK, but there are two major ways to do so : * *Using the resource form (an Object oriented Manner) import boto3 bucket = "my_bucket" key = "my_key/to_path.csv" s3_resource = boto3.resource("s3") data = s3_resource.Object(bucket, key).get() *Using the client form (a l...
doc_35009
s = np.random.normal(mu, sigma, 100) def f(mu, sigma): x = norm.pdf(s,mu,sigma) x = np.prod(x) x = np.log(x) return x I've tried x0 = [0,1] bounds = [(-5,5),(-5,5)] print(optimize.minimize(f, x0, method='SLSQP', bounds=bounds)) but keep getting the error: f() missing 1 required positional argument: 'sigma...
doc_35010
Thanks. A: I love this example from Josh... http://joshsmithonwpf.wordpress.com/2007/06/12/searching-for-items-in-a-listbox/# It's similar approach to the other link - but this one is just brilliant - the shear elegance is good to keep in mind when working with WPF (and how you can get things done in a very simple w...
doc_35011
ViewModel one define(['knockout', 'text!./eligible.html', 'kendo' , 'toastr' , 'Scripts/App/models/m_accountslist' , 'Scripts/App/constants/cont' , 'postbox' ], function (ko, eligible, k, toastr, model, cont) { function eligibleViewModel(params) { var self = this; self.accountList...
doc_35012
A: You can do it like this using a fifo to synchronise: # Once in either Terminal mkfifo A B # In first Terminal ( echo CommandA; sleep 3; echo done > A ) & # In second Terminal ( echo CommandB; sleep 8; echo done > B ) & # In third Terminal read < A; read < B; echo Rest Basically, before Rest can run, it has to h...
doc_35013
Imports System.IO Imports System.IO.Compression Module Module1 Sub Main() Dim startPath As String = "c:\example\start" Dim zipPath As String = "c:\example\result.zip" Dim extractPath As String = "c:\example\extract" ZipFile.CreateFromDirectory(startPath, zipPath) ZipFile.E...
doc_35014
* *GmpCalculator to use the GMP extension; *BcMathCalculator to use the BC Math extension; *NativeCalculator to perform calculations natively in PHP when none of the above is available. My test suite tests the Decimal class itself, regardless of the Calculator implementation in use: class DecimalTest extends PHP...
doc_35015
class Admin < ActiveRecord::Base has_many :posts, inverse_of: :admin end class Post < ActiveRecord::Base belongs_to :admin, inverse_of: :posts With this code when I create a new post I have the option to select which admin I want to assign it to but I don't want that. The field should be hidden and the current_ad...
doc_35016
I'm deploying a Meteor app on Galaxy for the first time and cannot connect to MongoDB Atlas. I can connect to MongoDb through Mongo Shell using: mongo "mongodb://host1:27017,host2:27017,host3:27017/<db_name>?replicaSet=<replica_set_name>" --ssl --authenticationDatabase admin --username <username> --password <password>...
doc_35017
I have created a webview in XML and I have linked the URL of YouTube from Java file. The problem is I am not able to play the videos inside the app. package com.coded.sandeep; @SuppressLint("SetJavaScriptEnabled") public class YoutubeActivity extends Activity { @Override protected void onCreate(Bundle savedInstance...
doc_35018
https://react.i18next.com/latest/typescript#create-a-declaration-file However, after creating the mentioned react-i18next.d.ts file I am starting to get errors about unexported members of the module react-i18next, like for example useTranslation hook: Module '"react-i18next"' has no exported member 'useTranslation'.ts(...
doc_35019
From the insert query menu from ms access, I cannot directly use sql queries command e.g select * from table; I have microsoft sql database management tool but not sure how to connect directly to ms access to query ms access database tables. Anyone has any idea how to to that? Any sql tool software recommendation that...
doc_35020
<div> <pre> UR NAME <input type="text" id="text1" name="name"/> UR AGE <input type="text" id="text2" name="age"/> UR Gender <input type="radio" id="Gender" name="Gender" /> Male <input type="radio" id="Radio1" name="Gender" /> Female Select...
doc_35021
A: To change the language throughout the application you need a different string files If you mean programatically you can check here otherwise better to see this Google documentation for best practices. And also If you are looking for an easy way of changing the language you can use this library.
doc_35022
<quill-editor (change)="validateChange(field)" [formControlName]="field.id" [id]="field.id"></quill-editor> The (change)="validateChange(field)" is having no effect. Thanks for any ideas!! A: In model driven form you could use valueChanges Observable on your form. this.formName.valueChanges.subscribe(data => { con...
doc_35023
So far I have tried this: open( my $test, ">:encoding(utf-8)", $test_file ) or die("Error: Could not open file!\n"); and ran the below command which is showing the encoding of file file $test_file test_file: ASCII text Please let me know if I am missing something here. A: Any file that is in ASCII (i.e. containing o...
doc_35024
var html = ''; html = '<div ng-click="deleteRecord($event)">delete</delete>'; $('.main).append(html); But ng-click directive does not work where as it work fine when added in html document directly. I don't have much understanding of how angular binds with DOM. So I need some support for understanding if I can make th...
doc_35025
- (IBAction)profilePop:(id)sender { ProfileViewController * profile = [[ProfileViewController alloc] init]; UIImageView * temp = ((UIImageView *)sender); profile.uid = [[[posts objectAtIndex:((UIImageView *)sender).tag] creator] mid]; NSLog(@"profile id %@", profile.uid); UIPopoverController * prof...
doc_35026
function showbookings(str, pass) { if (str === "") { document.getElementById("txtBookings").innerHTML = ""; return; } if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp = new ...
doc_35027
vector<VEC> v; Elsewhere, I have two functions; process and create. My process() is supposed to accept a Data object as a parameter and then alter its contents. It is declared as void myClass::process(Data data); Inside this function, I create a temporary vector of VECs, then push it's contents into data's v: VEC v1(...
doc_35028
Is it possible in android spinner? If yes any suggestion please .. A: You can follow the http://labs.makemachine.net/2010/03/android-multi-selection-dialogs/ or http://v4all123.blogspot.in/2013/09/spinner-with-multiple-selection-in.html. Let me know if any error?? check this, I think this is what you looking for ...
doc_35029
The same event is getting triggered from the .lsms.cs file but not .htm file (Inside the Script tag) The way I am calling the showTab method from .lsml.cs is, $(screen).on('templateLoaded', function (path) { $('#tabOne').bind("click", function () { screen.showTab("TabOne"); ...
doc_35030
Sometimes you'll get a collapsable representation of the object literal while other times it simply prints the DOM structure. Given this HTML: <div class="container"> <video src="low.mp4"></video> <video src="high.mp4"></video> <video src="mega.mp4"></video> </div> If we hit the console (WebKit/Firebug) with: > ...
doc_35031
A: It is not possible to record audio in a web browser with plain old JavaScript and HTML (including ASP.NET or any other server-side language or platform). You would think it would be possible using Flash, but it is not possible, at least not yet. The closest thing I have found is a Java applet for recording sound.
doc_35032
I am using didParseCell to add the total amount in the table data and its working but I am not able to get the Total page count so I can put any condition I have also added the comment on the git of the plugin.(https://github.com/simonbengtsson/jsPDF-AutoTable/issues/550) I have tried doc.internal.getNumberOfPages(),d...
doc_35033
How do I set up a new class of variables, using object-oriented programming in Matlab, which will behave similarly to a matrix (2D array... ), but for which the rows/columns will be numbered {-2,-1,0,1...} (instead of only {1,2,3...})? I want to be able to use all the regular vector operations that Matlab offers on t...
doc_35034
Let's say I have a page with the properties 'featurestart (has type::Number)', 'featurestop (has type::Number)' and 'srcfeature (has type::Page)'. Featurestart and featurestop are coordinates. I want to find the next query along the same srcfeature. {{#ask: [[featurestart::>{{#show: {{PAGENAME}} | ?featurestop}}]] [[sr...
doc_35035
My Requirement : I want to get latitude,longtitude from GPS every 10 minutes Problem : I am Keep on Getting latitude,longtitude My Code : 1].I am using this code in activity,I am starting Broadcast Receiver from activity //Pending Intent Intent in = new Intent(this,GPSReceiver.class); PendingIntent pi = PendingIntent....
doc_35036
This answer shows very clear the problem: // Play a video with audio encoded at 44100 Hz video.play(); // This will console log 44100 var ctx = new webkitAudioContext(); console.log(ctx.sampleRate); // Play a video with audio encoded at 48000 Hz video2.play(); // This will console log 48000 var ctx = new webkitAudio...
doc_35037
Let's say, I have listbox1 full of datas. Instead of using foreach (ListItem items in listbox1.items) how can I make it like foreach (ListItem items in context.Request.Params["listbox1"].Items)? I can't just put it in like that, right? Is there some way I can request the items of the listbox? A: Yes, it is not possibl...
doc_35038
*date1: - band1.1 @ venue1.1. - band1.2 @ venue1.2. *date2: - band 2.1 @ venue2.1. - band 2.2 @ venue2.2. etc The number of dates and the number of bands and the associated venue can vary. I am using code based on the example at the bottom of this page. I am using this snippet of code (I left out the bits at the botto...
doc_35039
This is the code that retrieves the property, so the map is found in configuration.map: @Data @ConfigurationProperties(prefix = "configuration") public class MapConfig{ private Map<String, Object> map; } The default values I have in the application.yaml are: configuration: map: a: "A" b: 2 c: true T...
doc_35040
My code is based in the premade iris classification model provided by TensorFlow. This means, I am using a Tensorflow DNN premade classifier, with the following difference: * *10 features instead 4. *5 classes instead 3. The test and training files can be downloaded from the following link: https://www.dropbox.co...
doc_35041
First one array (size=13) 0 => object(stdClass)[30] public 'ID' => string '1' (length=1) public 'name' => string 'html5' (length=5) public 'img' => string 'HTML5.png' (length=9) 1 => object(stdClass)[31] public 'ID' => string '2' (length=1) public 'name' => string 'css3' (len...
doc_35042
Here are the directions for this section. "Ask the user if there are any more amounts to add that were not in the text file.  Ifso:  Use the static methods to read and validate an amount type and an amount  Use the instance method to add the amount to one of the totals" and here is what i have so far. Thanks for an...
doc_35043
var markers = response.d.split('^^'); //var markers = ["Goregaon, Mumbai", "Malad, Mumbai"]; var latlng = new google.maps.LatLng(51.474634, -0.195791); var mapOptions1 = { zoom: 14, center: latlng } var geocoder = new google.map...
doc_35044
TypeError: object.__new__(A) is not safe, use Exception.__new__() There's a similar question posted here: TypeError: object.__new__(int) is not safe, use int.__new__(). So __new__ was deprecated for the following reason: [Python-Dev] __new__ deprecation Guido van Rossum "The message means just what it says. :-) There...
doc_35045
Traceback (most recent call last): File "<string>", line 604, in <module> File "<string>", line 314, in install File "<string>", line 152, in LoadSystemModule ImportError: DLL load failed: The specified module could not be found Screenshot: https://picasaweb.google.com/lh/photo/mvQziLhUnX8DN8otUhaJSg?feat=directlin...
doc_35046
I have many files in my root folder which appear in /vagrant folder inside the VM. When I power it off and restart it, the /vagrant folder is empty. Why? A: How are you powering the vm off and restarting? It is vagrant who mounts that directory. If you are doing that operations from VirtualBox directly it is not going...
doc_35047
mini example : savedDF <- list( bar = data.frame(.start=c(12,21,37), .stop=c(14,29,45), .score=c(5,9,4)), cat = data.frame(.start=c(18,42,18,42,81), .stop=c(27,46,27,46,114), .score=c(10,5,10,5,34)), foo = data.frame(.start=c(3,3,33,3,33,91), .stop=c(24,24,10,24,10,17), .score=c(22,22,6,22,6,7)) ) discardedDF <-...
doc_35048
( lower case) also. i.e 1234567a - is true, but this should be false. Any suggestions? EDIT: Below is my code sample var patt = new RegExp('^\d{7,11}A$'); var res1 = patt.test('1234567A'); // O/P : false var res2 = patt.test('1234567a'); // O/P : false A: You can use /\d{7,11}A$/ to check if your string ha...
doc_35049
I am using three text in side a column, one text field is long then I got this error "A RenderFlex overflowed by 248 pixels on the right." How to fix it? This is m code. import 'package:cwc/ApiManager/api_magager.dart'; import 'package:cwc/constants/constants.dart'; import 'package:flutter/material.dart'; import 'pack...
doc_35050
My code for the upload is below, what I want to do is add a check to make sure the name is not in use but with a different extension. Example - da4fb5c6e93e74d3df8527599fa62642.jpg & da4fb5c6e93e74d3df8527599fa62642.JPG if ($_FILES['file']['name']) {if (!$_FILES['file']['error']){ $name = md5(mt_rand(100, 200)); $ext =...
doc_35051
Ok, so I am something of a newbie programmer, still using procedural php & mysqli(i know, i know, I will learn oop & PDO, everything in good time.) So...I...have...this friend...and he has a problem. You see, he has this sql query <?php require_once('header.php'); require_once('connectvars.php'); require_once('start...
doc_35052
public void vibratorDAYONE() { Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); if(!v.hasVibrator()) { Toast.makeText(daybuzzer.this, "You need to have a vibrator on your phone for this app to work.", Toast.LENGTH_LONG).show(); } else { To...
doc_35053
A: Have a look at the CanMinimize field . A: Removing Maximize from the system menu should be sufficient. I don't know if that will work for the Win7 "docking", let me know if it does. Here's an article with a helper class for modifying the system menu of a window: http://www.codeguru.com/csharp/csharp/cs_misc/userin...
doc_35054
As you can see, the only float set is float: right;, so it's not a specificity issue. I've tried setting width, changing display, explicitly setting position: static/relative:, and a few other things I can't recall. I am at a loss on how to fix it. A: The issue is that the parent was display:flex;. You can't float ...
doc_35055
(defn find-primes-sum [last-prime nums] (loop [p last-prime n nums sum 0] (println p) (if (empty? n) sum (recur (first n) (doall (remove #(zero? (mod % (first n))) n)) (+ sum (first n)))))) (defn sieve-primes-until [limit] (find-primes-sum 2 (filter odd? (range 2 (inc limit)...
doc_35056
Is there a way to do this? A: If we are talking about maven-site-plugin, you can customize your site by modifying the default template, which uses Velocity as template engine, by specifying something like this: <configuration> <templateFile>${basedir}/maven-site.vm</templateFile> </configuration> Refere...
doc_35057
It works fine, but when I add the dependency to my build.sbt "com.amazonaws" % "aws-java-sdk" % "1.11.46" The deploy fails and return "Unzipped size must be smaller than 262144000 bytes (Service: Lambda, Status Code: 400, Request ID: 53eeb ab6-9377-4a37-b20b-9e55ccbebd72, Extended Request ID: null)" ...
doc_35058
This is the form input: <input class="form-control-file" type="file" name="new_image[]" value="" multiple /> And my php: if($_FILES["new_image"]["error"] == 0 ) { // if one or more file(s) are selected echo 'file selected'; I do not get the echo back... A: Have you checked if you gave your form tag enctype="mult...
doc_35059
Angular code public static getEncryptedInfo(dataString): string { let password = environment.encryptionKey; var text = dataString.toString(CryptoJS.enc.Utf8) var encrypted = CryptoJS.AES.encrypt(text, password).toString(); const encodedComponent = encodeURIComponent(encrypted).toString(); return enc...
doc_35060
For example : change from 0.0.1-SNAPSHOT to 1.0.0 change from 1.0.0 to 1.0.1 change from 1.0.0 to 2.0.0 change from 1.0.0 to 1.0.1-SNAPSHOT So, I was searching for a plugin and I found versions-maven-plugin . When I am manually setting the version using versions:set it is working perfectly fine. But, when I need to u...
doc_35061
With the vue extension I can see the following event: name:"triggerScroll" type:"$emit" source:"<Root>" What could cause this event to be triggered? I'm not triggering it within my code. A: When you use the scrollToTop property or this.$refs.module.scrollTop = 0, $nuxt will fire a triggerScroll event
doc_35062
I'm sending string via method webView.send("hello"); In the console I see I/chromium: [INFO:CONSOLE(1)] "{"data":"hello"}", source: file:///android_asset/demo.html How can I get a "hello" from the data in demo.html as a text resource? A: var string="{\"data\":\"hello\"}"; var json=JSON.parse(string); console.lo...
doc_35063
Is it possible to get data from a database, in order to fill a select ? Thanks a lot A: There is a field type called 'Dynamic Field', which will let you select a field from another form and it will populate the dropdown options with the values entered in that field. So if you add a dynamic field to Form A point it at...
doc_35064
desired_capabilities = dict(DesiredCapabilities.PHANTOMJS) desired_capabilities["phantomjs.page.settings.userAgent"] = ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36") driver = webdriver.PhantomJS(executable_path="./phantomjs", desired_capabil...
doc_35065
Could not load type 'Sitecore.sitecore.login.LoginPage' I assume I am missing a reference, though I'm not sure what assembly that is in. A: Just in case, I would recommend running a full comparison against the fileset of a default 8.2 instance. When doing an upgrade, after the upgrade you may have deployed a customi...
doc_35066
Scenario is : User logged in on Mobilefirst application on iOS/ Android device. This has been authenticated from AD (Active Directoy). Now he clicks on a link of an external application which is on a different domain and has a login page. But this is also lined with the same AD. I want to call that application without ...
doc_35067
When given a range of IP Addresses, I want to filter the Original JSON based on the given range and store it in a new file. (i.e All the JSON objects having an IP Address that falls in the given Range) JSON File: [{ "Name": "SERVER1", "ipv4Address": "192.168.0.50", "OperatingSystem": [], "OperatingSyste...
doc_35068
First signal First signal is emitted by MyClass and is handled by a slot of MyClass: QObject::connect(this, &MyClass::ready, this, &MyClass::handleReady); void MyClass::handleReady() { qDebug() << "Ready to do next step"; } // ... somewhere in MyClass implementation, signal is emitted: emit read...
doc_35069
The version I am using is Qt SDK 1.2.1 on Windows 7 (using c++). I am trying to have my application send an email via outlook whenever the user clicks a submit button. I don't require the email to have attachments just want to send an email to a recipient with a predefined message. The user's requires a company based ...
doc_35070
My skills of autolayout are poor, especially for universal apps. I would like the layout to remain for iPad and smaller screen devices, and scale the images accordingly. I am unsure how to achieve this. Could you suggest a method and perhaps point me in the right direction by providing suggestions on methods to achieve...
doc_35071
My current code is a mix of imperative and functional, I want to accomplish this goal without the call to isItemInDataThenRemove. public static Observable<Map<String, Object>> filter(Map<String, Object> data, String removeKey) { return Observable.from(data).filter((entry) -> isItemInDataThenRemove(entry,removeKey))...
doc_35072
ArrayList<Packet> _scan_results; ... // Loop and read headers and packets while(true) { Packet rpkt = new Packet(WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP); switch(_state) { case IDLE: break; case SCANNING: // rpkt.disse...
doc_35073
I tried to solve the problem with some Tamil fonts, such as bamini and mylai, but they only worked in higher android versions. A: First of all you have to understand that there is no Tamil Language support in Android OS (except few Samsung & SE mobiles) till ICS(4.0). Even then it had bugs and full support is provided...
doc_35074
I am trying to automate my excel console sheet using python/pandas and numpy. I have already read the excel, converted data into arrays, did the matrix ops. and now I am getting row vector of [1x6] which I want to append into 6 columns. How to do this in pandas as I am very new in python! import numpy as np import open...
doc_35075
Below is my image TemplateField <asp:TemplateField> <ItemTemplate> <asp:ImageButton ID="ImageButton" runat="server" ImageUrl="/eur/Home/OfferLetter/images/delete_icon.gif" CausesValidation="false" /> <asp:ImageButton ID="ImageButton1" runat=...
doc_35076
So far I got up to the following grammar: XPATHEXPRESSION ::= ("/" <STEP>)+ STEP ::= <AXIS_NAME> ":" <NODE_TEST> ( "[" <EXPRESSION> "]" )* EXPRESSION ::= <XPATHEXPRESSION> "=" """ <IDENTIFIER> """ And the related JJ file looks like this: options { STATIC = false ; } PARSER_BEGIN(XPathParser) package cz.me.ge...
doc_35077
def myfunc(a,b): return a+b and in a Jupyter notebook I run import mylibrary mylibrary.myfunc(1,2) and the output is 3 as expected. However, when I update the the file mylibrary.py so that its contents are def myfunc(a): return a+1 and run in Jupyter import mylibrary mylibrary.myfunc(1,2) the output is an e...
doc_35078
I have the query to get the running total: DECLARE @TBL TABLE(id int, amount int); INSERT INTO @TBL VALUES (1, 100), (2, 100), (3, 60), (4, 200), (5, 100); SELECT t1.ID, t1.amount, SUM(t2.amount) as CumTotal FROM @TBL t1 CROSS APPLY (SELECT * FROM @TBL WHERE ID <= t1.id) t2 GROUP BY t1.ID, ...
doc_35079
package databasetest; import java.sql.*; /** * * @author kon_f */ public class DataBaseTest { private static final String USERNAME = "root"; private static final String PASSWORD = ""; private static final String CONN_STRING = "jdbc:mysql://localhost:3306/databasetest"; public static void main(Strin...
doc_35080
I've come across this repo where core developer demoed how to run spec tests when services are created and managed using docker-compose. Unfortunately the repo isn't demoing how can I get Cypress to test other routes. I'm getting 200 on "/" but getting 404 on others. cypress.json: { 1 "baseUrl": "http://nginx:8...
doc_35081
I'm going to save this uid Token on the server and manage the users. Will a new uidToken be issued after the expiration time? A: Right now it is not clear to me what you mean by "uidToken", so I'll explain the two most likely things below. In future questions please include the code that shows where you are stuck, as ...
doc_35082
My main issues are: * *Where to get the time offset from GMT from - is there a public database available for this? *How to also take into consideration the daylight saving time (DST) differences as well. *How to nicely wrap it all up inside an PHP class - or is there such a class already available? A: I know its...
doc_35083
When using the SELECT statement I can create a table alias and solve it that way. Now I'm trying to INSERT data and it seems like you can't create table alias in the INSERT statement. INSERT INTO attributeStrings ats (ats.ItemID,ats.Key,ats.Value) VALUES (3,'Categories','TechGUI') I get error at 'ats (ats.ItemID,ats.K...
doc_35084
_client = new RestClient("https://api.twitter.com") { Authenticator = OAuth1Authenticator.ForProtectedResource(Key, Secret, Token, TokenSecret) }; RestRequest request = new RestRequest("/1.1/statuses/update_with_media.json", Method.POST); request.AddFile("media", att.File, att.FileName, "...
doc_35085
SELECT R.NUMERIC_VAL, 'A' /* query A */ FROM TABLE_1 WHERE TABLE_1.DATE = TO_DATE('04/04/2012', 'DD/MM/YYYY') UNION SELECT E.NUMBER_VALUE, 'B' /* query B */ FROM TABLE_2 WHERE TABLE_2.DATE = TO_DATE('05/04/2012', 'DD/MM/YYYY') UNION SELECT E.OTHER_NUMBER_VALUE, 'C' /* query C */ FROM TABLE_2 WHERE TABLE...
doc_35086
A: Override this method in your view controller: // Override to allow orientations other than the default portrait orientation. -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientation, NO for other; } A: Add this to your ViewController...
doc_35087
document.addEventListener('DOMContentLoaded', event => { const app = firebase.app(); const db = firebase.firestore(); const myProducts = db.collection('products'); myProducts.onSnapshot(products => { const productsContainer = document.querySelector('#products__container'); products.forEach(doc => { ...
doc_35088
css for div B .B ul li { font-size: 11px; font-family: Arial; float: left; } .B{ min-height:10px; background: #333333; color:white; padding:5px; position:absolute; word-wrap:break-word; -moz-border-radius:5px; -webkit-border-radius:5px; z-index:999; display: none; } .B:after{ /*arrow added to uparrowdiv DIV*/ c...
doc_35089
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. End each line with a newline. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies. Ex: If the i...
doc_35090
My Listener.org file # listener.ora Network Configuration File: G:\app\DigiWebT\product\11.2.0\dbhome_3 \network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = G:\app\DigiWebT\product\11.2.0\dbhome_3)...
doc_35091
I'm rendering my 3d content using directx in a seperate (partially transparent) control that lies on top of the map. So it's not rendered within or as part of the mapcontrol or anything, it's completely seperate. I made methods that transfer the geo/gps coordinates to the 3d coordinate system I use in Directx, and I m...
doc_35092
$today = date("dmY"); it gives me the date how i want it but without spaces or serperators like this: 02042013 When i add separators it substracts the numbers $today = date("d-m-Y"); outputs: -2013 because it does day minus month minus year Why? normally this works without problems.. Thanks, Laurent NOTE: I am using...
doc_35093
In my understanding, tailrec recursion should be a better solution, but when I try to determine the complexity, it looks like both of them have O(n) for time and O(n) for space. inputArray = Array(4, 6, 5) sumToCheck = 9 import scala.annotation.tailrec import scala.collection.mutable.ListBuffer def checkTwoSum(inputA...
doc_35094
In [1]: from numpy import random as rnd In [2]: import pandas as pd In [3]: pd.__version__ Out[3]: '0.17.0' In [4]: %matplotlib inline In [5]: rnd.seed(123) In [6]: ser = pd.Series(rnd.randn(73).cumsum(), index=['P%02d' % i for i in range(73)]) In [7]: ser.plot(figsize=(9, 6), rot=60, title='Figure without xticks') Ou...
doc_35095
template () { key=$(echo "$2" | tr -d '[:space:]') # escape slashes value=$(echo $3 | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g') echo "$1" | sed "s/{{$key}}/$value/g; s/{{$key:[^}]*}}/$value/g" } so that template foo bar zorp will replace {{bar}} with zorp in the given foo template. my pr...
doc_35096
String msg = "\u0002\u0053\u003F\u0003"; String checksum = "\u00EE"; String last = "\u0004"; msg = msg + checksum + last; sendmessage(msg); If I hardcode the check sum as above it works. But if I insert check sum dynamically, it doesn't. This is what I have tried String msg = "\u0002\u0053\u003F\u0...
doc_35097
http://jsfiddle.net/edwardtanguay/4af5Lr69/1/ But when I have Angular 1.2.26 loaded, it gets the error Error: [$rootScope:infdig]... <div ng-controller="MyCtrl"> <p ng-repeat="i in list|orderBy:random">{{i}}</p> </div> var myApp = angular.module('myApp',[]); function MyCtrl($scope) { $scope.list = ['a', 'b...
doc_35098
In R, there are a few ways that come to mind. Examples: * *as a named list *as a standard list *as a named vector *as a character vector with some regular expression to extubate the key and value from a single string Is there any one data structure that is recommended over the others or is considered 'best prac...
doc_35099
have the last stable ps. 1.6.1.7 done many modules ... needs help for (custom table [created]: OK, custom listing [ordering, filtering]: OK): when i click on a row (subq: when add an "addRowAction()" produce the same ...), want to see another controllers edit/update page - escpecially: controller = adminproduct & updat...