id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_33000 | I have some basic knowledge about Jquery, but I don't know how to do this.
For example if the text is:
one,two,three,four,five,six,seven,eight
I want the new text in the textarea to be: one,two,three,four,five,
The html textarea looks like this:
<textarea name="questionone" id="questionone"></textarea>
A: Basically... | |
doc_33001 | Consider a folder text containing several txt files, I want run this example unittest on each file ( for example by feeding a list of files from glob to my unittest )
Here is how I test a single hardcoded file .
import unittest
import parser
class TestParser(unittest.TestCase):
text_path = 'text/journal.txt'
... | |
doc_33002 | For example:
@Aspect
public class LookAdvisor {
@Pointcut("@annotation(lookAtThisMethod)")
public void lookAtThisMethodPointcut(LookAtThisMethod lookAtThisMethod){}
@Around("lookAtThisMethodPointcut(lookAtThisMethod)")
public void lookAtThisMethod(ProceedingJoinPoint joinPoint, LookAtThisMethod lookAt... | |
doc_33003 | I keep getting an error with this SQL when running it from the Ubuntu Server. Any ideas why I could be having the problem. Any ideas why the sql is failing?
Basically I'm trying to load a file onto the mysql server. I need to be able to achieve this with BASH programatically.
$(mysql -h "$host" --user="$user" --passwor... | |
doc_33004 | These were all branched from, and then merged back into the Working branch in various order.
At some point recently, the range from newest (Fifth) to oldest (First) of the above commits was targeted for git revert.
In doing so, my merge (OG) was also reverted.
How do I put that one commit back while leaving the others ... | |
doc_33005 | <!-- {{>io_cmd_button}} -->
{{#if (button.type === 'output')}}
{{#button.pins}}
<div style="width: 40%; margin: 10px; border: 1px solid yellowgreen; padding: 20px">
<p> RPi led: <input id='rpi-command-{{button.type}}' type="checkbox" value="{{.}}" />
</div>
{{/... | |
doc_33006 | form, it displays the following error message shows
Fatal error: Call to undefined method LoginForm::model() in D:\wamp\www\onlinetest\protected\components\UserIdentity.php on line 13
Here is the controller code
public function actionLogin()
{
$model=new LoginForm;
// if it is ajax validation reque... | |
doc_33007 | <complexType name="OAMCommand">
<sequence>
<element name="m-strName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="m-argVector" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
This is my code in python for the client
oamCmdStruct = SOAPpy.structT... | |
doc_33008 | I tried to use subprocess to do this
subprocess.check_call(('git', 'add', filename))
If I try this in the interactive python session it properly adds the file, but I the hook it doesn't work.
I already checked out, that the hook works form the proper directory.
How can I add files the right way?
Edit:
My git version i... | |
doc_33009 | Particularly if it's changed with a label button from elsewhere on the page.
This problem affects IE, Chrome Canary, FireFox, and probably some others, in-fact the only browser it doesn't seem to affect is Chrome v28.
You can see the problem here: http://jsfiddle.net/FgaWM/3/
Normally this would be a useful feature, bu... | |
doc_33010 | When release project is build on built machine (using msbuild) all string literals in code are escaped with \x00NN where nn are two digitals. The problem is that if such values are displayed in form (winforms) they appear as broken encoded (like broken codepage in www)
in source code it looks like
str = " Без ПДВ"
bu... | |
doc_33011 | col1, col2, col3
1000, Star, True
2000, Moon, False
How to create a list of dictionaries in the same order like this
[{'col1': '1000', 'col2': 'Star', 'col3': 'TRUE'}, {'col1': '2000', 'col2': 'Moon', 'col3': 'FALSE'}]
I have tried with following code but not getting in the same order
with open('sample.csv') as f:
... | |
doc_33012 | File f = new File("/sdcard/test.jar");
final File optimizedDexOutputPath = context.getDir("outdex", 0);
DexClassLoader classLoader = new DexClassLoader(f.getAbsolutePath(), optimizedDexOutputPath.getAbsolutePath(), null, context.getClassLoader());
If "Test" class has a package:
package com.test;
public class Test {
... | |
doc_33013 | The format for this is the first number tells which week, and the second one which year.
I have tried using str_to_date(datecolumn, '%v-%y') with no good results.
It orders the list BUT its not in the correct order.
I also tried concatting the datecolumn to make the string appear like this:
01-28-15 (First is the day o... | |
doc_33014 | function messageReceived(message) {
// A message is an object with a data property that
// consists of key-value pairs.
// Pop up a notification to show the GCM message.
chrome.notifications.create(getNotificationId(), {
title: message.data.name,
iconUrl: 'assets/img/cat.jpg',
type: 'basic',
m... | |
doc_33015 | Here is my code:
# Function
sonnet_print_vector <- function(user_vector){
sonnet_list <- NULL
for (i in seq_along(user_vector)){
next_line <- filter(sonnets, sonnet==user_vector[i], line==i) %>%
select(text)
sonnet_list <- bind_rows(sonnet_list, next_line)
}
print(sonnet_list... | |
doc_33016 | Requirements for the CRM library:
*
*Use early-bound instead of late-bound (because of type safety)
*Able to communicate with more CRM systems (organizations) through one manager
*Only one method for one operation (avoid code duplication) used for all CRM systems (organizations) - it will be necessary to create an... | |
doc_33017 | converting delimited string to multiple columns
example string: 'a01|b01|c01|...'
expect output:
field1 field2 field3 ... fieldn
a01 b01 c01 ... xxx
I knew it can be done by adding the field names, like below script, but I prefer smarter solution that can handle the number n automatically.
select
... | |
doc_33018 | Thanks
Ahmed
A: Good answer. In addition you could check Fiori Apps Library for specific apps.
| |
doc_33019 | Color[] color = new Color[3];
color [0] = Color.red;
color[1] = Color.blue;
color[2] = Color.yellow;
stage.getBatch().setColor(color[rand.nextInt()]);
But "color[rand.nextInt()]);" is underlined red. I really don´t know why. There have to be four numbers or instead "Color.BLUE" for example in the brackets but I want t... | |
doc_33020 |
*
*http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/Preferences/Preferences.html
*http://blog.webscale.co.in/?p=274
*http://knol.google.com/k/iphone-sdk-application-preferences#
These all seem to skip a step: How to display the plist from a view in your application. ... | |
doc_33021 | My csv data is about energy consumption.
https://github.com/camenergydatalab/EnergyDataSimulationChallenge/blob/master/challenge2/data/total_watt.csv
I want to cluster the values per day into 3 groups: low, medium, and high energy consumption.
This is my code.
import numpy as np
import matplotlib.pyplot as plt
from mat... | |
doc_33022 | private $db_host;
private $db_user;
private $db_pass;
private $db_name;
function __construct($db_host, $db_user, $db_pass, $db_name) {
$this->db_host = $db_host;
$this->db_user = $db_user;
$this->db_pass = $db_pass;
$this->db_name = $db_name;
}
public function connect(){
if(!$this->con){
$... | |
doc_33023 |
import { EventHandler, ReactEventHandler, useState } from 'react';
import { taxonomySelectorName } from '../../../../../state/header.state';
import { TAXONOMY_SELECTOR, HEADER_TESTS } from '../../../../../constants/header.constants';
import useMandatoryOptionsServices from '../../../../../services/mandatoryOptions.ser... | |
doc_33024 | I am aware of QPixmap that will allow me to put an image on top of a button, but I see that these constructors take a filepath as a parameter. I want to avoid dragging icons around in a file after I build. I would like to embed these icons in the executeable somehow, so as to reduce the baggage that I need to lug aroun... | |
doc_33025 | If virtual inheritance is used, the copy constructor of
the 'Base' class appears to be skipped. Please see the sample
and results below.
The complicated inheritance hierarchy is needed,
it comes from an application using std streams and streambufs.
Questions:
*
*What should the value of foo.x be after foo's initia... | |
doc_33026 | class Transaction(models.Model):
wallet = models.ForeignKey(related_name="transactions")
amount = models.DecimalField() # must be positive value
type = models.CharField(choices=[("deposit", "deposit"), ("withdrawal", "withdrawal")]
class Wallet(models.Model):
pass
What is the most efficient Django ORM query ... | |
doc_33027 | html = '''<img onload='javascript:if(this.width>950) this.width=950'
src="http://ww4.sinaimg.cn/mw600/c3107d40jw1e3rt4509j.jpg">'''
soup = BeautifulSoup(html)
imgs = soup.findAll('img')
print imgs[0].attrs
It will print [(u'onload', u'javascript:if(this.width>950) this.width=950')]
So where is the src attribute?
If I... | |
doc_33028 | e.g.
The current url could be:
a. www.mysite.com/whatever.asp?page=5&version=1 OR
b. www.mysite.com/whatever.asp?version=1
I need the resulting url to be www.mysite.com/whatever.asp?page=1&version=1
I suspect I can use string.replace with a regex to do this the most intelligent way but am hoping for a little help with... | |
doc_33029 | descriptors = {"key1" : { "propertyA": "propertyA-value1",
"propertyB": "propertyB-value1" },
"key2" : { "propertyA": "propertyA-value2",
"propertyB": "propertyB-value2" }}
How to determine if a given key exists ?
# argKey is functi... | |
doc_33030 | Ideas?
A: you can add roles so:
$result = add_role(
'editor_of_users',
__( 'Editor of Users' ),
array(
'edit_users' => true,
// Add more capabilities...
)
);
if ( null !== $result ) {
echo 'Yay! New role created!';
}
else {
echo '... | |
doc_33031 | $('#documentViewer').FlexPaperViewer({ config : {
SwfFile : 'swf/File.swf',
// etc.
}});
The problem is, obviously, that people can view the source and go directly to the swf file, which I'm trying to prevent. Is there any way around this?
A: Rule #1 of the internet - of you don't want people "stealing" it, ... | |
doc_33032 | What 's the better mode?
A: Agree completely with Devart, for batch Deletes/Updates use standard SQL.
If you are using .NET 4.0 the ObjectContext has some new methods for calling directly.
In particular:
ObjectContext.ExecuteStoreCommand(string commandText, params object[] parameters)
A: The fast way is to use bat... | |
doc_33033 | <Project>
<ProjectName>Alcoswitch - ToggleSwitches
</ProjectName>
<ProjectStatusname>Planning</ProjectStatusname>
</Project>
<Project>
<ProjectName>
Transverse Wedge</ProjectName>
<ProjectStatusname>Canceled</ProjectStatusname>
</Project>
<Project>
<ProjectName>High Speed... | |
doc_33034 | The MS-SQL query generates an index, effectively, and then I want to pull all MySQL records back that match the result of this query. (I could bring back both tables, i.e. the unfiltered data from MySQL and then filter using Linq, but this will be inefficient as I'll be pulling back loads more data than I need.)
The MS... | |
doc_33035 | project/
|
|-- test/
| |
| |-- __init__.py
| |-- test_1.py
|
|-- my_submodule/
|
|-- test/
|
|-- __init__.py
|-- test_2.py
How can I run all tests?
python -m unittest discover .
only runs test_1.py
and obviously
python -m unittest discover my_submodule
only runs test_2... | |
doc_33036 | Does anyone know how to use vssadmin to create a backup and extract a specific file through a batch command or power shell? I would like to automate the process to run every night.
Jason
A: Here is a page with examples on how to create snapshots from a command line with vssadmin:
http://blogs.msdn.com/b/adioltean/arch... | |
doc_33037 | eg.
Student stu = context1.Students.First();
context1.Detach(stu);
context2.Attach(stu);
and
Student stu = context1.Students.First();
context1.Detach(stu);
context2.Students.AddObject(stu);
What's the difference between them?
Thanks in advance!
A: The Attach method will attach the object or object graph in Unchange... | |
doc_33038 |
A: Just silence the ringer and you won't get any partial ringing. Here's the code to silence the ringer:
AudioManager mAudio = (AudioManager) getBaseContext().getSystemService(Context.AUDIO_SERVICE);
//Silence the ringer
mAudio.setRingerMode(AudioManager.RINGER_MODE_SILENT);
This will silence the ringer on the pho... | |
doc_33039 |
A: I found the solution.
You basically tell, in your manifest, which activity can handle contacts which are merged. When doing the merging you have chosen a mime type, use this mime type in an for an activity you choose:
<intent-filter android:icon="@drawable/hyves">
<action android:name="android... | |
doc_33040 | list = [22, "Good", "Bye", 1, 7]
for l in list:
if type(l) == str:
list.remove(l)
print(list)
I get this in the console:
[22, 'Bye', 1, 7]
It only removes the "Good".
Can someone tell me why it doesn't remove the "Bye"?
Using python 3.4 btw
A: This happens because you are deleting when iterating
I recommen... | |
doc_33041 | library(dplyr)
library(ggplot2)
dframe <- data.frame(height = c(1, 2, NA, 4,
1.2, 2.5, 3.8, 4.4,
3, NA, 5, 7),
name = rep(c("A", "B", "C"), each = 4),
date = rep(c(1, 2, 3, 4), 3))
So data look like this:
... | |
doc_33042 | avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 00 00]
CMD: [ac 53 00 00] [00 00 00 00]
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
I checked connections and the board is fine. I was able to... | |
doc_33043 |
A: NSString *dateStr = @"2011-08-26 14:14:51";
//if you have date then,
NSString *dateStr = [NSString stringWithFormat:@"%@",yourDate];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
NSDate *date = [dateFormat dateFromString:dateStr];
[dateFormat s... | |
doc_33044 |
A: No. The Thing Shadow only includes the latest desired and reported states. There is a version field you can use, but this is only for synchronization purposes like ensuring a device doesn't overwrite a newer version of its shadow.
| |
doc_33045 | When I insert an `Embed Code field' into the page in the Editor and then paste the code into it, the scripts run flawlessly, the graphs appear, and they look just as they should. Everything is zen.
But when the page is then autosaved (e.g. when I make any changes to the page settings in the Editor or simply go to a dif... | |
doc_33046 | i dont understand why my header go down when i give to his child (.navigation) margin-top?
if i give padding its okay my header stays on the top
but why not by giving margin
i did research that ovorflow: auto fix the problem (yes it is) but why? can someone explain please
/* RESET */
* {
margin: 0;
padding: 0;
bo... | |
doc_33047 | animation.duration = 0.6
animation.timingFunction = CAMediaTimingFunction(controlPoints: 0.3, 1.3, 0.3, 1)
animation.fromValue = CGPoint(x: collectionView.layer.position.x , y: collectonView.layer.position.y + 250)
animation.toValue = CGPoint(x: collectionView.layer.position.x , y: collectionView.layer.position.... | |
doc_33048 | MySolution
BLL (Solution Folder)
- BL.xproj
DAL (Solution Folder)
- DAL.xproj
PL (Solution Folder)
- Solution Items
- global.json
- src
- PL.xproj
But I am reading that everything should be in src. If that is the case, it would look something like this:
MySolutio... | |
doc_33049 |
I manage to create an API using the GET method and Call Mediator for the login request. However, when i change the API method to POST (because I need to send something in the body) and using Call Mediator for the Login request, it prompt me an error.
I am not sure whether POST method API is not allowed to be using to... | |
doc_33050 | Here is the sample code I have been modifying here:
// randomization
var index = Math.floor(Math.random() * 3);
var images = new Array("<div class='ad'><a href = 'https://www.poundstopocket.co.uk/buildapp' target='_blank'>
<img src='https://www.poundstopocket.co.uk/pound-place/wp-content/themes/shaken-grid-premium/ima... | |
doc_33051 |
How can I merge the two rows hilighted in red?
This is my stored procedure code:
BEGIN
SELECT
GROUP_CONCAT(
CONCAT("MAX(IF(km_kondomanager_millesimal_table_value_table_id='", km_kondomanager_millesimal_table_value_table_id, "',km_kondomanager_millesimal_table_millesimal_value ,0.00)) AS '", km_kondomanag... | |
doc_33052 | However, we cannot find a way to use dynamic columns with SQLAlchemy. We have tried:
from sqlalchemy.sql import func
...
query = session.query(
func.COLUMN_GET(DynamicInfo.dyn_col, 256)
).filter(
DynamicInfo.index_id == index
)
which produces the following SQL:
SELECT COLUMN_GET(dyn_info.dyn_col, %(COLUMN_GE... | |
doc_33053 | chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % hostname + ":" + port)
global driver
driver = webdriver.Chrome(chrome_options=chrome_options)
This works fine when the proxy does not have authentication. However, if the proxy requires you to login with a username and passwor... | |
doc_33054 | {
"rating": 2
"victim": [{
"ip": "...",
"instanceId": "....""
}]
}
I want to aggregate over the rating and get the IP or InstanceId for each document, not both in the bucket list.
What i've got so far is:
"__rating": {
"terms": {"field": "rating"},
"aggs": {
"__hosts": {
... | |
doc_33055 | ex:
v1 = c(0,1,0,1,1)
v2 = c(1,1,0,1,0)
expected output
out_vector = c(1, 5)
Indexes 1 and 5 do not match between vectors v1 and v2
A: We can compare 2 vectors element wise with == and then use which to get their index position where they do not match.
which(!v1 == v2)
#[1] 1 5
or more straight forward as @thelatem... | |
doc_33056 | ex: press: "vách ngăn vệ sinh" , my site: https://vachnganvesinhgiare.com.
When click in search results, it's not load in mobile.
I have checked all websites that use AMP have the same error.
The reason is that the js file in cdn is not loaded or loaded but gives an error.Even on the homepage of the AMP is similar.
Vie... | |
doc_33057 | $weeks = CarbonPeriod::since(Carbon::now()->startOfWeek()->subWeeks(11))
->until(Carbon::now()->startOfWeek())
->days(7);
It will give me a period containing 12 Carbon instances 1 week apart, each of which represents a single date. Is it possible to get these steps in the period as CarbonInterval instances ins... | |
doc_33058 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="2000" height="2000" xmlns="http://www.w3.org/2000/svg">
<g>
<path fill="none" stroke="#4caf50" stroke-width="2" stroke-miterlimit="10" d="M195.2,75.3c28-11.5,60.9-18.1,96-18.1 c78.4,0,145.6,3... | |
doc_33059 | @if (!App::environment('production'))
<script src="/bundle/feed.chunk.js"></script>
@else
<script src="{{ elixir('feed.chunk.js') }}"></script>
@endif
where App:enviroment is get from .env file. I want to add another condition. Like if hot reload is true go to another condition. Can I catch gulp's task name?
| |
doc_33060 | My question is: If we have a data that we would like to reuse in other views, can we store them as properties in a repository (seeing as the repository pattern is a singleton) and access them from other viewmodels?
Here's a generic example of what I mean:
object AnimalRepository {
val favoriteBreed : Breed? = nu... | |
doc_33061 | <iframe onload="calcHeight();" id="iframe" src="sub.domain.com"></iframe>
<script type="text/javascript">
function calcHeight()
{
//find the height of the internal page
document.domain = 'domain.com';
var the_height=parent.document.getElementById('iframe').contentWindow.document.body.scrollHeight +25;
... | |
doc_33062 | Changes done -
In ResourceConfig Extended Class -
//register(JacksonJsonProvider.class); #Commented
register(MoxyJsonFeature.class);
Added the following in Pom.xml file -
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-moxy</artifactId>
<version>2.23.2</version>
</dependenc... | |
doc_33063 | Note- I have this as a free style project on jenkins.
Exact Error in Details-
Exception encountered: Could not find Chromium (rev. 1095492). This can occur if either
*
*you did not perform an installation before running the script (e.g. npm install) or
*your cache path is incorrectly configured (which is: /root/.cac... | |
doc_33064 | cout << "Please enter the number of classes"<< endl;//Number of classes for the while
cin >> nclass;
while (count <= nclass ) // while
{
//Information for the class
{
cout << "Please enter the course name for the class # "<< count << endl;
getline (cin, name);
string name;
... | |
doc_33065 | A>B,C,D
B>A,C,D,E
C>A,B,D,E
D>A,B,C,E
E>B,C,D
I would like to write a Spark-Scala script to obtain the following :
(For each left member, we give all right members.)
(A,B)
(A,C)
(A,D)
(B,A)
(B,C)
(B,D)
(B,E)
...
I tried to go through the map and get the keys to feed a new map with my results but it did not work.
Here... | |
doc_33066 | :: Code begins....
pause
W:
pause
cd W:\VL2000_AMF\AMF_Archive
pause
for /F "tokens=1-4 delims=. " %%i in ('date /t') do (
set Day=%%i
set Month=%%j
set Year=%%k
)
pause
for /F "tokens=1-4 delims=: " %%i in ('time /t') do (
set Hour=%%i
set Minute=%%j
set Second=%%k
)
pause
md %1\%Year%-%Month%-%Day%
pause
:: Code ends... | |
doc_33067 | Basically it is an image slider that slides in from the far right of your screen(regardless of resolution) goes to the middle of the viewport then slides out the far left.
Im not a jquery wizard so i cannot complete this myself, but i have a basic understanding how it could be done.
example: https://www.tumblr.com/
Any... | |
doc_33068 |
org.gradle.api.internal.changedetection.rules.DescriptiveChange cannot be cast to org.gradle.api.tasks.incremental.InputFileDetails
he may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
*The state of a Gradle build process (daemon... | |
doc_33069 | They do follow this naming convention however:
<input name = "image_path" ...
<input name = "image_path_F1" ...
<input name = "image_path_F2" ...
<input name = "image_path_F3" ...
The inputs are sent as FormData objects.
When handling a single image from the Python scripts I have previously used:
uploaded_image = re... | |
doc_33070 |
*
*not $FF => $FF00
*not $FFFF => $FFFF0000
*not $FFFFFFFF => $00
*not $FFFFFFFFFFFFFFFF => $00
The first two values look wrong to me.
The documentation states:
For example, not performs bitwise negation on an integer operand
and later:
The result of a not operation is of the same type as the operand
This is... | |
doc_33071 | I've tried:
*
*Downloading Data with AzCopy CLI.
*Downloading Data with Azure storage explorer.
*Transfering Data using Azure Data Factory.
All resulting same problem - timeout.
Here is the error:
Transfer of 'dev/PROJECT/' to 'Z:\XXX' failed: 120000 items transferred,
error: failed to perform copy command due to... | |
doc_33072 | I tried the custom function too. Neither built-in equalTo nor my custom built confirmEmail function don't works at all, but everything else works as expected. Even the two email validated but equality is not checked, and the custom built function also never called if I change to:
confirmEmail: {
required: true,
... | |
doc_33073 | So for the alphabet {J, K, L} I would need a RegEx that accepts strings containing J one or more times AND K one or more times, AND L one or more times, in any order, with any amount of duplicate characters before, after, or in-between.
I'm pretty inexperienced with RegEx and so have trouble finding "lateral thinking" ... | |
doc_33074 | qc = [11221427, 23414732, 144443277,...]
I want to create 8 new variables where first variable is the first digit of all the numbers and so on. e.g:
qc1 = [1,2,1]
qc2 = [1,3,4]
I am able to calculate it using the following code:
qc_str = [str(e) for e in qc]
k,l = 0,0
for item in qc_str:
qc1[k] = int(qc_str[k][... | |
doc_33075 | I've just upgraded up to the latest version of ActiveCollab (2.3.1), but I'm having difficultly getting the SVN integration working.
As shown in the screenshot here: (http://www.avonandsomerset.police.uk/secure/ActiveCollabSVN.png) I can't get ActiveCollab to find the svn executable.
We've got VisualSVN Server installe... | |
doc_33076 | openssl genrsa 512 | openssl pkcs8 -topk8 -v2 des-ede3-cbc
I get:
Enter Encryption Password:
What if I wanted to encrypt it using an actual key, not a key derived from a passphrase?
The PKCS8 RFC does not say which algorithm must be used to create the keyblock. It does give PKCS5 algorithms as example. Is there a way... | |
doc_33077 | ||
doc_33078 | Could you please tell me how to get "currentIndexChanged(int)" signals from any of the QComboboxes which will tell me the row numbers the comboboxex fired them from?
The following doesn't work:
def insert_row_cb(self, table, cb_col):
rows = table.rowCount()
table.insertRow(rows)
self.set_row_items_cb(table,... | |
doc_33079 | (define lst (list 1 2 3)) (display lst)
-> (1 2 3)
But I want it to appear as: 1 2 3
My attempt:
(define (clean-list lst)
(if
(null? lst) (display (null))
(display (car lst)))
(display #\space)
(clean-list (cdr lst)))
It returns the the list without parentheses, but with an error message... Anyone who c... | |
doc_33080 | What I want to do with this, is to have a column which tells me which or in the where clause was triggered.
Is this possible?
I've tried searching, but I seem to have hit a wall. Any advice or a point in the right direction would be appreciated. Thank you
select
Details_TransactionDate as Transaction_Date,
De... | |
doc_33081 | I would like to use MongoDB replica capabilities to provide a read-only replica set of data to be pushed to devices.
My problem right now is that I would like to know when certain documents are inserted/updated AND replicated accross all nodes.
As I an sending notifications on top, I would like to make sure this data i... | |
doc_33082 | /*var link = svg.append("g")
.attr("class", "link")
.selectAll("line");*/
and replaced it with var link = svg.append("g");
so that I could try adding links one by one, with if-else conditions where I could apply a different line style to each line. But when I tried applying just a single style uniformly to al... | |
doc_33083 | My DataTable:
$('#calculation-table').DataTable(
{ // set server side processing to true
bServerSide: true,
// set controller responsible for sorting and paging
sAjaxSource: "CalculationTest/AjaxHandler",
// show processing is happening while g... | |
doc_33084 | I have a toolbar on my iPAD application and its translucent property is set to 'YES'. I am doing this in my storyboard:
When I run on an iPad Air things look good. However if I run on an iPad 2 the toolbar is not translucent. I experience the same problem in the simulator and on an actual device.
This is also not ... | |
doc_33085 | In the tutorial there is an input array with one row and 3 columns filled with numbers (1,2,3). There is also an output tensor of the same size, also filled with three numbers (1,2,6). The relationship between the numbers is learned. In the tutorial the AI recognizes that: output = input^2 and make a prediction for e... | |
doc_33086 | My code works if I already determine how many Drones are created.
INICIO
public partial class Inicio : Form
{
private Drone d1,d2;
private Arena arena;
public Inicio()
{
InitializeComponent();
}
private void btnconetar_Click(object sender, EventArgs e)
{
d1 = ... | |
doc_33087 | orders
orderid, shippingmethodid, orderstatus
12345, 218, Ready to Ship
12346, 152, Ready to Ship
12347, 602, Ready to Ship
12348, 10151, Processing
orderdetails
orderid, productcode, productname, qtyonpackingslip, qty
12345, proda-12, product a twelve, 1, 1
12346, prodb-14, product b fourteen, , 1
12346, prodc_15, p... | |
doc_33088 | I have created a pipeline in ADF which copies data from one zone to another and delete data from first zone. But i dont know how to compare the size before deleting.
CopyData->Delete
Compare the size of source and destination files and then perform delete task
A: Use the Get Metadata activity against your source and t... | |
doc_33089 |
"Message: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set"
A: As it says, you need to go into your php config (maybe /etc/php.ini) and
*
*set safe_mode = Off, and
*unset open_basedir value.
This is disabling some security, so know what you are doin... | |
doc_33090 | <div class='container-fluid' ng-controller="TypeaheadCtrl">
<p></p>
<b>Selected User</b>
Enter a name: <input type="text" ng-model="selected" typeahead="user as (user.first + ' ' + user.last) for user in users | filter:$viewValue" />
</div>
this controller:
app.controller('TypeaheadCtrl', ['$scope', 'get... | |
doc_33091 | books: this.fb.array([this.buildBookFormGroup()])
fb is the FormBuilder. The buildBookFormGroup() function returns a FromGroup so that I can add/remove multiple books from the same form.
buildBookFormGroup(): FormGroup {
return this.fb.group({
author: new FormControl(''),
price: new FormControl(0),
... | |
doc_33092 | count(distinct email_address)
from
users
WHERE
MATCH (email_address) AGAINST ('@rossi.it' );
Problem: the query search doesnt search for '@rossi.it' but only for 'rossi.it'.
How I should modify the query in order to have the "@" included?
A: If you use a backslash to escape the @ characters, like this:
WH... | |
doc_33093 | I tried to update list while typing but nothing working.
TextField Code
TextField(
textInputAction: TextInputAction.done,
controller: searchAddressController,
focusNode: searchFocus,
decoration: InputDecoration(
... | |
doc_33094 | I did all the things this tutorial was asking me for.
I wanted to check my website (it's a FB login script) and this error popped up - http://i.imgur.com/UmlW6UC.png
But that isn't the problem.
Problem is, that when I try to enter http://www.example.com/welcome/login this shows up - http://i.imgur.com/FtMLX5C.png
Why i... | |
doc_33095 | Is there a way to use the other time expressions or create a variable that determines what week of the year the data is being pulled?
A: I guess You can try an expression step with something like:
add(div(dayOfYear(utcNow()), 7),1)
Please refer to the below screen show of the flow steps You can create. Hope it helps ... | |
doc_33096 | Markup (abbreviated):
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" EnableViewState="true">
<ProgressTemplate>
<div id="progressBackgroundFilter"></div>
<div id="processMessage">
<h1>Processing<img src="/_layouts/WebPart/ajax-loader.gif" alt="" /></h1>
</div>
</Progres... | |
doc_33097 | Here is the code I am executing to update the app.
NSURL *url = [NSURL URLWithString:@"itms-services://?action=download-manifest&url=http://www.mywebsite.com/myapp.plist"];
if (![[UIApplication sharedApplication] openURL:url]) {
NSLog(@"%@%@",@"Failed to open url:",[url description]);
}
I wasn't able to find any i... | |
doc_33098 | Edit: This looks like it might be it. Thanks sugarman.
http://msdn.microsoft.com/en-us/library/az24scfc.aspx
A: You should look at Regex.Escape(). You pass the function a string and it will escape any reserved regex characters to be interpreted as literals. Credit to this answer goes to Gabe who commented on the OP's... | |
doc_33099 | I upgraded to Xcode 4.5 from 4.5 Beta 1 yesterday. Now when I use Interface Builder to create an outlet (by Ctrl-dragging from, say, a UILabel to the associated header file), it creates the @property declaration in the header as normal:
@property (retain, nonatomic) IBOutlet UILabel *propertyName;
However, in the ass... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.