id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23498300 | CFTypeRef sourceTypeEx; CFArrayRef sources = ABAddressBookCopyArrayOfAllSources(addressBook); CFIndex sourceCount = CFArrayGetCount(sources);
for (CFIndex i = 0 ; i < sourceCount; i++){
ABRecordRef currentSource = CFArrayGetValueAtIndex(sources, i);
sourceTypeEx = ABRecordCopyValue(currentSource, kABSourceTy... | |
doc_23498301 | Is it possible in any way? (API, libraries that we could run on our servers, other ideas?)
Thank you!
A: This one might be worth a look: http://saaspose.com/
From their front page:
Saaspose is a cloud-based document generation, conversion and automation platform for developers.
From the description of their Words AP... | |
doc_23498302 |
A: Check out the examples in the Boost Regex library. If you edit your question to give a better idea of what exactly you are looking for in your robots.txt file, someone can help you with the Regex syntax.
For example, if you are trying to find the names of all User-agents in the file, you could use an expression li... | |
doc_23498303 | def peek(word_list):
if word_list: # this gives me trouble
word = word_list[0]
return word[0]
else:
return None
The condition of the if statement is giving me trouble, as commented. I'm not sure what this means as word_list is an object, not a conditional statement. How can word_list, j... | |
doc_23498304 | We want to consume it in our .net application developed in .net framework 3.5.
We have tried to bypass the SSL Validation like below
ServicePointManager.ServerCertificateValidationCallback = delegate(object obj, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return true; };
But service is hitt... | |
doc_23498305 | @Entity
public class VirtualTable implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name = "ROW")
private Integer row;
@Column(name = "ABC")
private String abc= null
@Column(name = "XYZ")
private String xyz= null
Below is my Code to get the resultset
I have set the en... | |
doc_23498306 | I have a folder with images:
001.png, 002.png ....etc.
what I have tried.
$allImages = 'folder/001.png folder/002.png folder/003.png';
//and
$allImages = 'folder/001.png,folder/002.png,folder/003.png';
//and
$allImages = '-adjoin folder/001.png -adjoin folder/002.png -adjoin folder/003.png';
then:
exec(convert $allIma... | |
doc_23498307 | PS C:\users\admin\appdata\local\programs\python\python39\lib\site-packages
to
PS C:\users\admin\appdata\local\programs\python\python310\lib\site-packages
This python version is used:
python_version
I tried the following things:
*
*set the environment variable path python310 to the top
*delete the enviroment variab... | |
doc_23498308 | For now it is like this:
To use this service, I pass in some input streams as parameters and I get back an output stream.
One of those input streams streams will emit an event if the chart should load new data, another input stream will emit an event if the selected time range changes and so on. The response stream emi... | |
doc_23498309 | install.packages("forecast")
Getting a slew of errors I don't understand. First it downloads all dependency packages from http://cloud.r-project.org. First error I get is this:
* installing *source* package ‘quadprog’ ...
** package ‘quadprog’ successfully unpacked and MD5 sums checked
** libs
gfortran -arch x86_64 ... | |
doc_23498310 | s = solr.SolrConnection('http://localhost:8080/solr/bt')
rows = 20
results = s.query(q, rows=rows)
How to do pagination query?
A: You can control pagination using the two parameters start and rows.
Example start=0&rows=20 would give the first 20 results and start=20&rows=20 would give the next 20 set of results.
Upda... | |
doc_23498311 | I'm storing the post information into a posts collection and the feed information into a feeds collection, but I need to store the post._id within an array in the feeds collection called feeds._post.
The problem I'm having is using the stream interface, the feedparser.on('end') is called before all of the feedparser.on... | |
doc_23498312 | public void deleteRoom() {
// TODO Auto-generated method stub
try {
PreparedStatement preparedStatement = this.databaseMySQL.getConnection().
prepareStatement("DELETE OS_ROOMS, OS_ROOM_MESSAGES FROM OS_ROOMS INNER JOIN OS_ROOM_MESSAGES WHERE OS_ROOMS.ROS_ID = OS_ROOM_MESS... | |
doc_23498313 | SELECT ii.item_desc,
II.ITEM_CODE,
ii.uom,
TO_CHAR (ISL.TRAN_DATE, 'Mon-rr') month,
TO_CHAR (ISL.TRAN_DATE, 'rr-mm') mon,
MONTHS_BETWEEN
(TO_DATE(:edate),
TO_DATE(:sdate) ) Months,
ABS (SUM (isl.qty)) qty
FROM inv_stock_ledger isl, inv_items ii
W... | |
doc_23498314 | =ConcatenateRange(sheet1:sheet2!B1,",")
but it doesn't seem to work. What comes back from sheet1:sheet2!B1? Is it a range, or something else?
A: That is because the UDF is designed to accept a single Range as input (which may consist of multiple cells). A Range is limited to cells on a single sheet. You need to mod... | |
doc_23498315 | It seems like caller's output is different, when I call it inside a trap method which is used from a nested call.
debug.sh:
d() {
if [[ "${BASH_COMMAND}" == echo* ]] ; then
echo ">> $(caller 0) | $(caller 1) | ${BASH_COMMAND} <<"
fi
}
shopt -s extdebug
set -o functrace
trap d DEBUG
test.sh:
echo foo
f... | |
doc_23498316 | function computeDistance(loA, laA, loB, laB) {
var dist = 0;
printErr("++++Parameters inside computeDistance: loA, laA, loB, laB");
printErr("++++Parameters inside computeDistance:", loA, laA, loB, laB);
var x = (loB - loA) * Math.cos( (laA + laB) / 2 );
printErr("++++Inside computeDistance, x=",x)... | |
doc_23498317 | So I need to find .currentPlayer's index within the player array.
HTML (very simplified):
<ul>
<li>
<article>
<div class="player"></div>
</article>
</li>
<li>
<article>
<div class="player currentPlayer"></div>
</article>
</li>
<li>
<a... | |
doc_23498318 | http://fancyapps.com/fancybox/
Rather than displaying my youtube video in a pop-out window on my website as it's supposed to, it just takes me direct to YouTube instead.
Can anyone help?
JavaScript/Fancybox:
<script type="text/javascript" src="Fancybox/source/jquery.fancybox.pack.js"></script>
<script type="text/j... | |
doc_23498319 | dbConfig.js
const mysql = require('mysql2/promise');
const pool = mysql.createPool({
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: process.env.DB_DATABASE,
connectionLimit: 10,
});
module.exports = pool;
ProductModel.js
const conn = require('../con... | |
doc_23498320 | Here are my UART logging functions.
// Max number of characters user in the UART log, when in use.
#define GSM_MAX_UART_LOG_CHARS (2048)
static char m_gsm_uart_log[GSM_MAX_UART_LOG_CHARS] = "";
static uint16_t m_gsm_uart_log_index = 0;
// Write a character to the in-memory log of all UART messages.
static void gsm_ua... | |
doc_23498321 | implementation 'io.micronaut.views:micronaut-views-core:3.1.2'
implementation 'io.micronaut.views:micronaut-views-thymeleaf:3.1.2'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.0.0'
The problematic code is this:
<html layout:decorate="~{/layout-top}">
This seems to work fine when running with ./g... | |
doc_23498322 | df = pd.DataFrame(data = [['Bob', 8], ['Sally', 7], ['Sally', 10]], columns = ['name', 'score'])
print(df)
name score
0 Bob 8
1 Sally 7
2 Sally 10
Next, np.in1d works as advertised.
namelist = [['Sally', 'Betty', 'Harry']]
sally_np = df[np.in1d(df['name'], namelist)]
print(sally_np)
name ... | |
doc_23498323 | I have two main problems:
1-when I rotate the building, some walls are vanished in some views and are appeared again in the other views. There are some walls in the red circles, but they are not rendered in this view {Image (1)}. In the other view, they are represented. .
2-When I have two close surfaces (like walls a... | |
doc_23498324 | Anyone got an idea how to fix this?
EDIT:
I used the tools Dave Cluderay suggested, with interesting results:
Here is the output from DiskId32, on Windows XP SP2 32-bit:
To get all details use "diskid32 /d"
Trying to read the drive IDs using physical access with admin rights
Drive 0 - Primary Controller - - Master dri... | |
doc_23498325 | How do I ensure I don't change the HTML but just change the content (in PHP).
For example, if I had this:
<div class='Hello'>Hello</div>
and I wanted to replace all the 'Hello' words in the content with 'Hi' I would want to get this result:
<div class='Hello'>Hi</div>
At the moment I am using preg_replace, e.g.
$new... | |
doc_23498326 | I'm using the answer given here: Writing values to the registry with C#
However for some reason the key isn't added to the registry.
I'm using the following code:
string Timestamp = DateTime.Now.ToString("dd-MM-yyyy");
string key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\"+Application.ProductName+"\\"+Application.ProductVersio... | |
doc_23498327 | <div>
<span>line 1<br/>line 2<br/>line 3</span>
</div>
I want to retain the self closing tag as it is but want to avoid using regEx. Can anyone help me with some other approach to achieve this?
A: innerHTML converts it to <br> because it should be <br> in html. If you want to use it as <br /> in XHTML, you could repl... | |
doc_23498328 | This occurs when I execute several calls in concurrently then keep the HttpClient active by sending a get request every 10s.
Once i stop activity for 2 minutes then the connections close.
Upgrading to .net5.0+ solves this issue, but unfortunately I'm stuck on net472 for now so thats not an option ;(
Any guidance will b... | |
doc_23498329 |
A: That column was added as Foreign Key to your association but you probably already have foreign key as part of the entity - PostID. You will need to map PostID as FK for the new association.
| |
doc_23498330 | I already have the system able to have a semi message system/private message and I'm wondering how do I integrate that all together so that if a person gets a message, the system can automatically email that user. I been looking around to how to set it up but no luck for myself.
Thank you.
Edit: Before I start tryin... | |
doc_23498331 | (global-set-key '[f11] 'menu-bar-mode)
How can I bind it to left ALT / Meta and will there be conflicts of using alt as meta?
A: You can't bind a function to a modifier key, because Emacs does not receive any input when a modifier key is pressed on its own (or more accurately, when one or more modifier keys are press... | |
doc_23498332 | An alternative would be to use "insert records" content elements. But the drawback is, that new content in the global sys-folder would not be referenced. You would have to link those new contents in every "insert records" element that references the sys-folder with the new content.
So I need a way to define exceptions ... | |
doc_23498333 | def report_maker(report_id):
# other code ....
if dfm['report'][r]==0:
db.session.add(report_a)
# the above works just fine.
else:
report_b= db.session.query(Standard).filter(Standard.report_id==report_id, Standard.code == dfm['code'][r])
report_b.code=dfm['code'][r]
re... | |
doc_23498334 | I used Api caller Header fields like HOST, REFERER and ORIGIN to detect the client domain name which called Api to provide proper data, don't want to post/get domain as the parameter from client, just want to other domains call my api and I provide data based on the domain name, I implemented like:
Request.Head... | |
doc_23498335 | [_msgLayer removeAllAnimations];
[UIView animateWithDuration:10 delay:0 options:0 animations:^ {
_msgLayer.hidden = false;
NSLog(@"showing");
} completion:^(BOOL finished) {
NSLog(@"showing done, finished=%d", finished);
[UIView animateWithDuration:10 delay:40 options:0 animations:^ {
_msgLayer... | |
doc_23498336 |
A: You either start your python interpreter using your scripts name as argument:
$ python script.py
Or you begin your script with
#!/bin/python3
make it executable by:
$ chmod u+x script.py
and start it directly from the shell
$ ./script.py
Or you could start your python interpreter and load your script interacti... | |
doc_23498337 | $.jgrid = $.jgrid || {};
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
$(function () {
"use strict";
var $grid = $("#list"),
maximizeGrid = function () {
var newWidth = $grid.closest(".ui-jqgrid").parent().width();
$grid.jqGrid("setGridWidth", newWidth, true);
}... | |
doc_23498338 | I understand that BPM has a different purpose, which is to Model some business processes and the implementation of those business processes can be done by any simple Java/J2EE application, complex SOA application, or some application saying that I provide BPM. Is that right?
A: I've created these slides some time ago ... | |
doc_23498339 | I have a website that runs on a LAMP architecture.
Basically, all HTML pages are pre-processed into one central php script. The output is only flushed at the very end of this script.
<?php
// PHP builds the HTML response as a string
$controller = new MasterController();
$html = $controller->render();
// Send headers
h... | |
doc_23498340 | Using Developer> ChainState, I can query the storage on ("Balances" "TotalIssuance"), but there seems to be no content in ("Balances", "Account", alice_account_id)
I'm using substrate branch = "polkadot-v0.9.24"
Alternative, I can get the "Balance", "TotalIssuance" using polkadot.js.org/apps connected locally via brows... | |
doc_23498341 | Code:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
ofstream myfile;
int num;
int main(){
cout << "Please Enter a number " << endl;
cin >> num;
while (num > 3001){
cout << "Your input integer should be less than 3001. Try again, or -1 to exit" << ... | |
doc_23498342 | ||
doc_23498343 | Thanks,
Ray.
A: Currently, this is not possible to control from within the IDE, see http://social.msdn.microsoft.com/Forums/en/vststest/thread/4ff650e1-a99a-4bd4-8311-6007f2a6e16e.
However, if you can use MSTEST.EXE from the commandline, it will use the current folder to generate the TestResults folder in.
Update:
Fou... | |
doc_23498344 | I have worked out displaying the sprites to the screen and can move the player sprite but can get pushing part to work.
This is my movement method:
public void move(Direction d){
char objectType;
Objects o;
Point p = convertPhysicalToGrid(WKSprite.getLocation());
Point q = getLocation(p, d);
obje... | |
doc_23498345 | ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-7],oldStockAge!C[-7]:C[1],8,0)"
Range("J5").Select
Application.CutCopyMode = False
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-8],oldStockAge!C[-8]:C,9,0)"
Range("D5:J5").Select
Selection.AutoFill Destination:=Range("D5:J399")
... | |
doc_23498346 | Specifically, 'The entity type AnomalyQuery is not part of the model for the current context.'
This error occurs at
using (PHSRP_DashboardDBEntities _DBC = new PHSRP_DashboardDBEntities())
{
//to be replaced by proper table -- anomaly query
var ListAnomalies = _DBC.AnomalyQueries
... | |
doc_23498347 | Sub Filter_and_PasteSpecial()
With Application
.Calculation = xlManual: .ScreenUpdating = False: .DisplayStatusBar = False: .DisplayAlerts = False: .EnableEvents = False
End With
Dim ws As Worksheet, sh As Worksheet
Dim r As Range
Dim lr As Long
Dim StartTime As Double
Dim SecondsElapsed As Double
StartTime = Ti... | |
doc_23498348 | Why the value attribute of #edit does not change in the console?
Am I missing something?
<div class="editor">
<form>
<input id="edit" value="" type="text">
<input id="key" value="" type="hidden">
<input value="Save" type="submit">
</form>
</div>
<ul>
<li> <span class="cursor" id="__... | |
doc_23498349 | 1>main.obj : error LNK2019: unresolved external symbol "public: __cdecl Grid<class Grid<class PointData *> *>::Grid<class Grid<class PointData *> *>(struct glm::tvec3<float,0>,int,float)" (??0?$Grid@PEAV?$Grid@PEAVPointData@@@@@@QEAA@U?$tvec3@M$0A@@glm@@HM@Z) referenced in function "void __cdecl `dynamic initializer fo... | |
doc_23498350 | function cart(){
if(isset($_POST['cart'])){
require('inc/connect.php');
$ip = getIp();
$product_id = filter_var($_POST['productId'],FILTER_VALIDATE_INT);
$quatity = filter_var($_POST['quantity'],FILTER_VALIDATE_INT);
... | |
doc_23498351 | select *
from PhoneData
where names = 'yohan'
and nickName = 'yoises'
and mobileNumber1 = 0000000000 or mobileNumber2 = 0000000000
In here, there is a problem. That is this return all the results where the phone number is same. There are 2 rows with the same phone number, so it returns both, by ignoring t... | |
doc_23498352 |
A: Given that robotmedia's library you link to hasn't been updated for 7 months (At time of writing), and specifically states it only supports V1 and V2 of GooglePlay In-App Purchase, I would suggest the Google implementation which currently runs on V3, simply because of the more apparent update cycle.
V3 improves the... | |
doc_23498353 |
*
*asp.net core api (api1)
*asp.net core api (api2)
What i need to do
*
*i need to have these two containers in docker be able to communicate to each other over https in my local.
here's what i've done so far.
*
*generate certificate using "dotnet dev-certs https -ep {location of cert} -p {password}"
*ex... | |
doc_23498354 | It is important for me, because I am going to have a history table with trigger that triggs when insertion and update. so if for example update is happening on each field, and 3 fields are updated, then I will have 3 records in history table or one?
I will be appreciated if anyone answers me and also leave some referen... | |
doc_23498355 | set(BUILD_SHARED_LIBS OFF)
The archives are created but the problem is some of the tests (in gtest_build_tests) are failing.
The following tests FAILED:
22 - gtest-filepath_test (SEGFAULT)
51 - gtest_filter_unittest (Failed)
54 - gtest_output_test (Failed)
58 - gtest_xml_outfiles_test (Failed)
59 - gtest_xml_out... | |
doc_23498356 | Here is the html code:
<div class="ui_column is-9">
<span class="name1></span>
<span class="...">...</span>
...
<div class ="ui_column is-9">
<span class="name2></span>
<span class="...">...</span>
...
<div class ..
URL of the page for the complete code.
I'm achieving this task with this code for the... | |
doc_23498357 | I have set up ElasticSearch (Kibana) with amazon SES to store sent emails (followed these steps Amazon SES Steps) but this just store the emails sent details and not the actual email itself. For example, the data stored in Kibana is
{
"_index": "SES",
"_type": "_doc",
"_id": "4962123782858127318231234860998905801... | |
doc_23498358 | There is a script in the block, which contains the following passage:
sales_order_grid_massactionJsObject.setItems
I've been trying to find it in the archives of magento, can no success, could someone help me?
A: it should be different when use different version of Magento.
In Magento v1.9 (CE), it's sales_order_grid... | |
doc_23498359 | VIEW:
@using (Html.BeginForm("ProcessTech", "Home", FormMethod.Post))
{
@Html.TextBoxFor(m => m.techNo, new { @class = "form-control maintain-text", placeholder = "Technician No..." })
<span class="input-group-btn">
<button type="submit" id="search" name="SubmitButton" value="search" class="btn btn-def... | |
doc_23498360 | Here is the function:
var landscape = function () {
var result = "";
var flat = function (size) {
for (var count = 0; count < size; count++)
result += "_";
};
var mountain = function (size) {
result += "/";
for (var count = 0; count < size; count++)
resul... | |
doc_23498361 |
A: Assuming Capybara::RSpecMatchers has been included correctly there is no real difference in the two methods you're asking about, they both boil down to running current_scope_element.assert_no_text(...)
| |
doc_23498362 | I need to recalculate the values based on the wp_comment table's comment_author_email.
This query gets me a table with the comment ID and the new URL
SELECT
comment_id,
CONCAT("https://www.gravatar.com/avatar/", MD5(comment_author_email)) AS url
FROM `wp_comments`
WHERE comment_id IN
(SELECT
... | |
doc_23498363 | This padding grows with the RecyclerView, I mean:
If in the RecyclerView there are 0 to 2 elements, this fit perfect on the screen, and there are no scroll. Here works well.
If in the RecyclerView there are 3 to 5 elements, these elements continue to fit on the screen BUT in this case there are more blank space that ca... | |
doc_23498364 | The upload method uses the stream from the HttpContent (we're using WebAPI2) and sends it right on into the Forge API methods.
Well, it would, but I get this exception - Error getting value from 'WriteTimeout' on 'System.Net.Http.StreamContent+ReadOnlyStream'.
This means that the Forge API is checking the Write Timeout... | |
doc_23498365 | I am using postman and cURL to test these API endpoints.
When I don't select/check "Allowed Custom Scopes" the API tests work with id_token.
But when I select "Allowed Custom Scopes" and use access token I get "Unauthorized" error. (I use this scope in API gateway OAuth Scopes and I re-deployed the API before testing).... | |
doc_23498366 | TextView tv2 = new TextView(this,(String)book.get(i),this);
tv2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(Contact.this,Discution.class);
//String str = this.getText(); //like this
startActivity(intent);
}
});
How can I do : this... | |
doc_23498367 | But on moving to Abstract Factory Pattern, I couldn't find its use. I know i miss something with this, but no idea where.
In Abstract Factory Pattern we will have a an Abstract Factory, and Concrete Factories wil return the instance. Suppose we are dealing with creation of Cars. We will have an Abstract Factory like
p... | |
doc_23498368 | I generated the setter method automatically by using Windev;
PROCÉDURE PUBLIQUE p_NuméroBDD(nValeur est un entier)
:m_NuméroBDD=nValeur
When I want to use the setter:
:m_pclHoraires.p_NuméroBDD(:m_nNuméroBDD)
It says, unknown procedure
A: Did you try this ?
:m_pclHoraires.p_NuméroBDD = nNuméroBDD
A: Properties in W... | |
doc_23498369 | <?php
$acp_array = array(
'apple' => 'red',
'grass' => 'green',
'sky' => 'blue'
);
print_r($acp_array);
echo '<br />';
$acp_array['sky'] = 'purple';
print_r($acp_array);
?>
Also, how would I make the array variable change (in my example the change from blue to purple for the sky variable) permanent? Or i... | |
doc_23498370 | var_1 = 0
var_2 = 0
def relay_btn(relay_number):
var_n = 'var_' + str(relay_number)
global var_n
vars()[var_n] = 0 + relay_number
relay_btn(1)
relay_btn(2)
print(var_1)
print(var_2)
As a result, I'd like to see 1 and 2, respectively, not 0.
A: When you call vars() inside the function relay_btn you are ... | |
doc_23498371 | First working scenario then what I try to achive
object Test1 {
sealed trait Response
final case class StateResponse(state : Any) extend Response
}
abstract class Test1[STATE] {
def something() : Unit = {
...
}
}
Now if use this in the following
import Test1._
result match {
case StateResp... | |
doc_23498372 | std::vector<std::vector<CellState*> > State;
The Cellstate type is a struct:
struct CellState
{
bool state;
int x;
int y;
};
Using a method of the same class, I want to read/write elements of this structure. All ways I can think of writing it fail. I have many good books on C++ and STL, but can't seem to find the in... | |
doc_23498373 | Route::post('/register', 'AuthController@register');
I got "Target class [AuthController] does not exist." error. I made it work by registering with:
use App\Http\Controllers\AuthController;
Route::post('/register', [AuthController::class, 'register']);
Confused, i gave a look at the docs and didn't find any refe... | |
doc_23498374 | I have a DataFrame and I need to add a 'new column' with the order number of each value.
I was able to do that, but I wonder:
1- is there a more correct/elegant way to do this?
Also, is it possible:
2- to give equivalent numbers in the same order? For example in my case second and third rows have the same value, and is... | |
doc_23498375 | from django.conf import settings
settings.configure()
settings_list = dir(settings)
for i in settings_list:
settings_name = i
print settings_name
In this way I get names of all settings. However after each settings_name I want to print its value. Tried many ways. Looks like those settings are actually empty.... | |
doc_23498376 | #define CALL(ar1, ar2, ar3)
do something
#endif
in C code
CALL(0);
CALL(0,1);
CALL(0,1,2)
all invoke the above CALL macro. If ar2, ar3 not used, preprocessor just ignore the line with ar2 or ar3.
A: Yes, take a look at this one: http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
Key word is __VA_ARGS__ ( Variad... | |
doc_23498377 | If I query like this:
https://api.foursquare.com/v2/venues/search?ll=37.77%2C-122.41&radius=15000&intent=browse&oauth_token=xxx&limit=20&query=pi%20ba
I get a list of about 15 items, including the item I'm searching for (pi bar). However, if I search for the exact match name:
https://api.foursquare.com/v2/venues/searc... | |
doc_23498378 | int x = 10;
-x;
cout << -x << endl; // printf("%d\n", -x);
both in C and C++ compilers (gcc 4.1.2). I was expecting a compiler error for the second line.
May be it is something fundamental, but I do not understand the behavior. Could someone please explain?
Thanks
A: Statements can be expressions. Such statements ... | |
doc_23498379 | Worked Solution for this:
Implemented this: SessionCookieStore from https://github.com/aspnet/Security/blob/22d2fe99c6fd9806b36025399a217a3a8b4e50f4/samples/CookieSessionSample/MemoryCacheTicketStore.cs
and added this to my Startup:
services.AddSingleton<ITicketStore, MemoryCacheTicketStore>();
service... | |
doc_23498380 | I found a script that does exactly what I need and modified slightly to my standards:
http://sqlmag.com/blog/alwayson-availability-groups-and-sql-server-jobs-part-28-additional-options-tackling-jobs-failo
ALTER procedure [dbo].[SQLAgentJobFailover] (@agname varchar(200))
AS
BEGIN
declare @is_primary_replicate bit
... | |
doc_23498381 | For an embedded system which does not use virtual addressing, I have an executable file that was compiled from C or C++ code with debugging information included. It's usually in COFF or ELF/DWARF (I get those two mixed up) format.
At runtime, on a PC, I would like to determine the address of a variable given its name. ... | |
doc_23498382 | Hello, can anybody tell me why this particular database has this 'toolbox' icon next to it? In case you don't know where this item exists, it's on the left pane when you open phpmyadmin, where all the databases reside.
I don't believe I did anything different or special when I created it. Note: even the text 'songfar... | |
doc_23498383 | My worries why I didn't do it yet are the speed of generating views - I read an articles/benchmarks and there was almost always HAML slower than ERB - but the truth is, that the articles are 2-3 years old.
So my question is, how looks the comparison these two template systems now, in the start of 2012?
A: There are a... | |
doc_23498384 | Possible Duplicate:
Sorting JavaScript Object by property value
Sort JavaScript object by key
I've written a function called frequency() that takes an Array, counts the number of times a string is found within it, and then returns an object based on these results.
Code:
var array = ["Diesel","Asos","Diesel","Paul Smi... | |
doc_23498385 | For example:
int fd;
if((fd = open(path, O_RDONLY)) == -1)
printf("error: %d %s %s\n", errno, strerror(errno), ERRNONAME(errno));
So, ERRNONAME would yield a name, such as "EINVAL", "EPERM", etc. Is this possible?
A: Those names exist as macros in the Errno.h file. There's no standard call to convert the error n... | |
doc_23498386 | package main
import (
"net/http"
"net/http/httputil"
"net/url"
"fmt"
)
func main() {
// New functionality written in Go
http.HandleFunc("/new", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "New function")
})
// Anything we don't do in Go, we pass to the old pl... | |
doc_23498387 |
computed: {
async fetchData() {
fetch('http://localhost:4000/lessons').then(
function (response) {
response.json().then(
function (json) {
this.lessons = json;
console.log(this.lessons)
});
... | |
doc_23498388 | lorem$ipsum-is9simply the.dummy text%of-printing
and that you want to print each word on a separate line. However, words should be defined not only by spaces, but by all non-alphanumeric characters. So the results should look like:
lorem
ipsum
is9simply
the
dummy
text
of
printing
How can I accompl... | |
doc_23498389 | Thanks in advance.
A: Braintree processing fee is fixed at 2.9% + $.30 per transaction:
https://www.braintreepayments.com/pricing
Given that you can implement a small helper method, like the following:
def calc_braintree_fee(amount)
return amount*0.029 + 0.3
end
| |
doc_23498390 | Column_1
index_x value_x
index_y value_x
1ndex_1 value_1
2ndex_2 value_2
3ndex_3 value_3
Initially, I turn turn this into a dictionary, trying to preserve order by utilizing an OrderedDict,
r = df.to_dict(into=OrderedDict)
The return value of this is
OrderedDict([('Column_1', OrderedDict([('index_x', 'value_x... | |
doc_23498391 | I tried to adapt some simple program to just export the PDF without no data and tried the following code:
import java.io.File;
import java.util.HashMap;
import net.sf.jasperreports.engine.JREmptyDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRExporter;
import net.sf.jasp... | |
doc_23498392 | I have a super simple relationship. I have a USER table with three columns, a generated ID, a VARCHAR name, and a foreign key to a HOMETOWN table with two columns - a generated ID and a VARCHAR value. Super simple.
So I'm assuming something typical like this in my UserEntity:
@ManyToOne
@JoinColumn(name = "HOMETOWN... | |
doc_23498393 |
Home
Class
Students Fee Structure
List of Students who paid Fee
List of Students whose fee is remaining
@Blachshma
| |
doc_23498394 | Is it it possible to test if an endpoint is viable before adding it to the service? Right now i am limited to using .NET 3.5(sp1)
A: If your site exposes some page with known address you can try to access it with HttpWebRequest over HTTPS but I don't think it is a good idea. Wrap your deployment into installation pac... | |
doc_23498395 | my install step :
*
*install rvm , no problem
*install ruby 2.0.0 through rvm install 2.0.0 no problem
*install rails 4 through gem install rails --version 4.0.0.rc1 --no-ri --no-rdoc,complete!
*BUT, when i type rails -v in my terminal, error rails !
that's the error log:
/home/sergio/.rvm/rubies/ruby-2.0.0-... | |
doc_23498396 | Books
IdBook (primary)
SerialNumber (primary)
NameBook
The other table is :
Qtt
IdQtt (primary)
IdBook
Qtt
How can I make a relation only between Qtt.IdBook and Books.IdBook ?
A: You meant to create a FOREIGN KEY relationship between the tables on that column like
CONSTRAINT FK_idbook FOREIGN KEY (IdBook)
... | |
doc_23498397 | This is the player class (no problem with that):
class Player(pg.sprite.Sprite):
def __init__(self):
self.groups = all_sprites
pg.sprite.Sprite.__init__(self, self.groups)
self.image = pg.Surface((Player_SIZE, Player_SIZE))
self.image.fill(BLUE)
self.rect = self.image.get_rect()
self.pos = vec(r... | |
doc_23498398 | Why this is so, am I missing any user account related installation concept.
A: It looks like you have two versions of protocol buffers installed.
If you write $ which protoc you will see where the protoc environment variable points to. Probably /usr/local/bin/protoc
You can change that to /usr/bin/protoc, but how dep... | |
doc_23498399 | Thanks
A: There is a Sensors section in Google Fitness API Documentations.
*
*Access Raw Sensor Data
*Use Bluetooth Sensors
*Support Additional Sensors
Take a peek:
https://developers.google.com/fit/android/sensors
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.