Posts

Showing posts from July, 2014

objective c - iOS Regex: Unknown escape sequence "\|" -

I am getting a strange warning, and as a result my regex search is not working. Here's the line: NSRang R = [HTML categoryoffstring: @ "\ | (*. *) \ |" Options: NSRegularExpressionSearch]; Where html is a string which I'm sure is a single match for regex above. The warning only You are getting a warning because \ | Objective-C (or C or C ++ for that matter) does not have a valid Escape sequence. The compiler is ignoring it and instead a raw | is using the character, so the string you are actually passing is @ "| (. *)." . You want to get the behavior, you have to run backslash in your source code so that the regex engine can see the literal backslash and | Alternately translate the character as a translation, such as @ "\\ | (* * * \\ |" .

java - how to insert an element into an order array -

Say I have an array of interses that are sorted in ascending order, and I want to enter a new number And I know how to put the position on it but how can I use the system. Arequipi System ArrayCopy (items, I, items, I + 1, items. Length + 1); Item [i] = n; Or I need to create a temporary array copy of the entry for the temporary array (position move an element), and then copy back to the original array int [] newItems = new int [size + 1]; System ArrayCopy (items, I, new items, I + 1, items length + 1); Item [i] = s; Size ++; System ArrayCopy (items, 0, new items, I, I); Item = new item; Your first method will work. If you are not sure, see the documentation on Arakopi. If the source and destination are the same, then it will work as if it is copied to a temporary array that is then copied to the original array, so you can be confident that this will work!

google app engine - Appengine/Java - persisting a String -

मेरा उद्देश्य एक स्ट्रिंग टू डेटास्टोर जारी करना है अंतिम स्थैतिक रुख प्रबंधक = pmf मिल () getPersistenceManager ()।; सार्वजनिक शून्य doGet (HttpServletRequest अनुरोध, HttpServletResponse resp) IOException फेंकता {स्ट्रिंग एस = "परीक्षण"; Println (pm.makePersistent (रों)); PrintWriter pw = resp.getWriter (); Pw.write ("डेटा सहेजा गया"); } निम्नलिखित त्रुटि के कारण के बारे में निश्चित नहीं है वर्ग "वर्ग" java.lang.String "है इसका मतलब यह नहीं है कि इसे बढ़ाया नहीं गया है, या फ़ाइल का एन्हांस्ड संस्करण CLASSPATH में नहीं है (या एक अप्रभावी संस्करण से छुपा हुआ है), या कक्षा के लिए मेटा-डेटा / एनोटेशन नहीं मिले हैं। स्थाई नहीं है इसका अर्थ यह है कि यह बढ़ाया नहीं गया है, या फ़ाइल का एन्हांस्ड संस्करण CLASSPATH में नहीं है (या एक विहीन संस्करण द्वारा छुपा हुआ है), या कक्षा के लिए मेटा-डेटा नहीं मिला है। द्वारा कारण: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: वर्ग "वर्ग" java.lang.String "स्थिर नहीं...

- Where Developers Learn, Share, & Build Careers

docx4j से XMLUtils.marshalToString () का उपयोग करते हुए, मेरे पास निम्न सामग्री दो स्थानों में समान स्थान पर है Docx फ़ाइलें (.docx unzipping के बाद संबंधित word / document.xml से निकाले गए) ये फ़ाइलें के बीच एकमात्र अंतर है: & lt; w: t xml: space = "संरक्षित करें" & gt; नई रेखा सबसे पहले & lt; / w: t & gt; और & lt; w: t xml: space = "संरक्षित करें" & gt; & LT; w: r & gt; & Lt; w: t xml: space = "संरक्षित करें" & gt; नई पंक्ति। & Lt; / w: t & gt; & Lt; / डब्ल्यू: r & gt; & LT; w: r & gt; & Lt; w: t xml: space = "संरक्षित" & gt; सबसे पहले & lt; / w: t & gt; & Lt; / डब्ल्यू: r & gt; & Lt; / डब्ल्यू: टी & gt; पहले दस्तावेज़ में, & lt; w: t & gt; नोड ऊपर के रूप में आउटपुट है। हालांकि, दूसरे में, एक खाली & Lt; w: t & gt; नोड निम्नानुसार मुद्रित किया गया है: & lt; w: t xml: space = "संरक्षित" & gt; ...

jquery - Resize background image problems on chrome -

IM is currently developing this site: Its almost complete but im currently having some problems while changing the size of the 2 background image. This works perfectly on Firefox, but the second background in the chrome (text background) is not completely wrong in a wrong way, only By using CC, I recommend my CCC code to do this: # fondo1 {background-image: url ("images / picture-background / background-INICIO.jpg"); Background-attachment: fixed; Background-position: top center; Repeat Background: No Repetition; Background size: cover; -MOZ-BACKGROUND-SHAPE: COVER; -WebKit-Background-Size: Cover; Status: Completed; Width: 100%; Height: 100%; } #handpoint {background-image: url ("image / INICIOOPO"); Background-attachment: fixed; Background-condition: center center; Repeat Background: No Repetition; Background-shaped: 50%; -moz-background-size: 50%; -WebKit-Background-Size: 50%; Status: Completed; Width: 100%; Height: 100%; } im using 50% due on the oth...

Flex/FlashBuilder :: Spark List / IconItemRenderer:: Disable Selection Highlight / No Selection / Remove Selection -

