id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_32500 | I want to join a larger database with a smaller database (in terms of rows).
I use left join because I want to have a final database that has the same number of rows as the larger one.
This naturally returns NA values when the smaller database does not have a value corresponding to the joining key.
What I want to achie... | |
doc_32501 |
Invalid operands to binary expression ('ostream' (aka 'basic_ostream') and 'void')
I understand there are some questions related to this error posted on StackOverflow but I need some help and explanations regarding this specific context on what this error means.
In the main() function, I create a student object calle... | |
doc_32502 | x <- c(19, 26, 39)
y <- c(34, 47, 51)
z <- c(45,50,60)
B <- data.frame(x, y, z)
B
f1 = function(x){return(diff(x))}
apply(B,1,f1)
>[,1] [,2] [,3]
y 15 21 12
z 11 3 9
#this seems to give diff(x) as columns
#want as rows, i.e. the transpose:
15 11
21 3
12 9
Many thanks
A: Maybe you can try
Bout <- B[-1... | |
doc_32503 | I am doing this like this
$(".soclass").draggable({
cursor: "move",
helper: 'clone',
revert: "invalid",
tolerance: "fit",
start: function(event, ui){
$(this).draggable("option", "cursorAt", {
left: Math.floor(ui.helper.width() / 2),
... | |
doc_32504 | <span id='password-required' v-show='!validation.password'>Required</span>
Once at least one character is entered the 'Required' message is hidden. This logic works in the browser just fine. The problem is that I cannot seem to get the unit test to work.
I figured nextTick() would fix it, but it did not. I used code... | |
doc_32505 | However I run into a few issues:
*
*The code required are in 2 files: Pscx.CD.psm1 and Messages.psd1. They need to be combined into one function if possibe somehow.
*There are some different error messages occurring, even though the commands are still working. I don't know what to make out of it.
Cannot index into ... | |
doc_32506 | I want it to show some options and move the cursor to the next checkbox according to the key press of the left or right arrow keys. I've already managed to do this using READ and Ansii escape sequences to detect the arrow keys and I use tput to move the cursor.
My problem with this it's that I need to read a certain le... | |
doc_32507 | My question is around how this will perform compared to perhaps cahing the Method objects for each step. What is propertyUtils doing under the bonnet? Is it doing a lot of reflection / heavy lifting?
A: You don't need to transverse manually the graph because new versions of commons beanutils also support expressions l... | |
doc_32508 | I want to show my "Automatically Created" Table in my Form2...
I get the error:
System.Data.SqlClient.SqlException: "Invalid object name 'List'.......
but only for the "Automatically (List) created Table", the "Manually (List1) created Table" works fine in Form2...
idk why isnt working for the Automatically created ... | |
doc_32509 | I want to load a child component conditionally within a component by clicking button. On button click, it should re-render the respective child component.
HTML code
<div class="tab">
<button class="tablinks" (click)="onTabClick('0')">Transmit</button>
<button class="tablinks" (click)="onTabClick('1')">Published</bu... | |
doc_32510 | Since this is no synchronous process, how is it possible to send something to the API but "wait" for the result on the queue side and compare that with the expected result? This could take up to 3 minutes ... what are usually some tools/approaches for that? Postman is good for API tests but is it also possible to conne... | |
doc_32511 | For the first day, it will penalize 1 point, second day 2 points, third 4 points, fourth 8 point, 16, 32, 64 and so on.
How would I go about auto generating a strtotime and the multiplications?
I really don't even know what i'm looking for is called at this point which makes searching hard, sorry if this has been post... | |
doc_32512 | Let's say that we have the following numpy arrays:
data1 = np.array([[[12], [13]], [[14], [15]], [[16], [17]]])
data2 = np.array([[[22], [23]], [[24], [25]], [[26], [27]]])
data3 = np.array([[[32], [33]], [[34], [35]], [[36], [37]]])
data4 = np.array([[[42], [43]], [[44], [45]], [[46], [47]]])
with a shape of (3, 2, 1... | |
doc_32513 | The function returns the sum of the numbers bigger than 5.
const checkArray = function(n) {
let sum = 0;
let newArr = [];
for(i = 0; i < n; i++) {
newArr.push(Math.floor(Math.random() * 10));
if (newArr[i] > 5) {
sum += newArr[i]
}
return sum;
}
return ... | |
doc_32514 | I checked the repo and I see that no such a file called Platform.js exists, but there are Platform.android.js and Platform.android.js.
Does anyone know the expected behavior for loading this file, and how it's supposed work for web
23 | const PixelRatio = require('react-native/Libraries/Utilities/PixelRatio');
24... | |
doc_32515 | firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
admin:
pattern: ^/
host: admin.mysite.com
http_basic:
provider: in_memory
realm: 'MySite Admin'
logout:
main:
pattern: ^/
anonymous: ~
... | |
doc_32516 |
D:\ClickSitePlayer\ClickSitePlayer\ClickSitePlayer\bin\Debug\sad_3.mp4
At the end of the string there is a file name (video name). the file name is not fixed and will change each time.
1 - How can i get file name (sad_3.mp4) in this string?
2 - After getting file name, how can i get file id? (file id comes after '_' ... | |
doc_32517 | # server.R
library(shiny)
shinyServer(function(input, output) {
output$downloadData <- downloadHandler(
filename <- function() {
paste("output", "zip", sep=".")
},
content <- function(fname) {
fs <- c()
tmpdir <- tempdir()
setwd(tempdir())
for (i in c(1,2,3,4,5)) {
... | |
doc_32518 | Would I need a VMWare tool? I'm looking at Workstation 12 at the moment.
A: No, just ensure your firewall rules are correct and sysinternal tools are installed on each machine, file and printer sharing are enabled and that your antivirus product does not block psexec.
VMTools gives you things like drag and drop, share... | |
doc_32519 | render() {
return (
<div className="container body">
<Route exact path="/" component={<IndexPage/>} />
<Route exact path="/users" component={<Users/>} />
<Route exact path="/users/:userId" component={<User/> }/>
<Route exact path="/routers" com... | |
doc_32520 | I'm trying to make fullscreen background.
<html>
<head>
<link rel="stylesheet" type="text/css" href="CSS/main.css">
<style>
.bg {
background-image: url("nuotraukos/bg.png");
min-height:100%;
min-width: 100%;
background-attachment: fixed;
background-position: center;
b... | |
doc_32521 | My question is: is there anyone have successfully installed the mingw(with gcc v4) manually?
A: I really don't know what you mean by "manually", and I don't know what "sf.net" is. If you want to install MinGW, download from http://tdragon.net/recentgcc - current latest version 4.4.1 - and run the installer. You can in... | |
doc_32522 | @media print {
div#CrystalReportViewer1_ctl01 > div {
page-break-inside: avoid;
page-break-after: always;
}
}
Here is the is wht I've included as link in the .aspx:
<link rel="stylesheet" href="../css/style.css" type="text/css" media="print"/>
<link rel="stylesheet" href="../css/style.css" type="text/css" ... | |
doc_32523 | I want to execute something like this:
CacheConfiguration<Integer, Object> cfg = new CacheConfiguration<>();
cfg.setName("test_bo");
cfg.setIndexedTypes(Integer.class, BinaryObject.class);
IgniteCache<Integer, Object> cache = ignite.getOrCreateCache(cfg);
BinaryObjectBuilder builder = ignite.binary... | |
doc_32524 | {
"index": 2,
"entries": [
{
"title": "Foo bar 0",
"url": "https://example.com/bar"
},
{
"title": "Foo bar 1",
"url": "https://example.com/bar"
},
{
"title": "Foo bar 2",
"url": "https://example.com/bar"
}
]
}
The index field represents the currently-di... | |
doc_32525 | I am binding my DataGridTextColumn to an object - not just a text/numeric value. The object has properties that I want to use to display a ToolTip, set the color, etc...
I can do this by specifying the column property name within the style as follows:
<DataGridTextColumn Header="Payment Terms" Binding="{Binding Payment... | |
doc_32526 | Here is the code that makes the button. Could someone give me a clue where the problem is?
UIButton *problem = [[UIButton alloc] initWithFrame:frame];
[problem addTarget:self action:@selector(problemButton:) forControlEvents:UIControlEventTouchUpInside];
problem.backgroundColor = [UIColor whiteColor];
[problem setTitle... | |
doc_32527 | System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
That's great for the released version, but it's really annoying when I'm debugging and it relaunches the program outside the debugger whenever I need to change the preferences.
After some research, I've tried attaching to the debugger from code, ... | |
doc_32528 | I tried it with my own account, but did not result in successful login.
A: That user has an ancient crypt hash. It is is salted, but it only uses the first eight characters of the password.
You can verify this by looking at the hash in /etc/shadow and if it doesn't start with a $n$ marker to indicate the hash method t... | |
doc_32529 | This has been partially addressed here, however this was using TinkerGraph where I am using OrientGraph. According to a comment in the linked page, I believe what I have done should work. Is there something I am missing?
package simpleFrames;
import com.tinkerpop.frames.Property;
import com.tinkerpop.frames.VertexFram... | |
doc_32530 |
A: Math.random() generates an number between 0 and 1. You can check if its greater than 0.5 then return thing1 otherwise thing2. Both results will have 50% chance.
const res = Math.random() > 0.5 ? "thing1" : "thing2"
console.log(res)
Another way is create an array and use Math.round() on random float value and us... | |
doc_32531 | i searching to get this result:
https://razorjack.net/quicksand/
thanks.
| |
doc_32532 | function1()
{
Txtbox1.visible=true;
Txtbox2.visble=false;
Txtbox3.visible=false;
TxtBox4.visible=false;
}
similarly i write 3 more function to make other text boxes visibility to true.How to do code optimization c#,Asp.net
A: Set up an TextBox array. Such as
TextBox[] textboxes = { TxtBox1, TxtBox... | |
doc_32533 |
XMLHttpRequest cannot load https://docs.google.com/uc?export=open&id=.... Redirect from 'https://docs.google.com/uc?export=open&id=...' to 'https://doc-xx-xx-docs.googleusercontent.com/docs/...?e=open' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin... | |
doc_32534 | I am not referring to the ActionBar hide() and show() methods, instead I want to know how to hide and show the ActionBar at the same rate the list below it is scrolled.
How is this achieved? All attempts at finding a documented solution have proven unsuccessful so any help would be appreciated.
A: Short Answer
Create ... | |
doc_32535 | function rr=RT(lvl_broad, dt)
n=12; %number of samples within slope calc
slope=zeros(length(lvl_broad), 1);
for i=1:length(lvl_broad)
if i<((n/2)+1) | i>length(lvl_broad)-(n/2)-1
slope(i)=0;
else
slope(i)=(lvl_broad(i+(n/2))-lvl_broad(i-(n/2)))/n;
end
end
min_slop... | |
doc_32536 |
If you want to coerce values, do so outside of the condition not within it.
I'm curious. In Javascript, is it worse to use type coercion in a conditional than outside of one? Are there any side effects?
Example code:
var initInt = 1
, initString = '1'
// Outside of a conditional
var coerceType = initInt == initStrin... | |
doc_32537 | Thanks in advance.
A: You could slurp the entire file with a couple of lines of Perl, or use PHP's file_get_contents()
$file = file_get_contents('someFile');
I assume here that the remote server's disks are NFS-mounted. If that is not the case, you could use a different URI.
Or you could use netcat on the receiver:... | |
doc_32538 | I set this in my Application.cfc:
<cfset variables.framework.routes = [
{ "$GET/persons/:id/$" = "/persons/show/id/:id" }
]>
My controller method
<cffunction name="show">
<cfargument name="rc" type="struct" required="true">
<cfset local.strURL = variables.fw.buildURL(
action = 'persons.show',
... | |
doc_32539 | /// the panel in question
private System.Windows.Forms.TableLayoutPanel impl_;
/// The user has clicked a linklabel in the panel. replace it with an edit-box
private void OnClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
LinkLabel link_label = sender as LinkLabel;
TextBox new_edit = new TextBox();
... | |
doc_32540 | I have an app written in angular2 and a backend in java.
People can change their profile picture.
From my frontend I encode the picture in base64 and send it with a post to my rest api.
*
*Server check the size of the base64 and reject it if it reached a certain size (but I also have a maxPostSize of 2MB in tomcat b... | |
doc_32541 | So first question - what is the reason of this?
Second - how to fix? What minSdkVersion should I point?
Caused by: java.lang.NoSuchMethodError: java.util.Arrays.copyOf
at com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.copyArrays(CharsToNameCanonicalizer.java:603)
at com.fasterxml.jackson.core.sym.CharsToName... | |
doc_32542 | I can maybe place a table layout on top of the image filled whit blank images and activate the on click method only on the one covering the states, but this is probably bad coding, and I think will be poorly compatible whit other types of device, tablet or bigger/smaller screen.
Another solution can be to create two im... | |
doc_32543 | Here I saw this code fragment
<http auto-config="true">
<intercept-url pattern="/login" access="ROLE_USER" />
<logout logout-success-url="/login" />
</http>
can we use Users from tables instead of use hardcode ROLE_USER in config.xml like above.?
can we use method in there.?
access="method()" then what it need... | |
doc_32544 | #header {
position: relative;
top: 20px;
background-color: blue;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-color: #ffffff;
overflow: hidden;
}
li {
border: 2px solid #000000;
font-family: Futura, Tahoma, sans-serif;
color: black;
border-radius: 5px 5... | |
doc_32545 | mWidth = Resources.getSystem().getDisplayMetrics().widthPixels;
mHeight = Resources.getSystem().getDisplayMetrics().heightPixels;
however on samsung a72(home button removed) i am not able to get full height of screen,actually height is 2400 (I see in manual screenshot) but result is 2170. The figure be... | |
doc_32546 | .getClassLoader()
.getResourceAsStream( "filename" );
The file is in the same package as the class.
It is returning null every time. Is there anyway we can replace getResourceAsStream(...) with some other method?
A: Don't use getClassLoader if you want to load things fro... | |
doc_32547 | The problem: use nginx to proxy for flower without opening up a new port, and also reject badly-formed requests that would cause Invalid HTTP_HOST Header errors in Django.
I can do either but not both because I am not super experienced with nginx.
I'm running flower 0.9.4, as I'm aware of the bug in 0.9.5.
In the follo... | |
doc_32548 |
*
*section class="intro"
*section class="twitter-feed"
*section class="tour-info"
etc.
The site uses the SUSY Sass framework (http://susydocs.oddbird.net/en/latest/) to create a responsive grid system and as with most responsive sites this causes an average length page on desktop devices to become much longer on... | |
doc_32549 | The problem I'm often faced with is: if one module is modified i.e. new parameter added to public method. How it can be verified that project still runs before the actual code is executed?
Is there a tool that can compile selected Python file and traverse through imported classes / methods and verify them as well?
| |
doc_32550 | which is called from
VOID
UtlGetTime (tUtlTm * tm) /* tm is a struct that was memset to 0 */
{
UINT4 u4Ticks;
OsixGetSysTime (&u4Ticks);
u4Ticks -= gu4TicksCorr; // gu4TicksCorr is global value
UtlGetTimeForTicks (u4Ticks, tm);
}
And this is the start of UtlGetTimeForTicks :
VOID
UtlGe... | |
doc_32551 | Here is my controller set up for the GET request of the page:
var states = Ctx.States.ToList()
.Select(state => new SelectListItem
{
Text = state.Name,
Value = state.Name
}).OrderBy(x => x.Text).ToList();
ViewBag.SelectedStateOne = new SelectList(
... | |
doc_32552 | I'd like to set a time out and get each height every 5 seconds.
<div class="printOutputs" id="print1"></div>
<div class="printOutputs" id="print2"></div>
<div class="printOutputs" id="print3"></div>
<div class="printOutputs" id="print4"></div>
I get the ids
var ids = Array.prototype.slice.call(document.querySelectorAl... | |
doc_32553 | from a dll in Windows environment. Please review the code below to understand the issue.
from ctypes import *
#---------qsort Callback-------------#
IntArray5 = c_int * 5
ia = IntArray5(5,1,7,33,99)
libc = cdll.msvcrt
qsort = libc.qsort
qsort.restype = None
CMPFUNC = CFUNCTYPE(c_int,POINTER(c_int),POINTER(c_int) )
te... | |
doc_32554 |
*
*Can someone point me to an example?
*Which threading model to use?
*Should I have a seperate COM object for the sink?
*Should I, and how do I, protect certain memory. For example, my server will receive data from the third party control. It will save this, and in some cases, fire an event to interested clien... | |
doc_32555 | Thanks!
A: Create yourself a custom module and overwrite <sales_order_grid>
In your Grid.php you need to do 2 different things:
*
*Tell Magento where to find the postcode
*Tell Magento where to put it
The best way to tell Magento where to find the info is the setCollection function. This function is called from wi... | |
doc_32556 | waitForFreeAccnt.prototype.isMemberFree = function () {
var self = this;
self.api.getMemberInfo(function () {
var accType = self.api.connect.accountType;
console.log(accType);
if (accType === 'FREE') {
console.log('it is free');
return true;
} else {
... | |
doc_32557 | the profit earned = 0.1 * Total_payment.
The PROFIT is earned when the service is done, the column "Total_payment" is come from the table BOOKING, i have to join BOOKING and SERVICE in order to get the total profit of each month, Booking_num is the key for joining BOOKING and SERVICE, Actual_end is the end date of the ... | |
doc_32558 | I've searched a lot, but I found nothing. Is this even possible?
My targets are: iOS and Android
A: The cordova screenshot plugin helps you, if you want to take a screenshot of the main window. The screenshot will be saved in the app storage, so you don't need access to the device gallery.
But if you use the InAppBrow... | |
doc_32559 | request.get('https://people.googleapis.com/v1/people/me/connections?access_token=tokenHere',
function (error, response, body) {
console.log(body);
});
And getting the following responce (I pin only the part of it, for example):
{
"resourceName": "people/c1705421824339784415",
"etag": "328OLZwdaiQ="... | |
doc_32560 | The code below may explain:
triang = Triangulation(x,y)
plt.tricontourf(triang, z, vmax=1., vmin=0.)
plt.colorbar()
The colorbar is still fixed to the limits of the data z, although the cmap range is now fixed between 0 and 1.
A: I thought this question pointed out a bug, but it turns it's a usage/compatability const... | |
doc_32561 | input {
beats {
port => 5044
codec => multiline {
# Grok pattern names are valid! :)
pattern => "^%{TIMESTAMP_ISO8601} "
negate => true
what => previous
}
}
}
filter {
mutate {
gsub => ["message", "\n", " "]
}
grok {
match => [ "message", "%{TIMESTAMP_ISO8601:timest... | |
doc_32562 |
A: In the context of write timestamps associated with data being stored, clock synchronization is not needed if you are using client timestamps and a single client.
However, I would still discourage not at least trying to keep clocks in sync in a Cassandra cluster. There have been cases where clock skew affects other... | |
doc_32563 |
A: To generate a link that is universal and not specific to an App Store Country do the following
Use
itms-apps://**ax.itunes**.apple.com/app/yourAppLinker
where yourAppLinker is the part of the link generated in (http://itunes.apple.com/linkmaker), as in Matthew Frederick's post, which contains your application na... | |
doc_32564 | float* buffer = (float*) glMapBuffer(GL_ARRAY_BUFFER, GL_READ_ONLY);
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 3, ssbo[2]);
glBufferData(GL_SHADER_STORAGE_BUFFER, sizeof(GLfloat)*size,buffer, GL_DYNAMIC_DRAW);
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 3, 0);
glUnmapBuffer(GL_ARRAY_BUFFER);
In the Vertex Shader thi... | |
doc_32565 | My host comes by and kills the process after I get a bunch of traffic and so I end up serving up blank pages. Is there anything I can do to say "hey don't use any more than 100Mb and only spawn 3 processes no matter how overloaded the site is"
A: There is no way to limit the memory usage explicitly (say use <= 100MiB)... | |
doc_32566 | when the string is contained
>>> 'foo bar baz'.partition('bar')
('foo ', 'bar', ' baz')
>>> 'foo bar bar baz'.partition('bar')
('foo ', 'bar', ' bar baz')
when the string is not contained
>>> 'foo bar baz'.partition('hi')
('foo bar baz', '', '')
A: Here's my solution, plus a bonus rpartition:
def re_partition(regex,... | |
doc_32567 | style="width:65%; height:100%; display:inline-block; margin-top:60px; text-align:left;
Why won't it work?! I just want it 100% of the height, 65% of the width, all overflow "hidden" on the X, and all the Y overflow to have a scroll!
A: 100% height only applies to parent element. If the parent tag of your div is not 1... | |
doc_32568 | 12245933,1475,2
134514060,6112,3
134514064,10096,4
12245933,1536,5
...
134514097,16200,38
12245933,1475,39
I want to know for every row[0], the distance of re-occurance of the same value in row[1]
For example:
12245933 has the value 1475 in line 39 and line 2 ..
i want to know all the possible occurrences of 1475 for... | |
doc_32569 | {
"compilerOptions": {
"noImplicitAny" true
}
}
I have a function with an object literal parameter like so:
public addHandler({ sender }) {
}
But VSC gives me an error:
Binding element 'sender' implicitly has an 'any' type.
Trying addHandler(sender: any) breaks the function, and addHandler({ sender: any })... | |
doc_32570 | The problem is when service is detecting faces from video,more than 150 frames are skipped as seen in log cat.
How to detect faces efficiently so that this much number of frames are not skipped?
Here is my code
public class Background_Recording extends Service implements SurfaceHolder.Callback,Camera.PreviewCallback {
... | |
doc_32571 | using this code:
if (!(sales < 10))
System.out.print("No discount. " +
"Your total is: $" + (int)total);
inside this code:
if (!(sales < 10))
System.out.print("No discount. " +
"Your total is: $" + (int)total);
els... | |
doc_32572 | # some request object exists
response = urllib.request.urlopen(request)
html = response.read().decode("utf8")
What format of string does read() return? I've been trying t figure that out form Python's documentation but it does not mention it at all. Why is there a decode? Does decode decode an object to utf-8 or from ... | |
doc_32573 | wpf application:
private void Invaders_KeyDown(object sender, KeyEventArgs e)
{
MessageBox.Show(e.KeyCode.ToString());
switch (e.KeyCode.ToString())
{
case "Up":
MessageBox.Show("Up");
break;
case "Down":
MessageBox.Show("Down");
break;
... | |
doc_32574 | dat
col1 col2
1 2 6
2 5 43
3 10 67
and I would like to create a new array of length 10 (the highest value present in col1) that would look like this:
-99, 6, -99, -99, 43, -99, -99, -99, -99, 67
In my data.frame dat I have several hundred thousand rows and my final array will also be several hu... | |
doc_32575 | I am using mule community addition so I can't use mule datamapper.
Can any one help me how to convert xml to soap message using XSLT tranformation?
I have below xml:
<file>
<header>
<documentType>CEN_ORD</documentType>
<version>1.0</version>
<createDate>01/01/15 02:11</createDate>
<originator>IKEA</... | |
doc_32576 | Select ID,name from xxx table where 'condition'
I am getting an exception like InvalidColumnName 'ID' while using JDBCpagingItemReader. I think it is happening as ID is a keyword in oracle. Is there any workaround for such scenario. Has anyone any idea about this.
I have also tried with writing single quotes such as '... | |
doc_32577 | $('td:contains('" + value + "')').closest('tr').css('background-color','red');
All im trying to do is looping through all the td's with a .each function and within that im checking if the td contains the value variable, then set the closest tr background to red or add a class or what ever.
Am I missing something obvio... | |
doc_32578 |
A: There are two ways to do this.
You can pipe any Git command to a pager program like less:
git status | less
This tho won't preserve any text colors that Git (might) normally output.
The second way to do this is to use one of the two pagination options for the git command. To use a specific pager command:
git --pag... | |
doc_32579 | plot_individual_subjects <- function(var, data)
{
require(ggplot2)
ggplot(data, aes(x=Time, y=var, group=Subject, colour=SubjectID)) +
geom_line() + geom_point() +
geom_text(aes(label=Subject), hjust=0, vjust=0)
}
Now if var is a string it will not work. It will not work either if change the aes part of ... | |
doc_32580 | I have managed to write the code that will bring up outlook's compose email dialog box from the spreadsheet.
A: You can use for in range with mails and call this proc to send email
Public Sub SendMail(MailTO As String, MailSubject As String, MailBody As String)
'http://officevb.com
Dim appOL As Object
D... | |
doc_32581 | So far, I have the 'generator' check the pixel above it, and the left of it. Depending on what color the pixel is, the current pixel has a chance of being one of the pixels next to it.
if (LeftPixel == 0xFF0000FF) OceanChance = OceanChance + 5;
if (AbovePixel == 0xFF0000FF) OceanChance = OceanChance... | |
doc_32582 | CREATE TABLE [dbo].[Users]
(
Id bigint NOT NULL,
Name nvarchar(80) NOT NULL,
PRIMARY KEY CLUSTERED (Id ASC)
)
The Name column can contain either a full name or just the first name or anything really (separated by spaces). In order to implement a search on Name, I would like to utilize SQL's full-text searc... | |
doc_32583 | Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Unrecognized VM option 'UseSpinning'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Cyc server has shut down at Sun Nov 11 19:36:50 IST 2012
Anyone knows how thi... | |
doc_32584 | Is there a way to provide this hint within the file itself?
*
*A possibility could be to have this information in a comment. I realize that in order to have this, one must first know what a comment is (and it varies by language, which is not known yet, thus some catch-22 situation).
*Another one could be the specia... | |
doc_32585 | Aside from this issue, I'd just rather it be styled like the following anyway. I would like to have it so the tooltip aligns to the left of the element, and the arrow on the tooltip goes to the left as well. Or if the tooltip is on the side of the element then it gets aligned to the top and the arrow is on the top.
Bas... | |
doc_32586 | The API has in and out structures that are multi-level. For the sake of brevity:
typedef struct
{
int nObjectID;
char szObjectType[128];
int nConfidence;
int nAction;
DH_RECT BoundingBox;
DH_POINT Center;
... | |
doc_32587 | Then, for the needs of a tutorial, I tried to install RVM, in order to downgrade my setup to older versions of Ruby and Rails.
And since then, I kept running into troubles.
For instance, anytime I launch a new Terminal session, here is what I get:
You are using '.rvmrc', it requires trusting, it is slower and it is not... | |
doc_32588 | {"method":"MyMethod", "params":["text", 123, {"name": "any text", "num": 15}], "id":1}
Ideally, I would like to create an AutoBean like this (but it does not work):
interface JsonRpcRequest {
String getJsonrpc();
void setJsonrpc(String value);
String getMethod();
void setMethod(String value);
... | |
doc_32589 |
*
*In security onion is logstash preconfigured to receive snort alerts or do I need to define that configuration?
*Do I need to send my alerts to logstash, or can it just be sent to elasticsearch?
Thanks!
| |
doc_32590 | {
73: {
id: 74,
title: "39",
body: "11100000000000000000#IS#2.5",
created_at: "2018-04-23 21:19:19",
updated_at: "2018-04-23 21:19:19"
}
}
I need to access the value of 73 without knowing what 73 is.
echo $studentData->;
A: You could use reset() to get the first membe... | |
doc_32591 | The webpage both contain english and japanesse.
I can't understand japanesse. But chrome translatation always suggest english translation (english to other language) first.
And I have to chage website language to japanesse to translation.
I think change website's default language can help.
I figure chrome extension ... | |
doc_32592 | ProposalPicker.js
import React, { Component } from 'react';
import { Picker, View, Text } from 'react-native';
import Button from './Button';
import SimplePicker from 'react-native-simple-picker';
const options = ['Option1', 'Option2', 'Option3'];
// Labels is optional
const labels = ['Banana', 'Apple', 'Pear'];
cl... | |
doc_32593 | C:\> ppm install http://theoryx5.uwinnipeg.ca/ppms/mod_perl-2.0.ppd
I'm getting an error :
ppm install failed: 404 Not Found
Can somebody help me ?
| |
doc_32594 | Input: [3,2,1,5,6,4] and k = 2, Output: 5
Suggested Solution:
public int findKthLargest(int[] nums, int k) {
shuffle(nums);
k = nums.length - k;
int lo = 0;
int hi = nums.length - 1;
while (lo < hi) {
final int j = partition(nums, lo, hi);
if(j < k) {
lo = j + 1;
... | |
doc_32595 | <?xml version="1.0"?>
<emps>
<emp empno="1" deptno="10" ename="John" salary="21000"/>
<emp empno="2" deptno="10" ename="Jack" salary="310000"/>
<emp empno="3" deptno="20" ename="Jill" salary="100001"/>
</emps>
I want to load it in my Oracle XML DB Repository (under "public" folder) so that I can access it... | |
doc_32596 |
A: git checkout master then git branch branch2
A: Not sure why would that happen unless branch1 is merged to master or you messed up something locally.
If you follow these steps, you shouldn't see a problem
git checkout master
git fetch && git reset --hard origin/master
git checkout -b branch1
git add .
git commit -... | |
doc_32597 | MODEL
Ext.define('App.mdlCriteriosConcurso', {
extend: 'Ext.data.Model',
fields: [
]
});
STORE
Ext.define('App.strCriteriosConcurso', {
extend: 'Ext.data.Store',
model: 'App.mdlCriteriosConcurso',
autoLoad: false,
proxy: {
type: 'ajax',
api: {
read: 'some ur... | |
doc_32598 | Here is the code:
select
logs.id, to_char( login, 'YYYY-mm-dd') as time,
members.facility_id as facility, province,
district, count(members.id) as value
from
members
left join
system_data on system_data.facility_id = members.facility_id
left join
logs on logs.card_id = members.card_id
... | |
doc_32599 | I have looked at the Wikipedia article about Quantization, but it doesn't explain this.
Can anyone explain how it is done?
Lots of love,
Louise
Update: My function looks like this.
unsigned char quantize(double d, double max) {
return (unsigned char)((d / max) * 255.0);
}
A: I think you need to convert both the 16-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.