Posts

Showing posts from January, 2010

ios - UINavigationController in Container View: push segue on table view cell does nothing -

Image
मेरे पास एक कंटेनर दृश्य है जो एक नेविगेशन नियंत्रक (UINavigationController) को रूट दृश्य के साथ एम्बेड करता है जो कि एक UITableViewController है प्रोटोटाइप सेल में से एक को एक अन्य यूआईटीबल वीआईयूआई नियंत्रक के लिए चयन पर एक सेगमेंट है। यह सब XCode 5 में स्टोरीबोर्ड के माध्यम से है। कोई वास्तविक कोड नहीं। दुर्भाग्य से सेल का चयन होने पर कुछ नहीं होता। मुझे क्या याद आ रहा है? धन्यवाद मैंने उस संरचना से पहले की कोशिश की और इसे अच्छी तरह से काम करना चाहिए यहां पूर्ण स्टोरीबोर्ड का एक उदाहरण स्क्रीनशॉट है:

osx - ORSSerialPort -- debug freezing in XCode -

I am writing an app that is a USB RS232 DB-9 serial dongle and prolific PL 2303 HX drivers (v. 1.5.) I'm connecting to a device @ 9600 baud, which has a 40-byte payload @ 10Hz Data typically changes every second; Inside my app I'm closing NSNotification with each updated data dictionary, at any point I do not send data to the data. This is working well ... while trying to debug in XCode 5.0.2 under OS 10.9.1. If I stop at breakpoint for any time period (usually 3-5 seconds), then my USB keyboard & amp; The mouse is completely stable. Physically connecting and reconnecting does not help me in VNC for my machine and XCode is remotely released, at which point I get KB / mouse control back. Checking the document on the USB dongle, it has a 256-byte I / O buffer. This is possibly full / overflow during debugging, which in some way causes the driver and / or exodus to freeze. One solution I think is always my setup / read / ORSSerialPort on an optional thread , but...

node.js STDIN works with process.stdin, not when piped -

I'm using the requirement ("child_process") Span and executable calling, which is initially stopping for a password to be an input; If I use it as below: var spawn = is required ("child_process"). Var exe = spawn ("NameOfExe.exe", [/ * arguments * /], {stdio: [process.stdin, process.stdout, process.stderr]}); It works perfectly (yes, I know that I can inherit, shash: p). I can type inside my console and accept it with no problem. However, if I do this: var spawn = require ("child_process") .spawn; Var exe = spawn ("NameOfExe.exe", [/ * arguments * /], {stdio: ["pipe", process.stdout, process.stderr]}); Exe.stdin.write ("password \ n"); then executable does not even receive stdin; It goes immediately to fail the execution. I am completely in a loss for this. Any suggestions? Edit: I think I can be anything! So I'm 99.99% sure that the executable is using C # and the console. Read to g...

c# - Replace repeated char with something else in a string -

I need help in understanding a logic: So, suppose I have a string , And whenever there is a character repeated within string , I have to replace it with ( four + serial number ). For example: Original string: "abcdefgabfabc" expected output: "abcdefga2b2f2a3b3c2" 'A' is 3 times, so 'A' remains in the form of 'A', but the second 'A' becomes 'A2' , And the third gets 'A' 'A3'. It also goes to other characters like B, B2, B3 ... var str = "abcdefgabfabc"; Var character = str. Selection ((c, index) => {int count = str.Substring (0, index) .net (x = & gt; c == x); if (calculation> 0) return c ToString () + (Count + 1); and return c.ToString ();}). SelectMon (c => gt) .Oir (); Var result = new string (character); // abcdefga2b2f2a3b3c2

c# - How To Convert The String (X cm) To INT (X) X = Number -

स्ट्रिंग (एक्स ले) को INT (X) में कनवर्ट कैसे करें X = number मैंने इस्तेमाल किया: कन्वर्ट। ToInt32 (फ़ॉर्म 1.sendproductprice1) * Convert.ToInt32 (Form1.sendamount)); उदाहरण: Form1.sendproductprice1 = "25 LE"; फॉर्म 1.sendamount = 5; तब मान 125 होना चाहिए लेकिन मुझे त्रुटि मिली "इनपुट स्ट्रिंग सही प्रारूप में नहीं थी" नीचे दिए गए कोड का काम होना चाहिए: कन्वर्ट.ओआईएनटी 32 (फॉर्म 1 एसएंडप्रोडक्टप्रिस 1.Split ('') [0]) * कन्वर्ट .ToInt32 (Form1.sendamount));

Grails resources plugin -