There was a problem choosing a spark list for IcankaItemRender and deleting down state colors. If you have a mobile If you are creating an app and using the IconItemRender (instead of the item renderer), then there is no auto drawback property. I thought I would leave it here after thanking for this page: You can do the following to make the seat with the following and selected colors. For more control over the items in the list by using IconItemRender, see the LabelItemRenderer class and DrawBackground function. Override protected function Drawbackground (Unsaleated Wideth: Number, Uncalyed High: Number): Zero {var bgColor: uint = 0xffffff; Graphics.clear (); Graphics.beginFill (bgcolor, 1); Graphics.lineStyle (); Graphics.drawRect (0, 0, unscaledWidth, unscaledHeight); Graphics.endFill (); // Draw the separator for the item renderer. Superdrop Board (Unsalted Wideth, Unsolved Height); Opaque background = bg color; }

Bash for loop error -

I am using a simple Bash script for loop, and I keep the following error: '/ test.sh: line 2: Syntax error near the unexpected token' do '/test.sh: Line 2: `Do Use the following code Eating for dog in dog cat elephant "There are $ {animals}" .... However, when I tried it on other machines. It does not make any problems. Is obtained. Please help. Your test.sh script has Windows-style line end in Shell Line At the end of each, the \ r \ n sees the sequence as a \ r character. Seeing the shell instead of \ r instead of . Since \ r sends the cursor to the beginning of the line, so try to see the quotation marks at the beginning of the line ./ test.sh 2> & Amp; 1 | Cat-A To see what exactly is in the error message To fix your capacitance, filter your test.sh script through something like dos2unix . (Be sure to read the man page first; dos2unix , unlike most text filters, overwrites its input file.) This is a common p...

c# - How can I embed an ASP.NET MVC 3 application in a WSS 3.0 site? -

I am very new to SharePoint development and I am wondering how can I embed an ASP.NET website (preferably MVC 3). ) In a WSS 3.0 site, I have recently worked with ASP.Net MVC3 and I had ASP in the past. Net 3.5 is used. I am planning to use SharePoint for administrative tasks and workflow. I have to keep ASPX or MVC pages in SharePoint. This page will allow users to perform CRIRED operations on external databases. Do I want to do it? If so, then how? First of all, even if there is a way to embed an MVC app in the SharePage, WSS 3 NET 2.0 is based on runtime, while MVC3 requires .NET 4 runtime. This will most likely never work. Secondly, I do not believe that it is possible to embed an MVC site in SharePoint, because sharepoint has a very specific extension methods based on webports, which are ASPs. You could use an iframe in a SharePage page about the nearest Net Tool, but it would be an external site not having any contact between the SP and the site.

web scraping - Getting the list of ALL topic names from Freebase -

According to , they have 23,407,174 topics. What is the easiest way to get UI favorable names in all these topics (basically the topic of 'text' topic, JSON, example of a JSON of a subject)? I do not need any other Meta information wget-o - http: //download.freebase .com / datadumps / latest / freebase-simple-theme-dump.tsv.bz2 | Benzip 2 | Cut-off 2 & gt; Although you may also want a freebase ID, so you can know what the name is: wget -O - http://download.freebase.com/datadumps/latest/freebase -simple-topic-dump.tsv.bz2 | Benzip 2 | Cut-F 1,2 Two extra bits of postprocessing are required: Skipped in tab \ t String \ N represents a blank (non-existent) name

php - List of Codeignitor Functions -

I want to list all the codeignitor's actions to develop a program to complete the codeigner auto syntax. Anyone can provide me a list of all the functions of the Codeigner. http: // Ellislab.com/user_guide/ Click on the table of contents in the top right These are some functions: http: //ellislab.com/user_guide/libraries/loader.html

Google Drive: Disable "Open with" our app from Google Drive dashboard -

Image
हमारे पास Google डिस्क एकीकृत ऐप (marqueed.com) है जो आपको अपने Google डिस्क छवियों को प्रमाणित करने और अपलोड करने की अनुमति देता है। ऐप। हालांकि, हम नहीं चाहते कि Google ड्राइव उपयोगकर्ताओं को Google डिस्क डैशबोर्ड से फाइलें खोलने में सक्षम हो ("खोलें"): हम नहीं चाहते कि हमारे ऐप में दिखाई दे उपरोक्त स्क्रीनशॉट, ऐसा करने का एक तरीका है? आपका एप्लिकेशन ओपन विद मेनू में दिखाई देता है उन फ़ाइलों के लिए जिनकी MIME प्रकार या एक्सटेंशन API कंसोल के ड्राइव एसडीके टैब में सूचीबद्ध हैं: बस उन मानों को डिफ़ॉल्ट और माध्यमिक MIME प्रकार और एक्सटेंशन दोनों से हटा दें और आपका एप्लिकेशन अब और दिखाई नहीं देगा। अधिक जानकारी के लिए, पर दस्तावेजों की जांच करें

How to separate a column of numbers from string lines of varying lengths in C++? -

Thanks in advance for your help I am looking to read the file that has the following format: 100 each row has 23452 different numbers 30 words If I use the line reading method by line: file & gt; ; & Gt; Number [i] & gt; & Gt; Str This does not work clearly, because the string is empty. Does anybody have any idea how can I do this? I am interested in saving numbers in only one array. Thanks! read a line using fstream and stop it on the given character (such as a location): to Eastern & amp; Gateline (cell * s, stream no, four delimited); If the delimiter is detected, it is removed and released, i.e. it is not stored and after this the next input operation will begin. After this, you will convert the first part of the line, convert it to int or other number format, to catch the remaining line, the other getline (this automatically clears the character on the new line), then repeat.

objective c - iOS - Access modifiable raw music library data? -

I know that it is now possible to edit a song from the user's music library and edit it by changing speed, pitch etc. But I can not find a link for a useful tutorial which is to reach the raw data of a song. Can anyone direct me to do something like this, or maybe there is such a library for this? Thanks! Here are some source codes that you can get started with: - (zero) doSomethingWithAssett: (AVURLAsset *) songAsset {NSError * Error = Zero; AVAssetReader * Reader = [[AVSet Reader ALOOC] initWithAsset: songAsset Error: & amp; Error]; If (error) {NSLog (@ "% @", [error description]); } AVAssetTrack * songTrack = [songAsset.tracks objectAtIndex: 0]; NSDictionary * outputSettingsDict = [[NSDictionary alloc] initWithObjectsAndKeys: [NSNM Number Number: KAIOFormatLinePCM], AVFformatky, // [NSNumber NumberAttah: 44100.0], AVSMPlayReta, / * Not Supported * / // [NSNumber Numberless: 2], AVNumberOff Channelski, / * Not supported * / [NSNumber numberless: 16], Avi...

scipy - python count number of ones in a binary image -

What is the Python module for calculating the number of people in a binary image? To rephrase, I have a matrix that has only one and zero, it's a narrow type and I want to know how many people are there. You can just use sum : & gt; & Gt; & Gt; Import samples & gt; & Gt; & Gt; N = numpy.random.randint (0, 2, size = (3,3))> gt; & Gt; & Gt; N array ([[1, 0, 1], [0, 1, 1], [1, 1, 1]]) gt; & Gt; & Gt; Since n.sum () 7, the integer value of 0/1 in bools is false / true, even if there were elements in the array that were not 0 or 1, then you can use a different type. This trick: & gt; & Gt; & Gt; N = numpy.random.randint (0, 3, size = (3,3))> gt; & Gt; & Gt; N array ([[2, 2, 0], [0, 2, 0], [1, 1, 0]]) gt; & Gt; & Gt; N == 1 array ([[false, false, false], [false, false, false], [true, false]], dtype = bool gt; & Gt; & Gt; (N == 1) .sum () 2

