My JavaScript syntax is cheaty level, but I am learning: & gt;
I get an inline & lt; Div id = "content" & gt; is using Fancybox 2.1.4 to appear. Traditionally, & lt; Div & gt; will be set to style = "display: none" and Fancybox will be changed to block if enabled, and when none is closed
In my case, I actually did that & lt; Div & gt; On the page there is a visible content in a different place (this is the correct project, I know that there are many opinions that can be there).
So, after disappearing the facebox, after disappearing
Div id = "content" & gt; needs to be placed (which disappears nude from it).
After some research, I came to know that by using the afterClose callback, I just click the id "content" to display: block < / Code> (which resolves the problem.
Problem ... my ugliness is:> I have tried for a lot of time and it is not sure where to put the code, and the correct syntax .
How do I add afterClose to my faxbox function?
& lt; script type = "text / javascript"> gt; $ ( Document ) .ready (function () {$ (".fancybox"). Fancybox ();}); & lt; / scripts & gt; Very much for any help Thank you
This format is:
I have been living for years since I'm finally working with joining, so I'm a little confused now. <3> There are 3 tables
Albums, albums and images
Now before my repository I have been included in album and album images in Inner Warner, this is the only thing I want to do is enter the first entry I cover diska i id decks (album images can have 0 images!) Its b The I get involved in user on user ID ID of the user in the user table. My problem is that I have not got only 1 album, but there is a result in the albums for each image, where I only have to do 1. What am I doing wrong here?
Public IQueryable & lt; Album & gt; The albums from the cover in the pictures of the album are equal to I.AlbumId in the image. Cover with Default IfEmpty () Order Descending cover, cover. Select ID climb above the ID () {ID = AID, User ID = AUSIRID, name = A.Name, created = A. Ready, Last Edit = AalAdit, Details = A.Description, View = A. View, Location = A place, Photoshoot = A. Photoshoot, cover = cover,}); } Album of album (= one of the album repository) in user.Repository.Get () in a.UserId is equal to U. A.Id descending from A.Id descending new album display model () {album = A, User = u}). to list(); Test:
Return (Join the album in context in _imageRepository.Get (I). I. Albums equal to albums on album. In an album in the album from the album, select the default IfEmpty () new album () (id = AIID, userID = a.UserId, name = a.Name, created = A created, last edit = a.LastEdit, Description = a.Description, View = A.Views, Location = A. Location, Photoshoot = A. Photoshoot, Cover = i,});
close DefaultIfEmpty to AlbumImages . This album is going to return image whether it is a match or not (include left).
I am following my wiki page and first we are able to install Maven with homebrain and look like this Change the path to:
Apache Maven 3.0.4 (r1232337; 2012-01-17 02: 44: 56-0600) Maven home: / usr / local / Cellar / maven / 3.0.4 / libexec / now says this: A Maven installation (Eclipse -> Blockquote>
here I I
Should Ive post the above home path here? But when I click on the add button ... it opens a dialog to point it to some folder, but I can not navigate to the / usr folder on it
When you click Add, you must have your MAVEN_HOME folder of your external Maven installation You have to browse for it. Looks like your instructions That you have already installed it out of eclipse.
I get the asp.net form authentication table, and I want to make any of these as FK tables.
Is it possible to experiment with this feature without creating a type? Finally, I created another Skelton Poko class that corresponds to the table, it has given me the foreign key.
मेरे पास ऐसा प्रपत्र है जो इस तरह दिखता है:
& lt; form method = 'post 'Action =' post.php '& gt; & LT; अवधि & gt; & Lt; input type = 'text' name = 'ingredientQTY' / & gt; & Lt; चयन करें नाम = 'चयन करें' & gt; & Lt; विकल्प मान = '1' नाम = '1' & gt; बीएलएचएच & lt; / विकल्प & gt; & Lt; विकल्प मान = '2' नाम = '2' & gt; BLAH2 & lt; / विकल्प & gt; & Lt; विकल्प मान = '2' नाम = '3' & gt; BLAH3 & lt; / विकल्प & gt; & Lt; / चयन & gt; & Lt; input type = 'text' name = 'ingredientNAME' / & gt; & Lt; / span & gt; & Lt; / प्रपत्र & gt; मेरे पास एक स्क्रिप्ट है जो अवधि को क्लोन करती है और क्लोन को पेज पर जोड़ती है, इसलिए मुझे ऊपर की तरह spans की संख्या n हो सकती है मेरे पास सामग्री नामक एक डाटाबेस है जो इस तरह दिखता है:
पंक्ति 1: घटक qTY - स्पैन में पहले इनपुट द्वारा आबादी है पंक्ति 2: संघटकTYPE - द्वारा आबादी है स्पेन्स में चयन / ड्रॉपडाउन का मान पंक्ति 3: संघटक नाम - स्पैन में आखिरी इनपुट द्वारा आबादी है
इसलिए प्रत्येक अवधि के फ़ील्ड को एक तालिका पंक्ति में 1 कॉलम अपडेट करते हैं लेकिन मेरे पास n पंक्तियों की संख्या जो डालने की आवश्यकता हो सकती है, जो jQuery के माध्यम से जोड़े जाने वाले स्पेन्स की संख्या के बराबर हो सकते हैं।
मैं इसे PHP के साथ कैसे बना सकता हूँ? मैं एक और वैचारिक उत्तर (मैं किसी के लिए इसे बनाने के लिए मतलब नहीं है) के लिए देख रहा हूँ, लेकिन उदाहरण अच्छा होगा
सभी मदद के लिए धन्यवाद, और अगर यह प्रश्न किसी भी तरह से भ्रमित हो, तो बस पूछो!
यदि आप पीएचपी का इस्तेमाल करते हुए फार्म प्रसंस्करण कर रहे हैं तो आप ऐसे फ़ील्डनाम बना सकते हैं:
& lt; input type = "text" name = "ingredientQTY []" / & gt; 'INGREDIENTQTY'] के रूप में $ key = & gt; $ value) {$ qty = $ _POST ['INGREDIENTQTY'] [$ key]; // या $ मान $ प्रकार = $ _POST ['selecttype'] [$ की]; $ नाम = $ _POST ['संघटक नाम'] [$ की]; }
मुझे लगता है कि यह वही है जिसका आप मतलब है।
I'm trying to understand more chairs. So I found the header file in socket.h , found in the sys library, some task declarations bind (), connect () , but I could not find their definitions? Where can I find one?
Tell me that this question is not relevant, I will transfer it somewhere else
< P> You will not find your definitions in the header, you need to dig in your Libasi, but you will not find anything there because these systems are called, so you really need to dig in your kernel.
I am trying to create a live email availability using Ajax. I want to assume input and send it to php where it will be checked that it is in the database but i can not make it. When I test the scripts with firebug, there is a reaction, but the output is always the same thing as if the email exists or not. It always shows me that it is not existing.
The table is called the company Email field for email is the field email.
The connection to the database is fine. I think the problem is in my Ajax code because it is always giving me "the output".
This is my php code:
& lt ;? Php // This is a sample code if you want to check the username from mysql db table (isset ($ _ POST ['email'])) {$ email = $ _POST ['email']; $ DbHost = 'localhost'; // Generally localhost $ dbUsername = 'root'; $ DbPassword = 'password'; $ DbDatabase = 'php_test'; $ Db = mysql_connect ($ dbHost, $ dbU name, $ dbPassword) or die ("Unable to connect to database server."); Mysql_select_db ($ dbDatabase, $ db) or die ("Could not select database."); $ Result = mysql_query ("Select email from company where email = '". $ Email ""' ") or die (mysql_error ()); If (mysql_num_rows ($ result)) {echo 'not ok'; } Else {echo 'OK'; }}? & Gt; This is AJAX code
$ (document) .ready (function () {$ ("# email"). Blur (function () { $ .ajax ({type: "POST", url: "unique_check.php", data: {email: $ ("# email") .val ()}, datatype: "json", success: function (msg) { If (msg == "OK") {Warning ("Free")} Other {Warning ("Tech")}}});});}); Please tell me where my fault is or if there is a better way, then give it to me. Keep in mind that I am new to AJAX and PHP. Thanks a lot!
I think you want:
if ($ Results! = False & amp; amp; mysql_num_rows ($ result) & gt; {} 'echo'; } Else {echo 'OK'; } If this does not work, make sure that you want what you want.
I am working on a bundled code basis - not an app, where development started at 10.4, and running at 10.4 Essential, but works all the way up to 10.8. It loads your thoughts manually with Nib files and I have only recently realized that there is a sufficient memory leak because nibis use binding and binding against the file owner, make reference cycle and The owner of the file prevents the class from deluxe. I think that this "file owner" gets worse than loading his niboot.
I load nee using the following code (this code is in the base class and the subclass is override + nibName ):
NSString * nibName = [[Self class] nickname]; NSNIB * Nib = [[NSNI Elok] Init VastNIB Nominated: Nominee Bundle: MyBundle]; [Neb institute nabih with honor: self top level object: and top level object]; Since I have to target 10.4, I am unable to use the NSViewController . I think I will need to implement my own Visual Controller class, but how do I prevent the reference cycle from making the promise of the NSViewController class? If the view controller is the "owner of the file" of Nib, then will not I just press reference scenes from my current class to my view controllers? What does NSViewController prevent this from happening?
I recommend that you use the NSWindowController or the custom sub- Squares your subclass can have a view outlet and a KVO-compatible represented object property. It should be sufficient for a 10.4-compatible replacement.
I am trying to call a function in a C library which uses the structure as a parameter. How do I do this? In the same way, I have made a CTPP presentation of the structure in the document, but I am not working directly on it.
I have tried to find an example but all the examples I found have structures in pointers.
It is difficult to say without seeing your code, but my guess is that you have to instantize the structure. From the docs: CTIP import by importing
class digits (structure): _fields_ = [("x", c_int), ("y", c_int)] point = point (10, 20) The last line point creates an example of called POINT structure.
This really helps if you can show the structure definition, how you are using it, and any error message
इस सवाल का पहले से ही एक उत्तर है: < / P>
- 5 जवाब
क्यों त्रुटि <पूर्व> #include & lt; stdio.h & gt; Int मुख्य (शून्य) {int * p, आकार, i; फ़ाइल * एफपी; Fp = fopen ("input.txt", "r"); Fscanf (एफपी, "% d", और आकार); P = (int *) malloc (आकार * आकारफ (int)); // त्रुटि के लिए (i = 0; i & lt; आकार; i ++) fscanf (एफपी, "% d", और पी [i]); के लिए (i = आकार -1; i & gt; = 0; i--) printf ("% d \ n", पी [i]); नि: शुल्क (पी); fclose (एफपी); वापसी 0; }
मैं उबुंटू पर "गेनी" का उपयोग कर रहा हूं
और गैनी कंपाइलर पर:
fileName.c: 11: 2: चेतावनी निहित फ़ंक्शन 'मॉलोक' की घोषणा [-विमोलाइट-फ़ंक्शन-डिस्केक्शन] fileName.c: 11: 12: चेतावनी: अंतर्निहित फ़ंक्शन 'मॉलोक' की असंगत अंतर्निहित घोषणा [डिफ़ॉल्ट रूप से सक्षम] fileName.c: 18: 12: चेतावनी: समारोह की निहित घोषणा 'मुफ़्त' [-चिंता-समारोह-घोषणा] fileName.c: 18: 12: चेतावनी: अंतर्निहित फ़ंक्शन 'मुफ़्त' के असंगत अंतर्निहित घोषणा [सक्षम-डिफ़ॉल्ट रूप से] संकलन सफलतापूर्वक समाप्त हो गया < / Div>
आप निम्न शीर्षक में शामिल नहीं हैं:
#include & lt; stdlib.h & gt ; malloc और मुक्त के लिए प्रोटोटाइप को stdlib.h हैडर फाइल में परिभाषित किया गया है जो आपको याद किया गया है
यदि आप अनिश्चित हैं कि कौन सी हेडर फाइलें कुछ मानक सी फ़ंक्शंस में शामिल करने के लिए हैं, तो आप इसे समझने के लिए हमेशा man का उपयोग कर सकते हैं।
इस मामले में आवश्यक हेडर फाइल को शामिल करना होगा।
BTW, अपने कोड में आप अगर fp है NULL के बाद < कोड> fopen ।
fopen विफल हो सकता है और अगर फ़ाइल मौजूद नहीं है या आपको फ़ाइल खोलने के लिए अनुमति नहीं है (आपके मामले में पढ़ने के लिए)।
fp = fopen ("input.txt", "r"); If (fp == NULL) {printf ("इनपुट% t खोलने में त्रुटि \ n"); वापसी -1; }
I have created a PowerLL script (GUI form) and I have all the functionality that I want to work in.
But I want to know if any code can be run in PowerShell Script?
If so, how can anyone do it?
Try something like its third party, then use it at your own risk.
itemprop = "text">
I have a code but the problem is that since I want to reduce the total textbox value and the advance text box value is the remaining text Box. But after the values are reduced in balance text box , the function may be the discount textbox value
minus the balance text box values
When I am showing the total-advance and value-less balance in the textbox, but the problem is that I can not subtract the balance text box value with Discount TextBox value?
I want to do this like this
Total-Advance = Balance-Discount?
& lt; Script type = "text / javascript" & gt; Function getObj (objID) {return document. GetElementById (objID); } Function C () {getObj ("balance"). Value = parseFloat (getObj ("total") value) - (parslot (getObj ("advance") value)); return false; } Function D () {getObj ("balance"). Value = parseFloat (getObj ("left") value) - (parslot (getObj ("discount"). Value)); return false; } & Lt; / Script & gt; & Lt; Input type = "text" name = "total" id = "total" /> & Lt; Input type = "text" name = "advance" id = "advance" /> & Lt; Input type = "text" name = "balance" id = "left" onfocus = "return C (); return D ();" / & Gt; & Lt; Input type = "text" name = "discount" id = "rebate" />
Try it out:
Edit : Add || 0
& lt; Input type = "text" name = "balance" id = "balance" onfocus = "return C ();" / & Gt; Function C () {var balanceValue = parseFloat (getObj ("total"), value. 0) - (perflot (getObj ("advance") value = 0)); GetObj ("balance"). Value = parseFloat (Balance Valve || 0) - (ParFlatt (getObj ("discount"). Values || 0)); return false; }
I have an array int [] com with two values being 0 and 1 (in the initial step )).
I string [] arr = new string [100]; Element defines another array as
arr element:
arr [0] = {4, 8,10,11,12,14} arr [1] = {1,2,3,4,8,12, 14} .. arr [6] = some I I want to search the int [0] and the int [1] intersection, so I wrote the code in this form:
foreach (int value1 in int intro) {// show logic} Here I should get value 1 as 4,8, but I'm getting 52,44 as value 1.
What am I doing, what's wrong with it?
OK, what are you doing, you do not have any string array that is not an ARRAGE If you do this
arr [0] = "4,8,10,11,12,14"; Advent [1] = "1,2,3,4,8,12,14"; Var intersection = ARR [0]. Cutting (ARR [1]); As a result, you will find this list of characters as arr [0] and arr [1] '4', ',', '8' , '1', '2' which corresponds to the integer values 52 44 56 49 50 , which is actually what you are getting. You have int [,] arr = new int [100,100]; or better list & lt; List & lt; Int & gt; Instead of strings, declare an integer matrix. & Gt; . You can not use an integer like strings, at least not in this context.
list & lt; List & lt; Int & gt; & Gt; Arr = new list & lt; List & lt; Int & gt; & Gt; (); Arr.Add (new list & lt; int & gt; {4,8,10,11,12,14}); Arr.Add (new list & lt; int & gt; {1,2,3,4,8,12,14}); Var intersection = ARR [0]. Cutting (ARR [1]); But if you do not trust me, and want to make sure that you do not have any sense in your previous code, then replace foreach loop and See what's happening:
foreach (punching in cell value 1) {// display logic} In addition, you need to do this Not:
return to zero = convert toInt32 (com [0]. Ostring ()); Int convert a =. ToInt32 (com [1]. Ostring ()); You can change it like something:
int zero = com [0]; Int one = com [1]; But still it is useless because you can:
arr [com] [0]] arr [com [1]]
I am writing something in c ++, where I want to read text from a file that correlates between strings and functions Indicates. I can read the file for example in my program:
sin: sin pi: getPi +: add I want the code to take it and one Create a hash table or vector pointer data structure of string and function. Unfortunately, I realize that the code will not be able to find the name of the function at run-time, so I can put the addresses of these functions in the file. But this system will not have to work, if the work addresses were different each time the program was run or compiled. Solve any of these problems, or alternative solutions would be great.
You can safely take the address of the function (function pointer) on time compilation. When you start your program, this image loader task is to move your function addresses. You do not have to worry about the address change function.
You should definitely not do this, which is printing the address of a function on stdout and places this address in the form of a numeric value in your program. It will suffer from the problem you told.
To get the address of the C ++ function, sin () just enter & amp; Use sin. / P>
To get the address of the C ++ function by the string, you should be like the code:
if (function_name == "sin") returns and sin; Else if (function_name == "add") return & amp; Add And ... Or a suitable data structure with string / function pointer pairs
The issue is: Do not store numeric function addresses in a file. Take the address of the function directly into your program and use the numeric function address should not be any difference to your program.
I'm new to WPF and I have a question:
In my projects I usually Many Usercontrols, which come from my 'Base' user control, which have some functions for all my user controls
With WPF (the etymology is the same is vanofha) is it possible to get XAM also?
Is this possible?
Thank you in advance
If you If you want to share resources in your user control, keep them in a style to target your user control base type. To access (and apply) these resources in the entire application, they are defined in App.xaml.
You can either define them in your base type:
& lt; Style TargetType = {x: Type YourBaseType} & gt; & Lt; Style.Resources & gt; & Lt ;! - Define your resources here - & gt; & Lt; /Style.Resources> & Lt; / Style & gt; Or, you can apply them to all user controls (perhaps non-consultant): style target type = {x: type: user control ] & Gt; & Lt; Style.Resources & gt; & Lt ;! - Define your resources here - & gt; & Lt; /Style.Resources> & Lt; / Style & gt; If you want to achieve visual aspects, then use the app, applying the settings in App.config definition. Take a look at , if necessary, this can be "unveiled" by a specific example.
I am trying to use standard swiftmail SMTP connection for mandarill, which is located here:
I'm getting one:
Critical error: 'Not connected' with the exception message 'Swift_TransportException' is installed with host smtp.mandrillapp.com Could not be used [Connection # 111 refused] '/home/content/15/10121515/html/includes/classes/Swift/Transport/StreamBuffer.php:259 In Stack Trace: # 0 / Home / Content / 15 / 10121515 / html / contains / classes S / swift / transport / streambuffer.fp (64): swift_transport_streambuffer- & gt; _StableShockett Connection () # 1 /home/content/15/10121515/html/includes/classes/Swift/Transport/AbstractSmtpTransport.php(115): Swift_transport_streambuffer- & gt; Start (Array) # 2 /home/content/15/10121515/html/includes/classes/Swift/Mailer.php(80): Swift_Transport_AbstractSmtpTransport- & gt; Start () # 3 / home / content / 15 / 10,121,515 / html / included / mail Php (62): SWIFT_Mailer- & gt; Send (Object (Swiftmessage), Array) # 4 {In} in line 259 /home/content/15/10121515/html/includes/classes/Swift/Transport/ Throw inStreamBuffer.php Any ideas why?
This indicates that you are not connected to the Mandriva server, and usually means this That the hosting provider is blocking outbound SMTP access or the port you are using you supports switching ports (type monkey 25, 587 and 2525 with no encryption or STARTTLS, and SSL with port 465) Or if they use the harbor for your monkey You can contact the hosting provider to see if they are open.
I have a C ++ / Cx Windows 8 application and I need to do something similar to the following conversion:
string ^ foo = "32"; Byte Bar = & lt; Foo & gt; Numeric value of How do I change the number stored in a byte type within a string? I am losing without all C # magic which I usually do to get it!
Thanks in advance for any help on this.
You think that looks like C ++ / Cx C #. This is not the case at all, it is pure C ++ with just a few language extensions, which is easy to deal with WinRT types. This platform :: string type is not fair use, it is a general purpose string class not . This is already covered by the standard C ++ library. The class knowingly crippled the disabilities to discourage the experiment. It explains well:
When you use methods in Windows Runtime Classes Pass strings forward and backward, or when you are interacting with other Windows runtime components in the application binary, use the Platform :: String Class Interface (ABI) threshold Letfarm :: string class provides methods for many common string operations, but it has not made class a full-featured string. In your C ++ module, use standard C ++ string types such as wstring for any important text processing, and then change the end result before placing the platform :: string ^ with a public interface. It is easy and efficient to convert between wstring or wchar_t * and platform :: string.
Then the appropriate code should be the same:
#include & lt; String & gt; ... std :: wstring foo (L "32"); Auto bar = static_cast & lt; Unsigned four & gt; (Std :: stol (foo));
I need to complete the following methods in the category below, with Part A and Part B The class should calculate the GPA for array range, and add bonus to the AP class grade. P indicates an AP grade, for example "B-P" is an AP grade, and "B-" is a normal grade. For the part, I should have the result of 1.7122 for "CP", and for Part B, it must be processed on the whole grade grade and get the result of 3.455333 .....
It was told which parts are parts A and B. and they have been labeled using comment. I have also commented on the labeling where I think the remaining code should go to A and B. to calculate the results.
Can someone explain how to do this and what method should be used?
This is my code (I know that it is formatted incorrectly, it is not in J serer, but I could not copy it correctly here):
public class GPAFreeResponse {personal string} grade = {"AP", "B + P", "BP"}; Private string [] ltrGrades = {"A", "A", "B +", "B", "B", "C +", "C", "C", "D", "E"}; Private Double [] DGRS = {4.0, 3.7, 3.3, 3.0, 2.7, 2.3, 2.0, 1.7, 1.3, 1.0, 0.0}; Private Double [] bonusPts = {.0488, .0488, .0366, .0366, .0366, .0122, .0122, .0122, .0061, .0061, 0.0}; Private double degradation; Public GPAFreeResponse () {dGrade = Calculation Grade ("C-P") + Calculation Bonus ("C-P"); // Part One System.out.println ("Part 9a):" + DGRAD); DGrade = Calculation GPA (); // Part B System.out.println ("Part (B):" + DGRAD); } Public Double Countgpa () // Part B {Double dResult = 0.0; Double DTLPP = 0.0; Double debonPT = 0.0; // More code goes here dResult; } Public double countdown (string straight) / / one section {double dResult = 0.0; // More stuff here dResult return; } Public Double Count Bonus (String Straight) // Part One {Double dResult = 0.0; // More goods return dResult here; } Make an example of public static zero main (string [] args) // // GPA new GPAextra (); }}
I'm not sure how much you know Java but since it is homework I will write it in pseudocode and leave it to translate it to java. Tell me if you are really stuck and we will be happy to give you hand with a specific code.
So, we will start with the calculation. Grad what you want to do is loop through all the elements of ltrGrades, unless you are one that matches the first two letters of your input, Which will give you the indicator of the letter grade you want. After that, you only have to return the value to the same index dGrades. Therefore, repeat the first string,
, which is in the form of substrate 0 to 1/0, you have to do this work how I actually implement this duplication (i From 0 to the length of ltrGrades) if (i'th element of the first two ltrGrades is equal to) then i returned the i'th element of the dGrades // cat case where it was not returned 0.0 < P> Once you know that it is working, or if it is not at all obvious. EDIT: Before someone says that this is not the easiest way, I just describe the basic algorithm functionality that you are looking for.
EDIT 2: Here is a breakdown of how you will get each individual section.
First of all, get the substrings of strings check for information about substrings, but basically what you want
string first two = str. Springing (0,2); Next, again via ltrGrades, then for something like
(int i = 0; i & lt; ltrGrades.length; i + Then, to check if the i'th element of ltrGrades is the sub-base you want, if (firstTwo == lrtGrades [I]) Finally, if it is, then you will return the element of i gaara, so return dGrades [i] / Code> If she is not quite right, then she remembers completely, so I'm sure there are some minor mistakes in it, but you Should Ichar. Tell me when you have to work.
If the answer to the multiple option option is correct or false, then I want to play a different warning sound. I have the code for the correct and wrong answer, as is the following
if (question number == 1) {[self correct answer]; } If (question number == 2) {[wrong answer]; } I created the correct IBAction warning code. Can I make a simple drama under right or wrong answers? Alert statement?
If you want to use the default applet, use the code, and click on it Try different voices.
If you want to play custom sounds, the easiest way is to AVAudioPlayer :
First of all, you AVFoundation framework is very easy to get from there:
NSURL * url = [NSWR file URLWithPath: Path is Directory: Yes]; Aviadio player * sound = audio player [url]; NSError * Error = Zero; Sound = [[AVAudioPlayer alloc] initWithContentsOfURL: url error: & amp; Error]; [Sound play];
I am trying to find a simular solution but this poster did not explain what R.id.products_list_linear I did R.id Tried to set .products_list_linear as my linear target id, in which I am trying to change the piece. But it just overlays 2 pieces on top of each other. I'm pretty sure that I need to get the container ID in the viewer, but I do not know how to get this ID
edited Do: To make it clear that I am trying to change one piece on one page page with another, my code almost looks almost like an answer, but when I do R.id.products_list_linear, I have a layout I am trying to change, I change a piece of the place, I'm trying to change it.
Replace the piece inside a visible pager
Try this optimized viewer adapter, ..
import java.util.List; Import android.support.v4.app.Fragment; Import android.support.v4.app.FragmentManager; Import android.support.v4.app.FragmentStatePagerAdapter; Import android.view.ViewGroup; Public Class ViewPagerAdapter FragmentStatePagerAdapter {Private list & lt; Piece & gt; Pieces = null; Private Fragment Manager Piece Manager = Faucet; Public ViewPagerAdapter (slice manager piece manager, list & lt; piece & gt; pieces) {super (piece manager); This.fragments = pieces; This.fragmentManager = fragmentManager; } @ Override public piece getItem (int position) {Return fragments.get (status); } @ Override public in receipt () {return pieces.image (); } @ Override public zero set primary item (see group container, int position, object object) {super .setPrimaryItem (container, 0, object); } @ Override Public Zero Notified Data Set (Tagged) {super.notifyDataSetChanged (); } @ Override Public Zero Blasted Items (ViewGroup Collection, Inte Status, Object View) {fragmentManager.executePendingTransactions (); FragmentManager.saveFragmentInstanceState (fragments.get (status)); } In place of public null (integer position, piece slice) {fragments.set (position, piece); This.notifyDataSetChanged (); }} Call it from the activity in the form of a logic from the segment,
list & lt; Fragment & gt; Pieces = new vector & lt; Piece & gt; (); Fragments.add (Fragmente Instantiete (This, Fragment 1.class.Getnam ())); Fragments.add (Fragmente Instantiete (This, Fragment 2. Class.Getnam ())); Fragments.add (Fragmente Instantiete (This, Fragment 3. Class.Jetename ())); Fragments.add (Fragmente Instantiete (This, Fragment 4.class.Getnam ())); Fragments.add (fragmented constellation (this, fragment 5.clus.getnames ())); MPagerAdapter = New ViewPagerAdapter (getFragmentManager (), pieces); When you replace the view / segment inside the viewPager, then
mPagerAdapter.replaceItem (2, Fragment.instantiate (This, Fragment5.class .getName) ()));
I need to convert the following code into theory, but it does not seem right that the principle theory 2 function. (SELECT ProductName, DATEDIFF (Week, '2015-05-30', Date) AS Week Number, Select Sales from Table) ProductName, WeekNumber
ProductName, Week Number, Zodiac (Sales) Thanks
Principle 2 ORM FROM < Permissions for a subquery / code> section are only WHERE and HAVING sections that are supported by various RDBMS vendors.
Please complete DQL
How does a name change an integer in a string using a preprocessor? For example, consider the following code:
Define myInt 65% defines myString as 'sixty-five is', myInt The evaluation of the symbol myString will be sixty-five is A . The desired result is sixty five is 65 how can it be obtained? It seems that there is such a trivial question, but there is no such document. Thanks!
define this code
% myInt "String (Myint) bits 32 dB mestring Define the string (x) quoted% + x% +% / P>
1% myInt 65 2% Define "3% defined stringify (x) quot% + x% + 4% strcat myString is sixty-five ', stringify (myInt) 5 6 bits 32 7 00000000 536 9 7874792 D666976-DB MyString 8 00000009 65206973203635 and below Binary: 0000000000: 53 69 78 74 79 2D 66 69 a ?? ?? 76 65 20 69 73 20 36 35 Sixty-five is 65 I used the compiled NASM version 2.10 on March 12, 2012.
What I'm researching is use: XmlConfig (or anything in the wix tool chest) used this way The way in which I have permission to create a node on my particular foot node, to establish a node. Here's an example:
... & Lt; ChildNode childAttr1 = "child2 attr1 value" /> & Lt; / ParentNode & gt; ...
I want to insert a new node between the two children, so that the result will be like this: ... & lt; ParentNode parentAttr1 = "Parental Entry 1 Value" & gt; & Lt; ChildNode childAttr1 = "child1 attr1 value" /> & Lt; ChildNode childAttr1 = "child3 attr1 value" /> & Lt; ChildNode childAttr1 = "child2 attr1 value" /> & Lt; / ParentNode & gt; ...
The code so far holds the node as the last child of the original node and looks like this:
... & lt; Util: XmlConfig id = "MY_ID" file = "[PROPERTY_SQLRSPATH] Report server \ rssrvpolicy.config" action = "create" on "install" ElementPath = "/ / parent node" node = "document" sequence = "1" & gt; ; & Lt ;! [CDATA [& lt; ChildNode childAttr1 = "child3 attr1 value" /> ]] & Gt; & Lt; / Util: XmlConfig & gt; ... Then, it is summarized in
Edit: Another wrinkle on this topic will be given to this structure:
Code>
... & lt; ParentNode parentAttr1 = "Parent Entry 1 Value" & gt; & Lt; ABC anAttr = "One Value" /> & Lt; Def someAttr = "some value" /> & Lt; / ParentNode & gt; ... Is there any way to insert another brother element between existing hair elements, so that the final structure looks like this ??
... & lt; ParentNode parentAttr1 = "Parental Entry 1 Value" & gt; & Lt; ABC anAttr = "One Value" /> & Lt; Gi etr = "one more value yet" /> & Lt; Def someAttr = "some value" /> & Lt; / ParentNode & gt; ...
I have not found any way Do this through tools I have to add a custom action that holds the elements where I want them, and after that the installer adds to me the details which I consider great, but still work , And uninstalls with it, though it leaves empty elements in place.
I find something odd with Facebook 3.0.
Without installing on Android on Android, I will be asked for OpenForPublish and this will allow me to publish the permissions of the stream if the use of openfire readings, then the publish in the callback function will allow newPermissionsRequest , I will terminate logging twice.
On the other hand, with the Facebook Book installed on the other side, I use OpenFriftPublish Can not during the summer, which is necessary for reading. If you use openForRead, then use the new presentation request for the published stream, I can make a capable request for the published stream, but I have sent the callback to the new posts. Will not be requested.
Is anyone having the same problem?
The correct sequence of events is the first call openToRead, then requestNewPublishPermissions. This permission fits well with the current model of requests.
For the web dialog, please upgrade to 3.0.1, it addresses multiple login problems.
I have a Twitter feed in my iOS app. I have the following information: user name and user's post, but I'm thinking Was that how do I see in JSON if I get the timestamp of the post? I just want the date that it was posted. Thank you.
[NSString stringWithFormat: @ "Date:% @", [Commodity object: @ "Created_at"] ];
I have been given time here with the following tasks. I need to print all the rows in the input file where the first matches the field 2. Here is my syntax, which is not apparently working: awk '$ 1 == $ 2 {print $ 0}' & lt; Input file, what's wrong?
The third area will be $ 3 , no?
awk '$ 1 == $ 3' inputfile (Since we are here, you are print $ 0 Which is contained, and redirection.)
I know that this topic is quite hot, but my problem is "half problem" in coding.
I have a Facebook album that has 266 photos. I use jquery and FQL to request album ID, then get all the photo IDs and their sources from the album. The code works well but I think I can only get 102 photos and 266 photos.
How do I get all the photos completely in the Facebook album?
Good .. I got the answer after making a little effort in the article. Fashionbook FQL allows us to use the "border" number. It seems that Facebook default has set the limit number to 100. This means, if we do not set a limit number in FQL, then it will only get 100 records in FQL.
I get more photos in "Border 1000" FQL, it shows 266 pictures properly.
I am using Advanced Queuing (AQ) Oracle database with Y / Java Jems API [11.2]. My current Oracle setup default settings, no additional tuning parameters, high level architecture:
The continuous line database enqueue messages (sorted by priority)
EXEC DBMS_AQADM.CREATE_QUEUE_TABLE (Queue_table = & gt; 'order_queue_table', queue_payload_type = & gt; 'aqadm.order_message_t', sort_list = & gt; 'anterior, ENQ_TIME'); EXEC DBMS_AQADM.CREATE_QUEUE (queue_name = & gt; 'order_que', qi_table = & gt; order_quo_table '); EXEC DBMS_AQADM.START_QUEUE (queue_name = & gt; 'order_Q'); Java JMS consumer has dequeue messages with 3 concurrent threads.
Everything works great! And happy scenario, unless Qi @ messages in the queue as messages 10 messages Couple or triples dequeue Performance is significantly below !! !
I followed the following link
Any suggestions on performance tuning on IO and AQ?
I think this is old, but I give it a shot, the fact is that in the queue Send runs a small (er) as well as the number, but may be in big bad with the number of messages issue that helps me to believe that the underlying queue tables and optimizer data for the IOT. / P>
From:
Make sure the statistics are being gathered so that optimal query plans are being selected to retrieve the messages. By default, the queue tables are closed from the automatic collection of statistics. Recommended Usage Gather statistics and lock them with a delegated Q message load.
Tuning (or tuning) AQ_TM_PROCESSES are many other possibilities, including and using Assm, but more fixes, without about your database environment It is difficult to suggest, or even know that this is a problem.
I have developed a web app with Google Script and this is the code in my GS.
Var email = session. Gate active user () GetEmail (); Logger.log (email); // Then do something to render an email address on the page After publishing the script, I log in to another account and execute the script.
Then display the page:
This application was created by another user, not by Google.
This application has access to the following personal information: Email
but nothing in the log and the page shows nothing .
I do not get it ...
However in the reference document for the session Not explicitly told. GetActiveUser (), my test has confirmed that accessing your web app to access the user requires access to GetActiveUser () I used the code below in the web app and
Depending on the case of your application, you may have been able to capture the active user email. Then, create another project that works with your personal spreadsheet and the same script DB library. LOG_FILENAME = 'your-log-doc' var LOG_PATH = 'folder / subfolder / third folder' function DoGet () {// a good path for you and change variable above the filename Var x = LogLibrary.InitializeLogging (LOG_PATH, LOG_FILENAME) Logger.log (x) var email = session .getActiveUser (). GetEmail (); Logger.log ("Start Email Logging") Logger.log (email); LogLibrary.fnSaveLog () // Write and flush the logger content / then to do some HTML address on page var, some HTMLToOutput = '& lt; Html & gt; & Lt; H1 & gt; A header & lt; / H1> & Lt; P & gt; '+ Email +' & lt; / P & gt; & Lt; / Html & gt; '; Return HtmlService.createHtmlOutput (HTMLToOutput); }
मैंने अपने कार्यक्रम दुर्घटना को बनाने के लिए abort () में C का उपयोग किया । और डीबगर इस पर फंसेगा।
शायद जावा में बराबर अपवाद होना चाहिए। लेकिन जावा में बहुत सख्त अपवाद बंधन नीति भी है, इसलिए डिबगिंग उद्देश्य के लिए अपवाद का उपयोग करना एक अच्छा विचार नहीं है।
मुझे जावा में इसके लिए क्या उपयोग करना चाहिए? डिबगिंग उद्देश्य के लिए जानबूझकर प्रोग्राम क्रैश जो डीबगर द्वारा फंस सकता है। (मैं एक्लिप्स का उपयोग कर रहा हूं)
अपडेट
यह बहुत अच्छा होगा यदि कोड वैकल्पिक रूप से रिलीज़ बिल्ड पर ऑप्ट-आउट हो।
आप का उपयोग कर सकते हैं (गलत) । मान लें कि आप डीबगर के लिए एक्लिप्स का उपयोग कर रहे हैं, आप (इस मामले में,) कर सकते हैं। सुनिश्चित करें कि आप, अन्यथा यह कुछ भी नहीं करेगा।
चूंकि आपको स्पष्ट रूप से सक्षम बनाने के लिए जेवीएम को बता देना है, मुझे लगता है कि यह "कोड [जो] वैकल्पिक रूप से ऑप्ट- रिलीज़ बिल्ड पर आउट करें। "
I am blocking my game when Home button is clicked using application representative application WillResignActive method breaks right Works, but it seems that the break takes some time.When I start the game again, the player takes some distance
But if I click on the pause button available in the game to play the game If I stop it works fine.
The problem occurs when the Home button is pressed, please help me with it.
Thanks in advance.
This may be the reason that the main thread is still when you press the Home button and time Is executed between applicationWillResignActive applies
I am running Apache 2.4, and there is a directory that can only be reached from a certain IP address via the following :
& lt; Directory / path / to / private / diamond & gt; IP 11.22.33.44 & lt; / Directory & gt; I think anyone trying to use that URL to get a 404 Not Found file instead of 403 Access Denied. Is there any way to do this through Apache?
I believe that you can do something like
I'm really struggling with it and I do not think this is right.
I is a liefier portlet, which I am trying to put in a custom category but keeps it in the 'undefined' category. I have setup my liferay-display.xml with a hard coding for testing but it still does not do this. Note I'm using maven instead of ant for construction and dependencies. The portlet works fine, it's not just in the category that I want. Once liferay-display.xml is created in the WEB-INF folder (which I believe is where it is). Below is an example of the file.
& lt ;? XML version = "1.0"? & Gt; & Lt ;! DOCTYPE Display Public "- // Liferay / DTD Display 6.1.0 / n" "http://www.liferay.com/dtd/liferay-display_6_1_0.dtd"> & Lt; Display & gt; & Lt; Category name = "Hello" & gt; & Lt; Portlet ID = "Hello Portlet" & gt; & Lt; / Portlet & gt; & Lt; / Category & gt; & Lt; / Display & gt; Any help would be greatly appreciated. I know that I have not got any information according to the information.
The Portlet ID should be the ID that you give in Portlet.xml - I'm not sure that you Any place can give anything, but the following portlet.xml and liferay-display.xml will match:
portlet.xml
& lt; Portlet-app xmlns = "http: //java.sun.com/xml/ns/p ...." version = "2.0" & gt; & Lt; Portlet & gt; & Lt; Portlet-name & gt; HelloPortlet & lt; / Portlet-name & gt; & Lt; Display-name & gt; Hello Portlet & lt; / Display-name & gt; ... and liferay-display.xml
& lt ;? XML version = "1.0"? & Gt; & Lt ;! DOCTYPE Display Public "- // Liferay // DTD Display 6.1.0 / / n" "http: // www ..." & gt; & Lt; Display & gt; & Lt; Category name = "Hello" & gt; & Lt; Portlet ID = "Hello Portlet" & gt; & Lt; / Portlet & gt; & Lt; / Category & gt; & Lt; / Display & gt; For example, use portlet-name element from portlet.exam as portlet id.
I am requesting an Ajax from xx to x.com, and I have to work in most browsers except IE 8 Everything is and 9, where I get an access denied error. I have my code here
if (! Blank and radio_check) {$ ("Modal-content") . ({Height: "250px"}), 500, function () {}; $ .support.cors = true; Var url = "localhost: 5603 / ajax / post / sales-xm /?" // localhost for locally tested ($ .browser.msie & window.xDomainRequest) {var xdr = New XDomainRequest (); Xdr.open ("post", url + data); // *** error here *** xdr.send (data); } And {$. Ajax ({type: "post", url: url, data: data, datatype: "jsonp", success: function (r) {// nothing is necessary here}}); }} Again, all browsers include IE 8 & amp; 9. Besides, I have access-control-permission-origin-custom headers on web.config.
I'm not sure how this XDR works, but for some reason my server But it works like this, but it seemed like 'Open' me. Ajax response started from the net back-end, and is being blocked through sending (it does not speak right, but this is how it was found in Fiddler), no form data was being posted, Because of which all seemed to be weird.
To fix this, I changed the post to a position, and added a section to my not Ajax controller which if if Request.Form.AllKeys.Length = 0 , Instead get the query string.
I write an application to send file multicast by nodes, I read the file by chuck and send it in block like this. <<< Code>
for the sendBlock by CHUNK
(var block = 1; block & Lt; = number_of_block; block ++) {sendBlock (FILEPATH, block) Code> function sendBlock (file, block) {fs.open (file, 'r', function (err, fp) {if (err) {return }} Var buf = new buffer (4 + CHUNK_SIZE); fs.read (Fp, buf, 4, CHUNK_SIZE, (block-1) * CHUNK_SIZE, function (mistake, bytes read) {if (err) {} buf [0 ] = 0; buf [1] = opcodes.OPCODE_DATA; buf [2] = (block & g T; & gt; 8) & amp; 0xFF; buf [3] = block & amp; 0xFF; udpserver.send (buff, 0, 4 + bytes read, port, MULTICAST_IP_ADDRESS); fs.close (fp);}) ;}); I create the client to receive the message
fs.open (filename, 'a', function (e, id) {if (4 + CHUNK_SIZE & gt; Message.length) {fs.write (fd, message, 4, message length - 4, (block -1) * CHUNK_SIZE, function () {fs.close (fd, function () {console.log (Block the block: "+ missArray";});});} else {console.log ("Message length:", message.length) console.log ((block - 1) * CHUNK_SIZE) fs.write (fd, message, 4, CHUNK_SIZE, (block-1) * CHUNK_SIZE, function () {fs.close (fd, function () {console.log ('1file off', block) ; If (block% NUMBER_BLOCK == 0) {if (blockArray.length> 0) {missArray = missArray.concat (blockArray); } BlockOre = Category (Block + 1, NUMBER_BLOCK)} //udpserver.send(block+1)});});}}); But when the server sends more than 1000 messages to the client, then it can not send all the servers
blocks - 6907 blocks - 6908 blocks - 699 blocks - - 6910 Block - 6911 Block - 6912 Block - 6913 Customer Gratitude and Write
Block ------ 1008 Block - - - 100 9 blocks ------ 1010 blocks ------ 1011 And I have a test of receiving maximum files of 10.4 MB.
How to get all the data from the sender?
node. JS is subject to the boundaries of the underlying operating system. Operating system limits the number of outstanding handles, which can be conducted concurrently by a process.
It is possible that you are ending the number of available file descriptors. I recommend using connection pooling to reduce the number of file descriptors that your application attempts to consume So instead of trying to send 1000 things together, limit your program to the pool of 100 programs at one go.
Many connection pooling libraries are available through NPM - a popular option.
I am using API data in a model that is passed through a controller to see. In a special example, I need a foreach () loop, but I need to get the necessary data in Javascript, please see below how I did it.
I know this is bad behavior, but wanted to know what is the best practice to achieve so that I am going forward.
Categories: [& lt ;? Php foreach ($ champ_name $ champ_id => $ stat_value) {foreach ($ stat_value as $ cn = & gt; $ cs) {if ($ champ_id! = 0) {echo '' '$ cn.' '', '; }}}? & Gt;] Thanks for watching / support.
(PS works on but I know that is not in the right way)
< P> You can use
json_encode () to convert an object or array that JavaScript can use. Categories: & lt ;? Php echo json_encode ($ myThing); ? & Gt; For your use, you will still need your foreach logic so that Jason can be encoded.
If you manually create an array like your query, then you need to focus on the special characters due to breaking the array and syntax errors, for example if your $ cn If any of the double quotes contain, it will generate a syntax error The advantage of JSN encoding is that any special character will be taken care without assuming you.
Example:
$ arr = array ('abc', 3, 'to' xt ', 6); Echo json_encode ($ arr); output
["abc", 3, "te \" Xt \ ", 6] ^ qoute is automatically saved < / Pre>
<पूर्व> #include & lt; cstdint & gt; Constexpr uint32_t ticksPerSecond = 100000; स्ट्रक्चर टाइममेमेज़र {कॉन्स्टेक्सफ स्पष्ट टाइममेचर (यूआईटी 64_ सी सी): टीक्स (सी) {} यूआईटी 64_टी टीक्स; Constexpr timemeasure (): ticks (0) {}}; संरचना समय: समयरेखा {अब स्थिर वाष्पशील समय; Constexpr time (): टाइममाइज़र () () स्पष्ट समय (uint64_t c): टाइममाइज़र (सी) {} // `एक्स = समय :: समय के लिए आवश्यक स्पष्ट समय (कॉन्स्ट वाष्पशील समय & amp; टी): टाइमरमायर (टी। Ticks) {} समय & amp; ऑपरेटर = (अस्थिर समय टी) {ticks = t.ticks; वापसी * यह; }}; इनलाइन समय foo (समय और समय) {वापसी समय (टीओटीई + 1); }
संकलन त्रुटि देता है:
prog.cpp: फ़ंक्शन में "समय" foo (const time & amp;) ???? : Prog.cpp: 22: 57: त्रुटि: कॉल करने के लिए कोई मेल नहीं फ़ंक्शन: समय :: समय (समय) एक ???? Prog.cpp: 22: 57: नोट: उम्मीदवार है: prog.cpp: 14: 15: नोट: constexpr time :: time () prog.cpp: 14: 15: नोट: उम्मीदवार को 0 तर्क, 1 प्रदान की क्यों समय :: समय (समय) को बुलाया जा रहा है? निश्चित रूप से uint64_t को पदोन्नत करने की अनुमति नहीं है?
कॉपी निर्माता समय को स्पष्ट के रूप में चिह्नित किया गया है, और फ़ंक्शन से मान लौटाते समय, उस मूल्य से एक अस्थायी कॉपी-आरंभीकृत है सी ++ 11 मानक के परिच्छेद 8.5 / 15 मानक निर्दिष्ट करता है:
प्रपत्र में होता है प्रारंभ
टी x = a; साथ ही साथ बहस में, फ़ंक्शन वापसी , एक अपवाद फेंकना (15.1), एक अपवाद (15.3), और कुल मिलाकर सदस्य प्रारंभ (8.5.1) ) को कॉपी-इनिशियलाइज़ेशन कहा जाता है [...]
हालांकि, स्पष्ट के रूप में चिह्नित कंसल्टेंटर्स को कॉपी-इनिशियलाइजेशन के संदर्भ में नहीं माना जाता है (देखें 13.3.1.4/1 और 13.3। 1.5 / 1), इसलिए त्रुटि।