id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23528500 | I know that it uses YUI autocomplete feature from Yahoo but I could not find an solid example for Jenkins.
Thanks in advance...
Kind Regards,
A: As strange as it is, I am not able to find any docs on the subject at the moment.
Jenkins support AJAX based auto-completion with automated control population. The form eleme... | |
doc_23528501 | Following dataframe
OrderNo. Supplier Materialno
1 LF 101
2 LF 101
3 LF 101
4 DD 101
5 DD 102
6 DF 103
7 DF 104
8 DD 103
9 DD 104
10 AA 105
11 ... | |
doc_23528502 | example code for Twitter:
<form id="tw_signin" action="<c:url value="/signin/twitter"/>" method="POST">
<button type="submit">
<img src="<c:url value="/resources/social/twitter/sign-in-with-twitter-d.png"/>" />
</button>
</form>
securityconfig.java
public SpringSocialConfigurer getSpringSocialConfigurer() {
... | |
doc_23528503 | I am searching for this and I got lot of information from the sites
*
*http://www.mono-project.com/Mono:OSX
*http://www.mono-project.com/MoMA
*http://www.mono-project.com/Guide:_Porting_Winforms_Applications
*http://www.mono-project.com/Compatibility
*http://monodevelop.com/
*http://www.mono-project.com/Bugs
If... | |
doc_23528504 | After the hwnd has been gained, the 'main loop' of my applications begins. This loop continues until the application started by CreateProcess is no longer running.
Everything works perfectly, until I try to use PeekMessage to peek at the messages being sent to the application I have launched - It seems that no messages... | |
doc_23528505 | we have such standard code for domain classes in Grails:
class Foo {...}
class Bar {
Foo foo
}
Without any configuration, my undestanding is that while Loading objects of Bar, Foo is lazy loaded. Means that if I am doing this:
def barList = Bar.all
the Foo's of all bar objects are not loaded and also that if the... | |
doc_23528506 | req.getRequestDispatcher("/index.jsp").forward(req, resp);
The JSP contains a the GWT compiled Javascript reference.
The problem is that even though the page loads fine, the GWT Javascript doesn't run. I'm assuming this is because the newly loading file doesn't include the ?gwt.codesvr=127.0.0.1:9997 part that would ... | |
doc_23528507 | I have stripped out my header section in the index.html and placed it into it's own file named header.html.
I have tried using the techniques JQuery techniques located on these stack overflow pages and have no been able to get the page to render the header.html within the index.html:
- Make header and footer files to b... | |
doc_23528508 | Here is my code:
def option(x):
if x == "E":
enter()
elif x == "V":
view()
else:
exit()
def enter():
msg = input("Enter the message\n")
main()
def view():
##if msg == 0:
#print("no message yet")
#main()
#else:
print("The message is:", msg )
main() ... | |
doc_23528509 |
*
*fileExists
*getFileContent
*getFileProperties
*setSessionStatus
I'm looking for a removeFile or unlinkFile or deleteFile to remove a file that was downloaded by the browser and is now in the way when the next file downloads and gets a (1) added to the filename.
In my selenium test I'm doing something like this... | |
doc_23528510 | This is how I create the Validator instance in Java
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
Validator validator = factory.getValidator();
This is how I tried to create the bea... | |
doc_23528511 | I have checked that the javascript is able to be loaded. But the firebug always showing the error message.
Here is the html code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Lab 2</title>
<script type="text/javascript" src = "lab2.js"></script>
</head>
<body>
<div id... | |
doc_23528512 | bot.on("message", function(message) {
if (message.author.equals(bot.user)) return;
var command = message.content.split(" ")[0];
var param = message.content.split(" ")[1];
if (!VALID_CMDS.includes(command)) return;
var GUILD = bot.guilds.values().next().value;
switch (command) {
case "!hello":
if... | |
doc_23528513 | Currently I saw this website http://blog.ryanbailey.co.nz/2015/05/breadcrumbs-for-pages-in-sitecore.html. But It doesn't work for me yet because I don't know what to reference.
I just need to know how to get every item in the path of my current page I can handle it already.
Thanks
A: Something like this should do it:... | |
doc_23528514 | I am running a simple query
//Return all the employees from a specific company ordering by lastName asc | desc
GET employee-index-sorting
{
"query": {
"bool": {
"filter": {
"term": {
"companyId": 3179
}
}
}
},
"sort": [
{
"lastName.keyword": { <-- Should th... | |
doc_23528515 | I have no idea where to even start on this. I was thinking of breaking the first loop when x * y is above a certain point but then it would never reach 1000 * 1000.
for x in range(100, 1000):
for y in range(100, 1000):
A: Just make y start at x instead of all the way back from 100:
for x in range(100, 1000):
... | |
doc_23528516 | Their support has confirmed set-up is correct and we can't seem to figure out why this data is being triggered/recorded.
Our main advertising partners are Tiktok, Meta, and Apple Search. Our app is only available for iOS 15 and above. Has Apple locked this information from beign shared through an MMP?
Has anyone else h... | |
doc_23528517 |
A: Switch back to v1 of the API:
window.fbAsyncInit = function() {
Parse.FacebookUtils.init({
appId : '...',
cookie : true, // enable cookies to allow Parse to access the session
xfbml : true, // parse XFBML
version : 'v1.0'
});
};
and change the sdk to use '... | |
doc_23528518 | Event code: 4005
Event message: Forms authentication failed for the request. Reason: The ticket supplied was invalid.
Event time: 12/2/2011 11:36:49 AM
Event time (UTC): 12/2/2011 5:36:49 PM
Event ID: 2068ad6957964f75885301fc2b58ddfe
Event sequence: 2
Event occurrence: 1
Event detail code: 50201
I tried setting... | |
doc_23528519 | My website is a real estate listing site that displays the most recent homes for sale. The real estate data is updated daily.
In theory, I would like to cache the page so that it loads quickly but still load the most recent (fresh) real estate data. Is there a way to cache the page but have it fetch the most recent r... | |
doc_23528520 | we have a lof methods that go:
private void method1(RoutingContext ctx, HttpClient client) {
doAsync1(ctx, client, asyncResult -> {
try {
if (asyncResult.succeeded()) {
ctx.response().setStatusCode(200).end();
} else {
LOG.error("doAsync1 failed", as... | |
doc_23528521 | var otherAdd = document.getElementById("otherAddType.form-control");
AddType.addEventListener("show", function(){
if (AddType.value = "other"){
otherAdd.setAttribute("class", "show");
}else {
otherAdd.setAttribute("class", "hidden");
}... | |
doc_23528522 | My code:
if $(ConfigurationName) == Release del "$(TargetDir)*.xml", "$(TargetDir)*.pdb"
if $(ConfigurationName) == Release xcopy "$(TargetDir)\*.dll" "$(TargetDir)\lib\"
The 2 commands are separated by new line as shown...
Also Lib folder exists.
A: Instead of
xcopy $(TargetDir)*.dll $(TargetDir)lib\
you should us... | |
doc_23528523 | Let me be a little more specific about what I'm doing.
If a record exists in a table (indicating a document is already reserved and can't be checked out), I want to notify the user on the front end. I'll determine that by checking Exists... in T-SQL and then somehow pushing that back to Classic ASP (return value, param... | |
doc_23528524 | I need to use my own custom vertex declaration and use it to draw textured primitives (or why not models too).
Drawing and texturing works fine with BasicEffect and any built-in vertex declarations (like VertexPositionColorTexture)...but what on earth is wrong that textures aren't drawn properly if I use BasicEffect wi... | |
doc_23528525 | Is it possible to append an access table to the end of an excel spreadsheet? If so how.
| |
doc_23528526 | I have two sheets with unique IDs in one column. I need to make sure whenever a new ID is added in one sheet (Sheet1), it is copied to the last empty row in the other sheet (Sheet2). Making sure it ignores it if the value already exist (to avoid duplicates). The idea was to create a function and have it triggered every... | |
doc_23528527 | Thanks.
A: Unless you have a good reason for doing so (such as a process that needs to be done repeatedly), I would use the MS Access "Import" process rather than coding a solution. It's much easier.
Better yet, use the Linked Tables feature in Access to link directly to the MySql tables if you want a live link tha... | |
doc_23528528 | Firestore.instance
.collection('MATH')
.document(doc.documentID)
.collection("cours")
.snapshots()
.listen(
(cour)=> cour.documents.forEach((doc){
listCour.add(doc.documentID);
})
);
but the List has get no data !!
A: Try using doc.data
... | |
doc_23528529 | Firefox 9.0.1 reports that the Aptana Debugger is incompatible with this version, and Aptana Debugger Addon tells me that it can only use the older Firebug version up to 1.8. Uninstalling Firebug 1.9 and installing 1.8 leads to the messsage that the Aptane Debugger 1.7 (of Aptana Studio 3) cannot be used in the latest ... | |
doc_23528530 | main.c
#include <stdio.h>
#include <stdlib.h>
#include "struttura_dati.h"
int main(int argc, char *argv[])
{
Prodotti *prodotti;
int i, k, nc=0;
k=atoi(argv[1]);
prodotti=leggi_medicinali();
printf("%d", prodotti->categorie[0]);
free(prodotti); /*da liberare anche vett */
return 0;
}
struttura_dati.h
#ifndef STRU... | |
doc_23528531 | filenames <- list.files(path, full.names = TRUE, pattern = fileptrn, recursive = TRUE)
tbl <- lapply(filenames, read_csv) %>%
bind_rows()
This approach works fine. However, I need to extract a substring from the each file name and add it as a column to the final table. I can get the substring I need with "str_extra... | |
doc_23528532 | I couldn't add scroll bar for column chart .In this example it have plotting applied values but not showing scroll bar.In my case it not happening.the view port is taking it own height and width even if i applied style to its parent.not fitting inside container
containerProps={{ style: { width: '100%', height: '100%' }... | |
doc_23528533 | I first call:
record.getDynamodb().getNewImage().get("primaryKey").getS().toString()
to get the primaryKey value of "1_12345" back from the stream.
I then use it in the object mapper to create a new instance of the Metrics object with the primaryKey member set:objectMapper.readValue("1_12345", Metrics.class);
The probl... | |
doc_23528534 | When I run the application on my development system, it works fine. When I deploy it on my local IIS, it works fine. BUT, when I deploy it the to production server IIS, the angular controller does not load and it requires refreshing the page to get it to work.
I have looked at the similar questions, for instance:
Angul... | |
doc_23528535 | I could not directly forward the args of caller to the function ptr and want to covert them all to var,because the miss-type params may be corrupt the stack.
for example, if the original function is int(*)(int,int),but call it using (double,double) may be undefined.
I wonder how to define type to declare a function pro... | |
doc_23528536 | Look at this picture, I should open the Structure window every time in Intellij Idea whenever I want to know methods in the class.
Is there a simple way or shortcut to show methods quicky what like CTRL + O in Eclipse.
A: Ctrl+F12 should pop up a member list. It will respond to text input to search/filter, too.
| |
doc_23528537 | void printToSomewhere(FILE* stream, char* msg){
fprintf(stream, "%s", msg);
}
If I want the stream to be stdout, do I have to declare that before in the calling function:
...
FILE* stdout;
printToSomewhere(stdout, "printing to stdout");
...
or can I call the function without having to define/include/etc stdout ex... | |
doc_23528538 | I am developing a code editor. The syntax highlighting features are ready, but the cursor keeps coming back to the first when the code gets highlighted.
I also don't want to use external js files.
Can anyone help me in preserving the cursor position?
(I am sharing the code of the editor.)
I tried an example from codepe... | |
doc_23528539 |
A: I think the issue here is related to 32-bit vs 64-bit. Power Query is very picky about what drivers it can use to access database content. If it’s a 32-bit version of Excel, you need the 32-bit driver installed and vice versa.
So, if the versions are mismatched Power Query can’t work on your machine.
The solution i... | |
doc_23528540 |
RuntimeWarning: More than 20 figures have been opened. Figures created
through the pyplot interface (matplotlib.pyplot.figure) are retained
until explicitly closed and may consume too much memory. (To control
this warning, see the rcParam figure.max_open_warning)
I think this is because I forgot to close the figures ... | |
doc_23528541 | [
{
"key": "1",
"value": "What was the make and model of your first car?"
},
{
"key": "2",
"value": "In what city or town was your first job?"
},
{
"key": "3",
"value": "What is the name of your favorite childhood friend?"
}
]
There are 30 of these returned and I need to inject these into dropd... | |
doc_23528542 | I found this : http://howtodoinjava.com/log4j/how-to-create-logs-in-xml-format-using-log4j/
Where logs are like :
<log4j:event logger="com.howtodoinjava.Log4jXMLLayoutExample" timestamp="1368417841893" level="ERROR" thread="main">
<log4j:message><![CDATA[Sample error message]]></log4j:message>
... | |
doc_23528543 | Output of above api is:
{
"pid": xxxx,
"profile": "profile description",
"imageURL": "https://www.cricapi.com/playerpic/xxxx.jpg",
pid for each player is retrieved from another api:
https://cricapi.com/api/playerFinder?apikey=apikey&name=playerName
Output of above api is:
{
"data": [
{
"pid": xxxx,
... | |
doc_23528544 | const int size = 6;
char board[6][6] = {0}; //this is actually somewhere else, but I included it here for clarity
char enemies[3] = {'X','X','X'};
void setup(char board[6][6]){
bool valid = false; //sets initial bool value to false
for (int x = 0; x <= 2; ++x){
do{
int a = rand() % size;
int b = rand... | |
doc_23528545 | Eg.
string s = "My name is {Name}";
Now, I want to replace {Name} but {Name} contains following placeholders
*
*{First Name} {Last Name}
*{First Name}
*{Last Name}
I want to pick one 1 placeholder randomly and replace with {Name}.
In last I want the following output
My name is ABC Or
My name is ABC XYZ Or
My na... | |
doc_23528546 | I though that the easiest way would be with making tabs. But for some reason, my validation is not working.
I am only using the dafault verification (only on first tab for now), but it still moves on to the second tab even though it is not verfied.
What am I doing wrong? Codeply here
<div class="car... | |
doc_23528547 | session = [[AVCaptureSession alloc] init];
[session beginConfiguration];
session.sessionPreset = AVCaptureSessionPresetHigh;
AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
for (AVCaptureDevice *cam in [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo])
{
if (cam.posi... | |
doc_23528548 | The LOGO input code
PROC LDRAGON ( LEVEL )
IF LEVEL == 0 THEN
FORWARD 5
ELSE
LDRAGON ( LEVEL - 1 )
LEFT 90
RDRAGON ( LEVEL - 1 )
ENDIF
PROC RDRAGON ( LEVEL )
IF LEVEL == 0 THEN
FORWARD 5
ELSE
LDRAGON ( LEVEL - 1 )
RIGHT 90
RDRAGON ( LEVEL - 1 )
ENDIF
PROC ... | |
doc_23528549 | public void WaitForLoad(Func<bool> cond)
{
var timeout = 3;
// Time waiting for successful submission before we assume error
try
{
new WebDriverWait(Driver, TimeSpan.FromSeconds(timeout)).Until(condition => cond());
}
catch
{
throw new TimeoutException($"Response took longer ... | |
doc_23528550 | Specifically, I have a class within a class that contains several static properties of the same type.
Public Class Foo
Public Class Bar
Public Shared Property prop1 As New CustomClass()
Public Shared Property prop2 As New CustomClass()
Public Shared Property prop3 As New CustomClass()
En... | |
doc_23528551 | I tried this code but it throws on
Element jfif = (Element)tree.getElementsByTagName("app0JFIF").item(0);
Any idea how to do this?
A: I had this problem and it took a lot of fixing - not helped by the error reporting differently in different versions of the JVM, as well as coming three steps after the actual problem... | |
doc_23528552 | $('button').on('click', this.method.bind(this));
master.prototype.method = function() {
// This works only if i bind(this) in the event.
this.otherMethod();
// The jquery $(this) does not work more...
$(this).addClass('...');
}
// But that does not work: (I will reference to the 'button')
$(this).addClass('... | |
doc_23528553 | I read https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5/Feature-86365-RoutingEnhancersAndAspects.html#impact another time about the dynamic parameters and cHash. To remove cHash I should add aspects for all placeholders. I have just one placeholder and an aspect for this, but cHash is present.
raw-url... | |
doc_23528554 | Can someone show me how to get this functionality to work properly without throwing an error?
I can create the 400 error when I add the following line of code to my JSP:
<form:select path="location" items="${praddrs}" size="3" style="min-width:200px"/>
The 400 error states:
The request sent by the client was syn... | |
doc_23528555 |
openpyxl.utils.exceptions.IllegalCharacterError
This is the solution I've already tried:
Openpyxl.utils.exceptions.IllegalcharacterError
Here is my Code:
for i in range(0,len(list)):
for j in range(0,len(header)):
worksheet_ntn.cell(row = i+2, column = j+1).value = list[i][j]
Here is the error message:... | |
doc_23528556 | @commands.Cog.listener()
async def on_voice_state_update(self, member:discord.Member, before:discord.VoiceState, after:discord.VoiceState):
alMazrah_duo_name = f"{member.name}'s Duo"
if after.channel:
# DUO CHANNELS
if after.channel.id == settings.ALMAZRAH_TEMPLATE_DUO_ID:
... | |
doc_23528557 | Posts:
<Unique-Key>
Caption: "hello World"
Time: "2017 Dec 17"
CurrentUserReaction: "false"
UsersWhoReacted:
<user-id> : 1
image = "firebase....."
can somebody tell me what will be the firebase cloud function code to trigger ... | |
doc_23528558 | Note: In case your wondering why there's a while loop at the beginning that's because I'll be working on repeating it later.
Code:
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
int print(int array[4]);
int main(void)
{
bool loop = true;
//main loop
while (loop)
{
... | |
doc_23528559 | @property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSString *assignmentName;
@property (nonatomic, strong) NSNumber *totalPoints;
@property (nonatomic, strong) NSNumber *recievedPoints;
@property (nonatomic, strong) NSNumber *classAverage;
@property (nonatomic, strong) NSNumber *extraCredit;
@pro... | |
doc_23528560 | That said, what are the baseline steps you want to take to make sure your content is visible to the major search engines (Google, Bing, etc.)
I'm specifically curious as to what role your URI Information Architecture plays. It's common wisdom that you want keywords in your URI, and you want to avoid the query-string l... | |
doc_23528561 | I want to somehow catch the error i get from not having a connection or access to the server, but instead of catching the error, the app crashes with null is not an object(evaluating 'blob.data')
import GlobalURL from './Url';
export const getMailAvailability = async (mail) => {
let url = GlobalURL + mail;
aw... | |
doc_23528562 | Original line:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
Replace with:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>
A: Most of the examples people are writing DON'T WORK! (Examples have been removed.) jQuery... | |
doc_23528563 | <table>
<tbody>
<tr>
<th colspan="2">Infobox</th>
</tr>
<tr>
<td>Lorem ipsum ...</td>
<td>Lorem ipsum ...</td>
</tr>
⁞
<tr>
<td>Lorem ipsum ...</td>
<td>Lorem ipsum ...</td>
</tr>
<tr>
... | |
doc_23528564 | The scenario is to process three dbf files and extract the data and send it to HTTP rest service as JSON if there is no response from that service during 3 mins should wait 10 mins and attempt again. The rest service will reply with json.
now I have three to four things I can't solve it:
*
*I need to read the rep... | |
doc_23528565 |
MissingReferenceException: The object of type AudioSource has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object.
Scripts on all paddles:
public class Paddle : MonoBehaviour
{
[SerializeField]
private AudioSource source;
... | |
doc_23528566 | if(System.getProperty("os.name").toLowerCase().indexOf("mac") >= 0){
com.apple.eawt.FullScreenUtilities.setWindowCanFullScreen(stage.getScene().getWindow(), false);
}
Can you explain how can I convert javafx window to awt window. If not can you recommend me another apple library for setWindowCanFullScreen, but... | |
doc_23528567 | Here is the code
Nx, Ny - generics
ipx - an input port vector
tempx, tempz - signals
ipx : in std_logic_vector(Nx-1 downto 0);
.......
signal tempx : std_logic_vector(Ny-1 downto 0) := ipx(Nx-1 downto Nx-Ny); (Signal initialisation)
signal tempz : std_logic_vector(Ny-1 downto 0);
............
tempx <= (Ny-1... | |
doc_23528568 | I want to display list-items but 2 problems occur.
*
*The list items should be replace with a V image instead of the normal bullet
*The list items are displayed in 3 columns but yet the first item in the first column is shifted down slightly.
My html code
<div id="box2" class="features">
<ul>
<li>Smoking Pol... | |
doc_23528569 | Is there any method to protect the PDF file being access via direct link like http://domain.com/mypdf.pdf?
A: Use this code...
The best way would be to protect that folder with htaccess, as you have mentioned. So you put all PDFs in pdf/ folder, and in the same pdf folder you put .htaccess file:
RewriteEngine on
Rewri... | |
doc_23528570 | The RentJournal table has a primary key ID column named RentJournalID, which is auto incrementing. The UnitAGA table also has a nullable foreign key column named RentJournalID, which links each UnitAGA entry, to its corresponding entry in RentJournal table (which is inserted through the Trigger below).
Problem is that ... | |
doc_23528571 |
A: You can use Today() within the AddMonths() function and passing a negative number for the Months parameter to return the date exactly one month:
AddMonths(Today(), -1)
If you need the name of the month (or other representation) you can pass the result to the FormatDate() function:
FormatDate(AddMonths(Today(), -1)... | |
doc_23528572 | However, the postMessage() doesn't get received by the client. If the app is in the foreground, it works as expected.
If the all is in the background though, it doesn't catch the postMessage(). I was wondering if I needed to listen to some kind of load event in my main sw.js file before sending the postMessage() - but ... | |
doc_23528573 |
A: ● -- It indicates access "Available" for specified role and
○ -- This indicates "Access requires Xcode 7 or later."
Here is reference document by Apple: Program Roles and iTunes Connect Roles
| |
doc_23528574 | I have tried using the filter() method, however this is storing the result of the filter in a new array.
The way the program is designed, i know there will only be one match from the filter method. Rather than storing the matching object in a new array of one object, it would be much easier for me to be able to have th... | |
doc_23528575 | eg.
TABLE1
------
Field name: ID
Value: 1000
TABLE2
------
Field name: NUMBER
Value: WO-1000
so basically I need it to say something like:
JOIN TABLE2 ON (TABLE1.ID = 'WO-' + TABLE2.NUMBER)
Thanks
A: Use || operator to concatenate two values in Postgres. Try this.
JOIN TABLE2 ON (TABLE1.ID = 'WO-' || TABLE2.NUMBER... | |
doc_23528576 | createAccessibilityRole(parent: Element): string {
if(isLink) return 'link'
return 'text'
}
Obviously the above doesn't work, so I was wondering if we could import the type class or if we have to code it ourselves?
A: It's in the official typing lib
| |
doc_23528577 | The tableview is sectioned with .filters so I have to apply the filter before looking for the indexPath. However, the filter appears to break the indexOf functionality.
I noticed that the function .map has the same effect.
import UIKit
import RealmSwift
class Model: Object {
@objc dynamic var title: String = ""
... | |
doc_23528578 | template<size_t I, typename T, typename... Ts>
struct get_type {
typedef typename std::conditional<I == 0, T, typename get_type<I-1, Ts...>::type>::type type;
};
template<size_t I, typename T>
struct get_type<I, T> {
// This works only if compiler stops unfolding the template when I == 0
static_assert(I =... | |
doc_23528579 |
For instance, for the sample weight taken at 32 seconds, I want the mean of the concentrations recorded in the past 30 seconds, so the mean of 9, 10, 7, ..14,20, 18, 2). For the sample weight taken at 31 seconds,I want the mean of the concentrations recorded in the past 30 seconds, so the mean of 5, 9, 10, 7, .. 14,20... | |
doc_23528580 | [operateAns replaceCharactersInRange:NSMakeRange(start, end-start) withString:[answer stringValue]];
operateAns is initialized in the following way where calc is an NSMutableString:
operateAns = calc;
and I am getting the following error
'NSInvalidArgumentException', reason: 'Attempt to mutate immutable object with r... | |
doc_23528581 | Here is what I believe to be the best version of code I have so far:
<?php $username="root";$password="notarealpassword";$database="offenders";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$sSQLQuery = "SELECT last_name AND first_name FROM offenders... | |
doc_23528582 | Is the keyword thread_local or __declspec(thread) a must?
In the Using Thread Local Storage on MSDN, why is the variable dwTlsIndex not decorated with thread_local or __declspec(thread)?
A: dwTlsIndex itself is not stored in any thread-local memory, that is why it is not marked as thread_local or __declspec(thread).
T... | |
doc_23528583 | I am using self-certified .pem certificate and key generated with
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
It works fine using curl -k https://127.0.0.1:6984/, but Chrome and Firefox react differently:
*
*Firefox first makes me add a security exception for the self-signed certific... | |
doc_23528584 | I've set the BlockReportFile parameter as: file:files/blockreportlist.txt
My blockreportlist.txt has the following records:
user1@mydomain.com=>user1@mydomain.com
user2@mydomain.com=>user2@mydomain.com
But it doesn't work when I check "Generate a BlockReport from BlockReportFile Now (BlockReportNow)" and click "Run no... | |
doc_23528585 | Thanks
error
Private Sub PopulateComboBox()
Dim query As String = "SELECT DISTINCT PNM FROM GSDTS"
Try
Using con As OleDbConnection = New OleDbConnection(cn)
Using sda As OleDbDataAdapter = New OleDbDataAdapter(query, con)
'Fill the DataTable with records... | |
doc_23528586 | SHOW CONSTRAINTS YIELD name, labelsOrTypes, properties
WHERE labelsOrTypes = ["NodeLabel"] AND properties = ["targetProperty"]
WITH name
CALL apoc.when(
name IS NOT NULL,
'DROP CONSTRAINT name',
'',
{name: name}
) YIELD value;
This gives an error Invalid input 'WITH'. Removing the WITH gives Invalid in... | |
doc_23528587 | Currently I save the subscription data in my Database after purchase and use the Google Developers API to verify that it has been renewed or canceled when necessary.
However, for some Administrator routines I need to check all subscriptions at once and this includes calling the Google API for each one. This process is ... | |
doc_23528588 | data1<- data.frame("Drug Name" = c("Drug1","Drug1","Drug2","Drug1","Drug3","Drug2",
"Drug4","Drug5","Drug1"),
"Start Date" = c("7/1/2016","1/1/2016", "8/6/2015","2/1/2015","6/14/2017",
"6/21/2017","1/24/2018","7/30/2018","7/30/20... | |
doc_23528589 | <?php
include("header.php");
?>
<script type="text/javascript">
function calc_price()
{
alert('ooooooooooooooooooooooooooooo');
var pro_qty=<?php echo($row['pro_qty']);?>;
var price=document.getElementById('pro_price').value;
var count=document.getElementById('pro_qty').value;
var total_price;
... | |
doc_23528590 | I did try, but I was running into problems with constraints. If I copy and pasted an NSLayoutConstraint from a UIViewController, I would start receiving errors. So I assume constraints are handled differently also. For example, instead of using view.CenterX, it would be contentView.CenterX right?
Edit: I forgot to ment... | |
doc_23528591 | I have a simple controller called testController that has one scope property..
'use strict';
angular.module('eventsApp').controller('testController',
function testController($scope) {
$scope.claimId = 123456;
});
and I have a test for the controller...
describe('testController', function () {
var scope;
var con... | |
doc_23528592 | javascript:
(function( $ ) {
$.fn.Duplo = function() {
return this.filter("div[class*='object']").clone().appendTo('body');
};
}( jQuery ));
$(document).ready(function(){
$( ".negen" ).Duplo();
});
html:
<body>
<div class="row">
<div class="col-md-12 col-sm-12 twaalf">
</div>
</di... | |
doc_23528593 | How do I fix this?
CSS:
.middentextvak
{
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
width: 43%;
height: 500px;
background: white;
margin-top: 7%;
opacity: 0.5;
}
Jfiddle: http://jsfiddle.net/H5LmF/8/
I don't know why it appears white the whole page b... | |
doc_23528594 | There is a requirement that users are NOT required to have a Google (or any other specific type of) account to log on, so I have written a bespoke login function.
The problem I have is reliably identifying the user session.
User properties/cache doesn't work as the user is me for all users.
Is there a way I can identif... | |
doc_23528595 |
A: The sw is short for software, and it implies that the functionality is performed by the general purpose CPU as opposed to a dedicated device such as an extension card.
| |
doc_23528596 | I am attaching images for both ViewControllers
in second image Google map should be in portrait and list in landscape but when I change orientation from portrait to landscape list is generate only in portrait mode.below is the code to handle orientation
- (BOOL)shouldAutorotate
{
return NO;
}
- (NSUInteger)suppo... | |
doc_23528597 | The problem: I Have an Export from a Database, however it needs to extract data from two tables. I Achieve this with an inner join.
artikel is the table with the basic information. It contains the id, article number, name, type and package form.
article_content is the table which contains the text which is part of the ... | |
doc_23528598 | val db = Database.forConfig("horridDBStuff")
Then in application.conf I have
horridDBStuff = {
url = "jdbc:mysql://my.db.address:3306/myschema"
driver = "com.mysql.jdbc.Driver"
connectionPool = disabled
keepAliveConnection = true
properties = {
user = "me"
password = "me"
}
}
... | |
doc_23528599 | plugins: [
new ModuleFederationPlugin({
name: "host",
remotes: {
subA: "sub_a@http://localhost:8081/remoteEntry.js",
subB: "sub_b@http://localhost:8082/remoteEntry.js",
},
}),
new HtmlWebpackPlugin({
template: "./public/index.html",
}),
],
As shown above, I've ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.