database - Updating a table after adding Index -

I'm preparing a database using SQLExpress I have a table that contains three columns I table appears below . I already have some data in this table. Whenever I want to add a new line, I first someLongString is a calculated hash and query the table to see whether there is already a line with the hash as increasing size of the table, this query'm speaks longer and so I make it someLongText_Hash plan pointer column. How can please suggest that How do Also in SQL Server Management Studio, after adding to the index, how the existing rows in the table index? What Why 'are set to just make some' long string 'area unique? In this way do you need to have a hash and an additional primary key? You can try to use a CHECKSUM. create table [dbo]. [Dummy] ([id] [Int] identified (1,1) NOT NULL, [some Lngstres] [text] No, [some Laँgtekstkaksems] No Constraints [UC-Skeelaँgtekstkackesm] unique (some Longtakstkackesm), Kantroinst [Pike_dimmi ] [Primary] TEXTIMAG...

Cassandra resets connection under heavy insert workload -

I have 8 nodes Kasndra cluster, cassandra 1.0.8. I'm trying to insert a lot of small loop with Bac_matet (). After some time (~ 200K puts) server resets the connection with the following exceptions: org.apache.thrift.transport.TTransportException: java.net.SocketException: org.apache. Reset connection on thrift. transport.TIOStreamTransport.write (TIOStreamTransport.java:147) on org.apache.cassandra.thrift.Cassandra $ Client.send_batch_mutate org.apache.thrift.transport.TFramedTransport.flush (TFramedTransport.java:157) (on Cassandra.java: org.scale7.cassandra.pelops.Mutator at $ 1.execute (Mutator.java:46) org.scale7.cassandra 998) on org.apache.cassandra.thrift.Cassandra $ Client.batch_mutate (Cassandra.java:986) . Pelops.mutator $ 1.execute (Mutator.java:42) org.scale7.cassandra.pelops.Operand.tryOperation (Operand.java:56) at org.scale7.cassandra.pelops.mutator.execute (Mutator.java:51 At) ... due to: reset the connection to java.net.SocketOutputStream.socketWrite (Soc...

- Where Developers Learn, Share, & Build Careers

