id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23517700 | So far I made the followings:
1)I enabled the capcha-recaptcha plugin and I enter private key and site key from google captcha
2)I set captcha-Recaptcha to Default captcha at global configuration
3)In my file template\mytemplate\html\mod_login\default.php
I enter the following code which I found here in stackoverflow
... | |
doc_23517701 | import numpy as np
import matplotlib.pyplot as plt
mons =['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
for i in range(len(mons)):
data = np.genfromtxt('Z:/Dan/SnowStatData/Errors/'+mons[i]+'ErrorStats.txt',skip_header=4)
lat = data[:,1]
lon = data[:,2]
corr = data[:,3]
cor... | |
doc_23517702 | How can I correctly return my temp array?
Data set:
Array(
[0] => Array(
[0] => Array(
[id] => 55
[parent] => 49
)
[1] => Array(
[id] => 62
[parent] => 50
)
[2] => Arra... | |
doc_23517703 | <p><span>Efectivo X: </span><input type="text" class="montox numero caja1" name="mefectx" id="mefectx" maxlength="10" placeholder="0"/> <input type="text" class="montox numero caja2" name="mefectx" id="mefectx" maxlength="10" placeholder="0"/></p>
<p><span>Tarjeta de Crédito X: </span><input type="t... | |
doc_23517704 | In the init() function I create a new object of class ResourceLoader and try to get http://www.jvanderspek.com. via $.ajax. This succeeds and the ResourceLoader.prototype.onDone function is called. Now for the sake of argument I'd like to throw an error there, and catch it at the top of my calling tree, in the init(); ... | |
doc_23517705 | filename = datetime.datetime.fromtimestamp(time.time()).strftime('%Y-%m-%d_%H:%M')
with open('%s.txt' % filename, 'w') as open_file:
# writing to file
It seems to ignore the ".txt" part because if i write the code like this it works just fine:
with open('filename.txt', 'w') as open_file:
A: It runs fine on my m... | |
doc_23517706 | I'm specifically looking for a solution that uses a well documented library.
A: pycapfile can be also used. Link to pip: https://pypi.python.org/pypi/pypcapfile
A: Try scapy. It is a very powerful program for packet inspection, manipulation and creation.
You can use it to build your own tools.
A: I tried that and th... | |
doc_23517707 | longitude, latitude, gid, Hash
-78.885636, 36.854, 1, empty
Using PostgreSQL 9.4 and trying to update column Hash with results of a geohash function:
SELECT ST_GeoHash(ST_SetSRID(ST_MakePoint(longitude::float, latitude::float), 4326))
FROM my_table;
To update the column, I am using:
UPDATE my_table SET Hash = (SELECT... | |
doc_23517708 | Code:
t = 1
xt = array([ -1.,-1. ])
xt[0] = theta[0][0]* P_all_States[t-1][0] + theta[1][0]*P_all_States[t-1][1]
xt[1] = theta[0][1]* P_all_States[t-1][0] + theta[1][1]*P_all_States[t-1][1]
P_all_States[t][0] = xt[0]
P_all_States[t][1] = xt[1]
print ("Added probability distribution for time t = " + str(t) + ... | |
doc_23517709 | ((escape by itself does not work))
A: You can use a utility that joint js has called breaktext, assigning the result to a var :
var wraptext = joint.util.breakText('yourtext|escapejs', {
width: 300
});
Then, set that var as text attr of the rect:
var rectname = new joint.shapes.custom.... | |
doc_23517710 | @RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = { Application.class })
@WebAppConfiguration
public class SomeRepositoryTest {
@Autowired
SomeRepository someRepository;
@Autowired
Session session;
@Test
public void firstTest() {
System.out.println(some... | |
doc_23517711 | It is the same problem as this guy has: https://groups.google.com/forum/#!msg/google-admob-ads-sdk/EvfESpBSjbY/DEyCfxP4hxcJ
Unfortunately, there is no answer to it on the forum. My AdMob initializion/destroying looks very similar. After debugging with several breakpoints, I can verify that the destroy part gets called.... | |
doc_23517712 | tables are :
*
*site_info
*site_coordinates
*owner_info
*subcontractor_info
*company_info
site_info:
*
*siteID
*companyID
-siteNAME
*ownerID
*subcontractorID
*equipmentTYPE
site coordinates:
*
*siteID
*latitude
*longitude
*height
owner_info:
*
*ownerID
*ownerNAME
*ownerCONTACT
subcontrac... | |
doc_23517713 |
A: That also depends on who wrote the code (level of experience), and how big the code base is.
I would treat all warnings as errors.
How many errors do you get when you run a static analysis tool on the code?
EDIT
Run cccc, and check the mccabe's cyclic complexity. It should tell how complex the code it.
http://sourc... | |
doc_23517714 | I did it and it seems works fine, owever, there is a minor issue that i can't figure out.
So let's begin with some pices of my code:
MainActivity
public class MainActivity extends SherlockFragmentActivity {
// Declare Variable
DrawerLayout mDrawerLayout;
ListView mDrawerList;
ActionBarDrawerToggle mDra... | |
doc_23517715 | I am able to do this using the isna() method
However, in one of the columns "management population" one of the correct values is the string "NA" so of course isna() is also reading TRUE for the cells that contain "NA" and I need to find a way to stop this happening and preserve instances of the string "NA".
Grateful fo... | |
doc_23517716 | bitmap <PIL.Image.Image image mode=RGBA size=1600x1200 at 0xAC9CFEC>
#SCIPY'S ASARRAY WORKS PROPERLY!
pic!! [[[ 16 18 31 255]
[ 16 18 31 255]
[ 16 18 31 255]
...,
But now I get a PIL.Image._ImageCrop object which fails.
bitmap <PIL.Image._ImageCrop image mode=RGBA size=1600x80 at 0x99635AC>
#SCIPY'S ASAR... | |
doc_23517717 |
A: Try using
= Text.From([Date]) & Text.From([Person ID])
or perhaps
= Text.From([Date]) & " " & Text.From([Person ID])
If the field is not text, you can not combine it using a & unless you wrap it with Text.From()
| |
doc_23517718 | in below figure Address is an custom textview.
A: txt_Username = [[UITextField alloc] initWithFrame:CGRectMake(0,40,self.view.frame.size.width/2,32)];
txt_Username.borderStyle = UITextBorderStyleRoundedRect;
txt_Username.font = [UIFont systemFontOfSize:15];
txt_Username.placeholder = @"PlacceHolder";
txt_Username.aut... | |
doc_23517719 | fl = gis.content.get(fl_item_id).layers[fl_item_idx].query(where="City = 'Round Rock'", order_by_fields='Date_Confirmed DESC' ).sdf
for index, total in fl.iterrows():
print(total['Cumulative_Totals'])
which results in:
4020
3965
3937
3880
3832
3775
3714
3699
3670
3615
3533
3502
3475
3441
3371
3338
3314
3275
3258
... | |
doc_23517720 |
Target Integrity: MobileCoreServices has been renamed. Use CoreServices instead.
Target Integrity: AssetsLibrary is deprecated. Consider migrating to Photos instead.
I have inhibit_all_warnings! in my Podfile, but it has no effect on those.
Is there a way to silence those warnings until the creators of those pods wil... | |
doc_23517721 | While creating EC2 instance i want to install MYSQL server on that instance.
So how can i install MySQL server on EC2 instance by passing user data ?
A: writing the user-data script is as simple as writing an bash script.
Follow the example and illustration
Its pretty good for newbies.
(Disclaimer: I have absolutely... | |
doc_23517722 | I have a mySQL database with a FirstName and LastName column and presently i have a search query searching for Lastnames, and When the LastNames match they are echoed on screen along with the FirstName from it's row, Now thats great, what i will like to find out is how can a make the query search for FullNames that are... | |
doc_23517723 | PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/domain.tld/httpdocs/wp-admin/includes/plugin-php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/domain.tld/httpdocs/wp-content/plugins/wp-security-audit-log/sdk/freemius/start.php on line 169
Indeed, the file wp-admin/inclu... | |
doc_23517724 | string mailto = "mailto:" + to + "&SUBJECT=" + subject + "?BODY=" + body +
"&Attachment=" + attachment;
This doesn't work; the file isn't attached.
A: Remove the quotes at the end of "attachment".
"mailto:" + to + "&SUBJECT=" + subject + "?BODY=" + body + "&Attachment=" + attachment
Where attachment has the att... | |
doc_23517725 | I encounted error when I might add plugin which is Eclipse Color Theme for eclipse.
And in Preferences-General-Appearance, when I click Color Theme output error log...
(Eclipse Color Theme get on Help-install new software http://eclipse-color-theme.github.com/update
errTitle: Unhandled event loop exception
org.ecli... | |
doc_23517726 | A deliveries
delveryid clientid deliverydate
1 10 2015-01-01
2 10 2015-02-02
3 11 2015-04-08
B items in deliveris
itemid deliveryid qty status
70 1 5 1
70 1 8 2
70 2 10 1
72 1 12 1
70 3 100 1
I ... | |
doc_23517727 | def show
p "hi"
end
#=> nil
show
#"hi"
#=> "hi"
self.show
#"hi"
#=> "hi"
The above are good and understood.
Now let's try something different:
def Foo
p "hi"
end
#=> nil
Foo
#NameError: uninitialized constant Foo
#from (irb):4
#from C:/Ruby193/bin/irb:12:in `<main>'
While the call to Foo has thro... | |
doc_23517728 | I have a web app that allows users to upload files and attach them to "cases" they are working. The files are stored in the database as varbinary(MAX).
Here is the code I'm currently using to download the files:
...
if (!SiteUserService.HasPermission(Domain.SiteUserService.SitePermissions.ModifyCase, CurrentUser))
... | |
doc_23517729 | Why is is_volatile::value false in the case below?
#include <type_traits>
template<typename T>
inline void DoStuff(T val) {
static_assert(!std::is_volatile<T>::value, "No volatile types plz");
//...
}
int main() {
volatile char sometext[261];
DoStuff(sometext);
}
A: When trying to pass the array by ... | |
doc_23517730 | in my user model
import bcrypt from 'bcryptjs';
const user = (sequelize, DataTypes) => {
const User = sequelize.define('user', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
unique: true,
primaryKey: true,
field: 'id'
},
fullname: DataTypes.STRING,
username: {... | |
doc_23517731 | All is working but I have no clear idea on the best practices on authentication, am I on the right track? From what I've read, authenticated client should also pass a token in the header.
Should I return the uid to the client and use it in the header? If so, should the backend use it to check if there's a matching toke... | |
doc_23517732 | Is there any way to handle the text input on this?
Here is my code,
MainWindow.xaml
<Window x:Class="SysTray_Sample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expressi... | |
doc_23517733 | I got few replies, It says after updating ZK it will fix the problem.
But we can't update ZK, So in this scenario is there any way to work out this problem any how.
A: If you can't upgrade ZK then you can try to "downgrade" the IE using "X-UA-Compatible" either as meta-tag or as a response header
here an example using... | |
doc_23517734 | why does this appear?
A: This occurs due to files names with the '~' prefix in site-packages. Please remove those files / folders. It will solve your problem.
You can list them (linux, mac) with
ls -a /xx/xx/xx/lib/pythonx.x/site-packages | grep "^~"
on windows I would strongly recommend the linux subsystem for windo... | |
doc_23517735 | GRANT debug any procedure, debug connect session TO <user>;
I have placed the break point inside the procedure on one of the assignment lines. I have tried other places too out of desperation. When I click debug I get the debug dialog and I fill in all the values. When I hit debug the stored procedure runs, the debug ... | |
doc_23517736 | Imagine this; we have a function:
void test(int one, int two) {
if(one == 5) {
cout << "one is 5" << endl;
}
if(two == 10) {
cout << "two is 10" << endl;
}
if(one == 1 && two == 2) {
cout << "they both are 1 and 2" << endl;
}
}
And then down here we have our main function and we call test:
test(1, 8) which ... | |
doc_23517737 | The second thing is, is there some way how I can make the text more compact? Like the other three boxes where the blind text is. Because in the first one there is much room between couple words. I heard something about css break? But I don't know if it's the right one.
.skillcontainer {
max-width: 23%;
min-width: 200px... | |
doc_23517738 | I did not find a simple way to do so!
Thanks!
A: Flyway is currently designed to use at least two connections, one for the metadata table and one for the migrations. This has been done so to allow parallel transactions and synchronizing between nodes using locking. This way the migration can be rolled back in the cas... | |
doc_23517739 | I need to insert these 3 sets of code:
CODE 1: <div onclick="openClose('stp1')" style="cursor:hand; cursor:pointer">
CODE 2: </div><div id="stp1" class="texter">
CODE 3: </div>
into this table:
<table id='options_table'>
<tr><td colspan=3><font size="3" class="colors_productname">
<i><b><font size=2>(NEED TO INSERT COD... | |
doc_23517740 | So, my problem is that my <input type="range"> returns undefined on change. In the changeCheck(), I am checking which <input type="range"> was changed.In my addBrightness(), I am outputting the value of the <input type="range">, when ever it is changed.
JavaScript
// VARIABLES
var canvas = $('#editor')[0];
var ctx = ca... | |
doc_23517741 | PANIC: Missing emulator engine program for 'x86' CPU.
How do I resolve this missing emulator issue?
I have checked my paths and these seem to be ok:
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PATH=/home/user/.meteor:$PATH
export ANDROID_HOME=/etc/Android/Sdk
export ANDROID_SDK_ROOT=/etc/Android/Sdk
exp... | |
doc_23517742 | I have:
<%= label :dates, 'Tomorrow' %>
I want:
<label for="dates">Tomorrow</label>
what happens is:
<label for="dates_Tomorrow">Tomorrow</label>
This same thing happens with the checkboxes, the reason I want the HTML to be generated like this is because I want to get the label value from each of my fields, so I ca... | |
doc_23517743 | When Developer-1 runs the command "nodemon app.js", the server runs well. But after that when Developer-2 runs the same command he gets following error.
events.js:174
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::1111
at Server.setupListenHandle [as _listen2... | |
doc_23517744 | blade.php file
<user-exam
:routes="{{ json_encode( route('user.exam-start', ['exam' => $exam[0]]))}}"
></user-exam>
As you can see in the code above I am using the [0] index to pass in one route, I do not want to have to do this.
userExam.vue file
<script>
export default {
props: {
routes: Array,
... | |
doc_23517745 | UserModel uM = new UserModel();
try {
System.out.println("\nTrying to save...");
InputStream inputStream = request.getInputStream();
JsonReader reader = Json.createReader(inputStream); // this is where error occurs
// JsonObject jsonObject = reader.read... | |
doc_23517746 | I know that I need only the following files at least:
*
*manifest.json
*index.html (or popup.html)
However, there is still more like the content-script.js or the event page in the background. Angular is in typescript and I have found a gulp taks, that bundles and builds me a single content-script. Anyway I would... | |
doc_23517747 | draw.quintuple.venn(area1 = 578, area2 = 519, area3 = 212, area4 = 402, area5 = 172, n12 = 366, n15 = 97, n13 =149, n14 = 284, n23 = 103, n24 = 202, n25 = 125, n35 = 31, n34= 12, n45 = 27, n123 = 80, n124 = 161, n125 = 84, n134 = 8, n135 = 25, n145 = 20, n234 = 5, n235 = 24, n245 = 21, n345 = 1, n1234 = 5, n1345 = 21, ... | |
doc_23517748 | val shardRegion: ActorRef[ShardingEnvelope[Command]] =
sharding.init(Entity(HelloServiceEntity)(createBehavior = ctx => HelloWorldService()))
Seq("S0", "S1").foreach { id =>
shardRegion ! StartEntity(id)
}
Is there any efficient way to achieve what I want? I could not find an official post or do... | |
doc_23517749 | I'm surprised to see that, in both Python 2 and 3, testing under both Linux and Mac, comparisons seem to be much slower than arithmetic operations.
Could anyone explain why?
%timeit 2 > 0
10000000 loops, best of 3: 41.5 ns per loop
%timeit 2 * 2
10000000 loops, best of 3: 27 ns per loop
%timeit 2 * 0
10000000 loops, ... | |
doc_23517750 | The code looks somewhat like this:
Sub Document_Open()
'different functions
End sub
I also tried using the commands above in normal.dot, but it did not change anything.
| |
doc_23517751 | My code for the navbar:
<div data-theme="a" data-role="footer" data-position="fixed">
<div data-role="navbar" data-iconpos="left">
<ul>
<li>
<a onClick="navRegister();" data-role="button" data-transition="fade" data-theme="e" data-icon="gear">
<h5> Register </h5>
</a>
</li>
... | |
doc_23517752 | Iam getting below error: ActiveModel::ForbiddenAttributesError in PostsController#create
Here is the code:
posts_controller.rb
class PostsController < ApplicationController
def index
@posts = Post.all
end
def show
@post = Post.find params[:id]
end
def new
@post = Post.new
end
def create
... | |
doc_23517753 | @app.route('/timespent', methods=['GET', 'POST'])
def calculateAvgReadTime():
return jsonify({'result':'Success'})
The Javascript code I'm using to make a request to this endpoint is the following:
var xhr = new XMLHttpRequest();
// Setup our listener to process compeleted requests
xhr.onreadystatechange = functi... | |
doc_23517754 | Thank You.
A: since you have not posted any code, it's very difficult to diagnose the problem. But look at the following code which tries to open an absolute url. This can be helpful.
Use this method for both of your connection (Web Service and URL returned from Web Service). Be sure to call this method in a separate ... | |
doc_23517755 | [Session started at 2011-02-02 12:55:41 +0000.]
2011-02-02 12:55:42.884 Whereami[17833:207] <+51.51773825, -0.15769391> +/- 51.00m (speed -1.00 mps / course -1.00) @ 1/22/11 12:12:30 PM Greenwich Mean Time
2011-02-02 12:56:22.882 Whereami[17833:207] Could not find location: Error Domain=kCLErrorDomain Code=0 "The opera... | |
doc_23517756 | Can I just inherit from this standard control instead of UserControl or Control ? In fact I read it is obligatoryb to use Custom Control Project Template and not UserControl ontrol Project Template. Why ?
Update: I try with a Custom Control Project and inherit from the standard slider but I have nothing show up visual... | |
doc_23517757 | proxy_redirect off;
location / {
if (!-f $request_filename) {
proxy_pass http://backend;
}
}
location /admin {
auth_basic 'Restricted';
auth_basic_user_file passwd;
if (!-f $request_filename) {
proxy_pass http://backend;
}
}
A: Try it:
Location / {
proxy_redirect off;
if (!-f $request_fil... | |
doc_23517758 | The legend for each graph is constructed on the form title "A=-1.2345+6.7890i" (essentially a complex number), but with different numbers.
Now for my problem: The plus and minus signs in different titles have different horizontal length.
I'd like the labels to have aligned real and imaginary parts, but if the length ... | |
doc_23517759 |
A: A finished warp is retired, freeing up the warp slot in the scheduler queue for another warp, whether from the same block or another one. The number of warps that can be open at any time and ready for execution by the warp scheduler is limited based on the specific hardware type (compute capability). The number o... | |
doc_23517760 | Before, I was using SFTP with username/password/port 22 to connect
Now, I have the PEM file, and I already used it to install and configure some component. How can I connect using the PEM file and upload file via Sublime Text SFTP plugin?
I specified in sftp-config.json:
"ssh_key_file": "/home/USER/USER-EC-Virginia.pem... | |
doc_23517761 | Instead of
glDepthFunc(GL_LEQUAL);
would I use
glDepthFunc(GL_GEQUAL);
Thanks very much for any responses.
A: Yes, according to further testing, the problem is that it must be reversed as the data stored in the buffer will only pass the test the other way around.
| |
doc_23517762 | We create the repository in Azure and we Generate GIT Credentials using the button after creating the Repository:
So I present the user with a form where they can enter a new URL, a Username and a Password, and then I go check .... (vb.net code)
Dim oCH As LibGit2Sharp.Handlers.CredentialsHandler = Nothing
Dim... | |
doc_23517763 | http://docs.aws.amazon.com/en_us/gettingstarted/latest/emr/awsgsg-emr.pdf
The only modifications are that I uploaded a pre-done set of tweets and we are told to use our own config file for the NLTK. The instructor gave us the following for the custom NLTK config:
#!/bin/bash
sudo yum -y install git gcc python-dev pyth... | |
doc_23517764 | <Router>
<Route path="/" component={FrontPage} />
<Route path="/pricing" component={Pricing} />
<Route path="/about" component={About} />
<Route path="/*" component={ErrorPage}>
</Router>
Note I do not wish to have / be the same route as errors (as shown in the docs)
This has the following side effects:
*
*... | |
doc_23517765 | for (var i = 0; i < 10; i++) {
var id;
myHttp1.connect(url, 'GET', data, submitCallbackInfo);
}
setTimeout(XYZ, 5000);
What i exactly want is to call XYZ function only when submitCallbackInfo executes 10 times.
A:
Check the value of counter in the callback function
var length = 10;
var count = 0;
function sub... | |
doc_23517766 | var mongo = require('mongodb');
var db = new mongo.Db('test', new mongo.Server('localhost',22892, {}), {});
db.open(function(){});
db.collection('docs', function(err,collection){
doc = {"foo":"bar"};
collection.insert(doc, function(){});
});
I can see that this is connecting:
Thu Apr 14 15:24:12 [initandlis... | |
doc_23517767 | I'm looking to pinpoint regions of an image which show homogeneity - and then localise my analysis. I suspect that you can use blockproc to do this, but I'm not sure how to write the 'fun' function so that it runs the GLCM code. Many thanks.
A: Maybe like this? I don't own the Image Processing Toolbox, so I can't try... | |
doc_23517768 | Like this:
/**
An example of using *images* to display a web image

*/
func enableClear() {
self.cancelIconView.isEnabled = true
}
However, it simply ends up like:
I'm using the exact same example a... | |
doc_23517769 | Is there somewhere else I need to set it as well?
t = textGrob(expression(underline("My Sample Header")),gp=gpar(fontfamily="serif",fontsize=16, fontface="bold",lineheight=1),vjust=.3,hjust=2.15)
A: Since no one has answered this, you could do this two ways:
Method 1: Use expressions but do expression(bold(underline(... | |
doc_23517770 | For example if I have
ㄱㅏㅁㅅㅏㅎㅏㅂㄴㅣㄷㅏ
It would be
감사합니다
Is there any way to do this?
I can only think of bruteforcing every case that would have to count many many cases.
Below is my try. Not optimal and take too much time.
if strings.Contains(input_str, "ㅏㄴㅈ") {
input_str = strings.Replace(input_str, "ㅇㅏㄴㅈ", "앉... | |
doc_23517771 | So far we have achieved recognizing gestures in 2D using the skeleton api's in kinect sdk and applied DTW algorithm on it.
We also tracked fingers and distinguished between how many fingers are shown in the frame using contouring and applying convex hull on the contour. We used C# and Emgucv to achieve this.
Now we're ... | |
doc_23517772 | Below sample for Listener Class.
@AfterTestSuite
def sampleAfterTestSuite(TestSuiteContext testSuiteContext) {
println testSuiteContext.getTestSuiteId()
println ("Last Run...........");
WebUI.callTestCase(findTestCase('EmailUtil'), [:], FailureHandling.STOP_ON_FAILURE)
}
Thanks in Advance... | |
doc_23517773 |
I have researched online and the best answer I can find is to add SET NOCOUNT ON at the beginning of my query. I tried that, and still got the same message.
The piece of code that the Debug brings me to is as follows:
bqr.Range("B6").CopyFromRecordset rst
The meat and potatoes of my code, along with the variable setu... | |
doc_23517774 | Can I receive the parameter value from an annotation from a .env file or a class with constants?
I tryed:
@entity(database: process.env.DATA_BASE_NAME)
class UserEntity {...}
With no sucess =/
Because at this moment my .env was not instantiate yet =/
But it works fine:
@entity(database: 'Users')
class UserEntity {
... | |
doc_23517775 | Ive not made an open source project before so open to all suggestions.
A: By default, Xcode stores your product bundle identifier and your development team identifier as build settings in your xcodeproj, along with all the other details of your project structure.
You can tell Xcode to load build settings from a file w... | |
doc_23517776 | excerpt from quiz_brain.dart:
void nextQuestion (){
if (_questionNumber < _questionBank.length){_questionNumber++;
}
String get() {
return _questionBank[_questionNumber].questionText;
}
String getQuestionText (){
return _questionBank[_questionNumber].questionText;
}
bool getQuestionAnswe... | |
doc_23517777 | links: [
{
id: 3,
source: 1,
target: 2
}
]
This is my query:
MATCH ()-[link]->()
RETURN {id: ID(link), source: ID(startNode(link)), target: ID(endNode(link))} AS links
Surely ID(startNode(link)) isn't the most efficient way to do this?
Given that RETURN {id: ID(link), source: link._fro... | |
doc_23517778 | In class A
@property(nonatomic,retain)NSMutableArray *words;
In class B
@property(nonatomic,retain)NSMutableArray *words;
//creating a pointer to words from classB
self.words = [classB words];
Now if I add new word to words array in Class A, why don't I see that word in words array in class B? I thought my words... | |
doc_23517779 | function dbOperations(params){
functionInsert(params)
.then(functionUpdate(params))
.then(functionDelete(params))
...
}
then I have
function functionInsert(params){
if (params){
//DO a call against DB which returns a promise
return knex.insert().transacting(trx);
}else{
//if no params,... | |
doc_23517780 | But my date format is like this: 2013-11-01T23:00:00+0000
To convert, I have used below code:
NSString *plus = [NSString stringWithFormat:@"%@%@", [timeStamp substringToIndex:[timeStamp length]-5], @"%2B0000"];
Instead of (+) the unicode of plus which is (%2B).
But when I select the day from Tapku calender, I recei... | |
doc_23517781 | There is a time limit for orders, you can order for tomorrow on each day until 14:00. It works on the page where you can order the items (the add to cart buttons will not show up if the limit was reached), but if you already have an item in cart which will be unavailable, you CAN order it after 14:00.
I have read some... | |
doc_23517782 | the function
public function index()
{
$articles = Article::paginate(10);
return view('dashboard/news/index', compact('articles'));
}
the view
@foreach ($articles as $article)
<div class="row py-4">
<div class="col-md-5 article-img">
<img src="{{ asset('uploads/news-images') }}/{{ $art... | |
doc_23517783 | its showing error that ArrayList cannot be cast to com.panaceasoft.citiesdirectory.models.PCityData, while I used the same way in my other code
package com.panaceasoft.citiesdirectory.activities;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.... | |
doc_23517784 | ...
directory "/opt/myfolder" do
owner "abc"
group "abc"
mode "0755"
action :create
end
...
When i execute this using "chef-client" it works. But when i execute this in chef-shell (running in client mode), I get this error
================================================================================
Error e... | |
doc_23517785 | In my code I use:
Dim query As System.Linq.IQueryable(Of MY_TABLE)
Dim sCondition As String = "it.DATE_IN = '" + searchDate + "'"
query = From c In MyContext.MY_TABLE .Where(sCondition ) Select c
There result always empty and my question is..
How to get only date portion from DATE_IN field, since the searchDate is on... | |
doc_23517786 | Code:
import { TextChannel } from "discord.js";
import { ICommand } from "wokcommands";
export default{
category: 'Configuration',
description:'Sends a dropdown roles menu',
permissions:['ADMINISTRATOR'],
minArgs: 2,
expectedArgs: '<channel><text>',
expectedArgsTypes:['CHANNEL','STRING'],
slash:'both',
callback: ({... | |
doc_23517787 |
A: After I did a lot of digging, I realized that my problem was that the first step appeared to be completing successfully, but in reality, I had an atypical Rails config/application.rb where I wasn't require 'rails/all' but instead just requiring the modules I needed (which didn't include active_record at the time). ... | |
doc_23517788 | • Installing parsimonious (0.8.1): Failed
CalledProcessError
Command '['/home/nurbek/work/poker/.venv/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/home/nurbek/work/poker/.venv', '--no-deps', '/home/nurbek/.cache/pypoetry/artifacts/26/43/fb/deea29c16409d307164e... | |
doc_23517789 | <%=form_for @group_poll, :remote => true do |f|%>
<%=f.fields_for :questions do |builder| %>
<%=render "group_polls/question_fields", :f => builder%>
<%end%>
<p><%= link_to_add_group_question "#{t(:addquestion)}", f, :questions%></p>
<%end%>
The partial looks like:
<div class="row-fluid">
<div ... | |
doc_23517790 | +-----------+-------------+---------------------------+
| item_id | item_name | desc |
+-----------+-------------+---------------------------+
| 1 | Product 1 | lorem ipsum dolor... |
| 2 | Product 2 | lorem mauris eu... |
| 3 | Product 3 | scelerisque... | |
doc_23517791 | This code it's just a little part, but it should help me to use multithread with selenium
class MessageCounter(telepot.helper.ChatHandler):
def __init__(self, *args, **kwargs):
super(MessageCounter, self).__init__(*args, **kwargs)
def on_chat_message(self, msg):
content_type, chat_type, chat_id... | |
doc_23517792 | This is my docker-compose.yml file:
version: '3.3'
services:
ivs_fraud:
build:
context: .
args:
GIT_SSH_KEY: ${GIT_SSH_KEY}
image: ivs_fraud:latest
container_name: fraud
depends_on:
- ivsdb
links:
- ivsdb
networks:
- database_network
networks:
database... | |
doc_23517793 | 'Page Number & Footer Algorithm
With wdapp.ActiveDocument.Sections(1).Footers(1).range.Paragraphs(1)
.Alignment = wdAlignParagraphLeft
'.Insert.quickparts.Field.Filename
.range.InsertBefore Text:=Left(ActiveDocument.Name, _
Len(ActiveDocument.name))
.Alignment = wdAlignParagraphRight
.range.I... | |
doc_23517794 | can some one tell me how to send these hexadecimal bytes without getting converted
into any other fromat.
and which is the proper way to implement encoder and decoder for the data which is coming in hex values.
the code i am using in netty is-
private class TCPPipelineFactory implements ChannelPipelineFactory {
... | |
doc_23517795 | I can have separate Class for each Array. But for large numbers of array, there will be same no. of Classes.
Any help will be appreciated.
Below is my code : 1st Activity
public void onClick1 (View view){
startActivity(new Intent ("com.questions"));
}
public void onClick2 (View view){
startActivity(new Int... | |
doc_23517796 |
(2.14.8.5)
If L is a user-defined-string-literal, let str be the literal without
its ud-suffix and let len be the number of code units in str (i.e., its
length excluding the terminating null character). The literal L is
treated as a call of the form
operator "" X (str , len )
Whereas for all the other types of use... | |
doc_23517797 | john = ['john doe', 44, 32000]
jane = ['jane doe', 23, 12000]
people = [john, jane]
for p in people:
#===========================================================================
# p[0] prints "john doe" as expected
# p[0].split() prints ['john', 'doe'] as expected
# p[0].split()[0] prints "john" an... | |
doc_23517798 | Do you know any tool or any way to collect some statistics ? Thank you
A: Since in your last question you seemed to be uninterested in solutions that you don't already have installed, here's a solution that uses only common POSIX commands:
grep 'Query' general-query.log |
sed -e 's/.* Query //' |
sort | uni... | |
doc_23517799 | But the userList never gets updated.
userList.map(async function(user) {
let userId = user.id
await db.queryUser(userId)
.then(function(userDetails){
if(userDetails.length !== 0){
user.valid = true;
}
});
});
I tried doing this:
let filteredList = userList.map(async function... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.