The grails and the resource is trying to get my head around the plugin. I have read that it is already installed and I have also read that it is not and you need to add it as a runtime plugin in the configuration file. So the question is right? When I try to add it to my Config.groovy file, I get an error. | Error error packaging application: Error loading error Config.groovy: no sign of method: groovy.util.ConfigSlurper $ _parse_closure5.runtime () applies for logic type: (java.lang.String) Value: [: resource : 1.2] Config.groovy file grails { plugins {runtime}: Resources: 1.2 'runtime': Cached-Resource: 1.0 "Runtime": yui-minify-resources: 0.1.5 "}} Updated post: I apologize after reading that it should be in my build config but Now get a different error 2014-02-17 15: 03: 44,111 [local host-startStop-1] error payment-gateway: plugins.DefaultGrailsPluginManager - dynamic methods for error plugin [resources: 1.1.6] configure: com / yahoo / p...

Remove forward slash from URL jquery -

I am trying to delete "/" before the following code if ($ (This) .fund ('img'). Length) {var url = New URL ($ (this) .find ('img'). Et ('scom')); $ ("# Ajaximageid") val (url.pathname). } I have tried to use url.replace ("/", "") but I get an error Any help would be appreciated I have tested the url object and found that you can not delete / i . If you do url.pathname = 'test', then , the path is named / test . What you can do when you use it, you cut the first letter: $ ("#jjaximageid"). Val (url.pathname.slice (1));

ldap - dartlang and dartdap library and connection to active directory -

I was looking for a good LDAP library for dart to connect Microsoft Active Directory. I got a ditherdup, but I can not get to do this work. I am 100% pure that my CN and password are correct because I can connect to Active Directory for example with LPAP browser. I get the error: Uncaught Error: Invalid Credit (49) Message = 80,090,308: LdapErr: DSID-0C0903A9, Comment: AcceptSecurityContext Error, Data 52E, v1db1 ldap. YAML looks like this (address, password and user name closed under curriculum) # ldap configuration file # default if no connection name specified default Is used: Port: 389 Host: xxx.xx.com bindDN: cn = testaccount password: XXXXXXXX and ldaptest.dart looks like this: Zero readDataFromDesparcer () {var ldapConfig = new LDAP configuration ("ldap.yaml", "default"); Var attrs = ["dn", "cn", "objectClass"]; Var filter = Filter.substring ("cn = A *"); Var notFilter = Filter.not (filter); . LdapConfig....

PowerShell Security Log -

I am writing a PowerShell script which calculates the number of 4624 EventIDs in a day, but when I go According to the date I am missing, what is there for the information group who can help me? My output should have the number of logins for that day and something else. Here's my code: Get-EventLog "security" - first ([date time]: now). Where-filter script {$ _. EventID -Ek 4624} Try it out: Gate-Event Log Security - First ([DateTime]: now). Where {$ _. EventID-Ik 4624}. Group @ {e = {$ _. Time Generated.Date}} | Sort number-DCC group-object command allows you to specify the expression for the property on the group. In this situation, you want to group the date code on the date section, so keep in mind that unless they are in place or special codes like ; , @ , { , $ and ( .

Chrome Dev Tools - Emulation View keeps showing on open -

Image
itemprop = "text"> Easy time I press F12 to open Dev tool on Chrome, I get a stupid emulation panel I also go to settings and overrides, and uncheck the emulation scene in the console drawer, and then reload the page Do it, and it's still showing it. This was a bug and it has been fixed, so please wait for the next update.

ruby on rails - Rake Aborted: Can't mass-assign protected attributes -

I try to migrate the data imported via seed assistant to rake db: seed I do A rake works (01_roll), but the second rake (02_conditions) says there are large-scale protected features. Fixtures / Evolution / 01_Rolls. Rb SeedHelper.make_roles Fixtures / Development / 02_conditions.rb SeedHelper.make_conditions seed_helper. RB Singleton DF self.make_roles in class seed helper file_path = "# {Rails.root} / db /roles.csv" RoleImporter :: import (file_path) end Def self.make_conditions file_path = "# {Rails.root} /db/conditions.csv" ConditionEmporter :: Import (file_path) end and model / condition.rb condition of the category & lt; ActiveRecord :: Base attr_accessible: condition,: bodypart,: description end I'm thinking that this is calling the first stability (01_roles) because that file has a "description" variable and It is not saying this as an error: can not assign protected attributes: condition, bodypar...

mysql - Finding all other Objects with same Joined Attributes -

I have a product table, and then the product type and product option tables (include in tables for other tables). Looking at one product, I want to find all other products where the product's options (i.e., ProductOptions.product_id == product.id) and ProductTypes are the same. Most Well we can get all the product type and product options, then to find the ID == id to join the table for each; But it seems irreversible and we feel that one way to do this should be a bit clearer. How would you find other products where all the options and types included in the original product match? using Rail 3.x / ruby ​​1.9.3.

c++ - Critical error while freeing memory -

I have a buffer containing structure for the index (DirectX, but I think it does not matter): structure index {CComPtr & lt; ID3D11Buffer & gt; Buffer; UINT Index; }; and a way that starts the array with the object of the class index: mindex = new indices * [layers]; For (int i = 0; i and method that frees memory: for (int i = 0; i & lt; layers ; ++ i) Delete Mindice [i]; // Here I'm getting important error removal minduses; But when I try to release memory I get "serious error detected c0000374" (as mentioned in the code above). Can you help me, please? I hope the posted problem will be enough to solve my problem. Thanks Since you are allocating to the array, Should be removed. Use Delete]] instead of Delete .

Hiding the Navigation Bar - Android Training -

I am currently going through Android training, because I am trying to hide the navigation bar properly. It says: You can hide the navigation bar by using Android 4.0 and higher using the SYSTEM_UI_FLAG_HIDE_NAVIGATION flag. This snippet hides both the navigation bar and status bar: Then they provide a code sample. see decorView = getWindow (). GetDecorView (); // Hide both the navigation bar and status bar // SYSTEM_UI_FLAG_FULLSCREEN is available only on Android 4.1 and higher, but as a general rule, you should design your app to hide the status bar whenever you hide the navigation bar I Int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN; DecorView.setSystemUiVisibility (uiOptions); As you can see that the SYSTEM_UI_FLAG_FULLSCREEN flag is only available in 4.1 but they say that this block of code is for 4.1. Will this not cause the application to crash? Does my block's code look more like: see decorView = getWindow (). GetDec...

Master Sitemap link in Header of site or Robots.txt -

I have a Master Sitemap that contains links to other site maps which are accessible on the path like this: www.website.com/sitemap.xml I want to ask if it is sufficient for search engines or if I want to link to its site ? Link - I know that I can use a robots.txt file but it is possible to add a link at the top of the site - something like this (and I'm just guessing): & lt; Top & gt; & Lt; Link rel = "sitemap" type = "app / xml" title = "sitemap" href = "/ sitemap.xml" & gt; & Lt; / Head & gt; > Sitemap should always be located in the Route and this is where the search engine will appear. I suggest you use a Google Webmasters tool to submit a sitemap for your domain so that you can get indexed and you monitor the search engine behavior. You can. Hope this information will help you.

Linear Programming with Constraints -

Is there a hindrition on the optimization function? Is there a known algorithm for finding the maximum maximum? That is, I am interested in finding the maximum c T x under the constraint Ax & lt; = B However, I also request that c t x It looks like a simple algorithm, but I have an extra barrier at the maximum cost. Simple line algorithms can deal with any linear barriers and linear object functions. If some linear obstructions create the purpose function, then nothing is special in all, no LP Solver can do the trick! This can be useful to add a new decision variable.

c - gdb weird backtrace -

My program is compiled with dietlibc, it has been compiled at Ubuntu x64 (compiled for x86-m32 flag) and one The sensor runs on x86. The compiled size is only about 100 KB, I do not compile it with GGD3 and any optimization flag. My program uses signal.h to handle the SIGSEGV signal and then calls abort (). The program runs without problems for days but sometimes segfaults. This is when I get weird batteries which I do not understand: Username @ Ubuntu: ~ / Desktop $ gdb -c core.28569 Program-Name GNU GDB (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3 +: GNU GPL version 3 or later it's free software: You are free to change and redistribute it. To the extent permitted by law, there is no warranty, type "copy show" and "show warranty" for details, configure it as GDB "--host = x86_64-linux-gnu -target = i386-linux-gnu" it was done. For bug reporting instructions, please see: ... Reading the symbols by program name ....

c++ - Get Access violation reading location 0x000000b0 with glutMouseFunc -

I am using glutMouseFunc (mouseFunction); As a callback though I am receiving a violation of 0x000000b0 reading on this line glutMouseFunc (mouseFunction); I am not using any glutInit function because they interfere with the program and they are not necessarily anyway. Do anyone know why I am getting this error in this callback? Here's my initial task: int initialize () {/ * bunch of code here which is irrelevant to the problem ....... * / glutMouseFunc (Mousefunction); // here is error} And here is my mouse function: zero mouse function (int button, int state, int x, int y ) {If (button == GLUT_MIDDLE_BUTTON & amp; amp; amp; amp; state == GLUT_DOWN} {printf ("pressed middle mouse button!"); }} I have noticed one thing, but when I call the mouse function () in my initial method as a normal function call, then there is no error, but Once I get the mouse function error, with glutMouseFunc (mousefunction), I believe it is more than an error with glu...

Reshape data in R -

I have to be a matrix from this data frame. On the basis of values, if there is a connection between a pair of 1 gene, and if not then 0. Therefore, the value of ADRA1D and ADK will be 1, and such other pairs will also be there. But there is no pair of ADK and AR, so in that matrix this should be 0. tab & lt; - read.table (text = "ID gene1 gene2 1 ADRA1D ADK 2 ADRA1B ADK 3 ADRA1A ADK 4 ADRB 1 ASIC 1 5 ADRB 1 ADK 6 ADRB 2 ASIC 1 ADRB 2 ADK 8 AGTR 1 ACH 9 AGTR 1 ADK 10 ELLOS 5 ADRB 1 11 ALOX 5 ADRB 2 12 LPPL 2 ADRB 1 13 ALPPL 2 ADRB 2 14 A2 A2 ART 1 15 AR ADARA 1 AR ADRAID 17 AR ADARA 1 B 18 AR ADARA 1A AR ADR 2 A 20 Mainly, I Want to build phylogenetic tree, so a matrix like this I do not have any price column, so how can I revive the library for this? The code below does not work: library (reshape) ct = cast (tab, gene1 ~ gene2) if Using the reshape is not mandatory, so I had a look at the igraph. using the igraph package to get the symmetric matrix The...

java - Do I need to include a default Intent in order to return to the previous Activity? -

Image
I am working on a two to list Android application (this is for class assignment but it is not what I am asking about.) - As I was able to do as I could Trying to quit more code) The main screen displays a list of ToDo items with a button below to open a new toda item screen. add new toDo items to the screen , There is a cancel button. The relevant ToDoManagerActivity.java snippet Public void onCreate (Bundle savedInstanceState) {// Init and Setup Adapter, etc. FooterView.setOnClickListener (New OnClickListener) {Public Zero onClick (see v) {intent = new intent ( ToDoManagerActivity.This, AddToDoActivity.class); startActivityForResult (intent, ADD_TODO_ITEM_REQUEST);}}); // Attach the adapter to the list of activity in this list. Zero on scene safe; Activation code () // check result code and request code. The user presented // if a new ToDoItem // data intently build a new ToDoItem // and then add it to the adapter} relevant AddToDoActivity.java snippet: Secure vs. Crea...

openerp - many2one default value with a one2many relation -

मेरे पास निम्न कोड है: class table_a (osv.osv): _name = "Table.a" _columns = {'name': fields.char ('name', size = 64), 'link_to_b': fields.one2many ('table.b', 'link_to_a', 'लिंक टू बी'), } Table_a () वर्ग table_b (osv.osv): _name = "table.b" _columns = {'name': fields.char ('name', size = 64), 'link_to_a': fields.many2one ('table। एक ',' link_to_a '),} table_b () (और इन स्तंभों के साथ फार्म और पेड़ प्राप्त करने के लिए एक सरल XML) जब मैं एक रिकॉर्ड बना देता हूं Table.b सूची के माध्यम से 'लिंक टू बी' तालिका के एक रूप में। क्या यह 'link_to_a' के साथ लिंक का डिफ़ॉल्ट मान होना संभव है? कैसे? अग्रिम धन्यवाद।

javascript - CSS transition not working in Safari -

I have a Shopify topic with a search form that uses its width feature on an animation, which by jQuery call Can be triggered: & lt; Span id = "store-search" & gt; & Lt; Div & gt; & Lt; One square = "iconfont big search" tabindex = "0" & ​​gt; And & # 0035; & Lt; / A & gt; & Lt; / Div & gt; & Lt; Form action = "http://penumbra-foundation.myshopify.com/search" method = "go" class = "search bar" & gt; & Lt; Input id = "query" tabindex = "0" name = "q" type = "article" value = "search" onfocus = "if (this.value == value) {this.value = '';}" & gt; ; & Lt; Input type = "submit" value = "search" style = "display: none" /> & Lt; / Form & gt; & Lt; / Span & gt; Here is the related JS: & lt; Script & gt; Click $ ('A.big-search') (...

VB.NET ULong overflow -

I have a timer that has passed the time: public function time-aligned () ULong Dim ul ULong ul = m_lend - m_lStart um Ul 2 as Ulol UL2 = UL - M_Loverhead Deam UL 3 Ulolong UL3 = (UL2 / M_LifeEk) * 1000 Inverted UL 3 End Function I have now experienced the following variables: m_lEnd = 935083366402 m_lStart = 935007142800 ul2 = 76223588 m_lOverhead = 14 Returns an overflow ul3 = (ul2 / m_lFreq) * 1000 Why me A. How could not see how to improve your bug. Thank you very much for you! You should clearly tell the compiler that you are operating on the UOL ... The reason for this is that numerical literals default on Integers , so you are trying to use an integer literal which is your overflow like your issue You can apply different types of values ​​with the correct suffix. In a meaningful value without a type of suffix, value can only be worth to the extent of long; in this situation it is Ulong , hence the suffix is: ul. By the way, it is a conversion erro...

Calculating week numbers in PHP using Year, is it a bug? -

It's weird, I do not know that this is a bug, but please, someone tries to do it. resonance date ("ww", strotom ("2014W05-1 week"); Result 2014 -04 will be, year-to-week, no problem at all. But now, try it: counter code ("Y-W", strotomium ("2014W02-1 week" Why this is 2013-01, why 2013? What's wrong? It should be 2014-01, okay? Am I doing wrong? Am? Is this a bug? My PHP version: 5.4.22 Y OS ISO-8601 year number So if you do this then date of reproduction ( "OW", Strottom ("2014 W05-1 week"). " Reverberation Date (" OW ", stronteme (" 2014W02-1 week ")); You will get 2014-04 2014-01 Edit Jasper Because one date is a moment rather than one week, you request a week and the first moment of that week The Rapt. According to the standards, the number of weeks is based on the year in which the year is Thursday. As such, the number of weeks is 1, but the d...

c++ - Setting up an ifstream, getting 'error: expected initializer before ‘.’ token' -

मुझे मेरे कंपाइलर में निम्नलिखित त्रुटि मिली: AccountDB.cpp: सदस्य फ़ंक्शन 'void AccountDB में :: प्रोसेस ट्रांस्रैक्शन (कॉन्स्ट चार *) ': AccountDB.cpp: 89: 9: त्रुटि: अपेक्षित initializer'। 'टोकन inFile2.open (transactFile); ^ (गाजर अवधि खत्म हो गया है) यह प्रासंगिक कार्य है यहां पर इसी तरह की त्रुटियों से, मुझे संदेह है कि इसमें नाम स्थान के साथ कुछ करना है, लेकिन मुझे यकीन नहीं है कि किस स्थान पर फ़ंक्शन को तारीख, खाता संख्या और लेनदेन की मात्रा को पढ़ना चाहिए और उसके बाद अन्य नेस्टेड फ़ंक्शंस का उपयोग करके इसे संसाधित करना है। void AccountDB :: processTransactions (const char * transactFile) {// set पाठ फ़ाइल से इनपुट स्ट्रीम को ifstream inFile2; // टेक्स्ट फाइल से पढ़ने के लिए वेरिएबल्स की स्थापना दिनांक [6]; चार प्रकार; चार खातेदार [20]; डबल राशि, // फाइल में फ़ाइल खोलें 2. ओपन (ट्रांसएक्टफ़ाइल); // फ़ाइल के लिए मानक जांच और बाहर निकलें अगर यह मौजूद नहीं है तो (! InFile2) {cout & lt; & lt; "त्रुटि, इनपुट फ़ाइल खोली नहीं जा सकी। \ N"; ...

I want to create a mandatory column in excel depending upon the value of other column -

Image
I have a column "status" and other columns "rescheduled date", if my condition is fixed, then I Want a pop up (or some kind of note) to fill the schedule date column again? I am new to vb and macros Please tell me the easiest way to do this. I am not clear about your requirement but am raising or some kind of Note might be like this suit ?: Any time you can arrange to display a cell in the selected cell (column?), Data verification is also selected by applying the input message, when the cell is selected Show the input message, Etavni to add the title: Please remember if you position change just rescheduled date column! As input message:

mysql - Overwriting a table contents? -

I have a database that needs to be updated frequently. It's just a simple table with 6 headers. I have more than 15,000 rows of information ... it's basically a karaoke songbook, which is an artist, song title, couple, singing, disc, new is. So, every 3 months or so, to update the list with my new Excel file (which I change in CSV), of course, added new songs and some have been deleted. My question is what am I doing? I have never done this before and I am not a phpmyadmin wiz in any way so please if you take a step step by step, I can follow and understand. Maybe it's an overdose ?? ? Any help in any way would be appreciated thanks Mike

asp.net - How to ensure security in Mobile Applications -

I am developing a front end mobile app for Android and iOS which interacts with my webserver, Runs the .NET. Right now, I am taking the following security measures: 1) Basic authentication 2) SSL using the REST API 3) Only one on the device used to confirm the server for future access Store Token I have some suggestions, Ol> Use secure encryption / decryption algorithms like AES-256 with a password-based cryptographic key. Apart from this, Code opacity & amp; Distortion algorithms for safe key generation can be applied to avoid reverse engineering attacks from one level. Cache of webservice request / delete cache every time. To stop snapping snapshots in iOS. If you want to store tokens on the device you need to encrypt the token and do not rely on this token dependent web services like authentication. Expire session expiration according to your business needs and severity.

javascript - asynchronous http.get callbacks in Node.js -

In the node, I have this function snippet (the actual function is much less than that, so hopefully I have something important Also did not cut): driver.protitip.update devices = function (for IP in this IP) {var curIp = ip; If (this.ips [curIp]) // // If this [CurIp] is set to undefined ... http.get ({host: curIp, port: 80, path: '/ tstat'}, on function (res) ('end', function () {// each Want to parser data) {var result = ''; res.on ('data', function (chunk) {result = IP, but // curip is always the last IP in the list});}); }; }; }; Do I have a "driver" object that includes "IP", which has a list of IP addresses, such as {"192.168.1.111": {stuff}, "192.168.1.112": {stuff}} Of course it is very clear that I am ignoring, but I hope that this can not be done to do the work, obviously, http.get () is often called asynchronous. That which I want; However, when the result is obtained and the "end" cal...

objective c - create instance of class with NSString -

I have always been called a method when creating a new instance of an object. So I need to create a loop that checks the existence of a new counter like a new counter and if it is found then make a new instant 2. How can you create a class from nsstring? The goal is to create those views which I can drag on those grid which represent the objects present in them. Here is the method that creates new objects and see // method creates a visual with new stability. Icon - (IBAction) makeView: (ID) Sender {rectString = [NSString stringWithFormat: @ "0,120,% F,% f", pm.fixWidth, pm.fixHeight]; _try = [[stability mark alloc] init]; _try.fixImg = pm.fixImage; _try.name = pm.name; [Fix Controller addObject: _try]; _testBox = [[addObjectView alloc] initWithFrame: NSRectFromString (rectString)]; NSImageView * iconView = [[NSImageView alloc] initWithFrame: NSMakeRect (0, 0, 75, 75)]; TestView1Controller = [[NSViewController alloc] init]; TestView1Controller.view = _testBox; [_testbo...

How to flipper a card (then back) in android -

मेरे पास मेरे ऐप्लिकेशन में एक इमेजबटन है। & lt; ImageButton android: id = " @ + Id / imageButton1 "android: layout_width =" 80dp "एंड्रॉइड: layout_height =" 80dp "एंड्रॉइड: क्लिक करने योग्य =" सच "एंड्रॉइड: src =" @ ड्रॉएबल / बटन "/ & gt; मैं इसे एक onClickListener के साथ बाँध: देखें। OnClickListener imgButtonHandler = नया View.OnClickListener () {public void onClick (देखें v) {// यहां मैं एक अलग छवि के लिए छवि स्रोत अपडेट करता हूं। }}; अब क्या होता है: जब मैं इमेज़बटन पर क्लिक करता हूं, तो छविबटन एक अलग छवि में बदलता है लेकिन मैं इसे 0.5 सेकंड के बाद स्वचालित रूप से बदलना चाहता हूं (उसी समय उपयोगकर्ता को कुछ भी क्लिक करने में सक्षम नहीं होना चाहिए)। मैं इसे कैसे लागू करूं? मैंने श्रोता में ऑनक्लिक फ़ंक्शन में सोने की कोशिश की, लेकिन यह काम नहीं कर रहा है ... नया संपादन: प्रस्तावित उत्तर मेरी समस्या का समाधान करेगा अगर मेरे पास केवल एक छविबटन है मैंने इसे बाहर की कोशिश की और दोनों तरह के आकर्षण का काम! अ...

How to read the file and store the data into a matrix - python -

समर्थन मेरे पास एक ऐसी फाइल है: 1 2 3 4 5 6 7 8 9 10 फ़ाइल को पढ़ने और प्रत्येक अंक को अजगर में एक सरणी में संग्रहीत करने का सही तरीका क्या है? x_table = [] प्रत्येक के लिए Filename_1: #सेट अप temp चर x_table.append ([]) tmpStr = '# प्रत्येक पंक्ति में प्रत्येक वर्ण के लिए पंक्ति में से # लूप: # जाँच करें कि char एक संख्या है अगर char.isdigit (): tmpStr + = char Elif char == '' और tmpStr! = '': X_table [eachLine] .append (int (char)) मुझे त्रुटि प्रकार संकलित किया गया है: सूची सूचकांक पूर्णांक होना चाहिए, नहीं str । बस प्रत्येक पंक्ति को पढ़ें और अंकों को अलग संख्या में अलग करने के लिए विभाजन का उपयोग करें: चटाई [] खुले में पंक्ति के लिए ('file.txt')। Readlines (): mat.append (line.split ()) इसके बाद आप कर सकते हैं यदि सभी लाइनों के पास मान्य है तो तत्वों की एक ही संख्या, यदि आप चाहें।

javascript - jQuery iPhone / ios7 click event vs touch -

I have a project and driving me crazy, I have code for geographic location / instruction and it never It also works wonders, but ios7 and I have piled up the research and I think there is an issue with the .click event, my code is below. $ (document) .ready (function () {var start_ location; var Destination = "20 Papanui RD, Christchurch Central, Christchurch 8011, New Zealand"; // 'Get-directions'). Click (function (e) {e.preventDefault (); // Check if the browser supports geo positioning (if navigator.jolocation) {// user's current state navigator. Jol Cation. GetCurrentPosition (function (position) {// latitude and latitude var latitude = position.coords.latitude; var in countries R = position.coords get longitude; start position = latitude + "," + longitude; // go toToGoogleMaps function go to GoToGoogleMaps (start location, destination); send destination and destination;}) // geographic status For non-browsers / fallback {// Manually entered ...

java - Best way to check for collision of multiple objects? -

I am making a breakout clone for fun as my first game. I am using Java and Android. The way I was thinking of doing this, all the coded objects in it register their dimensions in a list, and then repeat through this list to check the collision of each frame. for . The outer loop will first be examined by a simple fast, which will determine the distance, and if the ball is close to an object then it will detect more functioning.

java - Tomcat & Maven installed correctly but don't see my local -

Eclipse in eclipse I have followed all the proper instructions when I start the server, it starts & amp; Runs successfully. Maven builds fine. I open localhost: 8080 and it says that if you see that it is properly set up of Apache, now it is that I want to see local local move instead of localhost: 8080 I do not know why this is 404 Can anyone tell me what exactly I should do? Server.xml looks fine.

javascript - How can i get the value of first query string in a URL -

To get query string value in a form field, using the following code: & Lt; Script & gt; Var url = window.location.search; Url = url.replace ("? Id =", ''); // remove ? & Lt; / Script & gt; & Lt; Script & gt; Document.write ("input name = 'id' data-barriers = '@ required (group = [customer])' id = 'id' type '' type = 'text' value = '" + url + " '/ & Gt; "); & Lt; / Script & gt; If I [This is not a link] () it records the fields in the visit, but when more parameters are included then this field also records, I want only the first or a specific query string parameter in the form field To be added? How to create a good small associative array outside of your query String parameters, like something: var urlParams = []; Window.location.search.replace ("?", "") .split ("& amp;") ForEach (function (e, i) {var p = e.split (...

html - Hidden img src value -

So I'm not sure that this is possible as much as possible because I can not find anything by searching but I confirm Is it possible to hide the source value of the IMG tag? For example: & lt; Img src = "image.jpg" /> & lt; Img src = "" /> gt; Or or any other type of method even if the user has clicked to get the correct URL, then I do not want it to be retrieved. Is this possible? I do not have access to key elements, nor can I use JavaScript or PHP, I can only use limited HTML tags which are accepted by. No, it is not possible to hide through js / jquery or any scripting language though such changes As you can disable right click or show a duplicate image src or CSS background-image property (user like this To deceive a user, the right click and image will not be able to save; & lt; body oncontextmenu = "return false"> I I believe, your desire is to restrict users from stealing their images by hiding ...

mysql - Using JOIN on several tables matching a foreign key -

I have a dilemma, I want to add them to a long line for each of my 22 tables Company I have a main table company which has the reference to CompanyID as a primary key and 22 other tables which refer to the reference Company.CompanyID is not the entry of the company in some tables, while others do so, so if I Inner company which does not enter any one of the table does not appear, even if there is no way to show it to anyone? SELECT * to 'Company' C Inner Join Sale S on S. CompanieID = C. CompaediaID Inner Owner OO CompanId = S For example, in my database I have 5 companies, only 4 of them show up with the above statement because one of them does not have an entry inside the owner. Is I / code>. To remove the duplicate ID, use the section by using the section: Join SELECT 'Company' in the left-hand sale S USII Join (Company ID) Officer Owning O Company (Company ID); By using , the segment will produce only one copy of each ID (in the lat...

cocos2d x - Cocos2dx Android with AirPush -

"postproperty" itemprop = "text"> I have done a Cocos2d-x Android application that works perfectly fine, until I'm in my Android build AirPush is integrated. I have added APIs and APIs correctly. I've added permissions. I've added the XML tag in the manifest XML file This is the last of the log:. E / cocos2dx emphasis (14,348): * / cocos2dx /platform/android/CCApplication.cpp Function: sharedApplication line: 60A / libc (14,348): Fatal signal 11 (SIGSEGV) 0x00000000 ( Code = 1), thread 14424 (Thread-3289) on I / UniversalSDK (14,348): display privacy & amp; Terms When I do not start SDK, it works normally. Once I start it, it can not even enter the scene of the beginning. EDIT: I also used Revmob and AdMob. When I removed them, it works fine. So I'm curious to know the cause of the accident ... cocos2dx \ forum edited Do \ Android \ jnI \ Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp line 18: if (CCDirector :: sharedDi...

Animating element to move up in html5/javascript canvas -

I am making simple animations in the JavaScript HTML canvas. Currently I have a function that infront the element infinitely below. I want to go inverted and infinitely (start from the lower part of the page and go up and up and up), but all my efforts and experiments have failed. I would be grateful for any thoughts! This is the function I have, which moves the element down: function slidedown () {start + = 1; Var m = document.getElementById ('money'); M.style.top = start + "px"; M.style.left = "300px"; } Var start = 350; Function Rain () {var m = document.createElement ('img'); MID = "money"; M.src = "images / hollywood"; M.style.position = "full"; M.style.top = start + "px"; // m.style.top = "0px"; M.style.left = "300px"; M.setAttribute ("class", "wealth"); Document.body.appendChild (m); set interval (movement, 500);} how do i Can I go up? I'm not...

html - Why external font (@font-face) takes too much time to load in a web page? -

I am using @ font-face in an external stylesheet, but when I use the server But I open the page, only takes longer to render the text. Why is this happy? Code @ font-face {font-family: koblenz; Src: url (../fonts/coblenz.ttf); } @ Font-faces {font-family: koblenz; Src: url (../fonts/Coblenz.ot); } @ Font-faces {font-family: koblenz; Src: url (../ font / coblenz.it? #fix); } @ Font-faces {font-family: koblenz; Src: url (../ font / koblenz.woff); } ... font-family: "coblenz", aerial, helvetica, without-serif; Another question: with IE 8+, Chrome and Safari loaded text koblenz , but Firefox does not. Why? This could be because you are using font-face Many times Try doing something like this: @ font-face {font-family: 'koblenz'; Src: url ('../ font / koblenz.eot'); The format ('./fonts/coblenz.woff') format ('woff'), url ('embedded-opentape') format ('../ font / koblenz.eot? # Formix'), url ../font/koblenz.t...

How to Play video data coming from server in iOS -

I am working on an iOS application which requires the video coming from the server. Video data is coming in packets and its H264 encoded format. After looking for the AVFoundation option, I did not find anything in the packet with video data received in the packet from the socket connection. If someone can tell me in the right direction then it will be very helpful. I have been stuck on it for a few days

C# - Check DataTable form same field -

I would like to check the same field in datat, and I want to set a number for each line starting from zero If the same area is found, number + 1 original table name ========== John John Tommy Tommy Andy How to do the setup number: names | Number ================= John | 0 John | 1 John | 2 Tommy 0 Tommy | 1 Andy 0 Any ideas for this? Thanks for your help. Try it out: var rank = Datatable1.GroupBy (x = & Gt; x.Name). Select (g = & gt; new {g, count = g.Count ()}). Selection is too many (t = gtg; tgSelect (b = & gt; b) zip (enumerate range (1, tc), (j, i) => New {j.Name, rn = i })); Foreign exchange (var i in rank) {Console.WriteLine ("{0} {1}", i.Name, i.rn); } Output: John | 1 John | John 2 3 Tommy 1 Tommy 2 Andy 1

graphics - Moving a 3-D Object Along a Path in MatLab -

यह प्रश्न एक सटीक डुप्लिकेट है: 1 उत्तर इसलिए मेरे पास एक वस्तु है, और मैंने इसे करने के लिए एक रोटेशन लागू किया है और मैं यह कैसे एक मार्ग के साथ ले जाने के लिए प्राप्त करने के लिए के रूप में उत्सुक हूँ मैं अब भी मैटलैब सीख रहा हूं, इसलिए यदि आप कुछ भी देख सकते हैं, मैं कुछ अलग-अलग कर सकता / सकती हूं, कृपया मुझे बताएं किसी भी मदद की सराहना की जाती है। kittyx = [150-150 -150 150 150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 ... 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 ... -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 ... - 150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150 150 -150 -150 150...

javascript - Taking ScreenShot Using MVC4 -

I have a site in which the user can take a screenshot and send it via mail. How can I take a screenshot at the click-button in Javascript or jquery event Please find some references to me Jquery / P> $ ("# click"). Html2canvas (document.body, {honored: function (canvas) {$ .post ('../ Home / proof', {images: canvas.toDataURL} ()}, function (data) {});}}); & Lt; Input type = "button" id = "click" value = "click" /> [Hppost] Public Action Result Proof () {// @RevenParam (value = "image"); String imagebase 64; // byte [] bytes = imageBase64.replaceAll ("data: image /.+; base64,", "") .getBytes (); See Return (); } but it kills the controller .. Pls help The best way to get a junky screenshot is to link. You just give us the URL or JS document.URL

javascript - Resizing a hidden-frame -

Image
I am trying to load a webpage in a hidden frame (SDK / frame / hidden frame) and then a screenshot of it I can just get right screenshot I, but the frame has been provided using the following code is not properly sized screenshots var hiddenFrames = require ( "sdk / frame / Hidden-frame "); The hidden hidden hidden Frems.ad (hidden Fremkhaidedfrem ({onReady: function () {this.element.contentWindow.location = "http://example.com"; to themselves; this.element.addEventListener ( "DOMContentLoaded", function () {var cnvs = self.element.contentDocument.createElement ( "canvas"); var width = self.element.contentDocument.body.clientHeight; // client.Width 0 is www for some reason. example.com = Self.element.contentDocument.body.clientHeight for var height; cnvs.width = width; cnvs.height = height; var ctx = cnvs.getContext ( "2d"); console.log (width + "+ height "); ctx.drawWindow (Self.element.contentWindow, 0, 0, width, heig...

sql - REPLACE query format in DB2 -

I have a set of Jason Forms stored in a column and now I need to change a particular word. How to use query instead of query Every time I use it, I get a token exception. Please advise. Name Age data ABD 15 [["Name": "ABC", "Type": "Regular", "Mutt": 18 } In the data column, I have to replace for "type", this student should be typed. REPLACE (data, 'type' 'StudentType'); It was not working How to do it? Many thanks in the very beginning Just like @Mostasio, if you use In the selection statement, REPLACE will return your data with 'Type' instead of 'StudentType' . This does not actually change the data in your database if you want to update your data, then you should update UPDATE statement MyTable SET MyColumn = REPLACE ( MyColumn, 'OldString', 'NewString') is required

.htaccess - Using htaccess to change the name of a folder -

I know that this is a simple answer but I can not find a specific solution to this problem. I have seen how to use htaccess to mount a folder as root, so domain.com/folder appears as domain.com in a browser. But what should I do if I want to show domain.com/folder as domain.com/differentfolder? You can use this code in your DOCUMENT_ROOT / .htaccess file Are: RewriteRuleRewriteRule ^ differentfolder (/.*)?$ / folder $ 1 [L, NC]

Launching boilerplate MEAN.io app to Nodejitsu: error -

This is my abstract: the same error message: I mean.o cloning the boilerplate. I do not see anything wrong in the package. Json file. I tried to apply the same error message that was mentioned in it, but I think I am very new. This is my first stack overflow post Please help. * Edit for more details: I clone a git of github.com/linnovate/mean - mean.O Stack, I can run it just fine at the local level. But I want to deploy it in my nodejetsu account. I run 'jitsu deployed' in the command line and I get what I get in a similar summary. Json I try to change "Start": "node node_modules / grunt-clei / bin / blanket", "to start": "node server.js", based on the same error message I found no use , This is what happens. I solved it due to your advice, but since you never posted package .json The file I am entering here for more users who might be missing out on the same problem in this post: {"name": "mean" , ...

iphone - ios-How to resize the programitically created UILabel,UITextView,UITextfield in programitically created scroll view as per orientation change -

I created a programmatic sculveview that resizes according to the orientation. But the UI element fixed on the scroll view It is not that it is now I need to change the UILBlash, UITedView, UITdefold size which I tried to do with the code given below but it is not working for me. Sijiarti Tekstfildfrem = Sijiarkemkek (12.0, 20.0, Tekstwu. Frame. Size.width-20, textView.frame.size.height-424); // CGTtext TextfieldFrame = CGRactMake (12.0, 20.0, 270, 35); / * I had used fixed size for UITextField * textField = [[UITextField alloc] initWithFrame: textfieldFrame]; [TextField setAutoresizesSubviews: Yes]; [TextField Setautorizing Mask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; TextField.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; Now I have to change the size of the elements according to the orientation change. Please help me solve this problem. O Anupama Try This Uaianprfes orientation orientation = [Ua...

objective c - WebView forbidden class name for iOS? -

Image
मैंने किसी भी कार्यान्वयन के बिना एक NSObject उपवर्ग बनाया है और इसका नाम "WebView" है। मेरे कोड में मुझे NSClassFromString का उपयोग करते हुए इस वर्ग के ऑब्जेक्ट को गतिशील रूप से इन्स्ताइज़ करने में सक्षम होने की आवश्यकता है। हालांकि यह एक तुच्छ काम की तरह मुहर होता है, मुझे इस विशिष्ट वर्ग के नाम से समस्या हो रही है " WebView "। यह NSClassFromString () की तरह तेजी से इस विशिष्ट वर्ग के नाम के लिए असफल रहा है, लेकिन एलएलडीबी के साथ मैं क्लास 1 और क्लास 2 विवरण दोनों को प्रिंट कर सकता हूं और दोनों के लिए "वेबविव" कहते हैं। किसी और को एक ही समस्या का अनुभव? क्या वर्जित वर्ग के नाम की कुछ सूची है जैसे कि उदाहरण के लिए वेरिएबल्स आदि? @interface वेबव्यू: एनएसओबैजेट @ एक्सएम @ इप्लिमेंटेशन वेबव्यू @ एमेंट @ इप्लिमेंटेशन व्यू नियंत्रक - दृश्यडिडलोड {क्लास क्लास 1 = [वेबव्यू वर्ग ]; कक्षा वर्ग 2 = एनएससीलासफ्रमस्ट्रिंग (एनएसएसटीइंगफॉर्मक्लास (क्लास 1)); एनएसएसर्ट (क्लास 1 == क्लास 2, @ "वर्गीस बराबर नहीं"); // FAIL} @end और दूसरा उदाह...

sql - MySql SUM() function -

Is it possible to use the MySql SUM () function inside another MySql SUM () function ?? Table 1, like Table 1 below. Table = 2 = Select Table (Table 1. Column 1 + SUM (Table 2. Column 2 + Table 2. Column 3)) Table 1 Insert Table 1.id = Table2.table1_id where Table 1 Column 2 = 'Test' "; Thanks Just need a SUM ()) : SELECT SUM (Table 1. Column 1 + Table 2. Column 2 + Table 2. Column 3) .. or use SUM () on each field: SELECT SUM (Table1.Column1) + SUM ( Table 2. Column 2) + SUM (Table2.Column3) ...

docusignapi - I need to get Document signature by Spouse and its optional. how to do it with Docusign? -

On a contract, I am currently signing digital documents by the signer. But there is a need for a business in which we need to get the signature of the spouse (if there is a husband) and we do not currently know that if our spouse is in or not in our application (we have husband's If there is no data about it then it can not be done within our application). What needs to be done - our main signature will sign first and if a spouse who can sign it will give the PC to the husband and the husband will also sign (the document will be sent to the same email address). If there is no husband, then the signature of the spouse will be left blank and the document will be completed without it. The scenario you want to achieve is entirely possible, but your application should determine it Whether there exists or not a second signatory (husband or wife), and that information should be enveloped in the envelope form (i.e., two signatories, if a spouse needs to sign) that information give...

c++ - How to make global objects for multithreaded applications -

मेरे पास एक बहु-इंडेक्स कंटेनर है typedef multi_index_container & lt; MyData, अनुक्रमित_ द्वारा & lt; Random_access & lt; & gt ;, // इनरेशन ऑर्डर आदेश दिया गया _non_unique & lt; सदस्य & lt; myData, time_t, & myData :: टाइमस्टैम्प & gt; & Gt; & Gt; & Gt; myContainerType; वर्ग myDataOperator {myContainerType myContainer; // myContainer को सम्मिलित करने और खोज करने के लिए कुछ कार्य} और एक और वर्ग जिसका संपूर्ण प्रोजेक्ट के लिए सामान्य कार्यक्षमता है class MasterClass {private: myDataOperator myOp; सार्वजनिक: // कुछ सामान्य कार्यात्मकताएं / मेरे कॉन्टैनेयर} का उपयोग करते हुए कुछ प्रक्रियाएं और क्लास MasterClass functionalities का उपयोग करके धागे में काम करने वाली दो कक्षाएं वर्ग थ्रेड क्लास 1 {निजी: मास्टर क्लास मास्टर; // master के साथ कुछ कॉल मास्टर / धागा 1 आंतरिक कार्यात्मकता के साथ कॉल) वर्ग ThreadClass2 {निजी: MasterClass मास्टर; / / मास्टर / धागा 2 आंतरिक कार्यात्मकता के साथ कुछ क्लाइंट की कुछ कॉल कॉल) जब भी मैं ...

Running MongoDB on heterogeneous cluster -

We are currently trying to find a solution where we can host hundreds of millions of images of different sizes on our website. Are there. We are evaluating Riak and MongoDB at present Riak looks very good, but all servers in the cluster should be identical, because Riak treats like each node In addition to this fact about Mongodi Finding information is a bit difficult, so you can set a priority on nodes. My questions are: The result of creating a mongodibi cluster is wildly different specifications (CPU, disk space, disk speed, speed of speed, speed of the network) Is made of machines together. ? Can the Mongodi cluster automatically detect and compensate such differences? I am also open to ideas other solutions, where odd clusters will work well. What is the result of creating a MongoDB (CPU, diskspace, disk speed, amount of memory And speed, network speed) clusters made of machines? Each choir in mongodibi has its own mongod , a separate MongoDB in its own ...

regex - Get a line after match found in PHP -

I have a text file that contains rows as usual: codes Fissel Data Dr. STAMPA 010 9 7800625 ... ... codus efile FRRVCN68S14E487E & lt; ------------------------ I need the data of this line to obtain the Exchange data the marked line For that I will parse the text. I tried to explode the text between "codes fiscale" and "data asthen's data" but it does not work. Any suggestions? function getBetween ($ content, $ start, $ end) {$ r = explosion ($ start, $ content); If (isset ($ r [1])) {$ r = explosion ($ end, $ r [1]); Return $ R [0]; } Return ''; } $ NewName = getBetween ($ fileContent, 'Codes Fiscal', 'Data Contemporary Data'); preg_match ('/ CODICE FISCALE \ n (. *?) Data Ezinezine data / s', $ file content, $ match); $ Line [1] is your line See a demo here:

ios - calling UIViewController through UITabBarController for push -

In my app I have the UINViewie Controller as the initial view, the hierarchy is like this UINavigationController-> Login Vicentron -> UITBBC Controller -> UIVAVC Controller -> Master ViU Controller MasterViu Controller has a tableview When a Push Notification Now, I click on push notifications, the app is working on the background, Rate app opens to the master controller, the problem I have is that I open the app would like to update tables list Mastrwu controller when I push notifications. I try to navigate from AppDelegate to MasterViewController like this - (zero) Application: (UIApplication *) The application did the receivermo notice: (NSDictionary * ) UserInfo {UINavigationController * navController = (UINavigationController *) self.window.rootViewController; Masterview Controller * Master Controller = [navController.viewControllers objectAtIndex: 0]; [Master controller update list]; } This is not working, when I receive a push, how can I update Ma...

android - use of Parcelable interface..? -

पार्सल योग्यता का अर्थ क्या है? सार्वजनिक स्थिर अंतिम पार्सल योग्य। निर्माता & lt; MyParcelable & gt; निर्माता = नया पार्सल योग्य। निर्माता & lt; MyParcelable & gt; () {सार्वजनिक MyParcelable createFromParcel (पार्सल इन) {नई MyParcelable (में) वापसी; } सार्वजनिक MyParcelable [] newArray (पूर्णांक आकार) {नए माइपरसेबल [आकार] वापस; }}; पार्सलेबल ऑब्जेक्ट्स आपको गतिविधि या खंड स्टॉप / स्टार्ट एंड सीरिज और धारावाहिक करने की अनुमति देती है जावा सेरिअलायबल की तुलना में तेज़ है। स्थैतिक निर्माता वर्ग आपकी ऑब्जेक्ट को पार्सल से बनाता हैफार्मपेरसेल विधि के माध्यम से पार्सल में लेता है और इसे आपकी कक्षा में एक कन्स्ट्रक्टर को पास करता है कर्कश काम। नयाआरे विधि आपकी ऑर्गेन्यू की सरणी को पार्सल करने की अनुमति देता है। और यहां इसका एक अच्छा उदाहरण है

php - mysql inner join 3 tables -

I'm getting the error I wonder where I was wrong? Can you please help? $ tour = mysql_query ("Select * Include tour by tour tour_property_array p at t.tour_id = p.tour_id INNER join tour_prices tp on p.tour_id = tp.tour_id and t Tour_status = 'Aktif' Where t.tour_category_id = ". $ Category_id." And t.date_month = '"date $."' And p.tour_propert_id = ". $ Property_id." "); $ tourism = mysql_query ("select + tour inner join tour T.tour_id = p.tour_id INNER on tour_property_array p p.tour_id = tp.tour_id and t.tour_status = 'Aktif' where t.tour_category_id = ". $ Category_id." And t.date_month = '"$ date . "" And p.tour_propert_id = ". $ Property_id." "); This should be used by mysql_query (" select from "tour) Join TUROR_ID = p.tour_id INNER join tour_prices TP on p.tour_id = tp.tour_id and t.tour_status = 'Aktif' WHERE t.tour_category_...

c - CreateFile / readfile & writefile multi threading - invalid handle -

Do not bother me why you do not understand it: void __cdecl Main_pipe_client (zeroes * args) {Py_func python_func; BOOL bRet; DWORD size = 0; Hpipe = CreateFile (TEXT ( "D: / stc_5010"), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_HIDDEN, NULL); If (hpipe == INVALID_HANDLE_VALUE) {// its ok, there is no error} while (1) {cell vidmos [50]; BRET = ReadFile (HPEEP, ViDOSOSAC, 50, End Size, Nouvel); // Readings Online (BRT == False) {python_func.py_AppendChat (1, "Reading failed: Bytes read:% U", size); break; } If (size> gt; 0) {// is OK} Sleep (1500); Size = 0; }} hpipe - has been announced at the beginning of the program Handle hippie; zero init () {sleep (500); Py_func python_func; Four buff [256]; DWORD wpisano = 0; Sprintf_s (buf, "INIT_CHARACTER"); If (lipfile (hipip, buff, 256, and wipesano, tap)) (four buff 5 [256]; Format Message (FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError ...

python - How to recognize if a cookie is set by javascript or not (client-side) -

I am working with Selenium and Python I should know if any particular cookie is set by javascript or not. Is there any way to do this? I work right. Read cookies: $ Cookie ('the_cookie'); // = & gt; "The_value" $ .cookie ('not_existing'); // = & gt; Undefined