I really can not solve the problem that troubles me / only partly can solve it. Good juicy for you professionals. I have a basic login system installed. Like this: Log in. Php: Line 1: session_start (); If checked ($ _SESSION ['logged_in'] == true) header ("location: /controls.php)"; , if they have already entered their details. If they have not entered if they are valid: $ _ session ['log-in'] = true; After checking the database credentials and the session is set to True, redirect using the header ("location: /controls.php); Controls.php Line 1: session_start (); Line 2: if ($ _ session ['login'] = true) {header ("location: /index.php");} Immediately I am taken to index.php in Chrome and Firefox. In addition, I have accounttools.php , where the session's come Once I try to reach accounttools.php , the session is destroyed / unset and the load to accounttools.php Any attempt to redirect the...

delphi - Special Character restrictions for TStringList Name-Value Pairs? -

Image
I have a TStringList that is full of some thousand name-value pairs. One of them is 004001000002000 = Timer2 volume 0 ~ 1274995 I got a specific indicator by calling IndexOfName with the 'Index 004001000002000' string. I hope the valueFromIndex string returns to 'Timer2 volume 0 ~ 1274995' Instead, when I use this value using ValueFromIndex, this string returns: ~ 1274995 What's the reason? Tilde is a special character that causes the string to be shortened? Can I set it in something else? I can not reproduce the issue using the following code: TButton.OnClick Event (screen capture from Delphi 2007 and Delphi 7 - Delphi 2007 test): Process TForm2.Button2Click (Sender: Tubect); Var SL: TStringList; I: integer; Start SL: = TStringList.Create; Try SL.Add ('004001000002000 = Timber 2 Volume 0 ~ 1274995'); SL.Add ('ABCDEF = test1 2 3'); I: = SL.IndexOfName ('004001000002000'); If i & gt; -1 Then Shomesz (SL. Valuefind...

asp.net - Redirects to login.aspx but not to default.aspx -

So I have certified the forms to authenticate my web.config. I have two pieces of code in my web.config but this is a strange thing when you go to www.mysite.com, it redirects to login.aspx page but when you have www.mysite.com/default Aspx does not redirect it. Why is it doing this? I have default.aspx & lt; System.web & gt; As the default document is set. & Lt; Compilation debug = "true" targetFramework = "4.0" /> & Lt; Authentication mode = "form" & gt; & Lt; Forms loginUrl = "~ / login.aspx" timeout = "2880" defaultUrl = "account / default.aspx" /> & Lt; / Authentication & gt; & Lt; Authority & gt; & Lt; Deny users = "?" / & Gt; & Lt; / Authorization & gt; & Lt; Location path = "default.aspx" & gt; & Lt; System.web & gt; & Lt; Authority & gt; & Lt; Allow users = "*" /> & Lt; / Authorization ...

ruby on rails - How to create a new DateTime object in a specific time zone (preferably the default time zone of my app, not UTC)? -

I have set the time zone in /config/application.rb , and I expect every time I've been created in my app by default in this time zone, even when I create a new DateTime object (using .new ), Then call it GMT . How can I get it in my app's time zone? /config/application.rb config.time_zone = 'Pacific Time (US and Canada)' irb irb> Date time = now = & gt; Mercury, July 11, 2012 19:04:56 -0700 ERB & gt; Mydate = DateTime.new (2012, 07, 11, 20, 10, 0) => Mercury, July 11, 2012 20:10:00 +0000 # GMT, but I want to use PDT in_time_zone does not work because it's just GMT Time changes for PDT time, which is the wrong time: irb> Mydate.in_time_zone ('Pacific Time (US and Canada)') = & gt; Mercury, 11 July 2012 13:10:00 PDT-07: 00 # Wrong time (I need 20:10) You can use the ActiveSupport ( Time.zone ) object to create and parsize dates in your application's time zone: 1.9 3p0: 001 & gt; time. Zone....

nsurlrequest - how to pass an array as parameter when making a request to server,iphone -

दिये गए : पुस्तकों का एक हिस्सा और प्रत्येक पुस्तक परिदृश्य : उपयोगकर्ता एक से अधिक पुस्तक का आदेश दे सकता है लक्ष्य : एक NSMutableURLRequest बना रहा है और सर्वर को यह अनुरोध भेजता है और सर्वर को पता है कि कौन सी पुस्तकों को चुना जा रहा है प्रश्न : उदाहरण के लिए, उपयोगकर्ता ए 3 पुस्तकों का चयन करेगा जिनके आईडी हैं ए, बी, सी। मैं इस एआरएम को कैसे अनुरोध कर सकता हूँ ताकि अनुरोध किया जा सके कि यूजर ए इन पुस्तकों को आदेश दे रहा है आपके सर्वर की अपेक्षा प्रारूप पर निर्भर करता है, उदाहरण के लिए यदि आप शोकहारा करते हैं, तो आपको पोस्ट या प्राप्त करने और उस पर आधारित आधार पर चयन करना होगा जो आपकी क्वेरी का निर्माण करते हैं। यदि आप सशक्त प्रयोग करते हैं तो फिर रेस्टकिट एपीआई का उपयोग करें और पैरामाम्स प्रॉपर्टी का इस्तेमाल करें। (या आप उन्हें सीधे मूल आईओएस एपीआई के साथ बना सकते हैं)। आप अपना डेटा JSON प्रारूप में भी भेज सकते हैं, लेकिन सर्वर को इसे पार्स करने के बारे में जानना होगा।

drupal - Include synonyms in solr without using synonyms.txt -

I am using Drupal Apache Solr for my searches. In this I got a synonym.txt file in which you You can manually add words that you want. But as I think it would be very difficult to include the word synonyms for each word because my application is bigger in data. What do I want to achieve in my search results: When users search potatoes instead of potatoes, we will display potatoes as 1 result. Another example: When the user searches for 'raw apple' then we will show 'apple' as the first record because 'raw apple' is the synonym of apple. But the problem is 100K records and each record has 4-5 synonyms that are not possible to manually enter them. Another issue is that if I want to change the synonyms of a particular record, then I have to do it manually, which is also time-consuming. I want to know that there is any other option which I do not need to manually enter the synonyms? IMO is close to search engine optimization, besides you hav...

String handling in ANSI C (Memory Allocation) -

How can it be that I can specify a string * variable a string, and no need to allocate memory is? For example, if I have a function, then returns a four * (for example a file path) and I call the function this way. char * path; Path = get_path (); If I do not know how the length of the path will be, how will I behave? It is strictly necessary to allocate the size of the path, before the "path" In your code: four * path; path = Get_path (); get_path gives a string (or, of course, of the address) a string (an indicator for the string one for its first letter Is an indicator). Assignment only copy of that pointer value Script, which stores it in the path . get_path function should be allocated to keep the string in any way . There are many ways to do that. Some people make it the responsibility of the collar when space will not be required. Recommend to read: Section 4 (Points), 6 (arrays and pointers), 7 (memory allocation), and 8 (characters a...

c - OPROFILE can't get performance data -

I am using OProfile to collect some performance data. But I got into trouble: Here's my shell:. ~ # rm -f /root/.oprofile/daemonrc ~ # opcontrol --setup --no-vmlinux ~ # opcontrol --init ~ # opcontrol --reset ~ # Opcontrol --start ~ # opcontrol --status Daemon running: pid 14,909 different options: None vmlinux file: None Image filter: None Call-Graph: Depth: 0 ~ # opcontrol --shutdown Prevent Profiling DAmon Kill ~ # Opreport Error: No sample files found: profile specification very strict? ~ # Tree / var / lib / oprofile / / var / lib / oprofile / a ??? One ???? Ai Ai ???? One ???? Full_dump is an "F" Jitdump A "????" Line Opd_pipe a ???? One ???? ??? Samples A "????" Line Current one ???? One ???? One ???? One ???? Statistics a ???? One ???? One ???? Bt_lost_no_mapping one ???? One ???? One ???? One ???? Cpu0 a ???? a???? One ???? One ???? One ???? Backtas_barted A ???? One ???? One ???? One ???? Sample_invalid_eip one ???? a???? One ????...

- Where Developers Learn, Share, & Build Careers

I'm working on Python in a difficult way, exercise 48, using nosetests to test tuples I am determined that the following types are: def test_directions (): assert_equal (lexicon.scan ("answer"), [('direction', 'answer']]) However, I get the following error every time: ... line 5, test_directions assert_equal (lexicon.scan ("answer"), [ ('Direction', 'answer')] Type type: unbound method scan () first Should be called with a Lexicon example as a (got RR frequency instead) If I present just above @staticmethod "def scan (self):" I would rather This error is found: line 24, in the scan words = self.sentence.split () attribute error: 'str' is not an attribute of the object 'sentence' and the code I am testing it is below. What am I missing? class terminology T): def __init __ (self, sentences): self.sentence = sentences self.direction = "direction" self.verb = "verb...

jquery - any javascript event for loading external JS on-the-fly? -

I am working on a bookmarklet project which loads the external jQuery.js file like this: jq_script = document.createElement ('SCRIPT'); Jq_script.type = 'text / javascript'; Jq_script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js'; Document.getElementsByTagName ('head') [0] .appendChild (jq_script); But when I try to use jQuery after this, I get: Unwanted reference references: jQuery is not defined On Chrome JS Console Is there any "event" that is called when a domain instance loads? (Or an event that triggers when an external JS file loads like this?) Thanks!

How to manage single session on two different php scripts? -

I have installed two different PHP scripts on my server, on one other sub-directory on the root, however, I want to continue the subtitle user session on another sub-directory script. I need this session to enable chat on another directory script. Subdirectory I have created a different PHP file on sub-directory to track session variables. Array ([user_email] => xxxx@example.com [users_id] = & gt; 275 [first_name] => Sammy [last_name] => Scurry [user Name] = & gt; 275 [mobile] = & gt; XXXXXXXXX [chat_sms_sent] => message to off-line friends.) Although Array ([message] => Array () [keepForm] = & gt; Array () [form] => Array () [Chat_sms_sent] => Messages have been sent to off-line friends.) Can solve a problem thanks session from a directory Are not connected if If you call session_start () at the top of both scripts, then both the $ _ session variable should have the same content.

jpeg - php : How to create a string of image binary without saving it to a file? -

मेरे पास एक छवि वैरिएबल है, $ im = imagecreatetruecolor (400, 300); क्या जेपीजी प्रारूप में इस छवि के बाइनरी को एक फ़ाइल में सहेजे बिना पाने के लिए वैसे भी है? धन्यवाद! ob_start (); imagejpeg ($ im); $ ImageString = ob_get_clean ();

- Where Developers Learn, Share, & Build Careers

We have two websites for mobile and accessed from a PC. Our template is ready so that the content can be shared between the two websites. SiteEdit is enabled on the PC website. My concern is that when a person uses SiteAdit on the PC website, will the mobile website page be published automatically or not? The content will not automatically be published on the mobile web site unless you explicitly configure it. However, the shared content will be modified, of course, and as soon as someone decides to publish, the mobile site will be updated with the content optimized for your PC site. For example: There may be more space for text in your PC site, so you may take the exams to prepare headers that are too big for your mobile site. The fundamental question is whether you can share content between two different media What are the advantages of simple blueprints will be affected by possible conflicts? You have to decide for yourself.

iphone - unzip downloaded file through asihttprequest -

I have to realize that using the ASHTPPRCE, we can open the downloaded .zip file or it's only .zzip compressed file Can open Please do not hesitate to unzip the downloaded file because I can not unzip the ASIHTTPRequest compressed file because I use the third party API like ZipArchive. Thanks Support ASIHTPP deccps, for example - - (IBAction) grabURL: (ID) sender {NSURL * url = [NSURL URLWithString: @ "http : // allseeing -i com "]; ASIHTTPRequest * Request = [ASHTTPR request * with url: url]; // Yes is the default, you can set it to close the gzip compression [request setAllowHelp: Yes]; [Request [synchronous]]; BOOL * Datacecated compressed = [Request fullCompress]; // response was compressed gzip? NSDTA * Compressed Response = [Request RawResponsdata]; // compressed data NSData * uncompressed data = [request response data]; // Uncompressed data NSString * response = [request response string]; // As uncompressed data string) Update: Asi zip file does ...

- Where Developers Learn, Share, & Build Careers

I used Visual Studio 2010 in Windows XP, the problem is, other versions like W7 .. or changing my system The theme of upgraded versions also changes the colors of the forms, so can anyone tell me that despite the elements to change the colors dynamically according to the OS or the subjects ??? Just comment on the code below from the Program.cs file Is: Application.EnableVisualStyles (); And then apply the color or theme to whatever you want and it will be affected in spite of the operating system.

php - How to send app request to user all friends using Facebook request dialog? -

I was able to send an app request to a user of to = requesting 50 friends Am amend the field but I would like to send a request to all the users of this type like this app: This app re-invites the first 50 friends for the users, again the next Invites users to 50 friends and so on In my code I can forward this url to users using PHP https://www.facebook.com/dialog/apprequests?app_id=443468799026324 and = ". $ Friend_ids." & Amp; Max_recipients = 50 & amp; Filter = app_non_users & amp; Redirect_uri = ". Urlencode ($ canvas_page2)." & Message = ". $ Message; How can you proceed from here? You can follow it in the form: first 50 friends in you when you send a request, store the friend ID while saving the parameter and cookie. This redirects to your site URL, where you can repeat above step.ie. Send 50 requests to friends and stay in cookie. var to = ""; (Var J = 0; j & lt; 50 & amp; amp; j & Lt; frien...

ruby - PostgreSQL queries are gobbling up VM -

[Html> [script: I know that there is nothing delayed: Not specific for the job but help to establish this context .] Update I believe SQL tricks are not being collected in garbage. My application creates many large SQL Insert / Update Operations (160k bytes each, about 1 per second) and sends them through PostgreSQL: ActiveRecord :: base.connection.execute (My_large_query) When I execute these DB operations, my application increases without bound. When I reject DB operations (but do all other things in my app) then bloating stops. So: Why is this happening, there is no idea about how I can fix it or how can I stop it? The basic question I have been delayed in such activities that linger the data from the web and make records in a PostGrace SQL database. They are working fine, but they start with vmemsize = 100 m, and in 10 minutes, in the bulk, the Wmmskez = 500m and just keep growing. How can I tell where the memory is going? Before you refer me to other such...

if statement - php include with condition -

Strange problem: Both works in the following code (both files are displayed ) But only one resonance: if (! $$$$$$$$$) "resonant!" Idea / parent.html.php ';} Else {Echo "You are not parented!"; Include 'Html.php' as a parent / parent;) is included when the script is parsing.

performance - How to organize work pool based on PostgreSQL table? -

Assuming I have PostgreSQL (more than 500Gb) - work pool. Apart from this, I have a worker process, which works from the work pool. What is the most effective way to release the manager, in response to the requests of the workers, the next string will return from the 'work pool' table, can there be any type of cursor, iterator or anything? UPD I've forgotten an important item - the table is fixed. No INSERT or UPDATE operations are permitted, we are reading from it. may be appropriate for the problem or may be. It covers areas with similar problems, so take a look.

web services - JAX-WS Client Pool in a Java EE App Server -

I have an application running in a Java EE app server and it must call the web service of a partner company. Using wsimport.exe from my JDK (1.6) I have generated client clients. I instruct the service to call the web service and receive the port. I saw that the first call of the web service is slow and I believe it is because it is WSDL. The subsequent calls are fast. I can keep WSDL locally, and apparently will accelerate the first call. To customize my app, I was thinking that I pooled customers in this app, I have some throttling in the app - I think I have a pool of 5 clients, so I I'm using memory for up to 5 customers. If a sudden increase in my server increased, I do not have to worry that unlimited number of customers will be out of memory error. I believe, based on past experience, web service customers have used too much memory ... Will you bother with the pool? How will you get the web service slow on the first call? What is the best way to create tha...

nsimage - Objective C- Memory leak with CGDataProviderCopyData -

I am trying to create new developers and a fill color app on objc. When I touch on an image, the color will change, but I've got Mirarik leak with this function, need your help: - (minus) updates Aimej with collar elected Gone: pause {cgi} NSDTA * data = CGDAPproductCopy data (CGI MegatarGetDetTextWidder (ImageRead)); / Leak here byte * pixel = (byte *) [data bytes]; // Change color ... for (int i = 0; i I remove all code except NSData Defense tries to convey * data = Seedeedatapradatacopeedata and app is still leaking. What you have to release the people know how "data"? Thanks in advance, } // img original image [self.img setImage: self.basicImage ]; Data = zero; [data release];] You are sending a zero conclusive release. [data release]; data = zero ;} This will work better. Edit I: This issue is issued with the CGDTroprovertWiddata , then the data pointer you passed CGDTransparentCredit Data Becomes invalid It is expected that for ...

mailing list - phplist api - subscibe / edit / remove users by ajax -

I have a very simple php-based website. I would like to add the "subsribe for information" box and send it to some list-management tools. I found that it is quite good. However, I do not have an API that allows me to subscribe to users who use Ajax. (I want to avoid flickr pages to avoid confusion due to various designs, and I interface too multilingual). Of course I can touch the code, but I doubt it remembers this feature, so I think I missed it. Thank you! Hopefully you have already acquired it, I have a different use case, whose No need for AJAX. Nevertheless, I have received a script that tries to reduce the addition of customers to your list, maybe you use it as backend to support your AJAX request. Able to This is the thread in which the script is shared, as other people have found it useful, to unsubscribe users, even heavy membership / unassigned: Finally, keep in mind that this code is using the PirDB abstract layer, maybe I'm going to use...

dojo - dojox gfx: event handler of shape beyond an other shape -

I have a problem with dealing with event dojox gfx Consider the following code:. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Example & lt; / Title & gt; & Lt ;! - Load Dojo - & gt; & Lt; Script & gt; DojoConfig = {async: true, gfxRenderer: "svg, silverlight, vml" // svg becomes priority}; & Lt; / Script & gt; & Lt; Script src = "dojo / dojo.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script & gt; ("Dojox / gfx", "dojox / gfx / movable", "dojo / domReady!", "Dojox / gfx / fx"], function (gfx, movable, dome, gfxfx) {var surface = Gfx.createSurface ("surface element", 400, 400); var rect = surface.createRect ({x: 30, y: 30, width: 100, height: 100}). Setfill ('blue'); rect.connect Other...

- Where Developers Learn, Share, & Build Careers

All materials on DDD specify this as not strict number, but recently came in a scenario that makes a compelling case to think. Otherwise. Imagine 2 total roots and templates where template - & gt; (1: n) template, document - & gt; (1: N) Paramavlue and finally there is a reference to 2 roots document - & gt; (N: 1) Template . Gross root barrier ParamValue should not be issued in the context of TemplateParam , only it can be referred to through a transient reference template Received via gross route. Now if I want to apply a rule such as "Each paragraph of the document should mention a valid template related to the template referred to by the document owned by it". Ideally at the DB level, I have to give Paramvalue to template value in the FK, how to do it in DDD pattern ?? The total reasons for a reason are that they act as a single entry point for a group of related institutions to implement their own misgivings. They ensure that an external object c...

c# - Replace ASCII characters with their equivalent -

I am setting a value in the cookie using cookies and receiving the contents of the cookie in the back code. But the problem is that I am storing the string with some special characters or white space characters, when I am retrieving the contents of the cookie, converting special symbols into ASCII equivalents are given. For example, if I want to store in the Adam - (SET) cookie, then it will be Adam% 20-% 20% 28SET% 29 I am getting converted and archived and when I am recovering it, I get the same Adam% 20-% 20% 28SET% 29 . But I can get this code under the code . How do I get it? help please. in C # Use: / P> string is decoded = HTTTY. Urlcode (encoded string); The built-in function that can be used by other options which you can use in .NET Framwework (see below). If necessary, you can specify an encoding. or: string is decoded = URI.UnescapeDataString (s); See the documentation for some alerts. javascript var decoded = decodeurICo...

- Where Developers Learn, Share, & Build Careers

I am using iReport version 4.0.1. I am facing a problem in which I want to display some information which should come only on page 2. Therefore, it is neither a footer nor end-page footer. I am using iReport to create jrxml files and the design looks something like the bottom {HEADER} {extension-band-1} comments: My first page ends up to this point {DETAIL-BAND-2} Comments: This is coming from a sub-report {DETAIL-BAND-3} Note: This coming from a sub-report - Some random empty places have left. {DETAIL-BAND-4} Note: This is where my 2 page page needs to come. {lots of band} {main report-refinement} Therefore, I need a footer (in fact it is not a footer, in some detail it is necessary to come to the second page of the generated generic PDF) that can be determined according to the top of the page in which it Is printed. Is there a way to do that? Thanks "Print the expression" and then you try to use the property You can use a variable named ...

jsf - How to open a page against each richfaces menuitem on the same webpage -

I'm new to Java, I'm looking for answers to the following questions. I am creating a website using JSF, in which I am using a Richfase Menu (PanelMenu Group and PanelManuite). I want to display a new page in front of the menu bar against each item in the menu (i.e. when I click on menu, open a new page in front of the menu bar). Any solutions? Thank you. U can create a h: command links and action related beans Call the method that gives the desired page pulling string welcome () {. Return "\ welcome.xhtml"; }

c# - How to assign delegates as methods of some implemented interface -

I have an interface that specifies two zero methods with no parameters, how do I "plug" two System.Action (T) Can I apply the interface to methods in some squares? In my example below, this will be in zero pushfu (action bar 1, action bar 2) method: public interface IFoo {void Bar1 (); Zero Bar2 (); } Public square Bla {stack & lt; IFoo & gt; _fooStack = new stack & lt; IFoo & gt; (); Public Zero PushFoo (IFoo foo) {_fooStack.Push (foo); } Public Zero Pushfu (Action Bar 1, Action Bar 2) {IFoo foo = null; // bar1 and bar2 to assign foo // foo = ...; _fooStack.Push (foo); }} public class ActionableFoo: IFoo {Action _bar1, _bar2; Public ActionBulfu (Action B1, Action B2) {_bar1 = b1; _bar2 = b2; } Public Zero Bar1 () {if (_bar1! = Null) _bar1 (); } Public Zero Bar2 () {if (_bar2! = Null) _bar2 (); }} Then, in your example: Public Zero Pushfu (Action Bar 1, Action Bar 2) {IFoo foo = new ActionableFoo (Bar 1 , Bar 2); _fooStack.Push (foo); } ...

- Where Developers Learn, Share, & Build Careers

I am trying to parse an IP address from a html code beside a value. HTML code looks like this: Example X_Value_B: 192.12.21.31 So I want to be able to check that what IP is given next to X_Value_B: How do I parse it? This is what I have done so far: Match Me = Reggae Mate (_respstr1, @ "\ b (\ d {1,3}.) {3} \ d {1,3} \ b", RegexOptions.IgnoreCase); However this does not specifically take the IP near X_Value_B: Use this one: var match = Regex.Match (Input String, @ "X_Value_B: \s * (? & Lt; IP & gt; \ + + \. D +. \ D +. \ D +) "); If match (success.) String strIp = match. Group ["ip"]. Values;

blackberry - Read incoming sms without spaces -

The following code reads an incoming SMS, then prints the message body. How do I get an app to print messages without any spaces? For example: Incoming SMS reads "I am here", so "I am here" is printed, but I want the app to print "Iam" here. How can I do this? Any help would be most appreciated. This is my code: running public zeros () {try {DatagramConnection _dc = (DatagramConnection) Connector.open ("sms: //"); For (;;) {Datagram D = _dc.newDatagram (_dc.getMaximumLength ()); _dc.receive (d); Byte [] bytes = d.getData (); String address = d.getAddress (); String msg = new string (bytes); Println (address); Println (message); }} Hold (exception me) {}} thanks Try it Add this line to the code System.out.println (replace all (msg, "", "")); Also add as a pattern All the public string strings replaced (string source, string pattern, string replacement) {if (source == empty ) Return ""; St...

vb.net - how to substring and return the value in between the blacket -

How can I replace the string, e.g. "A1 (value)" and return me "value" ? You can use RegularExpression : dim RR = "A1 (value) ... (other value)" dim pattern = "\ (([^)] *) \" slow rijks = new system. Text. Regular Expression Reggae (pattern, system text. RegularExpressions.RegexOptions.Compiled) slow firstBracket = regex.Match (str) if firstBracket.Value.Length & lt; & Gt; 0 then 'free' bronchitis = first bracket.value Substrings (1, first bracket.value.length - 2) 'value' end if

object - change the language of iOS app dynamically -

I've seen some iOS applications that dynamically change the language used in the app, I mean when The app uses the user to dynamically change the language (French, English, ...); I have searched the Internet and I have found anything about it. Any thoughts? Thank you You must write your own version of NSLocalizedString macro, which selects a language bundle phone User preference instead of locale

c# - Replace serializationinfo in windows phone -

I have to get information about the serialized object, generally I will use the SerializationInfo That square is missing in WP7.5 . Which class can you recommend me? How are you sorting your object? Since a while I've touched the WP side, but you / you just can not apply a ToBytes () / FromBytes () on your object and manually write / read the fragments of your object, probably w / a BinaryReader?

c++ - How can I find the InternetRegistry User Key or Parent Registry Key -

I have a BHO which is collecting activation information on the first run and stores it in the registry. (I think) I'm only able to store it in the registry branch due to IE's permission HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ InternetRegistry \ REGISTRY \ USER \ S-0-0 -00-000000000-000000000-000000000-0000 \ Software \ MyBHO \ MyKey Where is 0-0-00-000000000-000000000-000000000-0000 There is a unique key for each user. With RegCreateKey () using "Software \ MyBHO \ MyKey" is okay. It's all made and lovable Problem: When I uninstall, I want to remove this key and as it Runs out of IE, I have no way of determining what that key / user string is. I have the option: Option 1 (Ideal) First find the string of this user, then make a new path for that key I want to remove it and want to remove it. how? Option 2 The key path can be accessed in another registry value at the point of activation store. Then read, and re...

- Where Developers Learn, Share, & Build Careers

Problem: Can I crop an image at a fixed coordinate (50,50,200,200) after zoom? I pass several hours and look at the similar question. But the answer is not answered thanks The logic of my crop is here .. CGSE Item Item = CGSIMMake (200, 200); UIGFIFENESS Bizinetzisten (items, NO, 0); CGRTP Choiceant = CGRactMake (50, 50, 200, 200); [ImageView1.image drawInRect: imageRect]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); But I can not crop the exact image into the scroll view. I want the crop image that is displayed in the scrollview after zoom. Answer to my own question: After a googling I found a link and After doing a little modification it works fine for me. It may be that he saved another time and effort. Thanks UIGraphicsBeginImageContext (CGSizeMake (200, 200)); [ScrollView.layer renderInContext: UIGraphicsGetCurrentContext ()]; UIImage * fullScreenshot = UIGraphicsGetImageFromCurrentImageContext (); UIGra...

- Where Developers Learn, Share, & Build Careers

Hi I am integrating the CUDA prog through the MATLAB MEX interface. This combination runs fine with following 1.MATLAB 64 bit 2012 R2 2.Windows 64 bit OS but when I try to do the same thing on the 32 bit 64 bit version MATLAB on windows 2008, this adding error error LNK2019 gives the following: Unsolved external symbols mxDestroyArray function referred to in mexFunction. I have set up the nvmexopts64.bat link path like this Reminker parameter ray ************************************** **************************************************************************************************** % ENTRYPOINT% / map / LIBPATH :: "% LIBLOC%" libmx.lib libmex.lib libmat.lib / implib \ exile \ lib \ Win32 \ Microsoft set linker = set LINKFLAGS = / dll / export link set LIBLOC =% MATLAB% :% LIB_NAME% .x / machine: x64 kernel 32. Lib user 32. Lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib set Please LINKOPTIMFLA...

Determine jQuery toggle state -

I am using the toggle () method on the button so they have a Do something / return changes for example behavior: $ ('button'). Toggle (function () {// Case 1: Maximize ... ... another_function ($ (this));}, function () {// Case 2: minimize ... ... second_function ( $ (This));}); In both the toggle cases, the same task is finally called ( another_function () ). I do not want to manipulate the button in order to find out whether we are in matter1 or case2 (for example add a class, custom attribute set Before making the call function, and check those changes inside the function). Element is a way to detect state data, in which we are in the toggle case (which part of jQuery togo is known to execute somewhere to install a state)? PS: There are already many posts related to that topic but they are about to hide / show the matter and their suggestions (check whether it appeared Is being hidden, ...) does not apply here. You already know which state you...

ASP.NET C# RDLC IFF condition gives error -

I need to print notes in the rdlc report. I due to the long notes to reduce the size of the notes I have a substring function It was written that it works perfectly for notes with more than 30 lengths. But this error shows for notes with a length of less than 30. So I decided to give the status of IFF for the rdlc report field But again this error shows (for notes in length less than 30). Please suggest that there is something wrong with this IFF situation, otherwise please suggest some alternative solutions for this problem. Here's my code. = IIF (field! Notes.toString (.) Length ()> 30, (Field! Notes. Value.ToString (.). Substring (0,30)), Fields! Why not: = iif (lane (fields! Notes value)> 30, left (Fields Notes Value, 30) Fields Notes .Value) And if you are not sure if the datatype notes of the field are a string, then just change the 'Fields! Notes.Value' Take CSR (Field! Notes Value) everywhere

algorithm - Least common ancestor of multiple nodes in DAG -

How do I get at least the common ancestors of multiple nodes in a guided esaic graph? I have found some papers on this topic, but they are all looking for LCA in the DAG for the two nodes. What are the best algorithms for multiple nodes? You may modify the algorithm which is used for trees that Accepts DAG as well. As you know, there is an algorithm for finding the LCA in pre-processed trees of o (nlgn) and O (1) each The query, therefore k is required to find the LCA of the nodes o (k) more information about this algorithm can be found.

php - Assigning multiple classes to a tag using PHPTAL -

I have an array of data, which I want to use as an outlet for PHP simple), first and last A class attribute for element (easy) ... at the same time (hard). Let me combine: & lt; Ul tal: repeat = "item items" & gt; & Lt; Li class = "$ {item / class}" & gt; $ {Item / text} & lt; / Li & gt; & Lt; / Ul & gt; with this & lt; Ul rhythm: repeat = "item item" & gt; & Lt; Li rhythm: property = "square repeat / item / first 'first'" & gt; $ {Item / text} & lt; / Li & gt; & Lt; / Ul & gt; and this & lt; Ul rhythm: repeat = "item item" & gt; & Lt; Li tal: attributes = "class repeat / item / last" "& gt; $ {Item / text} & lt; / Li & gt; & Lt; / Ul & gt; This is purely current content, so I want to pure it in PHPTAL. Is this possible? No, there are no net bids for this. & lt; Li tal: attributes = ...

iphone - Deleting in NSDocumentDirectory -

मैं NSDocumentDirectory इस तरह से बचाता हूँ: NSLog ( @ "% @", [सूचना वस्तुऐटइंडेक्स: i]); NSArray * पथ = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, हाँ); NSString * documentsDir = [पथ ऑब्जेक्टअटइंडएक्स: 0]; NSString * savedImagePath = [documentsDir स्ट्रिंगबैपिंगपैडकंपोनेंट: [NSString stringWithFormat: @ "छवियाँ% d.png", i]]; एएलएसएसईआरई प्रस्तुतीकरण * प्रतिनिधि = [[जानकारी ऑब्जेक्टअटइंडएक्स: आई] डिफॉल्ट रेफरमेंटेशन]; UIImage * image = [UIImage imageWithCGImage: [पूर्ण प्रतिरक्षा छवि]]; // ---- छवियों का आकार बदलता है छवि = [आत्म छवि: साइजिंग और क्रॉपिंगफ़ोर्ससिज़: छवि को आकार: CGSizeMake (256,256 * छवि.size.height / image.size.width)]; एनएसडीटा * छविडेटा = UIImagePNG प्रतिचित्रण (छवि); [ImageData writeToFile: बचाया इमेजपाथ परमाणु: हाँ]; मैं कैसे NSDocumentDirectory में सभी छवियों को हटाने के लिए पता है। लेकिन मैं कैसे साथ छवियों को हटाना पर सोच रहा था oneSlotImages का नाम है। धन्यवाद इस प्रयास करें , बस इस क...

Quit function in python program -

I have a program that runs in python, without a console (which is to say, I use it py2exe Is compiled). I want people to get out of the main menu, or from a particular key-in-game (e.g., Shift + Q). I'm running it, for now, in Windows, though I'm working on the Linux / Mac version compilation. I think if a 'loop' is going on, and it closes correctly, then The X works by pressing the button, otherwise it seems that stop waiting until the current command closes 'Store'. Menu options, I have seen well through the document and the Stakeoverflow and have tried to quit (), exit (), sys.exit () and every combination I can find, but Every time I get: Traceback (the most recent call final): File "Alfaith Yu Y", line 61177, & lt; Module & gt; Error in the file "alphatime.pyw", line 53970, place_menu: Global name 'sys' is not defined If I try sys.exit, and after that: traceback (most recent call final): file "alphatim...

performance - Changing Large MySQL InnoDB Tables -

Adding a new column or adding a new index, in MySQL, with more than 1 million rows for large inodb tables, hours and It may take days. In these two cases, what is the best way to increase performance on large inodab tables? Looking at more memory, configuration (for example, or increasing), or some sort of move? Instead of changing the table directly, one can create a new one, change it, and copy the old data in a new way, which is useful for it and: create tab Tablename_tmp LIKE tablename; Optional Table Tablename_tmp ADD Field Name Field Type; Select INSERT in Tablename_tmp * from Tablename; Optional table Tablename RENAME tablename_old; ALTER TABLE tablename_tmp RENAME tablename; Is also recommended for Inodb table, or is it okay what the optional table command does? Edit 2016: We recently (August 2016) Code> gh-ost , has modified my answer to reflect it. Today there are several tools that allow you to create online table online for MySQL. Edit: 2016 : GitHub...

javascript - Content Slider in JS and CSS -

Essentially, what I'm trying to accomplish is creating content slider which has a opaque yellow color division Move over images (top state) then slide down to 100px below images in a gray color (bottom state). These down states should work as slide selectors, when the position above and related image click is clicked on. I have tried to use many materials and slideshows to do this, but none of them actually allows me to develop the effect. S3Slider is the one that has given me the most success because it becomes the state animation per slide. Here JS :: (function ($) {$ .fn.s3Slider = function (vars) {var element = this; var timeOut = (vars.timeOut ! = Undefined)? Vars.timeOut: 4000; var current = ft; var timautfon = ft; var faderStat = true; var mover = wrong; var item = $ ("#" + element [0] .id + "content. "+ Element [0] .ID +" image "); var itemspan = $ (" # "+ element [0] id +" content. "+ Element [0]. Id +" imag...

Simple C If Statement -

I have created a very simple program that how many characters and words are counted in a string (I how many spaces Are in the text and have to check one). The current code is low (to keep it short 'without printf): int main (int argc, char * argv []) {int character; Int word, character = 0; While ((character = getchar ()) = '\ N') {character = ++ characters; If ((character == '') || (character == '\ d')) {words = ++ words; }} Return 0; } My problem is that the counting words do not work. I get an exact number for the characters, but the word always gives me 22 9 3576, and why I do this for the world can not do. Can anyone solve this mystery for me? All your answers; I really appreciate the help. And sorry if my ancient skills hurt some of your head I'm making a start, but hopefully there will be improvement in speed. You words Undefined local variables are not initialized for an undefined value in default and automatically on zero....

- Where Developers Learn, Share, & Build Careers

The question of an interview was asked, but, I am not clear from the explanation, which I found on various websites. Because, when I'm trying to execute this code, it shows the _AX undeclared error. main () {int i; I = ABC (); Printf ("% d", i); } ABC () {_AX = 1000; } People say _AX is pseudo-global variable , this is the reason why this product shows 1000 * Note: - This error is showing unchecked _AX , but when I declare variable, it shows some garbage value * Does it often? This is absolutely nonsense probably for some compiler-specific marking "ax" register, which is used on x86 for return value. However, there is no reason to believe that the value in the register should not be covered between assignments and function returns. This program is implementing undefined behavior. If someone is giving you a job then you hope you know such kind of illegal practice. Fast. They are not capable.