id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_17900 | Any ideas?
A: Simple - if you don't need or plan version for WP7, only for WP8, then use the Geolocator - it is better configurable than GeoCoordinateWatcher.
Or, there is another solution that I have used in my app, use Dependency Injection and implement common interface for your geolocation service, that will be imp... | |
doc_17901 | As an example it would be a case of adding a link to google.com that then automatically searched for the term I put in the link e.g. http://www.google.com/mysearchterm
Any advice appreciated.
A: **update, this does not work for the site in question. If you're trying to do this remember to clear your history and use p... | |
doc_17902 | EMAIL_BACKEND
EMAIL_HOST
EMAIL_USE_TLS
EMAIL_PORT
EMAIL_HOST_USER
EMAIL_HOST_PASSWORD
ANYMAIL = {
"MAILJET_API_KEY":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"MAILJET_SECRET_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
}
EMAIL_BACKEND = "anymail.backends.xxx.EmailBackend"
DEFAULT_FROM_EMAIL = 'dynamic@gmail.com'
A: ... | |
doc_17903 | E.g. can I change meaning of a T-SQL script or make it invalid by removing all line breaks?
(except ones in -- … comments and '…' string literals)
A: In my experience, line breaks can be safely replaced with spaces. The only exception I know of is the batch separator GO (which is not actually part of T-SQL syntax).
R... | |
doc_17904 | ||
doc_17905 | I have a custom axios instance at src/axios:
import axios from 'axios';
const instance = axios.create({
baseURL: 'myApi/',
});
export default instance;
In MyComponent I import axios with import axios from '../axios' and make an api call.
In testing the api call in MyComponent I must mock axios so I do:
import a... | |
doc_17906 | Every user sets is own preferred "area codes".
Every event is set to some area codes, and this information is saved in a table:
events_areas:
area_id BIGINT
event_id BIGINT
I am trying to find a good way to let the user select is own area codes... and then to match it in a select statement with the event area codes.
i... | |
doc_17907 | data(mtcars)
boxplot(mtcars$mpg)
But qplot requires y axis. How can I achieve with qplot the same like base graphics boxplot and not get this error?
qplot(mtcars$mpg,geom='boxplot')
Error: stat_boxplot requires the following missing aesthetics: y
A: you can set the x aesthetics to factor(0) and tweak the appearance... | |
doc_17908 | var userWithSameUserName = await _userManager.FindByNameAsync(request.UserName);
in my AccountService.cs
public AccountService(
UserManager<ApplicationUser> userManager,
RoleManager<IdentityRole> roleManager,
IOptions<JWTSettings> jwtSettings,
IDateTimeService dateTimeS... | |
doc_17909 | hex_number : "0x" HEXDIGIT+ and with 0xA as input, and it always throws me an error, A is unexpected token.
A: Here's a little example that won't throw you any error:
from lark import Lark
if __name__ == "__main__":
grammar = """
start: hex_number
hex_number : "0x" HEXDIGIT+
%import comm... | |
doc_17910 | expect(Rails.logger).not_to receive(:error)
The problem is when it fails, I have no useful information about the error itself:
Failure/Error: expect(Rails.logger).not_to receive(:error)
(#<ActiveSupport::Logger:0x000000000b85dfa8 @level=1, @progname=nil, @default_formatter=#<Logger::Formatter:0x00000... | |
doc_17911 |
Fatal error: Uncaught exception 'Solarium\Exception\RuntimeException' with message 'cURL is not available, install it to use the CurlHttp adapter' in
/var/www/app/webroot/kl/vendor/solarium/solarium/library/Solarium/Core/Client/Adapter/Curl.php:67
Stack trace:
#0 /var/www/app/webroot/kl/vendor/solarium/solarium/libr... | |
doc_17912 | I'm using passport-oauth2-refresh to obtain a new accessToken and refreshToken, but at this point i really don't know how to "refresh" the user object sent me by the passport-discord strategy
This is the entire strategy logic
passport.serializeUser((user, done) => {
done(null, user.id);
});
passport.deserializeUser(... | |
doc_17913 | import os
import sys
import numpy as np
import netCDF4
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
sc = sys.argv[1]
run = sys.argv[2]
...
when I run it it kicks back the following error message:
Traceback (most recent call last):
File "/home/brandonsmith/climate-sensitivity-gcm/plot_... | |
doc_17914 |
A: *
*As far as I can tell, the new getUserCollectionAsync method only returns consumables that haven't yet been "fulfilled," so it effectively does the same thing.
*The REST API wasn't returning anything because the Azure Active Directory client ID hadn't been added to the app in the Partner Dashboard. Around 24 ho... | |
doc_17915 | my folder (not exists): diretory
my virtual url: www.teste.com.br/diretory
my folder (exists): diretory2/dir/index.php
When accessing www.teste.com.br/diretory view the contents of diretory2/dir/index.php
A: Try the following, to rewrite one URL to the other:
RewriteEngine On
RewriteRule ^diretory$ /diretory2/dir/inde... | |
doc_17916 | the object array looks like this:
const objectArray = [
{key: "1", value: "12321"},
{key: "2", value: "asdfas"}
]
I have now the value of key, e.g. key = 1, but I want to get 12321 as result.
any solution?
A: You can use .find() to achieve it.
Try this:
Working Demo
this.objectArray.find(x => x.key == "1")... | |
doc_17917 | But the XML output is not expected one.
public class ProcessXMLService {
public static void main(String[] args) throws JAXBException {
JAXBContext context = JAXBContext.newInstance("com.ford.xml.poc");
StringBuilder xmlSB = new StringBuilder();
try {
FileWriter out = new ... | |
doc_17918 | models/recipe.rb
has_many :ingredients
has_many :directions
accepts_nested_attributes_for :ingredients, reject_if: :all_blank, allow_destroy: true
accepts_nested_attributes_for :directions, reject_if: :all_blank, allow_destroy: true
Using simple_form gem in a _form.html.haml partial
%h3 Ingredients
#i... | |
doc_17919 | if(cond is false)
pthread_cond_wait
or
while(cond is false)
pthread_cond_wait
My question is, we want to cond_wait only because condition is false. Then why should i take the pain of explicitly putting an if/while loop. I can understand that without any if/while check before cond_wait we will directly hit that ... | |
doc_17920 | I have gone through this article,
https://ben.straub.cc/2015/08/19/kubernetes-aws-vpc-peering/
But it is not possible to manually ssh into Kubernetes node servers and set the IPTABLE rules. I want to add it as a part of deployment.
This is my service looks like,
apiVersion: v1
kind: Service
metadata:
name: test-micr... | |
doc_17921 | f (a, b) = if a == 0 then (0, 0) else (a * b, a / b)
x1 = make_strict (0, undefined)
x2 = (0, undefined)
g f :: (b -> b) -> a -> a
How do define make_strict and g:
g f x = ... f x ...
make_strict x = ...
So that:
g f x1 == undef
g f x2 == (0, 0)
Basically I want to make a strict version of a pair that I can then p... | |
doc_17922 |
I know this is not what an array should look like in the console. It seems like the push is not working in my snapshot function. I am using this code:
var userId = firebase.auth().currentUser.uid;
var businessesRef = firebase.database().ref("/users/" + userId + "/businesses");
businessesRef.once("value").then(functio... | |
doc_17923 | alt text http://img.skitch.com/20100404-8kaabe5f6b5bdf66wt9kfymepw.jpg
A: [UINavigationItem prompt] is what you're looking for.
You might set this in a UIViewController's initWithNibName:bundle: (or init if you're not using XIBs) like this:
[[self navigationItem] setPrompt:@"The best day of the week"];
| |
doc_17924 | I am setting a configPath context variable using...
const configPath = '/some/file/path.yml';
vscode.commands.executeCommand(
'setContext',
'ext.configPath',
configPath
);
... which can be used within when properties in package.json. For example, "when": "ext.configPath".
Problem
I cannot seem to obtain the valu... | |
doc_17925 | The authentication code and the provisioning of a ResourceGroups are pasted below.
In the code below, <some_client_id> is the ClientID of the native app registered in AAD1. <some_subscription_id> is the subscription that the user (in AAD2) has access to.
I have verified user's access to the subscription by creating a R... | |
doc_17926 | import sys
sys.path.append('main_module_folder/helper_folder/')
import helper_module as h
test = h.Foo()
The helper module, which contains the class definition, looks like this:
class Foo():
def __init__(self):
var1 = 'foo'
When I run the main module, the code executes fine. But if I try to inspect the "... | |
doc_17927 | {
"AND": [
{ "key": "", "value": "" },
{ "key": "", "value": "" },
{ "OR": [
{ "key": "", "value": "" },
{ "key": "", "value": "" },
{ "AND": [
{ "key": "", "value": "" },
{ "key": "", "value": "" },
... | |
doc_17928 | This error doesn't occur when I run my app on an iOS 14.X simulator in Xcode 12, so why is it happening now?
Module compiled with Swift 5.3.2 cannot be imported by the Swift 5.6 compiler
What is causing this error and what steps need to be taken to fix it?
Error image
Error image #2
A: Clear derive data to remove com... | |
doc_17929 | sql = "insert into etudiant (Nom, prenom, sexe,classess) " +
"values(@Nom, @prenom, @sexe,@classess)"/*+"class (nom_class)" + "values(@nom_class) "*/;
cmd = new NpgsqlCommand(sql, conn);
cmd = new NpgsqlCommand(sql, conn);
cmd.Paramet... | |
doc_17930 | select DELTA_TYPE,OPERATION_ID,COUNT(*) from ACTIVE_DISCREPANCIES ad group by DELTA_TYPE,OPERATION_ID
DELTA_TYPE,OPERATION_ID, etc may come from external system, in repository class I tried to execute native query
@Query(value="select OPERATION_ID,DELTA_TYPE,count(*) from ACTIVE_DISCREPANCIES ad group by ?1",nati... | |
doc_17931 | I have searched about this but couldn't resolve it.
def GCD(num1, num2):
if num1 < num2:
small = num1
else:
small = num2
for i in range(1, small + 1):
if (num1 % i == 0) and (num2 % i == 0):
gcd = i
return gcd
arr = [int(i) for i in input().split(' ')]
print(GCD(a... | |
doc_17932 | First Regex that matches 556 in any order:
"\b(?=[0-46-9]*5[0-46-9]*5[0-46-9]*\b)(?=\d{3})\d*6\d*\b"
I would like the new regex to match the below([0-9]556,[0-9]565,[0-9]655).
desired results:
0556
0565
0655
1556
1565
1655........
Second Regex that matches 567 in any order:
"\b(?=[0-46-9]*5)(?=[0-57-9]*6)(?=[0-689]*7)... | |
doc_17933 | <div id="rt_mod_side_foo_body_bar">
I would like to abstract this so instead of writing:
within '#rt_mod_side_foo_body_bar'
I can do:
within :sidebar
How can this be accomplished with Capybara?
A: Instead of a symbol, how about a method?
def sidebar
"#rt_mod_side_foo_body_bar"
end
| |
doc_17934 | import java.lang.*;
class Console
{
public static void main(String args[])
{
char i;
i=System.console().readLine("this is how we give he input to the string");
System.out.println("this is what we want to print:0)");
System.out.println(i);
}
}
and... | |
doc_17935 | <embed id="htmlObjectElement" [attr.src]="pdfSource" type="application/pdf" width="100%" height="100%" (mouseenter)="onMouseEnter()">
How can I catch a OnClick() Event inside this embedded pdf.
Thank You.
A: Did you try using the (click) event as specified here in the angular doc ?
| |
doc_17936 | foreach (var cmt in BPAddresss)
{
foreach (var t in cmt.BPPhones)
{
if (t.PHON_NUMB.Length> 11)
{
}
}
}
LINQ Code
var k37 = Target.BPAddresss.Where(x => x.BPPhones.Where(y => y.PHON_NUMB.Length > 11).Count() > 0);
A: You can use Any:
var query = Target.BPAddresss
.Where(... | |
doc_17937 | fmkadmapgofadopljbjfkapdkoienihi/build/injectGlobalHook.js
\\node_modules\\scheduler\\cjs\\scheduler.development.js
\\node_modules\\lottie-web\\build\\player\\lottie.js
ect...
I have already tried;
{
"version": "0.2.0",
"configurations": [
{
"name": "React",
"type": "chrome",
... | |
doc_17938 |
A: Hey just right click on exe file and run as a administrator.It worked for me :)
A: There are 2-3 ways to solve the issue:
*
*As suggested above, Right-click on exe file and run as administrator.
*Open command prompt in administrator mode.
Just take a note of where your setup file location is present.
Use cd ... | |
doc_17939 | [{"Date"=>"2014-02-12", "All Installs"=>"7,226", "Bootups"=>"358,439"}, {"Date"=>"2014-02-11", "All Installs"=>"7,759", "Bootups"=>"383,873"}, {"Date"=>"2014-02-10", "All Installs"=>"7,958", "Bootups"=>"286,067"}, {"Date"=>"2014-02-09", "All Installs"=>"9,439", "Bootups"=>"331,402"}]
I need to convert it to this: a Ha... | |
doc_17940 | {Type, Category, Region, Attack on}
(Enemy Action, Direct Fire, RC EAST, ENEMY)
(Friendly Action, Cache Found/Cleared, RC EAST, FRIEND)
(Non-Combat Event, Propaganda, RC SOUTH, NEUTRAL)
(Suspicious Incident, Surveillance, RC CAPITAL, ... | |
doc_17941 | I have highlighted failing line in bold. [ remoteStream.Write(buffer, 0, bytesRead);]
using (FileStream localStream = File.OpenRead(filePath))
{
RemoteFile remoteFile = this.serverComponent.GetUploadFileHandle(filePath);
if (remoteFile == null)
{
... | |
doc_17942 | val intent = Intent(context, LauncherActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP
val pendingIntent = PendingIntent.getActivity(context, System.currentTimeMillis().toInt(), intent, PendingIntent.FLAG_UPDATE_CURRENT)
views.setOnClickPendingIntent(R.id.title, pend... | |
doc_17943 | But unfortunately I can't get the count.
will anyone help me please???
Here is code of my view file
<div class="row">
<label class="col-md-6"><strong> Total Leave in this month </strong>/label>
<div class="col-md-6">
{{$count}}
</div>
</div>
Here is my code of controller file
public function handleLea... | |
doc_17944 | Does that means I will need to re-target my applications to .NET 4.6 for RyuJIT to take effect?
A: Short answer: no.
Long answer: use the debugger to ensure you have the new version. First have a look-see at the runtime directory with Explorer, navigate to C:\Windows\Microsoft.NET\Framework64\v4.0.30319. You'll find... | |
doc_17945 | I have assigned each role a value, 1 for admin, 2 for editor and 3 for reader and have added that to the user add form and also the db, what I need now is a way to be able to pull that into the login session so that it can be checked at various levels (menu and some pages).
So far what I have so far is below.
The login... | |
doc_17946 | var table=document.createElement("table").style.border="1px solid";
and try to append the row to this table like this
table.appendChild(newRow);
above line is throwing exception as follows:
Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
and if I try to execute the... | |
doc_17947 | typedef struct Symbol {
char* name;
/* Other variables declared here... */
struct Symbol *next;
}Symbol;
What I want to do is insert some of these Symbols in a stack. Besides the other A.D.T. that these Symbols will be inserted.
So for that reason, I created a struct of type func to handle my stack like so... | |
doc_17948 | from module import *
The module looks something like this:
class myClass:
def __init__(self, something):
def someGetter(self):
return whatever
def someSetter(self):
def someSupportingFunction():
return whatever
def someOtherSupportingFunction():
return whatever
def main():
... | |
doc_17949 | I am searching around but cannot find the answer. I am having a terraform directory on my mac '/Users/juergen/Documents/DPSCodeAcademy/Terraform/aws/DDVE6/ddve6-modulized/ddve6-deployment-modulized/DDOS 7.4 with EIP' from which I wanna copy all tf files into my working directory.
This is working with git but now I wann... | |
doc_17950 | My idea is to leave existing users DB as is. Add a column MasterUserGuid to Users table that will contain "master" user Guid (so the user that IdentityServer uses for authentication) and implement following flow:
*
*User opens the app and is not signed in
*User is redirected to IdentityServer and uses global creden... | |
doc_17951 | I try to alert it with this.id or $(this).attr('id') and I get no alerts when clicking on the divs in question. But I do get alerts when I click on other elements. Here is my HTML:
<div id="map"><img src="../../images/map2.jpg" /></div>
<div id="n_america" style="position:absolute;top:171px;"><img src="../../ima... | |
doc_17952 | My problem is, in my Android APP, there is a ListView with some Items, and on click of each item will transit to a new fragment. In the Item itself, there is a inner GridView to display some dynamic data from an array.
My concern is that, if I click the item of that inner GridView, it will not call the ListView's onIte... | |
doc_17953 | First, I installed the gem and got the cloudinary.yml file as required. Then, I updated the environments/development.rb file.
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :cloudinary
I also updated the config/storage.yml file with my api_key ... | |
doc_17954 | Worth mentioning, I managed to do this in RapidMiner easily with the same dataset. I used the Aggregate operator, concatenated the item attributes and then grouped by transactions.
A: If I understand this correctly, you wish to aggregate columns, not rows. If so, there's Aggregate Columns widget available for that. To... | |
doc_17955 | I can encode string to base64 using nodejs as in my case. but i dont know where to change this default behavior ... thanks a lot
A: Just define the _id property in your schema and set the type option as String. You can either set a default value as a function to generate the value, or manually set it when you create t... | |
doc_17956 | Unfortunately, the suggested script results in scoping constructs (e.g. "namespace::member()") not being highlighted anymore, and functions and class names are no longer highlighted.
Does anyone have a better C++11 plugin for Vim available now? Ideally, all the features of the regular C++ plugin being retained, new ke... | |
doc_17957 | import { Label, Input, Checkmark } from "./styles";
export default {
functional: true,
model: {
prop: "checked",
event: "change"
},
props: {
checked: Boolean
},
// eslint-disable-next-line
render(h, { props, listeners}) {
console.log(listeners);
const changeHandler = listeners.change ?... | |
doc_17958 | <?php
$fetchlast = mysql_query("SELECT * FROM posts WHERE id=(SELECT MAX(id) FROM posts)");
$lastrow = mysql_fetch_row($fetchlast);
$lastid = $lastrow[6];
for ($i=1; $i <= $lastid; $i++) {
$currentname = mysql_query("SELECT * FROM... | |
doc_17959 | 1) when user post too long status its not displayed right on firefox
2) in cause of the long text follow/unfollow are displayed someone in the middle of the status
You can see what I mean by the added images.
What I suggest for a fix (but I don't know how to do it :() is this:
just remove status in this boxes (its not ... | |
doc_17960 |
The code is as follows:
example1 = spark.sql("""SELECT
CF.CountryName AS CountryCarsSold
,COUNT(CF.CountryName) AS NumberCountry
,MAX(CB.SalesDetailsID) AS TotalSold
FROM Data_SalesDetails CB
INNER JOIN Data_Sales CD
ON CB.SalesID = CD.SalesID
INNER JOIN Data_Customer CG
ON CD.CustomerID = CG.CustomerID
INNER ... | |
doc_17961 | My shp file (gdf) shows railroads and looks like this:
id EF geometry
0 None RS105 LINESTRING (179594.484 -3547126.500, 157006.06...
1 None RS103 LINESTRING (-235587.484 -3365437.750, -298682....
2 None RS101 LINESTRING (-30771.531 -3357265.750, -79628.46...
3 None RS106 LINESTRING (20... | |
doc_17962 |
enter image description here
listenEtat(value) {
let d = Date.now()
let date= moment(d).format('lll')
if (value === "Contrat Cadre") {
this.formClient.get('Date_StatQ').setValue('');
this.formClient.get('Date_StatEs').setValue(date);
... | |
doc_17963 | <action name="LoginAction" class="de.my.stuff.LoginAction">
<interceptor-ref name="myStack" />
<result name="error">
<param name="location">/jsp/login.jsp</param>
<param name="anchor">${hash}</param>
</result>
<result name="success" type="redirectAction">
<param name="actionNam... | |
doc_17964 |
*
*Use orgmode agenda content in html
*Emacs org-mode publishing Agenda
with no insight. I've recently installed emacs 24.5 on two different OS X Mavericks machines, once with Mac Ports, once from the tarball. I didn't see html as an option when using C-c C-e in org-mode, so i ran find across the machine installed ... | |
doc_17965 | <div class="main-container">
<div class="blue-container"></div>
<div class="red-container"></div>
<div class="green-container"></div>
</div>
.main-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
align-content: stretch;
}
.blue-container, ... | |
doc_17966 | Most of the time, my dataframes are built out left to right where I append a new column on to the end and the new column is built from values already in the df. For now, it would just be dependent on the row, no aggregations.
My question is, what's the most efficient way to do this? I like to build functions to contain... | |
doc_17967 | Sub LoopThrough()
Dim MyFile As String, Str As String, Mydir As String, Wb As Workbook
Dim Rws As Long, Rng As Range
Set Wb = ThisWorkbook
'change address to suite
Mydir = "C:"
MyFile = Dir(Mydir & "*.xlsm")
ChDir Mydir
Application.ScreenUpdating = 0
Application.DisplayAlerts = 0
... | |
doc_17968 | Controller advice inside application:
package com.package.one.errors
@ControllerAdvice
@Order(Ordered.HIGHEST_PRECEDENCE)
public class ControllerAdvice1 {}
Controller advice from dependency:
package com.package.two.errors
@ControllerAdvice
@Order(Ordered.HIGHEST_PRECEDENCE)
public class ControllerAdvice2 {}
The Con... | |
doc_17969 | The software provides the option to control the reader through REST request. In my case, I'm making a function that requests to change the read power consecutively; whenever a request, thereupon parsing the XML where you have stored items is detected.
Every time parsing the XML, I keep the values in a data frame. My ... | |
doc_17970 | CREATE TABLE movie (
id INTEGER PRIMARY KEY, title TEXT, year INTEGER, nth TEXT, for_video BOOLEAN
);
sqlite>
sqlite>
sqlite>
For the question:
Which movie(s), not counting movies whose titles start with punctuation, come first in alphabetical order, and which come last?
below syntax:
SELECT title
FROM movie
WH... | |
doc_17971 | here is what I have set in the routes.rb file
get 'public/contact'
and this is the application.html.erb that carries my link to that
</div>
<ul>
<li><a href="http://localhost:3000">HOME</a></li>
<li><a href="http://localhost:3000/info/news">NEWS</a></li>
<li><a href="http://localhost:3000/info/faq">FAQ</a><... | |
doc_17972 | I'd like to do something along the lines of:
tbl(con, "mytable") %>%
group_by(dt) %>%
tally() %>%
write_to(name = "mytable_2", schema = "transformed")
A: While I whole heartedly agree with the suggestion to learn SQL, you can take advantage of the fact that dplyr doesn't pull data until it absolutely has to ... | |
doc_17973 | I'm not sure whether to recode my winforms app so that it uses WCF/Odata to access the database or whether the whole app will need re-writing as a webforms app and moving the database to the hosted website. The later option will likely be the more difficult of the two options given my coding experience. At present, the... | |
doc_17974 | <?php
/* Works out the time since the entry post, takes a an argument in unix time (seconds) */
function time_since($original) {
// array of time period chunks
$chunks = array(
array(60 * 60 * 24 * 365 , 'year'),
array(60 * 60 * 24 * 30 , 'month'),
array(60 * 60 * 24 * 7, 'week'),
... | |
doc_17975 | my constraints are 1 ≤ a.length ≤ 10^5, 1 ≤ a[i] ≤ a.length. Thanks.
class Program
{
static void Main(string[] args)
{
int[] a = { 1, 2, 3, 4, 5, 6 };
int f = FirstDuplicate(a);
Console.ReadLine();
}
public static int FirstDuplicate(int[] a)
{
int[] answer = new int... | |
doc_17976 | ORA-00904: : invalid identifier
DROP TABLE Series CASCADE CONSTRAINTS;
DROP TABLE User1 CASCADE CONSTRAINTS;
DROP TABLE Following CASCADE CONSTRAINTS;
DROP TABLE Episode CASCADE CONSTRAINTS;
--DROP TABLE BUNGALOW CASCADE CONSTRAINTS;
--DROP TABLE Watched CASCADE CONSTRAINTS;
CREATE TABLE Series
( SeriesID NUMBER(... | |
doc_17977 | private int someVar;
public int SomeVar
{
get { return someVar; }
set { someVar= value; }
}
while some developers use this:
public int SomeVar
{
get;
set;
}
i am guessing both will be same performance wise. For readibility, reusability an... | |
doc_17978 | or instead I have to change the default layout and use a custom layout?
Thanks a lot for your answer.
PS: If was possible access to views in actionbar (them are view too, right?) maybe I could handle what I would.
| |
doc_17979 | ||
doc_17980 | M1 or M2 or M3?
| |
doc_17981 | trunk
|
|_____A
|
|_____B
|
|_____C
I also have 2 branches with the same structure as the trunk:
branch
|
|_____DEV
|
|_____A
|
|_____B
|
|_____C
|
|_____PROD
|
|_____A
|
|_____B
|
|_____C
The trunk is used for ongoing development and... | |
doc_17982 | Instead, I want to take my observations, bin a bunch of them where I have a lot of x-values in a small range of X, and compute the mean of y.
Is there a clever way to select, say, 6 non-overlapping regions of high density from my vector of x observations?
If so, I'll take the center of each region, grab a bunch of th... | |
doc_17983 | Pseudo-code to demonstrate what I want to be able to do:
def do_thing
service.send_stuff(args)
rescue Exception1, Exception2
if job.retries == JOBS_MAX
raise
else
job.requeue
end
end
I don't want to raise an exception on any failure because generally the job will be completed okay on a later retry and ... | |
doc_17984 | Here's the page with the form:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head><title>Add Owned Game</title></head>
<body>
<h1>Add Owned Game</h1>
<br />
<br />
<c:url var="saveGameeUrl" value="/games/save.html" />
... | |
doc_17985 | Here it is -- I saw a Google Maps implementation that I am trying to replicate on a client site, but I am having difficulties.
Here is the effect I am trying to recreate - http://www.franckmaurin.com/. When you click "Get in Touch" a Google Map expands from the top of the page, pushing the content down.
So here is how... | |
doc_17986 | I'm going through some notification-handling-sdk and they are using this code to generate notification id:
private int generateTimestampId() {
return (int)(new Date().getTime() % 2147483647L);
}
This is probably good solution, but I can't understand what % 2147483647L stands for in context of epoch time.
(please n... | |
doc_17987 | Form 1 has a button which opens Form 2.
When I click the button, Form 2 jumps a little bit to a different location than Form 1.
So I guess my question is. how do I set up so this transition is smooth, like the new form is where form1 was.
Do I have to set this up in the properties? Or is there a better way? Right now, ... | |
doc_17988 | Specifically, I'm getting ReferenceError: Unknown plugin "@babel/transform-async-to-generator" specified in "C:\\Users\\scott\\path\\to\\ThisProject\\.babelrc" at 0, attempted to resolve relative to "C:\\Users\\scott\\path\\to\\ThisProject"
(Error reads that way as I'm in Git Bash on Windows.)
I definitely have @babel/... | |
doc_17989 | <%= link_to image_tag("paypal.gif", :margin => "0" ), {:controller => :orders, :action => :payMovie, :id => @movie.id}, :class=>"pull-right btn btn-default" %>
The controller looks like this:
class OrdersController < ActionController::Base
ActionController::Parameters.permit_all_parameters = true
layout "applicat... | |
doc_17990 | table
c1 c2
1 test
1 test2
2 test
2 test3
3 test4
SQL:
SELECT c1 FROM table WHERE c2 in ("test3","test4")
What I want:
SELECT c1 FROM table WHERE c2 in ("%3","%st4")
How can I do this?
A: SELECT c1 FROM table WHERE (c2 like "%3") or (c2 like "%st4")
A: Here is my approach just to follow the logic you have in... | |
doc_17991 | EDIT: here is the Plunker
I'm using an Observable to show a list of strings and simulate a typewriter effect on them, as follows
<li *ngFor="let message of messages">
<p class="message">{{message | async}}</p>
</li>
export class Component implements OnInit {
messages: Observable<string>[];
constructor(private... | |
doc_17992 | <FileNamePattern>${logDirectory}/${logFileName}.%d{yyyy-MM-dd}.%i.html</FileNamePattern>
where logDirectory and logFileName were set in .bat file before calling my jar.
set logFileName=foobar
But now, I deal with groovy. It's awesome and ridiculously more readable than xml. But the variable are no longer expand.
appe... | |
doc_17993 | Animal<-c("bird","Bird ","Dog","Cat F","Lion","Lion","Lion","dog","Horse","cat", "Lion")
A_date<-c("02-08-2020","20-06-2018","01-01-2015","10-07-2021","20-06-2018","15-08-2019","05-08-2013","20-06-2010","15-11-2016","22-03-2022","15-05-2019")
ID<-c("T1", "T1","T1","T2","T2","T3","T3","T4","T4","T15","T15")
Mydata<-d... | |
doc_17994 | 21:09:51,648 WARN [org.jboss.modules.define] (MSC service thread 1-3) Failed to define class org.wildfly.security.mp.jwt.JWTCDIExtension in Module "deployment.eSchoolDemo-0.0.1-SNAPSHOT.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link org/wildfly/security/mp/jwt/JWTCDIExtension (Module "... | |
doc_17995 | The left item is shorter which I'm trying to make stick to the bottom while scrolling until the full container has been scrolled so they both align. Can't seem to get this to work. No parent overflows affecting this.
The desired behaviour is for the viewer(left) element to align at the top, scroll until it reaches the ... | |
doc_17996 | I've created a button in the header in the view xml file and link it with an action in the model, the action works fine.
I'm try to disable the button based on the state condition of the object, I found in the source of Odoo the following template:
<t t-name="FieldStatus.content.button">
<t t-set="disabled" t-value... | |
doc_17997 | Looking for the Class ID: {000209FF-0000-0000-C000-000000000046} (Microsoft Word Application)
My guess is Computer\HKEY_CLASSES_ROOT\CLSID\{000209FF-0000-0000-C000-000000000046}\LocalServer32 if I'm looking for that Class ID. Can I get a confirmation?
Delphi calls:
CoWordApplication.Create;
That calls:
CreateComObject... | |
doc_17998 | Background: The question referenced is about finding search terms with more than 255 characters - which is a limit in Word for the desktop. The search fails.
The simple way to go about it would be to search the first 254 characters, then expand the found Range by the remaining number of characters and comparing that Ra... | |
doc_17999 |
And I need some splash screen as a first screen after Launch screen to determine if user has a subscription or not. Depending on the result, I want to get to navigation view controller which is now initial view controller or to subscription screen (which is now the third in the tree).
In the second case, I want to sav... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.