id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_39300 |
A: OPCUA Part 14 is a new part that focuses on "Publish Subscribe". I think it is not finalized yet so it is only available to members of the OPC foundation.
There has been discussions within the OPCUA working group of making DDS one of the "Communications models" for OPCUA Pub-Sub. As far as I know the OPCUA working ... | |
doc_39301 | #[Assert\All(
new Assert\NotBlank(),
new Assert\Type(type: 'string')
)]
private ?array $roles;
But the Type assertion doesn't work. Shows this underlining:
Expected parameter of type 'array|string[]|void', '\Symfony\Component\Validator\Constraints\Type' provided
| |
doc_39302 |
A: Well I was having a tough time finding an answer to this, but to be honest I hadn't tried it yet. Turns out running 'git add' (like below) on a file excluded in .gitignore
git add Test.exe
outputs the following:
The following paths are ignored by one of your .gitignore files:
Test.exe
Use -f if you really want to ... | |
doc_39303 | ||
doc_39304 | For instance, the following results in a NameError:
class Hash
def extract(b)
self.each do |key, value|
bind = b.eval <<-END
#{key} = nil
proc { |value| #{key} = value }
END
bind.call(value)
end
end
end
hash = {:a => 1}
hash.extract(binding)
puts a
Noteworthy mentioning, ... | |
doc_39305 | this is the models.py for the address model
route_name = models.ForeignKey(Route, on_delete=models.CASCADE)
name = models.CharField(max_length=30)
city = models.ForeignKey(City, on_delete=models.SET_NULL, blank=True, null=True)
area = models.ForeignKey(Area, on_delete=models.SET_NULL, blank=True, null=T... | |
doc_39306 | I've been having problem importing another data from another table in-order to create a new record of log-in
ConnectToDB()
sql = "insert into monitoring (id_num, fname, lname, status, floor_level) VALUES (@num),(@name),(@lname),(@stat),(@lev)"
cmd = New MySqlCommand(sql, cn)
With cmd
.Parameters.Ad... | |
doc_39307 | I hide the fields not needed in the first step, with hook_form_alter, thats the easy part, but I don't know how to convert the form to multi step form. I read the API doc, which says, that I have to use
$form['next'] = array(
'#type' => 'submit',
'#value' => 'Next >>',
);
this is how drupal knows that thi... | |
doc_39308 | **df_path**
{0: {Timestamp('2017-04-05 10:18:02.095000'): 0,
Timestamp('2017-04-05 10:35:03.740000'): 0,
Timestamp('2017-04-05 10:57:18.364000'): 0,
Timestamp('2017-04-05 11:10:09.142000'): 0,
Timestamp('2017-04-07 09:41:11.167000'): 0,
Timestamp('2017-04-07 09:47:22.457000'): 0,
Timestamp('2017-04-07 09:51... | |
doc_39309 | So the problems are:
*
*it uses snake_case by default
*I can't set setCircularReferenceHandler callback. I set in
services.yml, but the property is equal to null when debugging. And
server throws CircularReferenceException.
My config.yml:
framework:
serializer: { enable_annotations: true }
#.....
fos_rest:
... | |
doc_39310 | CREATE TABLE MY_TABLE (
-- ...
MY_COLUMN VARCHAR(100) UNIQUE NOT NULL
)
This definition, however, caused problems when having MY_COLUMN as NULL in multiple rows, so I changed it to:
CREATE TABLE MY_TABLE (
-- ...
MY_COLUMN VARCHAR(100)
)
CREATE UNIQUE INDEX uq_my_column_not_null
ON dbo.MY_TABLE(MY_COLUMN)
WH... | |
doc_39311 | In Analytics it is showing "x of your visits sent events", but then under "total events" it says zero. It also--as one would expect--has no data available for categories and actions.
What I've tried:
*
*Checking to ensure that the parameters I pass are correct. I pass a
category, action, and label all as strings, an... | |
doc_39312 | public static string GetUsername(this Guid id) => ...
public static async Task<string> GetUsernameAsync(this Guid id) => await ...
I expected a large refactor with Serilog usage, as I have hundreds of places that use this logging like so:
Log.Debug("User {UserName} disconnected from {IP}, saving", guid.GetUsername(), ... | |
doc_39313 | npm WARN pixi-ease@3.0.7 requires a peer of pixi.js@>=4.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN pixi-scrollbox@2.3.0 requires a peer of pixi.js@>=6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN pixi-viewport@4.9.2 requires a peer of pixi.js@>=4... | |
doc_39314 | Was the L4 bad, ineffective or something?
A: For Haswell and Broadwell, eDRAM L4 cache tags are resident in the on-chip L3 cache. Although this setup simplifies the LLC design and allows earlier tag checking for fetches from the processor, it makes the accessing to eDRAM LLC from other devices (e.g., independent GPUs ... | |
doc_39315 | After authentication, I can get a myriad of information from Facebook but the one that's of most interest to my question is the access token's authorization token.
Since my app has a server side component, I also need to validate that this access token is valid on the server side (so given the access token and the Fac... | |
doc_39316 |
Site
Receipt
1001
1234567
1234098
7876987
7654207
3506
0987655
1246872
7809735
3416456
3932156
I would like to calculate how many Receipts belong to each Site. The output should be:
Site
Number of receipts
1001
4
3506
5
I applied the groupby(['SITE'])['RECEIPT'].value_co... | |
doc_39317 |
[assembly: WebActivator.PreApplicationStartMethod(typeof(NinjectMVC3), "Start")]
[assembly: WebActivator.ApplicationShutdownMethodAttribute(typeof(NinjectMVC3), "Stop")]
public static class NinjectMVC3
{
private static readonly Bootstrapper Bootstrapper = new Bootstrapper();
private static IKernel _kernel;
... | |
doc_39318 | s1,s2,s3,s4,s5,s6,s7,s8,s9,s10
I want to get a character vector with comma separator and without double quotes using R paste0 command. MWE is given below:
noquote(paste0("s", 1:10))
Could not figured out how to append comma between two elements of the character vector.
A: Try using the collapse parameter with paste... | |
doc_39319 | I made it work with a string, and other objects, but I don't know how to create an instance of RadioButton. It's constructors are asking for Context as a parameter, which also doesn't have a simple constructor. Is there any way to generate a RadioButton object without getting it without something like thisRadioButton r... | |
doc_39320 | -XX:MaxPermSize=512m
-Xmx1024m
Here is the code for my servlet:
...
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
log.info("Let's try to do something with your request");
getMultipartRequestFile(request);
}
// Handling uploaded file with c... | |
doc_39321 | (function myfunction($){
function a(){
alert("A section");
}
function b(){
alert("B section")
}
})();
I want to create a HTML button which calls function A, and function B. How can i do that?
A: Make them global by declaring the names outside the closure, then assign them within the c... | |
doc_39322 | One thought would be to create a bunch of threads or processes that run this:
def run(q, delete_on_error=False):
while True:
try:
m = q.read(VISIBILITY_TIMEOUT, wait_time_seconds=MAX_WAIT_TIME_SECONDS)
if m is not None:
try:
process(m.id, m.get_bod... | |
doc_39323 | I have a request to use the same process overall (but with variations) for a separate type of Customer. Rather than fill my affected controllers with if thens I can see I have one of 2 options.
1) Create variations on the controller (backed by a common abstract class for the common features), and figure out how to call... | |
doc_39324 | The reason I ask is that my server is currently an Amazon EC2 Micro instance and I need to put LOTS of data into a MongoDB and don't think I can spare the transactions and bandwidth on the EC2 instance.
A: There is copy database command which I guess should be good fit for your need.
Alternatively, you can just stop M... | |
doc_39325 |
*
*A React single page app on https://react.mycompany.com
*A Apigee API proxy on https://apigee.proxy.com
On login Apigee sets a jwt cookie using the Set-Cookie header:
Set-Cookie: jwt={jwtoken};secure;httponly;path=/;samesite=none
On client side Chrome shows me this cookie for the frame https://react.mycompany.com... | |
doc_39326 | @using (Ajax.BeginForm("_CityLookUp", "Home", new AjaxOptions
{
HttpMethod = "POST",
UpdateTargetId = "div1",
InsertionMode = InsertionMode.Replace
}))
{
<div id="div1">
<div class="form-group">
@Html.LabelFor(m => m.PostCode, new { @class = "col-md-2 control-label" })
<d... | |
doc_39327 | Imagine that Elastic Search engine has data included key and value.
the key is word. And the value is a list of Entity.
for example; key:apple, value:[fruit, company]
And when I send a query that consisting of a sentence. The sentence can have several candidate keywords. So, my question is whether the functionality is ... | |
doc_39328 | Pretty new to Django, so haven't given it an actual try so far. Though, for the past days actively checking on the web/documentation on how to get started.
Basically I want to compute the XIRR of an investment. So far, I have created a model (Investment) which has 3 attributes: name, date and cash flow. An investment c... | |
doc_39329 | http://jsfiddle.net/owlstack/Sbb5Z/1619/
Here's where I set the kendo columns:
$(document).ready(function () {
var grid = $("#grid").kendoGrid({
dataSource: {
data: createRandomData(10),
schema: {
model: {
fields: {
FirstNa... | |
doc_39330 |
A: Did you actually mean Stroke?
You can simply use the constructor of Stroke to convert from StylusPointCollection.
public Stroke (
StylusPointCollection stylusPoints
)
| |
doc_39331 | In the description field we have added user job titles and I am trying to search for specific job titles to display full names and usernames.
What I have gathered from my quick googling is this:
Get-ADUser -Filter * -Properties Description | Select Name,SamAccountName
This displays all AD users with name and username d... | |
doc_39332 | First off, a bunch of WPF windows are created via:
var thread = new Thread(() =>
{
var bar = new MainWindow(command.Monitor, _workspaceService, _bus);
bar.Show();
System.Windows.Threading.Dispatcher.Run();
});
thread.Name = "Bar";
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
In the ctor of the ... | |
doc_39333 | *
*I am having trouble with my code in trying to get the table I created in MYSQL to display into a JFrame. Maybe I am doing this completely wrong. Can anyone show me where exactly I should be putting the line of code to get the database to load into the JFrame? Thank you.
I would like to know the basics of connecting... | |
doc_39334 |
node is (5,5)
The error occurse at execution time.
Error is:
list objects are unhashable
the program is:
closed.add(node)
for val in closed:
print val
Node is the output of stack.
node = stack.pop() - it gives me...(5,5)
Traceback:
File "/home/", line 99, in depthFirstSearch
closed.add(node)
TypeError:... | |
doc_39335 |
A: Had some fun with this goal.
Consider this UserForm in Editor with TabStrip, 2 frames and some other controls.
Frames are named from Frame0, Frame1, etc.
Assuming the Frame0 is the location reference and first to display when UserForm is displayed, code below will be what you want.
Code:
Option Explicit
Private... | |
doc_39336 | Which to use?
*
*GlassFish
*Tomcat
*Apache
*Jetty
*Another?
I wonder if someone already using JNLP could make any recomendation for the server.
I just want a blank page with a button in the middle for starting the application nothing more, nothing less.
A: As already stated any server capable to serve HTTP wi... | |
doc_39337 | ||
doc_39338 | Mobile App Error Screen Shot
A: Last time I received the same error message in Acumatica mobile app, there was an issue with the changes, that I made in Mobile Site Map. Let me suggest to delete all Mobile Site Map customization files from the local website, restart the mobile app and try to open the Approvals screen ... | |
doc_39339 | I have one context provider with many different state, but one state looks like following:
const defaultParams = {
ordering: 'price_asc',
page: 1,
perPage: 15,
attrs: {},
}
const InnerPageContext = createContext()
export const InnerPageContextProvider = ({ children }) => {
const [params, setParams] = useSta... | |
doc_39340 | As shown image in above I have four tabs below videoview Resume , Produits ,Persos, Talk.
When I click on Tab a new corresponding activity is launched below the tabs.
Now as shown in Image current Tab is talk.
My question is when user clicks on Edittext it shows soft input keyboard but it hides the edittext beside the... | |
doc_39341 | using batch "for /r %i in (*) do type 4KB file.txt >> %i
Now I want them to revert to orignal state. Few files are around 14GB . While trying to read , it takes a lot of time to open.
Please let me know how can I revert them back to original state.
A: First off, the difficulty of this task depends on the actual stri... | |
doc_39342 | Therefore, I want to run my LDA model n number of times, each with a different set.seed(), look at the average theta for each document, and then choose the model that is closest to that average.
So, this is what I do once:
require(quanteda)
data("data_corpus_moviereviews", package = "quanteda.textmodels")
corp <- head... | |
doc_39343 | EDIT:
To clarify question.
Suppose I have a method:
public Boolean Check(PropertyInfo pi)
{
return pi.Type.IsStruct;
}
What do I write instead of IsStruct?
A: Structs and enums (IsEnum) fall under the superset called value types (IsValueType). Primitive types (IsPrimitive) are a subset of struct. Which means all p... | |
doc_39344 | How to enable it?
A: The is_nls column on the sysdatabases view over the sysmaster is a flag that tells whether GLS is enabled (1) or not (0).
You should not try to change it over this view nor the sysdbspartn table.
If what you're trying to do is change the code set used for a database that it's not possible.
To spe... | |
doc_39345 | There are ways to parse/compile python source code using standard python modules, such as ast or compiler. However, I don't think any of them support ways to modify the source code (e.g. delete this function declaration) and then write back the modifying python source code.
UPDATE: The reason I want to do this is I'd ... | |
doc_39346 | exinfo.py
import os, sys
from os import path
import pickle
import asyncio
import threading
import sys
print (sys.version)
print (sys.version_info)
exinfopath = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
extpkl = os.path.join(exinfopath, "exinfo.pkl")
exinfo = None
class ExInfo:
instance = N... | |
doc_39347 | The algorithm is straightforward, but I actually don't have it... How do a process knows that there are no more incoming message with a timestamp less than or equal to the timestamp of the message to be processed?
It might be solved by all processes broadcasting an ACK when they receives a message... So since the messa... | |
doc_39348 | I want to change that to just 123 without the quotes - can anyone tell me how to do this? I can open it up in NetBeans, but I am new to this area.
It's based here https://github.com/TGAC/TGACBrowser.
Any ideas, URLs, references and/or suggestions appreciated.
Paul...
| |
doc_39349 | How can I format the balloonText?
Thanks!.
// Creates graph and adds it to actual chart
var createGraph = function (title, valueField, color, unit) {
try {
var graph = new AmCharts.AmGraph();
graph.title = title;
graph.labelText = "[[value]]";
graph.balloonText = title + " of [[valu... | |
doc_39350 | That is, given,
var statusCode: Int = ..
which, if any, of the following expressions would be preferred?
let success = String(statusCode).prefix(1) == "2"
let success = statusCode < 300 && statusCode >= 200
The relevant documentation reads,
The first digit of the Status-Code defines the class of response. The
las... | |
doc_39351 | Here is the .log file:
!SESSION 2013-04-22 20:12:27.799 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_17
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
... | |
doc_39352 | // DEFINE THE PATH WHERE WE WANT TO SAVE THE FILES.
string sPath = "";
sPath = WebConfigurationManager.AppSettings["UploadFilePath"];
System.Web.HttpFileCollection hfc = System.Web.HttpContext.Current.Request.Files;
But after this validation is done ,if it is successful, user will be presented with the confirmatio... | |
doc_39353 | Here is my code segment:
print "Program to read numbers from file and sort"
mylist=open ("numbers.txt").readlines()
sorted (mylist)
print (mylist)
The program output does not seem to be sorting at all. I did try to use the .splitlines("'") but it causes an error.
A: sorted() just returns a sorted version of a list. ... | |
doc_39354 | controller not sending to view .controller not sending to view
My controller is sending to another view. but its not working .
public IActionResult userLogin([FromBody] Users user)
{
string apiUrl = "https://localhost:44331/api/ProcessAPI";
var input = new
{
... | |
doc_39355 | In the following code, we have a Packet class with just a fixed-size array of bytes (more than 4 in the real code). It must match the binary representation, including for arrays and vectors of Packet. So, we cannot define some higher level of abstraction, just keep the low-level representation. And, because we manipula... | |
doc_39356 | My guess is to do
#maually calculate the paddings
ZeroPadding3D(...)
Conv3D(padding='valid',...)
| |
doc_39357 | sites = Sites.objects.values('name')
# output
[{'name': u'serverfault.com'}, {'name': u'superuser.com'}, {'name': u'stackoverflow.com'}]
I want to move stackoverflow.com to the beginning of the list, how do I do that? I can exclude stackoverflow.com but I don't believe I can append the new list to it with ValuesQuer... | |
doc_39358 | It's a view based app and I have a NavigationController in my appDelegate file which is pushing various ViewControllers as required. Going in the "forwards direction" everything works well, seems perfect actually, but the problem I have is when VC's are popped off the stack. This is the code I'm using to show the VC a... | |
doc_39359 | The code below worked when the subject name was just S80 but now there are more details in the subject it no longer works.
<serviceCredentials>
<serviceCertificate findValue="S80, My Company Name, Country" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName"/>
</servi... | |
doc_39360 |
A: Duplicate: this answer.
@MADHU VS - your formula is exactly like the one in that answer. Maybe what's confusing you is you think the answer should be 5 days - it's really 4. "04 days 17:31:19"
The person who answered on the other thread also made a useful suggestion not to use the text function. Use =A2/(24*60*60... | |
doc_39361 |
I want to replace that jar with a different jar I made from project B (where I modified some code).
Project B's main module looks like this:
Then when I make a jar file for it selecting main as the module (I don't select a class):
And import the jar into project A, it comes out like this with a lot more folders than... | |
doc_39362 | ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-macos 2.5.0 requires numpy~=1.19.2, but you have numpy 1.23.4 which is incompatible.
tensorflow-macos 2.5.0 requires typing-extensions... | |
doc_39363 | so I run the command:
sudo ionic cordova emulate android --prod
I get this error:
BUILD SUCCESSFUL in 1s
42 actionable tasks: 42 up-to-date
Built the following apk(s):
/Users/esham/Desktop/magazine-app/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Checking Java JDK and Android SDK versions
ANDROID_... | |
doc_39364 | here is a link to the code.
http://pastebin.com/dTRH263t
seems I've not closed some div's but when I look back at it can't see the problem.
Thanks.
A: Start using http://validator.w3.org/
Not counting php issues, there we have:
*
*Unclosed div on 26
*Unclosed div on 27
*In img tags empty attributes (set values or... | |
doc_39365 | [15:19:49 INF] Log in Program.cs
%3|1620890390.755|FAIL|samplepublisher#producer-1| [thrd:ssl://bootstrap.data.test.co:9094/bootstrap]: ssl://bootstrap.data.test.co:9094/bootstrap: SSL handshake failed: error:140900:SSL routines:ssl3_get_server_certificate:certificate verify failed: broker certificate could not be veri... | |
doc_39366 | I have problem on retain value from the select option after validation failed.
My select option are triggered one just like this fiddle,
the 1st select option value will triggered 2nd select option, then the 2nd select option value will triggered a image. The 1st select option value are retain but the 2nd select option... | |
doc_39367 | Here is my code :
function buildDynamicMenu(elements,parentId)
{
branch =new Array();
elements.forEach(function(element){
if (element['parent_id'] == parentId) {
children = buildDynamicMenu(elements, element['menu_id']); //Recursive function not working
if (children) {
element['childre... | |
doc_39368 |
I want when click on linearLayout is clicked layout will expand and this icon will rotate with animation in 180 degrees like below-
here is my action code:
rotationAngle = rotationAngle == 0 ? 180 : 0;
expandArrow.animate().rotation(rotationAngle).setDuration(500).start();
where rotationalAngle=0; is declared global... | |
doc_39369 | Is there any tool out there?
A: You can try Rails Installer
A: One of your choices is to use built in mongrel/webrick server which comes with each rails app. Just type $ rails s at the console and you're good to go. Otherwise I don't think it's particularly useful to deploy an app each time you change something.
| |
doc_39370 | Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
None of its fields are nullables but if I make:
$user = new User();
$user->sa... | |
doc_39371 | E.g. we have some set of float values over a range from 0 to 1 and what we need is a chart diagram over 10 ranges ([0.0, 0.1], [0.1, 0.2], ..., [0.9, 1.0]) of how many of given floats hit the respective range.
Thanks.
A: This can easily be done with a "frequency plot". If the frequency option is set "all points with t... | |
doc_39372 | Now I need to calculate how many patient developed problem, how many improved and how many maintained having problems. The answers are in scale 1-6 where <3 is no problem, 3-4.75 is sometimes problem and >= 5 is problems.
I have merged these two dataframe to one and tried to calculate difference by coding
dat5$noprobl... | |
doc_39373 | I tried adding the libraries in the domain/lib directory. The only issue I face is logging. We use slf4j and logback for application logging (some of the third party libraries also use the same). Since the libraries are in domain/lib while the configuration files (logback.xml) are in individual war files, logback does ... | |
doc_39374 | ContinentDictionary = {'United States':'North America',
'Japan':'Asia',
'United Kingdom':'Europe',
'Australia':'Australia',
'Argentina':'South America'}
c1 = pd.Series({'Size':'Large','Pi':6,'Pr':160})
c2 = pd.Series({... | |
doc_39375 | $(document).ready(function(){
$(".slideToggle").click(function(e) {
e.preventDefault();
$(".top-menu li").removeClass("active");
var $more = $("#impressum").slideToggle("slow");
$("body,html").animate({
scrollTop: $more.offset().top
}, {
duration: 1100,
... | |
doc_39376 | ERROR: type should be string, got "https://a.mapillary.com/v3/users?usernames=%s&client_id=%s\nHere is example on Java\nBut now this query is irrelevant. I also read Mapillary API v4 documentation, but did't find what I needed.\n" | |
doc_39377 | Here is the code..
import java.awt.event.ItemListener;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.ImageIcon;
public class againcheckbox extends JFrame implements ItemListener
{
//frame and panel
ImageIcon image1=new ImageIcon("logo4.png");
JFrame frame=new JFrame()... | |
doc_39378 | application.js
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
require("@ra... | |
doc_39379 | Could not find an accurate answer.
Please help!
Thanks
{
filter: {
spanish_stemmer: {
type: "stemmer",
language: "spanish"
},
spanish_stop: {
type: "stop",
stopwords: "_spanish_"
}
},
my_analyzer: {
spanish: {
filter: [
"lowercase",
"spanish_stop",
"spanish_stemmer"
],
tokenizer: "standard"
}
... | |
doc_39380 |
When a .then() lacks the appropriate function that returns a Promise object, processing simply continues to the next link of the chain. Therefore, a chain can safely omit every handleRejection until the final .catch(). Similarly, .catch() is really just a .then() without a slot for handleFulfilled.
Considering:
The ... | |
doc_39381 | HTML (index.html)
<body>
<a name="top"></a>
<!-- header section -->
<div ng-include="'views/header.html'"></div>
<!-- views section -->
<div ng-view></div>
<!-- footer section -->
<div ng-include="'views/footer.html'"></div>
</body>
HTML (footer.html) href="#!request" is to load the request page - that works OK,... | |
doc_39382 | While there are related header files in Android NDK r15c (swab.h, swab.h), none provides a signature for swab() or _swab().
What is a good workaround?
A: Looks like Android does have it, but not until android-28: https://android.googlesource.com/platform/bionic/+/1eb5976d7505f299754040e19792a0de94abccbc/libc/include/u... | |
doc_39383 | signup.php apparently shows no errors when inputting a new account, the username and password is supposed to be saved in the database.
Here it is:
<?php
require_once ("functions.php");
require_once ('config.php');
require_once ('User.php');
require_once ('Session.php');
$default_label = 0;
$error = null;
if($ses... | |
doc_39384 | Here's the swap value script
$(function() {
swapValues = [];
$(".swap_value").each(function(i){
swapValues[i] = $(this).val();
$(this).focus(function(){
if ($(this).val() == swapValues[i]) {
$(this).val("");
}
}).blu... | |
doc_39385 | But in another project using the same files, it does not compile. I'm using VS2012 and the C/C++ Properties are identical between the two projects. I've searched here but couldn't find anything. Any help is appreciated!
Header file:
#include <vector>
extern void split(const wstring &s, WCHAR c, vector<wstring>& v);
C... | |
doc_39386 | Here is the code
python_types = {
TYPE_DOUBLE: float,
TYPE_FLOAT: float,
TYPE_INT64: long,
TYPE_UINT64: long,
TYPE_INT32: int,
TYPE_FIXED64: float,
TYPE_FIXED32: float,
TYPE_BOOL: bool,
TYPE_STRING: unicode,
}
I only get errors for long and unicode types but other types are ok. Can ... | |
doc_39387 | I've tired searching but without effect...
A: location.reload()
That was easy...
A: Try
history.go()
this is probably the shortest way
| |
doc_39388 |
Error:Transformation failed..,
StackTrace: at Microsoft.XLANGs.Core.Service.ApplyStreamingTransform(Type
mapRef, TransformMetaData trfMetaData, Object[] outParams, Stream[] inStreams, Boolean whitespaceCorrect)
I don't know the reason behind that. But is it possible to trigger that orchestration and how? ... | |
doc_39389 | Below is my json object.
let products = [
{
"name" : "product 1",
"rating" : 5
},
{
"name" : "product 2",
"rating" : 4
},
{
"name" : "product 3",
"rating" : 5
},
{
"name" : "product 4",
"rating" : 2
}]
Here I am using filter functionality but unable to understand how to use it properly.
This is the ... | |
doc_39390 |
A: It is a very old question, but I found solution and I want to share with you.
There is way to specify this point. Method setValue(double x, double y) do this, but this method not describes in the documentation (it's very strange for me), but this method works!
I wrote small but useful snippet. If I understand you c... | |
doc_39391 | What I'mm doing is that I'm reading from the file descriptor of tts/1 using read(). What I have seen is that for a single key press I got the same key code twice(sometime thrice). I think that this is not a hardware issue. I' using standard UART code.
Anybody has any idea ?
A: You could do like most devices and just ... | |
doc_39392 | <form action="" accept-charset="utf-8" method="post">
<textarea name="content"></textarea>
</form>
and an not-inside-a-form element:
<input type="password" name="password">
How do I add the value of password into the form when I submit the form?
$('form').submit(function(){
//hmmm
});
A: The not-yet-supporte... | |
doc_39393 | Since 3.6 (appart the fact that the cursor options is now required, which is not specified in the doc), the following command:
collection.aggregate(
[...],
{ cursor: { batchSize: 10 } }
)
Returns on object with this shape:
{
"cursor": {
"firstBatch": [...],
"id",
"ns"
},
"ok": 1,
"$clusterTime"... | |
doc_39394 | <root>
<child_1 entity_id = "1" value="Game" parent_id="0">
<child_2 entity_id="2" value="Activities" parent_id="1">
<child_3 entity_id="3" value="Physical1" parent_id="2">
<child_6 entity_id="6" value="Cricket" parent_id="3">
<child_7 entity_id="7" value="One Day" parent_id="6"/>
... | |
doc_39395 |
A: Tachyons and knowledge of CSS is all you need to make beautiful UIs.
Tachyons is a set of HTML classes that you can use to apply CSS that is thoughtfully systematized.
Check out the components page:
http://tachyons.io/components/
There, you can find lots of great examples and see exactly how they were made!
| |
doc_39396 | people = [
{'name': "Tom", 'age': 10},
{'name': "Mark", 'age': 5},
{'name': "Pam", 'age': 7}
]
# This did not work; I got '<filter object at 0x1020b7f28>' back, which I believe is the memory location itself.
result = filter(lambda person: person['name'] == 'Pam', people)
print(result)
# This is the attempt that works... | |
doc_39397 | Everything was working perfectly until I added validation to the answers given by the user. Now when I run the program it says my answers are incorrect!
What have I done?
Version 1 that works
def inputandoutput():
questions_file = open_file("questions.txt", "r")
title = next_line(questions_file)
welcome(ti... | |
doc_39398 | I got the table 'users'
and one table 'blogs' (user_id, blogpost)
and one table 'messages' (user_id, message)
I'd like to have the following result:
User | count(blogs) | count(messages)
Jim | 0 | 3
Tom | 2 | 3
Tim | 0 | 1
Foo | 2 | 0
So what I did is:
SELECT u.id, count(b.id), count(m.id) FROM `users` u
L... | |
doc_39399 |
A: I think the function you want is BitBlt.
A: I don't know much about Ruby, but isn't it interpreted? If it is and you are invoke a Win32 API call through presumable one of Rubys librarys and on top of that calling GetPixel, well then yes, it would be slow.
If you have access to the Win32 api's through Ruby then yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.