id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_29800 | Lets say I have a "Person" table with the following schema:
<table name="person">
<column name="id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="name" type="VARCHAR" size="100" required="true"/>
</table>
I do the following query to get a collection of "Person" objects:
$per... | |
doc_29801 | The error I'm getting is:
Exception in thread "main" java.lang.RuntimeException: javax.mail.MessagingException: Unknown SMTP host: ns303047.xxxxxxx.eu;
so this is my main.cf :
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the firs... | |
doc_29802 | What is the general method of switching user accounts for executing an application? In other words, is there some way for an application to run under an arbitrary user account?
A: You can edit the UAC Settings (in VB 2008) which is located in the Project Settings. Look for the line that says
<requestedExecutionLevel ... | |
doc_29803 | SELECT
`u`.`username`, `u`.`id` AS `user_id`, `m`.`text`, `m`.`date`
FROM
`users` AS `u`
RIGHT JOIN(
SELECT
`from`, `to`, `text`, `date`
FROM
`messages`
WHERE
(`from` = 6 OR `to` = 6)
... | |
doc_29804 | I've seen some articles, which use BasicHttpAuthentication, but i really don't like the whole idea of sending username, and password on every request. The more it doesn't fit for me is because i want to use OpenId authentication, where you don't have username/password pair.
I'm thinking about a solution, but I don't re... | |
doc_29805 | Below is the code that I have come up with so far-
library(neuralnet)
library(rattle)
library(rattle.data)
# load 'wine' dataset-
data(wine)
D <- as.data.frame(wine, stringsAsFactors=FALSE)
# replace 'Type' response variable (with values- 1, 2, 3) by 3 dummy variables-
D$wine1 <- 0
D$wine1[D$Type == 1] <- 1
D$wine2... | |
doc_29806 | I tried to fix the LiveNodes = 0, by copy a folder to hadoop repo, but couldn't.
Then I tried to format nodes by hadoop namenode -format command.
Now the problem is localhost also not shows up.
What I did wrong? And how could I revert the operation.
| |
doc_29807 | As an example:
<script>window.alert("hello");</script>
I test the site using the command "Gatsby serve"
When I browse to my post via the index of the blog. The script is not executed. In the web console there are no errors.
When on the post page itself. If I do F5 or ctrl-f5 then the "hello" alert is displayed.
After ... | |
doc_29808 | <div class="list">
<div class="bar">
<header></header>
<div class="content"></div>
</div>
<div class="item">
<header></header>
<div class="content"></div> //select this
</div>
<div class="item">
<header></header>
<div class="content"></div>
</div>
</d... | |
doc_29809 | Here's my code:
@IBOutlet weak var viewAllTextViews: UIView!
@IBOutlet weak var topOfViewAllTextViews: NSLayoutConstraint!
@IBAction func growViewAllTextViews(_ sender: UIPanGestureRecognizer) {
self.topOfViewAllTextViews.constant = -220
UIView.animate(withDuration: 1.0) {
self.view.layou... | |
doc_29810 | def main(args: Array[String]) = {
functionExample(25, multiplyBy2) // Passing a function as parameter
}
def functionExample(a:Int, f:Int=>AnyVal):Unit = {
println(f(a)) // Calling that function
}
def multiplyBy2(a:Int):Int ... | |
doc_29811 | root
|-- id: long (nullable = true)
|-- raw_data: struct (nullable = true)
| |-- address_components: array (nullable = true)
| | |-- element: struct (containsNull = true)
| | | |-- long_name: string (nullable = true)
| | | |-- short_name: string (nullable = true)
| | | |-- typ... | |
doc_29812 | ||
doc_29813 |
A: As you've found, Google's geocoding service isn't for requests en masse. In fact, it's against their terms of service to use the service for bulk downloads or processing batch requests.
What you ought to look for is a service that doesn't have such low limits and allows you to submit batch requests to the API. For ... | |
doc_29814 | I am using Jasmine+Karma for the test and AngularJS 1.3, and unit test is new to me :)
This is my service, which is working fine in production btw:
'use strict';
(function () {
angular.module('myApp')
.service('myService', function ($location) {
var _customerId = $location.search().id;
/*jshint validthis... | |
doc_29815 | extracted_data = data.map{|row| ((row.some_long_number.to_f) if BigDecimal(row.some_long_number) != BigDecimal("-1500.0")) }.reverse
When I run this on Rails 3.1.x with ruby 1.9.3 it works out fine, however when I shift this over to Heroku Cedar with the same Rails version but ruby 1.9.2, I end up with the following e... | |
doc_29816 | I searched the entire file system and only find the libary files in /usr/local/lib.
https://linux.die.net/man/7/czmq
A: You have to install czmq also, it's a separate library and it is not included with libzmq: http://czmq.zeromq.org
| |
doc_29817 | I did not see a noticeable improvement in performance after rebuilding the indices. In fact, the only statement that had a substantial reduction in time was SELECTing a range of values (from 3080 ms down to 2112 ms). SELECTing a single row, the INSERT, the UPDATE, and the DELETE all had worse performance after rebuildi... | |
doc_29818 | box_id | product_id | randominfo
1 | a | ...
1 | b | ...
1 | c | ...
2 | a | ...
2 | b | ...
3 | a | ...
3 | c | ...
I want for every pair of product, the number of times they are in the same box.
Like this:
product 1 | ... | |
doc_29819 | From my many, many searches on this issue, I see that mtext won't help me because the text cannot be rotated in mtext. Then I thought I could do it with text, but the column labels get overwritten onto the heatmap itself; they "disappear" (get covered) when the words reach the edge of the heatmap layout space. So I e... | |
doc_29820 | Here is my React code:
import React, {useEffect, useState} from 'react'
import axios from 'axios'
import './tracker.css'
function Tracker() {
const [data, setData] = useState([])
useEffect(() => {
setInterval(() => {
const fetchData = async () => {
const result = await axios('https://api.coingec... | |
doc_29821 | I am using Visual Studio 2015.
A: I just adjusted my screen resolution and its all fine now.
| |
doc_29822 | Here's what I got:
<img class="prize" title="Best" src="/images/best.png" alt="Best" />
A: You might want to use figcaptions which are set to display on mobile view ports only by media query or bootstrap.
It's gonna get hard with CSS only cause img elements have no content to add to, you could try to wrap the img wit... | |
doc_29823 | I'm getting this error:
ImportError at /
No module named 'inkbook.urls'
Exception Type: ImportError
Exception Value: No module named 'inkbook.urls'
(Yes, I still have DEBUG=True, I know I'll need to change this.)
Python 3.5.1
My requirements.txt
dj-database-url==0.4.1
Django==1.10.4
gunicorn==19.6.0
whitenoise==3... | |
doc_29824 | I'm new to colab, so I'm not sure what could be going on, but it seems like the program may be somehow "self-sabotaging" and imposing a different resource limit than colab's actual limit on a Pro account. Any thoughts on that or some other possibilities and potential solutions?
Thanks in advance!
Here's the exact error... | |
doc_29825 |
A: Just right-click the solution in Solution Explorer and choose Add->New Project. As the project type, choose "Class Library".
As to how to use it, it's easy if you used a Web Application Project (File->New Project), but I don't know how to do it if you used File->New Web Site (I never use that).
If you used a Web Ap... | |
doc_29826 | Or is that totally the wrong aproach?
In the div container there is only a sting displayed but not the redered html from my productTable template.
The displayed string inside the <div class="products">:
SimpleResult(200, Map(Content-Type -> text/html; charset=utf-8))
Template:
@categories.map {cat =>
<div>some html</d... | |
doc_29827 | Error:Could not find com.google.gms:google-services:3.0.0.
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/google/gms/go... | |
doc_29828 | let follower = document.getElementById('followMouse');
const onMouseMove = (e) => {
follower.style.left = e.pageX + 'px';
follower.style.top = e.pageY + 'px';
}
document.addEventListener('mousemove', onMouseMove);
Later when I try to do a 'click' event listener, the click doesn'... | |
doc_29829 | I tried to load Facebook.php class using these following codes, but both of them returned the same error : Unable to load the requested class: Facebook
$this->load->library('facebook/facebook', $fb_config);
or
$this->load->library('Facebook/Facebook', $fb_config);
This is so frustrating, the class Facebook.php is ... | |
doc_29830 | class SurveysController < ApplicationController
respond_to :html
def survey
@program_id = params[:program_id]
@participant_id = params[:participant_id]
respond_with [@program_id, @participant_id]
end
end
When the view is displayed (survey.html.erb) the variables program_id, @participant_id are both ... | |
doc_29831 | However, it did not include anything other than the trunk. Here is the structure of the SVN repo:
root
|- branches
|- tags
|- trunk
and here is what SVN grabbed and translated into Git:
root
... list of project folders...
Everything was thrown into the master directory, no branches or tags were generated, as ... | |
doc_29832 | EDIT:
I tried maven-install-plugin in my pom.xml like this
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<file>${basedir}/z3-4.... | |
doc_29833 | How can I make them collide considering I have already declared them?
You move the pacman, but blinky moves alone. I want it to work like the pacman game.
public class PacmanScene: SKScene {
let playerSpeed: CGFloat = 40.0
var pacman: SKSpriteNode?
var playerTextures: [SKTexture] = []
var lastTouch: CGPoint? = nil
v... | |
doc_29834 | Essentially, on every hyperlink on a page that self references (some are collapsible panel extenders, others use JS to open a popup, etc.) the font changes for the hyperlink after it is clicked. This is only occurring in IE8.
Example:
(Apparently I can't post images, so here's some links to the images. You may want to ... | |
doc_29835 |
A: *
*Do you use Jenkins performance plugin? If not you should do it.
*Do you run JMeter in the Non GUI mode? If not you have to.
In this article how to run JMeter with jenkins you'll find step by step guide for Jenkins configuration for launching JMeter tests.
| |
doc_29836 |
When I drill donw into the error log I noticed the following message:
Installation of Microsoft Visual C++ Runtime failed. Exit code: 5100.
Result: Asia
As a result I decided to abort the installation CRM 2013 and tried to install Microsoft Dynamics CRM Setup. Everything appears to be going in the right direction, h... | |
doc_29837 | Declared a variable ObjShipment under the variable table and assigned it under the Result set with the following info:
Result Set: Full result set
Result Name: 0
Variable Name: User::ObjShipment
I have written a script task with the ObjShipment variable assigned to ReadOnly an am wondering how to retrieve the dat... | |
doc_29838 | Code which creates the button:
var buttonName = "One";
var $input = $('<input type="button" value=\'' + buttonName + '\' onclick=\'' + openSerial(buttonName) + '\'>');
$input.appendTo("#ports");
console.log("fn: portScan: ",$input);
When this button is created (via another page event), the function openSerial() execu... | |
doc_29839 | Error is thrown for last part of the if condition
anchorRef.current.contains(...)
const anchorRef = React.useRef(null);
const handleClose = (event: React.MouseEvent<Document, MouseEvent> | React.SyntheticEvent) => {
if (anchorRef !== null && anchorRef.current !== null && anchorRef.current.contains(event.target)... | |
doc_29840 | Here's a script on Mathworks File Exchange but it's not working on modern versions of MATLAB, and not working on axis image.
A: I find the answer myself.
Refer to this file on Mathworks file exchange.
It calls for a lot of nasty tricky calculations and transformations. Courtesy to Benoît Valley
First, get config of th... | |
doc_29841 | $this->db->query("UPDATE my_table SET member = CONCAT(member,',',$user_id) WHERE id=$id");
How I convert this query in Codeigniter style, like $this->db->update(...)
A: Try this but not tested
$this->db->where('id',$id);
$this->db->set('member', 'CONCAT(member,\',\',\''.$user_id.'\')', FALSE);
$this->db->update('my_t... | |
doc_29842 | For example: a string should contain neither the words test, nor sample:
^((?!(sample|test)).)*$
My regular expression is failing in some situations:
1. this is a test case
2. this is a testing area
In the above two examples:
*
*It has the word test so it worked fine.
*It doesn't have the word test it should be ... | |
doc_29843 | I have a class where I have a eventlog that logs for that particular instance of the class and logs to a shared eventlog and to track changes across all instances.
My issue is that I want the logs to be re sizable in their number of entries and I need to make sure that the shared log is never smaller than any of the i... | |
doc_29844 |
Notice: Trying to get property of non-object in E:\xampp\htdocs\test\merit-list.php on line 38
Fatal error: Call to a member function find() on null in E:\xampp\htdocs\test\merit-list.php on line 39
Here is my code
<?php
require('resources/inc/simple_html_dom.php');
$linksrc = 'http://58.65.... | |
doc_29845 | private async void GetCheckUserStore(string uname) {
StoreNameRepository<List<decimal?>> repo = new StoreNameRepository<List<decimal?>>();
List<decimal?> result = await repo.GetCheckUserStore(uname);
if(result!= null) {
// ArrayAdapter<string> adapter = new ArrayAdapter<string>(... | |
doc_29846 | This is **SwiftyJSON* question: I attempted to parse some JSON coming in from a push notification but I couldn't seem to get it to individual values
if let json = try? JSON(data: data) {
print("before")
print(json["data"].stringValue)
print ("after")
}
and I end up with console output of
before
{
"apiKey":{
... | |
doc_29847 |
A: It looks like a historical detail from before implementing the Monad-Applicative proposal.
I can define both the gmapM default and the instance for lists in terms of Applicative.
gmapM :: forall m a. (Data a, Applicative m) => (forall d. Data d => d -> m d) -> a -> m a
gmapM f = gfoldl k pure
where
k :: Data ... | |
doc_29848 | For example:
import {mapActions} from 'vuex';
gets changed to:
import {mapActions} from 'vuex/types';
Anyone know what is causing this or how to fix it? Seems like an odd glitch or maybe setting in the refactoring abilities of PhpStorm ???
A: It appears to have been a bug in version 2019.1.2, upgrading to 2019.1.3 ... | |
doc_29849 | Once the user has selected this hour, then it is stored in the model with some other fields.
My application is working in timezone UTC+2 (I have set config.time_zone = 'Jerusalem').
At what stage to I related to timezones when handling this time on its path from the view to the model? If I use e.g. DateTime.strptime("... | |
doc_29850 | My problem is that I do not know, how to wording the list members for internal methods of my class (it would not work neither with "self." nor with "myclass." prefix, too). Sample code below shows my problem: in functions[] list I would list that methods, what I want to connect with the indexes of the list.
Please sugg... | |
doc_29851 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
main()
{
char name[10][20]= {"DUMBO","MICKEY MOUSE","GOOFY","DONALD DUCK"};
char charName[20];
int count;
char found;
printf("Enter the name of a Disney cartoon character ");
gets(charName);
strupr (charName);
found = 'n';
... | |
doc_29852 | I just finished my implementation on Mac with g++ / clang
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
T... | |
doc_29853 | Any Suggestions or reference link for setting SonarQube for VS2010. I am following C# Plugin .
A: The document you referenced actually mentions that the support of Visual Studio 2010 has not yet been tested (hence the question mark in its support status). I believe it will work, as the support of MSBuild 4.0 has been ... | |
doc_29854 | extension HomeViewController: UISearchResultsUpdating {
func updateSearchResults(for searchController: UISearchController) {
let searchBar = searchController.searchBar
let scope = titles[searchBar.selectedScopeButtonIndex]
filterContentForSearchText(searchText: searchController.searchBar.text!, scope: scope... | |
doc_29855 |
*
*jQuery 3.0.0.1
*Bootstrap 3.3.6.1
*Bootbox 4.4.0
My HTML:
A+ Certification, Grad. 2011 Comptia
<a id="e1658b80-0c48-e611-8277-14feb5fbeae8" class="glyphicon glyphicon-remove" title="Delete this entry" href="/[controller]/[action]/e1658b80-0c48-e611-8277-14feb5fbeae8"> </a>
My JavaScript, embedded in the pag... | |
doc_29856 | Cat in rasterizer
I've tested to mix up the colors a bit and the mesh is whole, no empty areas on it, but I think it's something with the texture, can somebody hint or tell me how to get a clear and complete texture cover?
void Rasterizer::scanline(const Scanline &scan)
{
int diffX = scan.xEnd - scan.xBegin;
... | |
doc_29857 | I read for 2 hours the Twitter Developer Doc and still don't understand how should I implement this...
I don't want my users to connect or authenticate via Twitter. I read about the option to use "Application-only authentication" - I have opened an application under my account and have an API key and secret.
Please giv... | |
doc_29858 |
Is there a way to preinstall this file to avoid using Internet in build ?
| |
doc_29859 | I don't know how to do that. If someone can help me on this that would be great.
Thanks in advance.
A: The first step would be to figure out how to do it manually from your commandline. When you know how to do that, you should start looking into the scripting of it. Start with a tutorial and post code if you get stuck... | |
doc_29860 | I've tried many of the methods online, although none seem to work.
For example I tried this: (Although it doesnt seem to work. Just prints out on the page "Location: {url....}"
#!/usr/bin/perl
use CGI;
$q = CGI->new;
print $q->header("text/html");
$url = $q->param('url');
print "Location: $url\n\n";
Any help would... | |
doc_29861 | The external app was developed using angularJs
In my test i tried doing
browser().navigateTo('<test app which is not on localhost>');
I cannot verify the url in my test. I get this error :
$location.url()
TypeError: Object [object Object] has no method 'injector'
at Object.<anonymous> (<localhost path>/angular-... | |
doc_29862 | We've come across this old blog post, which suggests:
*
*Create a materialized view to select data that violates the desired constraint. The MV must be defined with REFRESH COMPLETE ON COMMIT so that it is updated before the end of the transaction.
*Create a check constraint on the materialized view that always ev... | |
doc_29863 | I want the title, description, year, genre, and rating to be links when opening.
Here is my xml code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="action.xsl"?>
<!--Lists all horror DVDs-->
<DVDList>
<horrormovie>
<DVDtitle>Title 1</DVDtitle>
<Description>Description 1 </Descripti... | |
doc_29864 | Right now, I am considering there will be errors/warnings to solve. Based on any of your past experience would like to know what kind of errors I might land up with? Also to note, I am changing from VS2012 to VS2015.
| |
doc_29865 | This is what I did in case of email:
function sendMail() {
SpreadsheetApp.getActiveSpreadsheet().getSheetByName("CRM").activate()
var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var lr = ss.getLastRow();
var quotaLeft = MailApp.getRemainingDailyQuota();
// Logger.log(quotaLeft)
i... | |
doc_29866 |
*
*How to create that alias rs="rails server"?
*where to config that?
*Is it works for window?
*Is need any specific ruby or rails version?
A: It's about shell and not about rails. You can create alias to all commands you want. Those aliases are created on your profile like ~/.bash_profile or ~/.zshrc for ex... | |
doc_29867 | A good example of what I'm looking for would be something from the world of Dojo Toolkit, where: registry.byId('my-element-id') will return an associated widget by its ID (see: http://dojotoolkit.org/reference-guide/1.9/dijit/registry.html).
Is there anything comparable in Backbone?
A: No. Unless you keep track of it ... | |
doc_29868 | I added #portfolioModal1 at the end of the url but it doesnt work..
A: You will have to use a script for this, like in this link
Use this:
<script>
if(window.location.hash) {
var hash = window.location.hash;
$(hash).modal('toggle');
}
$('.portfolio-link').click(function(){
window.location.hash = ... | |
doc_29869 | Is this possible with 1 regular expression, or would I need 2 (one for item and one for description)?
I can't work out how to "group" it - like the item number can be this and the description can be this, without it thinking that everything is the item number. Eg:
(\w(\w|-|/)*\w)-.*
matches everything as 1 match.
This... | |
doc_29870 | PHP code spitting out the view:
<?php
//Waitlist for Nobel Floorplans
$sth = $db->prepare("SELECT id, first_name, last_name FROM wlist");
$sth->execute();
$results = $sth->fetchAll();
$wishlistArray[] = null;
foreach ($results as $r... | |
doc_29871 | in my pom.xml I flagged this one
<sonarLintSupported>true</sonarLintSupported>
Also I'm informed that sonarlint doesn't support 3rd party plugins, but I don't use any of them. Maybe there is some exceptions for intellij? cause for eclipse those rules appear.
My sonarqube version is 7.7.0.23042
and sonarlint Version f... | |
doc_29872 | I haven't yet been able to get this to work with OS X clipboard, pbcopy and pbpaste. I'd really like to be able to yank from visual mode, or from normal mode with yy and paste the contents into an email or a google search.
How do I do this?
| |
doc_29873 | VS shows this line in the output:
Unhandled exception at 0x12345678 (ucrtbase.dll) in myapp.exe.1234.dmp: Fatal program exit requested.
and the last entry in the call stack points to:
__scrt_unhandled_exception_filter
When I open the same dump with WinDbg and I enter the command kd i get the call stack and some entri... | |
doc_29874 | facing Error like error tls- failed to find any PEM data in certificate input
Kinds regard and thank you for your patience.
| |
doc_29875 | Now I have some data db.ListProperty(db.Keys) and the export fails. In export_transform I tried, see ??? in bulkloader_config.yaml below:
*
*transform.key_id_or_name_as_string
*transform.create_deep_key(('Coupon', db.Key))
*join_list(",")
*and many other from http://googleappengine.googlecode.com/svn/trunk/python... | |
doc_29876 | Server.py
import base64
import cv2
import zmq
import time
import numpy as np
context = zmq.Context()
footage_socket = context.socket(zmq.SUB)
footage_socket.bind('tcp://0.0.0.0:5555')
footage_socket.setsockopt_string(zmq.SUBSCRIBE, np.unicode(''))
videoFile = 'SAMPLE.mp4'
camera = cv2.VideoCapture(videoFile) # init t... | |
doc_29877 | $res=mysqli_fetch_array($value);
header("location:home.php?result=$res");
This is not working! The url seems to be home.php?result=Array. How can I pass the array $res without using session?
A: You should first generate URL-encoded query string using http_build_query:
$res=mysqli_fetch_array($value);
$res = http_buil... | |
doc_29878 | let myExpense = [
{ name: "", date: "", amount: "" }
]
I actually can make this work with a predefined array, but I don't know how to add new items to it.
const nameEl = document.getElementById("name-el")
const dateEl = document.getElementById("date-el")
... | |
doc_29879 | I tried this but somehow the function never hits "length (j:k) == 0 = intersect t (j:k)"
intersect _ [] = []
intersect (h:t) (j:k)
|length (j:k) == 0 = intersect t (j:k)
|h==j = h : intersect t k
|otherwise = intersect (h:t) k
What I'm trying to do is like "[1,2,3] [7,2,0] ======> [2]"
A: length (j:k) is at least... | |
doc_29880 | $postTime = $user_array['last_online'];
if ($postTime == ""){
$minutes = 11;
} else {
$now = time();
$seconds = $now - $postTime; // $seconds now contains seconds since post time
$minutes = ceil($seconds / 60); // minutes since post time
//$hours = ceil($minutes / 60); //hours
}
if ($minutes > 1... | |
doc_29881 | Idea to resolve : We are thinking of using multiple docker windows containers created from indivdual windows server VM's as VSTS build agents.Therefore we want these containers to be part of VSTS Build Agent pool .
Can we create multiple windows containers which can be used as VSTS build agents from individual Windows ... | |
doc_29882 |
This would mean that the string would be clipped when it hit iconSize + iconMargin.
This is the code I have in onDraw, which does that exactly:
canvas.save()
canvas.clipRect((itemIconSize + itemIconMargin).toInt(), 0, 0, 0)
canvas.drawText(
item.title,
item.rect.centerX() - (itemIconSize / 2 + itemIconMarg... | |
doc_29883 | 1) Load existing pdf on UIView say mainView.
2) Add a signature image on mainView.
3) Call a following function
-(NSMutableData *)getPDFDatafromUIView
{
DebugLog(@"");
// Creates a mutable data object for updating with binary data, like a byte array
NSMutableData *pdfData = [NSMutableData data];
// Points the pdf conv... | |
doc_29884 | https://www.bitcraze.io/2015/06/sniffing-crazyflies-radio-with-hackrf-blue/#comment-38046
..and managed to manually demodulate a package (the address and the message I sent 'martijn' are clearly recoverable):
https://drive.google.com/open?id=0B9CJ42CGPiF2TWoyelRmWldZcU0
However, now I want to receive packets and decode... | |
doc_29885 | but when I download it from its site, I get only source files not executable file.
I'd want to use it . Anyone can explain me how ?
Thanks
A: It seems that you downloaded the source archive. But when you need a binary package, like the version from gnuwin32 (warning: this version is very outdated), which contains bi... | |
doc_29886 | ||
doc_29887 | I pieced my code from various videos on youtube.But I get errors with most of the "newUser.* = *" part of the code. the only ones that do not error out are the items that already exist in the user class. I added columns but still no go.
@IBAction func registerTapped(sender: AnyObject) {
var firstname = self.firstN... | |
doc_29888 | For Example, on arrival i want a fadeIn effect. So i do this:
img.classList.add("wow");
img.classList.add("fadeIn");
I again want to add a heartbeat effect on the same image after some time. So i tried something like this:
setTimeout(function () {
img.classList.remove("fadeIn");
img.classList.add("heartBeat");... | |
doc_29889 | My algorithm seems to work fine in most cases, but on values higher than the highest value in the array, I get an ArrayIndexOutOfBoundsException. Looking at my algorithm and the textbook example, they seem identical; can someone help me find where I've gone wrong?
I'm aware this is mostly the same issue as in this thre... | |
doc_29890 | The example shown below is produced by reading a dataframe produced by the device.
import pandas as pd
import matplotlib.pyplot as plt
#Find DataFrame
df = pd.read_table("raw_data.csv", sep =";", skiprows = 11, decimal = ",")
# Plot figures
plt.figure()
plt.plot(df["Time(s)"], df["Mass(g)"], label = "Raw Data")
plt.a... | |
doc_29891 | docker run --rm -v /var/run/nscd/socket:/var/run/nscd/socket ubuntu hostname -i
hostname: Name or service not known
However, under alpine, it does work:
docker run --rm -v /var/run/nscd/socket:/var/run/nscd/socket alpine hostname -i
172.18.85.4
Does anyone know why this breaksgethostbyname and how to fix it?
Update: ... | |
doc_29892 | <Application.Resources>
<Style TargetType="TextBox" x:Key="tbkey">
<EventSetter Event="GotFocus" Handler="textBoxFocus"/>
</Style>
</Application.Resources>
and the following code in the App.xaml.cs file:
private void textBoxFocus(object sender, RoutedEventArgs a)
{
TextBox t = sender as Tex... | |
doc_29893 | <ul>
<a href=""> PARENT1 </a>
<li><a href=""> CHILD 1-1</a></li>
<li><a href=""> CHILD 1-2</a></li>
.
.
.
</ul>
<ul>
<a href=""> PARENT2 </a>
<li><a href=""> CHILD 2-1</a></li>
<li><a href=""> CHILD 2-2</a></li>
.
.
.
</ul>
i want something that creates categories ... | |
doc_29894 | var activeMovie = Titanium.Media.createVideoPlayer({
backgroundColor:'#000',
fullscreen:true
});
var dialog = Titanium.UI.createActivityIndicator();
dialog.message = 'Loading...';
win.add(dialog);
dialog.show();
activeMovie.setUrl(url);
activeMovie.mediaControlStyle=Titanium.Me... | |
doc_29895 | var x = 23;
var y = 34;
var z = 28;
var div = document.getElementById("coordinates");
div.innerHTML += "<ul>";
for (var i = 1; i <= x; i++) {
for (var j = 1; j <= y; j++) {
for (var k = 1; k <= z; k++) {
div.innerHTML += "<li>X: " + i + " Y: " + j + " Z: " + k + "</li>";
}
}
}
di... | |
doc_29896 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>ToDo</title>
</head>
<body>
<h1>To Do List</h1>
<label>Enter What You Have To Do:</label>
<br>
<br>
<input type="text" id="... | |
doc_29897 | Most online material and books get you to setup Apache Tomcat to run the Solr service for version 4. Whereas version 5 tells you to use it using its built-in service.
My web applications are built on the LAMP stack and I would like in the future to use Solr in production and I am wondering what version/configuration is... | |
doc_29898 | Dim pro As String
Dim connstring As String
Dim command As String
Dim myconnection As OleDbConnection = New OleDbConnection
pro = "Provider =Microsoft.ACE.OLEDB.12.0; data source= C:\Users\Hamza\Documents\POS system1.accdb"
connstring = pro
myconnection.ConnectionString =... | |
doc_29899 | Below the navbar I have a form and I would like to submit it using the 'Save' button which is outside the form.
I can easily submit the form using javascript but it's not posted. Even if the form's method is 'POST' in the html, document.forms[0].method returns 'GET'.
If I change the form's method to 'POST' using javas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.