id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_41900 | iam able to get value in array now i what to show in view
my array controller
public function data($id)
{
$post= User::with(['Comments'=>function($query){
$query->first();
}])->find($id);
dd($post->toArray());
}
array data
array:53 [▼
"id" => 39
"name" => "KUMAR"
"post" => "hello word "
"created... | |
doc_41901 | public class Address {
@NotNull
String street
...
}
@Path("/address")
@Produces(MediaType.APPLICATION_JSON)
public class AddressResource {
@POST
public MyResponse addAddress(@Valid Address address) {
if (address == null) {
throw new WebApplicationException("address was null");
}
...
}
}
... | |
doc_41902 |
This is my page:
import type { NextPage } from 'next'
import Navbar from '../components/Navbar'
import logo from '../assets/logomarca-branco.png'
import wave from '../assets/svg/wave.svg'
import Lines from '../components/Lines'
import Computer from '../components/Computer'
import AutoWrite from '../components/AutoWri... | |
doc_41903 | SingleLineTextLayout with left, right, and center for alignment options
https://pdf-lib.js.org/docs/api/interfaces/singlelinetextlayout
https://pdf-lib.js.org/docs/api/interfaces/layoutsinglelinetextoptions
However, I have searched here and on Google and Bing and have not found any examples of how to use this function.... | |
doc_41904 | Is this possible to do via CLI in a single scripted command?
So far I'm able to copy a single table at a time, but it's taking forever.
\COPY (SELECT * from table-name limit 5) TO '/vagrant/testexport.csv' DELIMITER ',' CSV HEADER;
A: bash file:
tables=$(psql -d a -tXa -c "COPY(select concat(schemaname,'.',tablenam... | |
doc_41905 | This is my Google analytics data My Report
And this is my chart My Chart that pulling the pageviews. But i dont know how to pull the plot rows data using javascript.
This is My code for my chart:
$scope.chart1 = {
reportType: 'ga',
query: {
metrics: 'ga:pageviews',
dimensions: 'g... | |
doc_41906 | Here's that I have managed to get so far. myPanel is embedded within a mainPanel, and I have some shows/hide of the myPanel in between other sections of my codes.
Ajax request to retrieve Json result like so:
Ext.Ajax.request({
url: 'myStore',
success: function(r) {
var myItem = Ext.decode(r.responseTex... | |
doc_41907 | So, imagine a trivial ObjectDataSource/GridView combo in a User Control. The ObjectDataSource calls a method which returns a List of objects, and the GridView shows these objects in tabular form:
<div runat="server" ID="ControlWrapper">
<asp:GridView ID="GridView1" AutoGenerateColumns="true" DataSourceID="ObjDataS... | |
doc_41908 | How should www.mydomain.com/folderA/.htaccess file being coded?
A: Try :
RewriteEngine On
RewriteRule ^(.*)$ /folderB/$1 [NC,L]
| |
doc_41909 |
A: Yes, this is actually pretty simple.
1) Create a folder for each file group you want to put data in. So if you want to put something into RAM in file group 3, then name the folder 3. If you want to put something into FLASH in file group 3, then name it F3. You can mix at match at will so if you are going to load... | |
doc_41910 | I tried a much simpler code equivalent to 3D I have in my application:
function [] = TestCompiledRotationR2015b()
%[
% Create random data
azimuths = linspace(0, 359, 360) * pi / 180;
elevations = linspace(0, 180, 181) * pi / 180;
[A, E] = ndgrid(azimuths, elevations);
Data = sin(7*(E-pi/2))./(7*(E-p... | |
doc_41911 | I have a hundreds of power bi reports. Now i want calculate the page
load time of each report daily. Please anyone can suggest a approach
to find the solution.
A: Write an application to enumerate over workspaces and reports, embed them and measure the time till rendered event is raised.
| |
doc_41912 | I would like this whole process to be automatic. Basically, I would like to write to a buffer, and have the library make sure I don't run out of memory.
I never want to block the writing process. If the buffer gets too large the library should write some of it to disk.
Does anyone know a library like that?
Grae
The m... | |
doc_41913 | Procedures authenticatePatient and authenticateDoctor are unprotected, so I will use security test in other procedures.
But, when i tried to invoke one of them the challenge handler is invoked too, despite the fact that they are unprotected, and if I delete the challenge handler it works fine !
PatientAuthRealmChalle... | |
doc_41914 | But i want to display the Particular company as default selected which i have it in session.
Here is my Code
$sessioncompany = 'ABCcompany'
$comp[''] = 'Company';
@foreach($company_list as $row)
<?php
$comp[$row->CompanyID] = $row->CompanyName;
?>
@endforeach
{{ Form::select('Company... | |
doc_41915 | var UserSchema =new mongoose.Schema({
username:String,
password:String,
user_email:String,
user_contacts:[
{
type:mongoose.Schema.Types.ObjectId,
ref:"User"
}
]
})
module.exports=mongoose.model("User",UserSchema);
and
var friendRequestSchema=new mongoose.Sc... | |
doc_41916 | // Get active categories
$active_cat = Category::find()
->where(['status' => SystemCode::STATUS_ACTIVE])
->andwhere(['is_deleted' => 0])
->select(['id'])
->asArray()
->all();
// Get available articles
$query = Articles::find()
->where(['in'... | |
doc_41917 | I think the problem is, since the pdf opens in a new tab, the fact that I’m logged in is not recognized and that’s why the pdf is corrupted. Is there a way to put in a username and password using URLDownloadToFile?
I’ve tried ideas from other posts such as putting the credentials in the url using https://username:passw... | |
doc_41918 | Each row in this grid is associated with a script the agents are to read, "Thank you for calling, can I have your name please?", and the response to this would go into the "Response" column. There are anywhere between 10-25 rows depending on who is calling and occasionally the agent will have to jump around from row t... | |
doc_41919 | We are using JSF 1.2 on Websphere portal 6.2. We tried to set enableHighCompatibility to true and to call facesContext.renderResponse() after the action method is completed, just to make the framework understand that action is done, please render the page.
The above 2 has made maximum to call once, but still we have so... | |
doc_41920 | I'm new to D and I just want to play a little bit around with it.
Is there a Class/Function to write/read an object to/from a file?
I'm looking for something similar to the ObjectOutputStream сlass in Java.
Or do I have to serialize (concatenate) the object's variables as strings in the file?
I have a Movie class and a... | |
doc_41921 | I'm doing something wrong but I don't know what
const httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': 'Basic ' + btoa(userPassword)
}),
observe: 'response' as 'body'
};
@Injectable({
providedIn: 'root'
})
export class CoverageService {
eligibilityUrl ... | |
doc_41922 | Two example sequences in my file domains.fasta:
>GA98
TTYKLILNLKQAKEEAIKELVDAGTAEKYFKLIANAKTVEGVWTLKDEIKTFTVTE
>GB98
TTYKLILNLKQAKEEAIKELVDAGTAEKYFKLIANAKTVEGVWTYKDEIKTFTVTE
my code that is not working:
from Bio import SeqIO
from Bio.SeqRecord import SeqRecord
# Load data:
domains = list(SeqIO.parse("domains.fa",'fa... | |
doc_41923 |
A: ((Page1)frame1.Content).TextBox1.Text = "Hello, World";
But it's best to use a class, and binding the textbox.
| |
doc_41924 |
*
*Download the Databricks CLI
*Configure the CLI by adding a host and token
*And then running a python file that hits the Databricks token
I am able to install the CLI in the docker image, and I have a working python file that is able to submit the job to the Databricks API but Im unsure of how to configure my CL... | |
doc_41925 |
My c# code below :
Outlook.ItemProperties itemProp = appointmentItem.ItemProperties;
foreach (Outlook.ItemProperty userprop in itemProp)
{
if (userprop.IsUserProperty)
{
MessageBox.Show(userprop.Name + "\t" + userprop.Value);
}
}
I ha... | |
doc_41926 | Just to clarify, what is the difference in specifying constants and variables in C, and really, when do you need to use a constant instead of a variable? I know folks say to use a constant when the information doesn't change during program execution but I can't really think of a time when a variable couldn't be used in... | |
doc_41927 | The repository of the script can be found in Github. The installation guide is not very detailed at all.
I have Ruby 2.2.3p173 and gem v2.4.5.1. I cloned the repo and did a bundle install but I get errors when executing the script.
How can I get this script properly installed and be able to run it from anywhere?
Error... | |
doc_41928 | I want their edges to always touch.
I place a circle, then place another circle next to that circle. Then I place a third circle so it touches both other circles.
I'm so stuck with this - I'm confused about the maths, but I think I'm also not understanding something about svgs
Totally stumped how to make this happen.e... | |
doc_41929 | A
"25-34"
"18-24"
34
"35-44"
"+65"
26
32
70
...
I wanna replace the single digits with the appropriate range of age. I am kinda newbie and I am stuck. For instance, 32 is gonna be replaced with the string "35-44" What would be the proper way to replace integers with proper range ... | |
doc_41930 | if ( typeid( int) == typeid( int) ) //...
how to do the same with function signatures?
if (typeid (void (*)(void) ) == typeid( void(*)(void) ) //that of course dosn't work
how do we check thos two for signature?
void f(int);
int x(double);
A: The type of a function is known at compile-time. You can compare arbitra... | |
doc_41931 | Right after the await on the save, I'll send a SSE event to the client, which then immediately calls another REST API method, which uses AQL to query the very same collection. Unfortunately I get the previous (old/unchanged) data back. Waiting a sec then AQL-querying gives me the fresh data though.
Is waitForSync the s... | |
doc_41932 |
<Button.Style>
<Style TargetType="Button">
<Setter Property="Background"
Value="Transparent" />
<Setter Property="BorderBrush"
Value="{StaticResource PhoneForegroundBrush}" />
<Setter Property="Foreg... | |
doc_41933 | document.getElementById("title").style.text-align = "center";
The browser engine interprets it as another sign (minus probably) and sends an error. How can coders access these styles consisting of multiple words using javascript?
A: CSS property names get the hyphen removed and subsequent words capitalized in JavaScr... | |
doc_41934 |
If hover on element the glitch is fade out.
I tried all value of -webkit-font-smoothing and text-rendering stop on this one
-webkit-font-smoothing: subpixel-antialiased;
text-rendering: geometricPrecision;
better but don't fix the problem.
font importing like this
@font-face {
font-family: 'Inter';
font-style: n... | |
doc_41935 | async def on_message(message):
channel = bot.get_channel(931570478915657790)
if message.content == "hello":
await channel.send("hi!")
I'm new at programming. I want to write a bot for my Discord channel to send users "hi" messages who send "hello". But there is a problem, only I (the self bot) can rece... | |
doc_41936 | ||
doc_41937 | I'm seeing loads of reports in iTunes Connect of my app crashing with a particular stack trace, but the stack trace reveals nothing useful.
#0. Crashed: main
0 UIKit 0x1871100c0 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 324
1 UIKit 0... | |
doc_41938 | # Newpopup.cpp extends BasePopup
views::BasePopup* NewPopup::createPopup() {
popup = BasePopup::createPopup(Size(400, 500));
return popup;
}
void NewPopup::cleanPopup() {
popup->removeFromParent();
delete this;
}
Adding the new popup to a scene in another Scene class
# Adding to scene
void MainScene::getNewP... | |
doc_41939 | public class Job
{
[Key]
public int JobId { get; set; }
public string Description { get; set; }
public DateTime DateCreated { get; set; }
public DateTime? DueDate { get; set; }
public int JobIdentity { get; set; }
[MaxLength(50, ErrorMessage = "Please ensure the Job Title is less than 50 cha... | |
doc_41940 | Right now the input fields placeholder is not entirely visible, and I would like it to be + have even more width to spare.
Any help is appreciated, thanks!
What it currently looks like:
What I want it to look like:
Template:
<template>
<div class="searchbar-container container">
<b-form
@submit.prevent="... | |
doc_41941 | def update rule_code, updated_rule
list.select{ |rule|
if rule[0] == rule_code
rule[1] = updated_rule
end
}
end
The test looks like:
describe "#update" do
it "updates a rule when given the rulecode and rule updates" do
item_rule = double( {rule_type: "item", item_code: 1,... | |
doc_41942 | I would like to change the plain default style of "just text" to something like this:
This is just an example I quickly found on the web. But it is a good representation of what I want to achieve.
I would like to make the pivot items to look like they are tabs.
They should be visibly seperated from another and when o... | |
doc_41943 | System.IO.FileNotFoundException: Could not load file or assembly 'AutoMapper, Version=3.3.1.0, Culture=neutral,
If I look into the build server directory I can see that the automapper is missing. If I build the test project locally the automapper dll´s are copied to the output directory.
Any idea why the build server... | |
doc_41944 | Two programs will be implemented : a client program "get" and a server program called "iserv". A client will ask the server to retrieve and sent all integers in a certain range. The server will be a multi-process program. It will create child processes to handle requests coming from clients. POSIX message queues will b... | |
doc_41945 | I can't manage to specify multiple namespaces to be excluded, could anyone suggest how to do it? Obviously single namespace mask working well.
A: You should just be able to add a --exclude for each assembly/namespace combination
i.e. --exclude [Assembly*]Namespace1.* --exclude [Assembly*]Namespace2.*
| |
doc_41946 | module.js: 340
Error: Cannot find module 'aws-lib'
I have all the EC2 node.js library files in the same directory as the script, but how do I include them?
var aws = require("aws-lib");
ec2 = aws.createEC2Client(*redacted*, *redacted*);
ec2.call("DescribeInstances", {}, function(err, result) {
console.log(JSON.string... | |
doc_41947 |
"An internal error occurred during: "Updating status for Tomcat v7.0
Server at localhost...". java.lang.IndexOutOfBoundsException"
I am using apache tomcat 7 with default configuration. This problem started when I was using tomcat on port 8080(home computer) and then i imported that project to my office computer wi... | |
doc_41948 | Copy the oscommerce directory to your web server htdocs directory and open the location with >your browser. Setup will automatically
launch and guide you through the installation and configuration of
your new online store.
I copied the said folder into htdocs, in my browser I go to localhost which displays the ind... | |
doc_41949 | http://host/showFile.php?file=abc
The resulting page can be quite lengthy and I would like to extend this to position the page at a specific line. I know how to do this using and adding #tag to the URL for an HTML file, but I can't see how to combine the effect in this case. Putting
http://host/showFile.php#tag?file=a... | |
doc_41950 | I cannot create a fake email field as the form communicates with a plugin, so the email input must necessarily be present. I thought about disabling it with php as this can't be seen in the html but I'm not sure how to do it and I'm not sure if it's the right method.
How could I disable the form input making it inacces... | |
doc_41951 | func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error { data = notifyCharacteristic.value}
So far I have this in Kotlin to try to achieve a similar result as in swift. Of course I have looked up tutorials and documentation, but to no avail. This is the code I ... | |
doc_41952 | So here's the code :
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
void addition(int,int);
void subtraction(int,int);
void mutiplication(int,int);
void division(int,int);
int main() {
int x,y,choice,redo = 1;
while(redo)
{
printf("\nWelcome to the CalC :D\nPlease make a choice\n1.Addition\n... | |
doc_41953 | // The THREAD & TRAPS macros facilitate the declaration of functions that throw exceptions.
// Convention: Use the TRAPS macro as the last argument of such a function; e.g.:
//
// int this_function_may_trap(int x, float y, TRAPS)
#define THREAD __the_thread__
#define TRAPS Thread* THREAD
The THREAD macro only use fo... | |
doc_41954 | The main problem is that HQL does not support something like a limit or rownum for deletes. We only have setMaxResults for select.
The solutions I have thought about are:
*
*To use a select and then, looping over the list removing with delete every single element from the list.
*To use session.createSQLQueryto be a... | |
doc_41955 |
java.net.SocketException: Permission denied: connect
What is the cause of this ?
A: If you add to bin/system.properties and restart:
*
*java.net.preferIPv4Stack=true
Does it work ?
| |
doc_41956 | My Notebook is set up in 3 cells but I put them together below for clarity:
from watson_developer_cloud import NaturalLanguageClassifierV1
import pandas as pd
import psycopg2
import json
conn_string = 'host={} port={} dbname={} user={} password={}'.format('119.203.10.242', 5432, 'mydb', 'locq', 'Mypass***')
conn_cb... | |
doc_41957 | http://example.com/api/postsms.php?data=%3CMESSAGE%3E%0A%3CAUTHKEY%3EYour%20auth%20key%3C/AUTHKEY%3E%0A%3CSENDER%3ESenderID%3C/SENDER%3E%0A%3CROUTE%3ETemplate%3C/ROUTE%3E%0A%3CCAMPAIGN%3Ecampaign%20name%3C/CAMPAIGN%3E%0A%3CCOUNTRY%3Ecountry%20code%3C/COUNTRY%3E%0A%3CSMS%20TEXT%3D%22message1%22%3E%0A%3CADDRESS%20TO%3D%2... | |
doc_41958 | I currently have done the following:
@pandas_udf("double", PandasUDFType.GROUPED_AGG)
def lognormal_skew(v):
return (np.exp(v.std()) + 2) * np.sqrt(np.exp(v.std()) - 1)
my_df.groupBy('period').agg(lognormal_skew(my_df['my_columns'])).show()
However I get an error:
rg.apache.spark.SparkException: Job aborted due t... | |
doc_41959 | 1.'+result[i].docNo+'
2.'+result[i].pId+'
I am trying so many ways like this ---> '+result[i].docNo+' + '+result[i].petitionId+'
but, notthing works for me. can anyone please give me a solution for this problem.
A: What you need is result[i].docNo + result[i].petitionId.
When you use ' ', whatever inside is treated a... | |
doc_41960 | There are simple examples on the web of doing this with VideoView and with MediaPlayer, but these don't work, at least with the Panasonic camera I'm working with. Running in the emulator, I can see that Android sends an RTSP DESCRIBE request to the camera, receives a response, and then simply stops. VNC continues wit... | |
doc_41961 | import { Component, OnDestroy, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Stomp } from '@stomp/stompjs';
import * as SockJS from 'sockjs-client';
import { MessagesService } from 'src/app/services/messages.service';
@Component({
selector: 'app-classtwo',
templateUrl: './classt... | |
doc_41962 | I know this needs to be modified, but how?
# construct an input for a new preduction
row = values[-3:].flatten()
# make a one-step prediction
yhat = model.predict(asarray([row]))
This is the script from the blog post where Jason demonstrates how to predict:
# finalize model and make a prediction for monthly births wit... | |
doc_41963 | Before my changes, the code looked like this.
Range("A1").Select
ActiveCell.FormulaR1C1 = "Size"
Range("A2").Select
ActiveCell.FormulaR1C1 = _
"=('Data'!RC[3])+IF('Data'!RC[1]>0,'Data'!RC[1],""0"")"
Range("A2").Select
Selection.AutoFill Destination:=Range("A2:A" & LastRow)
Columns("A:A").Select
Selection.I... | |
doc_41964 | private ArrayList<String> ticketLookup(String tkt)
{
Connection con = null;
Statement st = null;
//StringArray msga = new StringArray();
ArrayList<String> msga = new ArrayList();
try
{
// These will vary depending on your server/database
Class.forName("com.microsoft.sqlserve... | |
doc_41965 | User A, logged into the site and added the 3 ( Ball, bat and pen) products in Cart page and then logged out form the site.
Few days later, the Same User A, logged into the site using other devices or browser( Not same browser). On that case we need to display the same 3 ( Ball, bat and pen) products in Cart page.
How t... | |
doc_41966 | I can run can't use the debug option (F5), it displays in a dialog:
"D:/DEV Programas/build-GIFS-Desktop_Qt_5_7_0_MSVC2015_64bit-Debug/debug/GIFS.exe": not in executable format: File format not recognized
I can't use at all the debugger. What can I do?
Sorry I don't display more information. I don't know much how Qt C... | |
doc_41967 | Unable to cast object of type 'Moq.Mock`1[SRE.Web.Mvc.INotificationService]' to type 'SRE.Web.Mvc.INotificationService'.
As I said, the simple and I'm not sure where to go from here.
Here is the test.
<Test()> _
Public Sub Index_Properly_Validates_Email_Address()
'Arrange
Dim fakeNotifcationService... | |
doc_41968 | Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| <script language="javascript" ...
Here is my webpack.config,js file
const MiniCssExtractPlugin = r... | |
doc_41969 | let downloader = UIImageView.af_sharedImageDownloader
let configuration = downloader.sessionManager.session.configuration
configuration.timeoutIntervalForResource = 15
configuration.timeoutIntervalForRequest = 15
af_setImage(withURL: url, completion: { (response) in
// do stuff
})
Tried bottom solution to but did... | |
doc_41970 | How to display the data of each post??
<app-post *ngFor="let post of posts" [postId]="post"></app-post>
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
})
export class HomeComponent implements OnIni... | |
doc_41971 | This is my service with method which fetches data from server:
application
.factory('service', function ($http,$q) {
return {
fetch: function(url) {
var deferred = $q.defer();
$http.get(url).success(function(data){
deferred.resolve(data);
}).error(function(){... | |
doc_41972 | Exception in thread "main" java.lang.NoClassDefFoundError: org/jsoup/Jsoup
at EndUserHandbook.getLinkList(EndUserHandbook.java:53)
at EndUserHandbook.main(EndUserHandbook.java:24)
Caused by: java.lang.ClassNotFoundException: org.jsoup.Jsoup
at java.net.URLClassLoader.findClass(Unknown Source)
... | |
doc_41973 | the first component is related to the object id:1 and it is one page and the second component is related to id:2 and it is another page. both of these pages share the same template 'page.component.html'
how do get the first component to only render the object with id:1? and the same for the second component. I understa... | |
doc_41974 | ||
doc_41975 | In WPF my workaround was to increase the dispatcher invoke priority.
In Xamarin Android I work around this issue by calling
uiProgressBar.Invalidate(); uiProgressBar.RequestLayout();
at specific stages to force and update.
A short description of my scenario:
I am using a ListView. Every list element has a ProgressBar... | |
doc_41976 | When the user saves in the Add Entry View Controller, it is saved to Core Data and NSFetchedResultsController is responsible for updating the UITableView.
In a previous version of my app (version 2.0), I had a bug where the American timezone would always show the section title as one day prior to the selected date fro... | |
doc_41977 | SQL is running from LOCAL System account (on Windows 8.1).
The error is as below.
"A method call to an object in a COM+ application was rejected because the
caller is not properly authorized to make this call. The COM+ application
is configured to use Application and Component level access checks, and
enforcement of t... | |
doc_41978 | {
id:4,
type:"link",
fixed:true,
source: {
id:1,
name: "A",
type:"node",
x:226,
y:190,
fixed:1,
index:0,
weight:1,
},
target: {
... | |
doc_41979 | [Unit]
Description=ldsquiz.org
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=30
ExecStart=/home/sites/www.ldsquiz.org/checkout/bin/carton-exec app.pl prefork -m production -l http://*:5103
KillMode=process
User=ldsquiz
Group=ldsquiz
SyslogIdentifier=ldsquiz-org
[Install]
WantedBy=multi-user.tar... | |
doc_41980 | What I'm trying to accomplish here is to roll-out my own "HTTP encryption". Here's what I have accomplished so far:
*
*Modified an existing proxy script (Glype/PHProxy) to "encrypt" (base64 for now) the echo output. (I'm wrapping the entire content in a body element, btw)
*Written a GreaseMonkey script to "decrypt"... | |
doc_41981 | All signs point to this:
Marshal.GetActiveObject("SAPGUI");
But it does not work -- 'Invalid class string'
The closest I have come is:
Marshal.GetActiveObject("Sapgui.ScriptingCtrl.1");
Which at least gives me a different error message:
System.Runtime.InteropServices.COMException (0x800401E3): Operation
unavailable ... | |
doc_41982 | Calculated Column #1 calculates total days taken to accomplish a job (within a job category), per unique job ID. I need to be able to take these days and find the average number of days taken to complete jobs, per job category. In theory, Calculated Column #2 would be "AVG Days to Complete (job category)".
*
*
*
*
... | |
doc_41983 | I need to compile it into shared 64-bit linux compatible library (*.so), using NetBeans/ Eclipse on Linux Fedora.
A: Since the GCC C++ ABI conventions did slightly change (in particular because of C++ standard libraries evolution, or name mangling convention) from one GCC version to the next (e.g. from g++-4.4 to g++-... | |
doc_41984 | $args['image'] = new CurlFile($image_path, $image_mime); to
$args['image'] = new CurlFile($image_path, $image_mime, '1.jpg');
beacause Visual Studio Code highlighted that CurlFile also needs third argument - postname.
Here is my code:
<?php
define('DEBUG', true);
$url = 'http://test.my_shop.com';
$key = 'M... | |
doc_41985 | Is JSF still relevant with Microprofile and how can we migrate the UI part of a monolith application to Microservices when the same view should get data from many Microservices.
A: If you are developing a JSF frontend, then you can envision having a microservice that could respond to each page, or each piece of specif... | |
doc_41986 | library(data.table)
in.data <- data.table(colA=c("random", "random", "random", "random", "random", "start", "random", "random", "end", "start", "random", "end", "start", "end", "random"))
in.data$wanted.column <- c(NA, NA, NA, NA, NA, 1, 1, 1, 1, 2, 2, 2, 3, 3, NA)
in.data
colA wanted.column
... | |
doc_41987 | It almost the same with another code on the Internet
NSData *uploadImage = UIImageJPEGRepresentation(self.image, 1) ;
NSString *uploadURL = @"http://...../jeff.php" ;
NSMutableURLRequest *uploadRequest = [[NSMutableURLRequest alloc] init];
[uploadRequest setURL:[NSURL URLWithString:uploadURL]] ;
[uploadRequest setHTTP... | |
doc_41988 | I successfully target a new filename with:
Logger log = LogManager.GetLogger( pLoggerName );
NLog.Targets.FileTarget target = new NLog.Targets.FileTarget();
target.Name = loggerName;
target.FileName = newLogPathFileName;
NLog.Config.LoggingConfiguration config = LogManager.Configuration;
config.AddTarget( logger... | |
doc_41989 | What's the difference?
*
*https://elements.heroku.com/addons/cloudinary
*https://cloudinary.com/pricing
A: The Heroku plans utilise the classic/legacy Cloudinary plans where the quotas (Transformations, Storage and Bandwidth) are separate.
The new Cloudinary plans are based on credits. This is where any of the 3 qu... | |
doc_41990 | By default I'm getting the revenues in ILS but I what to get the currency in USD or EUR and I don't want to use currency conversions like https://www.google.com/finance/converter
According to the formal documentation api (https://developers.google.com/ad-exchange/seller-rest/reference/v1.1/reports/generate) I didn't fi... | |
doc_41991 | I have tried a few things still cant find a solution.
The github repo for my code is at https://github.com/blaze4dem/timiking please help me understand what i am doing wrong here.. Thanks in advance.
A: First, you're storing your scss in _assets/css, which as an underscored folder is ignored by jekyll.
Move it to asse... | |
doc_41992 | So I found this site which has simple equations for mapping 3D coordinates to a 2D screen:
http://www.petesqbsite.com/sections/tutorials/tuts/perspective.html
I've used these equations extensively, but now i want to be able to interact with the 3D world by hovering over the screen.
Rather than having the 2D coordinates... | |
doc_41993 | My tables are:
sale:
sale_id (int)
terminal_id (int)
zread_id (int)
... more fields about total amounts, dates times etc
sale_payment:
payment_id (int)
sale_id (int)
payment_type (enum: 'P','W','A')
method_id (int)
payment_amount (Decimal)
sale_writeoff_method:
method_id (int)
description (varchar)
display_order (int... | |
doc_41994 |
The toc's can be swiped back in to the screen and multiple levels are visible at once.
I think there is a similar concept with the new Evernote app -but I am not sure how to start with this. How can I achieve this? Is it as simple as just multiple viewpagers?
A: This is what you are looking for, it does exactly what ... | |
doc_41995 | Here's the code I tried(without luck):
$(function(){
if ($('#audio').get(0).stopped == true) {
$('div#switch').toggle();
}
});
A: why don't u try some nice HTML5 audio libraries which has events handlers (stop event, playing event and etc).
One of the easiest library i came across is http://buzz.jaysalvat.com... | |
doc_41996 | enter image description here
I am trying to develop a code which will read data from any source, load the data into data frame and return the following o/p:
enter image description here
A: You can use the schema property and then iterate over the fields.
Example:
Seq(("A", 1))
.toDF("Field1", "Field2")
.schema
.... | |
doc_41997 | void foo(std::string value);
void foo(bool value);
when I call it with
foo(true ? "a" : "b");
why function takes a boolean will be called instead of string?
A: The bool overload provides a better match, since you get an conversion between a const char* and bool. The string overload requires a conversion to a user d... | |
doc_41998 | I have all the translations on DB.
Now the question is, how should I set the translations from DB on the page (I select only the needed translations for each page):
should I use :
sql = "select key,value from translations where lang='he' and page='index.asp'"
set rs = myconn.execute(mysql)
do until rs.eof
eval(""&k... | |
doc_41999 | My code is simple:
test ="s" + ("locomotion","maintenance","ave");
alert(test);
When I execute the above code, the string returned is "save" in alert box. What is the significance of the above code? Why does joining strings take the last string with "s"?
What is this called and how does java-script select "ave" to joi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.