Posts

Showing posts from January, 2014

objective c - Why do functions use -(void) and not -(nil) in Obj-C? -

Objective- I often see functions that do not declare anything: - (zero) myFunction {single ?? | but why zero , this way - (zero) myFunction {a ?? | They both do not return "nothing"? Historically in the related languages ​​(syntax) as the language of C-language, Zero indicates that no type is being returned from the function. More precise, in the form of variables (or related to it) given type , there are also types in functions, for example, a function that returns an integer A int type function or a function whose int is the same even if it gives something else. If the function does not return anything - it does not return anything - how is it related? It does not have any type, and zero type represents such a thing. I do not know in Objective-C, but if I correctly understand, like the zero id (or any type of ID), almost like an underlying implementation. and faucet is a (zero *) type, later an typeless indicator can indicate anyth...

sorting - XSLT recursive sort by attribute -

I get a lot of questions and answers about nested / recursive sort using the XSLT, but in my case map it Was not able to. My status: The "set" element can contain 0 or more "properties" elements In a "set" element, 0 Or more subset The attribute in both sets and property elements is made up of "key" I want to sort "set" according to the "key" attribute and "per set". The "key" of the "properties" elements The XML looks like this: & lt; Set key = "..." & gt; & Lt; Property Key = "..." /> & Lt; Property Key = "..." /> & Lt; Property Key = "..." /> & Lt; Set = "..." & gt; & Lt; Set key = "... ... gt; property key =" ... "/> property key =" ... "/> & gt; asset key =" ... "/> & Lt; / set & gt; & lt; / set & gt; & lt; / set ...

.net - Duplicate 'Column' attribute -

I am creating an entity using Entity Framework 4.1 and I am using the column to name different columns Am I have an overall key as well as a foreign key but I am getting the error public class account {[key] [foreign ("account"), column (order = 0) ] [Column ("Transaction ID", Order = 0)] / PK FK Public Entitlement ID {get; Set; } [Key] [foreign ("account"), column (order = 1)] [column ("[account number]", order = 1)] / pk fk public int account {not set; Duplicate 'column' attribute are both primary keys as well as foreign keys / Strong> Well, you do it! Two columns in each property are defined by the Entitlement Instance. The fact is that they are on different lines and are irrelevant in different sets of square brackets. It seems that in both cases there is a redundancy on the first line.

javascript - floating menu bar in containing div (js) -

I have a JavaScript menu bar located on my webpage, then when the browser reaches the top of the bar menu it The lock runs in a fixed position and with the window However, I have to include the menu within a single divas, how can this be done? This is my menu bar: & lt; Script type = "text / javascript" Src = "http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = 'text / javascript' & gt; $ (Window) .load (function () ($) (window) .scroll (function () (if ($ (window) .scrollTop ()> gt = 200) {$ ("# floatbar"). CSS ({status : 'Fixed', left: '0', above: '0'});} and {$ ("# flotbar"). CSS ({status: 'full', left: '0', above: '200px' }}}}}}}};

parsing - Advanced PDF parser for Java -

I want to remove content separately from a PDF file in Java: Full viewer Image Link Is it also possible to get the following? Document Meta Tags Title Only> Documents like input elements Manipulate me or PDF does not need to render i files Which library would be most suitable for that kind of purpose? UPDATE Well, I tried Peedifboks of: document luceneDocument = LucenePDFDocument.getDocument (new File (Path)); Field content = luceneDocument.getField ("content"); Println (contents.stringValue ()); But output is zero. Field "Summary" though okay. The next snippet works fine. PDDocument doc = PDDocument.load (path); PDFTextStripper Stripe = new PDFTextStripper (); String text = stripe.gettext (doctor); Println (text); Doc.close (); But then, I have no clue how to remove images, links, etc. UPDATE 2 I found an example of removing images, but how to remove I have not received any response yet: Link Document Meta Tags ...

Python 2D Array access with Points (x,y) -

Good evening companion, I am new to Python programming, and I was wondering For example, you have a point for example: point = (1,2) and you can use 2D array in Python using points / coordinates ? Matrix, you can use a certain part of the matrix matrix [ point ] = here is a sample value Provides popular multi-dimensional arrays which supports indexing by Tuple: [1, 2] Print [point 1], [3, 4, 5], [6, 7, 8]] print [1, 2] point = (1, 2) print [point] any external There is no such thing as "two-dimensional array" in Python without libraries is. There are only nested lists to call numpy.array () to call.

gtk - How to recreate a TextField widget with my own behavior? -

मैं PyGTK के साथ एक परीक्षण अनुप्रयोग बनाना चाहूंगा। मेरा लक्ष्य टेक्स्टफ़ाइल विजेट बनाना है 100% अनुकूलित दरअसल, मैं एक टेक्स्टफ़ाइल विजेट के डिफ़ॉल्ट व्यवहार को पूरी तरह से बदलना चाहूंगा। क्या टेक्स्टफील्ड (जैसे शॉर्टकट्स / कीमॅप्स, स्क्रॉल व्यवहार आदि) के व्यवहार को पूरी तरह बदलना संभव है? क्या विजेट को खरोंच से पुन: तैयार करना संभव है? अगर हाँ, मैं ऐसा कैसे कर सकता हूं? धन्यवाद। क्या आप जिक्र कर रहे हैं किसी gtk.Entry या gtk.TextView? के लिए, आप उस विजेट को उप-वर्ग बनाना चाहते हैं, जिसे आप बदलना चाहते हैं और आप को बदलने की आवश्यकता वाले किसी भी तरीके को ओवरराइड करना चाहते हैं। यदि आप सी कोड पढ़ सकते हैं, तो यह सहायक होगा क्योंकि आप विजेट स्रोत कोड को देख सकते हैं। यदि आपने कभी अपने स्वयं के विजेट नहीं लिखा है, तो आप शायद एक ट्यूटोरियल जैसे से शुरू करना चाहें।

terminology - Binary terms Confusion -

How is the following file different in the context of a file? Binary form and binary file. Well, all the files are binary, but you can interpret their content in different ways. If you open a file in Notepad, see the content: Everything is good Then you can think "This is a text file", but it's a text file because you want to open it in Notepad and you can interpret Notepad content as characters and then display them to you and you can read it. Binary form can be a way to say that the data is not human in a usable manner in a readable manner, for example, in a file, a picture is safely as a text file Similar bits are produced, but you can not open the file in Notepad or similar and hope to understand it. Whatever the "binary form" and "binary file", which means to depend on humble references, to conclude, but this is my interpretation: Binary Forms : Non-Readable Forms, i.e. Not a normal lesson, only understand if you read it...

java - Selenium 2: Detect content type of link destinations -

I am using the Selenium2Java API to interact with web pages. My question is how can I find out the content type of link sites? Actually, this is the background: before clicking on a link, I have to make sure that the response is an HTML file, if not, I have to handle it in another way. So, suppose that there is a download link for the PDF file. Instead of opening it in the browser, the contents of that URL should be read directly. A target must have an application that automatically knows that the existing location is HTML, PDF, XML or whatever the appropriate parser to extract useful information from documents. Updates Added reward: This will provide me the best solution that allows me to get the content type of a given URL As Yochan suggested, how to get content types without downloading content HTTP HEAD , and Selenium WebDrive does not seem to provide such functionality. There is a java library which can do this, especially. (The following code is Untested) ...

objective c - iPhone - Easiest way to fill an NSMutableArray with randoms ints 0 to 3 -

I want to fill a NSMutableArray with 100 random instances of 0 to 3. I am still struggling with objective- C. Easiest way? #include & lt; Stdlib.h & gt; .... NSMutableArray * array = [ability with NSMutableArray array: 100]; For (int i = 0; i & lt; 100; i ++) {[array addObject: [NSNumber numberAttro: arc4random () & amp; 3]]; }

c# - Encoding text file to appear on IBM Mainframe -

I have a C ++ program that sends data via IBM Mainframe via ASCII mode. I am doing this now through C #. When he goes there and the file looks like garbage. I can not see anything in C ++ code that encode the file in encode Some things like EPCDIC, when C ++ files are sent, they are viewed properly. The only thing I see is that it is \ 015 & amp; \ 012 for line feed while using C # \ r \ n. Will these characters have the effect and if I can get my C # app to use the 015? Do I have to make a special encoding to look good? It seems that you should actually use an EBCDIC encoding, and then perhaps the text in the binary Transferring. Note that \ 015 \ 012 is \ r \ n - those letters are in 13 and 10 decimal, There are just different ways of representing them. If you think that the C ++ code is actually that produces the same files as C , then compare two files which are similar to in a binary file editor.

c# - Export a collection of objects (which in turn contains a collection object) to xml -

I have a data object class that stores many properties. Is a folder, and the second one is a string [] of all the files in that array. What I need to do is write it in xml, as follows: & lt; X & gt; & Lt; A & gt; Dir & lt; / A & gt; & Lt; P & gt; File & lt; / H> Then all the files (there is a string [] data per object array), the directory is nested below the field. Is this easily possible? Or is there an external library which can easily do it for me? Thanks Use Xml Serializer to work for you? using System.Linq; Using System.Collections.Generic; Using System.Xml.Serialization; Using System.IO; Using the system; Nomenclature ns {public class data {public class nested {public string {get; Set; } Public string [] content = {"lazy guy jumped", "the", "moon"}; } Public List & Nested & gt; item; } Static Class Helper {public Static String Toxml & lt; T & gt; (It's T. O.B.J.) whe...

iphone - CAKeyframeAnimation on complete -

In my class I have several CAKeyframeAnimation objects. They are all reps In my animationdeset function, how can I tell where the call is coming from? Can anyone pass CAKeyfameAnimation similar to an ERIIDAD or something? Thank you, T You set the value for arbitrary key You can use key-value coding for (Keys will not be required to be defined in advance for the CAAnimation object. For example, you have a key for each CAAnimation object as the following You can set a value for @ "tag": CAAnimation oneOfYourAnimations = [CA animation animation]; [Oneof your animation Set Value: @ "dropAnimation" for: @ "Tag"]; Later, you can read the value of each object as the following: [anAnimation valueForKey: @ "tag"]; // If this is the last animation , then @ "drop animation" will return

.net - EF Code-first: how to cache DbCompiledModel? -

I have set up a simple test project for EF 4.1 RC, what I am looking at using code-afrach , That every call is taking a long time near the new MyContact (). I found, that there is a manufacturer who accepts DB Complex Module and details say, for better performance, it is good to cache this item. But how can I get a DB complied model from the current context and there are no samples on the net. The model has already been cached. You can easily validate your OnModelCreating method by putting breakpaying. This will only be the first time you make reference, hit. If you want to create DbCompiledModel manually, then you must first create DbModelbuilder outside of your reference using its build method and then Collect resulting DB Model .

windows phone 7 - asynchronous operation/tasks in WP7/Silverlight -

When the app loads, I would like to parse a local resource file and populate the data structure and then the UI. I would like it to be in a non-UI thread and how do I get it? The file is in Jason format and I'm deserialize it to use the Json.net library. Even when I did this test, the progress bar has not been displayed for this period and I tried to use Toolkit: I do not see the display bar and even the progress bar, so I am thinking that the right What will be the solution. var resource = System.Windows.Application.GetResourceStream (new URI (string.Format ("testProj; component / {0}", filename), Urikkind.Relative)); Stream reader stream reader = new streamer (resource stream); String jsontext = streamReader.ReadToEnd (); JsonList = JsonConvert.DeserializeObject & lt; List & lt; Comic Title & gt; & Gt; (Jsontext); The class you need is backgroundworker class class is. You use it like this: - var bw = new backgroundwork () bw.DoWork + = ...

asp.net mvc - How to secure access to MVC actions that return JSON -

I have a public facing website, which has been developed with ASP.NET MVC3. In the MVC application there are such controllers which are JSN Web page executes AJON requests that are against JSON reversing actions. Even though the published data with the JSN action is not sensitive, it is owned, and the IA is a concern that anyone can call tasks such as cross domain calls or custom applications. Is there only a way for my MVC application to provide webpages access to tasks that bring JSON back? Does Audita provide any benefit to solve this problem? Is anyone aware of the resources that describes this problem as this liability and how is it resolved? If your application is public, then it's more difficult. is a valid antiforphic token feature that can help against XSS and random requests. If you have a password protected site, use the authorized attribute. There is only one set of problems with the MVC site in Odata.

C++ overloaded operator linked sorted list ADT -

I try to load less than the sorted list (==) and (& lt;) operator less than I am not sure if I understand that whatever I am doing makes sense. I have a string with string variables for DestinationCity, from which these operators have to compare. I have used strcmp in an effort to do this work here: bool sortedListClass :: operator & lt; (Const flightRec & amp; rhs) const {if (strcmp (flightrec.DestinationCity, rhs.DestinationCity) & lt; 0) {// I 'm not sure if flightRec.DestionationCity should have written me. Back true; } And false return; } Bool sortedListClass :: operator == (const flightRec and rhs) const {if (strcmp (flightrec.DestinationCity, rhs.DestinationCity) == 0) {back true; } And false return; } Here are the error messages I sortedListClass.cpp: "bool sortedListClass :: operator sortedListClass.cpp: in the member function "bool sortedListClass :: operator == ( Const flightRec & amp;) Concept: sortedListClass.cpp: 194: 28: E...

Twitter API - Failed to validate oauth signature and token PHP / CURL -

I have tried all kinds of variations in the last few hours, but this phase 1, according to Twitter API! 1 In addition I have made the script went down that I was involved: $ header = array ( "Expect:"); This is me helped other questions The problem: Ohrit signature failed and token response to valid every time !!! For example my post data: P> Arre ([oauth_callback] = & gt; http://www.mysite.com//index. php [oauth_consumer_key] = & gt; hidden [oauth_nonce] = & gt; hide [oauth_signature_method] = & gt; Acmsi-SHA 1 [Oath_taimstamp] = & gt; 1301270847 [Oath_warjn] = & gt; 1.0) and my header data: Arre ([0] = & Gt; expect :) script: $ consumer_key = "hidden"; $ Consumer_secret = "hidden"; Post_Data function ($ url, $ data, $ header) {$ ch = curl_init (); Curl_setopt ($ ch, CURLOPT_URL, $ url); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ data); Curl_setopt ($ CH, CURLOPT...

google play - Delete app from android marketplace -

How do I go about removing an app from the Android Marketplace, which I have published? You can only unpublish one app; You can not actually remove it if you unpublish it, then it will no longer be visible in the market.

How can I import images as a HTML list in Wordpress? -

My question is very simple: is it possible to import many images at a time in a post (as the gallery does) But for example & lt; Ul & gt; Inside ? Gallery Import, I think, is the only way to import a group of images inside a post, but I can not handle HTML in this case. I might be wrong, but I did not find anything about it Thanks for your help. You can insert your post into the gallery without importing it into your post. After that, in a post template, you can ask them to display them with images attached to the post. Attachments are posts related to only one post, so let's get_posts (): function get_post_images ($ post) {$ args = array ('post_type' = Images associated with 'attachment', // post 'numberposts' => 1, // All attachments 'post_states' = & gt; null, // I 'post_parent' for gallery images => $ post - & gt; ID does not care about the original state of 'parent' 'boycott' = & g...

java - Android Dynamic Spinner Update -

I am working with Android and Spinner and I need some help. I have a class that creates two spinners and one button. The first spinner is for my class, my second is for my sub-category. What I am trying to do is dynamically updating the second spinner (spinner 2). I am trying to use adapter2.clear (), but that crashes Android, "Error with" activity componentUnable unable to start unsupported operation " Here my code is: public class Maikls the Maybs class {Int class; Int sub_category; ArrayAdapter & LT; string & gt; adapter2; / ** activity was called upon for the first time. * / @Override Public Zero OnCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); setContentView (R.layout.quizes); // Category H Denied final String [] items 1 = new String [] { "one", "two", "three"}; Last spinner spinner 1 = (Spinner) searching for Vivibiaiaidi (RID spinner 1); ArrayAdapter & LT; string & gt; adapter 1 = ne...

drupal - Does Unicode search work? -

Drupal 6.2 search is enabled, allowed, and. Search up some strings (®® ??) ?? ® X®®®®®®®_¾a®²Ã ?? One ?? A® ?? Â௠??? ®ÃƒÂƒÃƒÂ®®ÃƒÂ®ÃƒÂ ÃîࢠÃÃÃÃÃÃÃÃÃÃÃࢠ®ÃƒÂ ¢ Ã⠀ šÃ, ®) while not others ÃÆ'à A® ?? ¤ ?? ¤ ?? ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ, · ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ,Â? ¯ ??). The database is encoded UTF-8, Web pages are displaying correctly There are many known problems, but none posted a clear solution Drupal for this issue have not done it. I tried to apply some recommended patch, and they failed. What words are being indexed? IOW, are they looking in the search_index table?

javascript - Google Maps v3 - Overriding Default SmoothZoom Behavior -

What is a way to automatically prevent Google Maps from performing a smooth zoom infection while zooming in or out? I want to do it in the picture just at the desired zoom level. For Flash, in the Methames.com Library, for example, I can set the zoom degree to 0 to force all the changes to be instantized instead of animated. you set setCenter map.setCenter (Latlng, zoomLevel); Maps should work in API V3.

Where should the GWT dialog title be set? -

is the title (or caption) of the GWT dialog "Remote Procedure Call" on the demo app, can I set it somewhere else If yes, then where? ... or do I have to use a subclass? If you do not want to use subclass, you can use the 'text' property of the dialog box can do. dialogBox.setText ("text");

specify jquery theme for html table -

I am trying to display a table in html page. However, the contents of the table will be loaded from the database table. I managed to do this, but the table looks like a normal HTML table, I want to see it through the JQuery theme. Is there an easy way to do this? Thank you You can use this resource to styling an HTML table with jQuery You can see the UI:

mysql - Fetching a single value from a database -

मैं किसी डेटाबेस से एक मान कैसे प्राप्त करूं। एक SELECT कथन का प्रयोग करें, एक एकल कॉलम या मान निर्दिष्ट करें, एक WHERE एक अद्वितीय अनुक्रमणिका, LIMIT खंड का उपयोग कर या केवल एक बार कर्सर निष्पादित कर रहा है।

iphone - Absolute value isn't working -

My iPhone has a line of code that looks like this: Repeat Decimal 2 = abs (NewLocation.coordinate.longitude - degrees); I am trying to make sure that the value of decimal 2 is always positive. However, the decimal 2 is currently -82. Can anyone explain this? I'm not doing anything else the value of decimal 2 Thank you. You NSDecimalNumber , you can use the underlying function of the NSDecimalNumber class to compare the number to zero, then multiply -1 as an appropriate example: - (NSDecimalNumber *) abs: (NSDecimalNumber *) num {if compare myNumber: [NSDecimalNumber zero]] == NSOrderedAscending) {// the number is negative. 1 by NSDC command number multiplied by negative number = [NSDCMNMR decimal decimal numberCommentation: 1 exponent: 0 is negative: yes]; Return [Number Decimal Decimal Numberality: Negative On]; } And {return number; }} In this case, there is no loss of accuracy

asp.net - Validation in nested UpdatePanel(s) -

Image
मेरे पास एक asp.net पेज है जिसमें कई अपडेट पैनल हैं I प्रत्येक UpdatePanel एक UserControl को लोड करता है, और प्रति UserControl, उप UserControl (एस) मौजूद हो सकता है आंशिक-रिफ्रेश प्राप्त करने के लिए, प्रत्येक उप यूज़र कंट्रोल को अपडेट पैनेल के माध्यम से ले जाया जाएगा। उन यूज़र कंट्रोल के इनपुट नियंत्रण और संबंधित वैलेटर सर्वर नियंत्रण हैं समस्या यह है कि, उप-यूज़र कंट्रोल में वैधीकरण भी अपने माता पिता यूजर कंट्रोल में सत्यापन को ट्रिगर करेगा; हालांकि, मैं UpdatePanel पर आधारित स्कोप में अलग सत्यापन करना चाहता हूं। कृपया कृपया मदद करें। मैं Visual Studio 2008 और .Net 3.5 का उपयोग कर रहा हूं। धन्यवाद। विलियम - संपादित किया गया - उदा। मेरे पास एक यूजर कंट्रोल कॉल है "AddableDropDown" जो एक ड्रॉप डाउन सूची है जो मक्खी पर नई सूची आइटम जोड़ने की क्षमता प्रदान करता है। वर्तमान में उपलब्ध वस्तुओं को बताए जाने के लिए इसमें एक ड्रॉप डाउन सूची है; एएसपी: नए आइटम को सबमिट करने के लिए शीर्षक, नया एप: बटन, और asp: textbox पर "RequiredFieldValidator" लक्ष्य के लिए...

Rails - Paperclip - How to Check the Image Dimensions before saving -

मेरे पास पेपरक्लिप के साथ एक रेल 3 एप है क्या यह संभव है? आइटमप्रॉप = "टेक्स्ट"> हां! यहां एक कस्टम सत्यापन है जिसे मैंने अपने ऐप के लिए लिखा था, इसे अपने में शब्दशः काम करना चाहिए, बस अपनी इच्छित चीज़ों के लिए पिक्सेल सेट करें। def file_dimensions dimensions = Paperclip :: geometry.from_file (file.queued_for_write) [: मूल] .पाथ) स्वयं। चौड़ाई = आयाम। चौथा स्व.हाइट = आयाम। अगर आयाम। विथ & lt; 50 & amp; amp; Dimensions.height & lt; 50 errors.add (: फ़ाइल, 'चौड़ाई या ऊंचाई कम से कम 50px') अंत का अंत होना चाहिए एक बात ध्यान दें, मैंने self.width = और self.height = डेटाबेस में आयामों को बचाने के लिए, यदि आप छवि आयामों को संग्रहीत करने की परवाह नहीं करते हैं, तो आप उन्हें छोड़ सकते हैं। चौड़ाई और ऊंचाई की जांच इसका मतलब है कि केवल एक को 50px से अधिक होना चाहिए। यदि आप यह सुनिश्चित करना चाहते हैं कि दोनों 50 से अधिक हैं, तो विडंबना यह है कि चौड़ाई या ऊंचाई की जांच होनी चाहिए यह मेरे लिए अजीब लगता है कि एक या दूसरे का अर्थ है और जांच, ...

c# - Select entries where only a Foreign Key is present for that ID -

मेरे पास 4 एसक्यूएल तालिकाएं निम्नानुसार हैं। पंजीकरण वैकल्पिक तालिका 1 [पंजीकरण आईडी विदेशी कुंजी] वैकल्पिक तालिका 2 [पंजीकरण आईडी विदेशी कुंजी] वैकल्पिक तालिका 3 [पंजीकरण आईडी विदेशी कुंजी] असल में, पंजीकरण में उन सभी वैकल्पिक सारणी के लिए डेटा शामिल होता है, लेकिन प्रत्येक वैकल्पिक तालिका में विदेशी कुंजी के माध्यम से उस पंजीकरण के लिए अलग-अलग डेटा रखता है। LINQ से SQL का उपयोग करने के लिए, उस विकल्प तालिका से संबद्ध पंजीकरण का सबसे अच्छा तरीका क्या है? छद्म कोड होगा सभी पंजीकरणों का चयन करें जहां तालिका [एसी] में कोई प्रविष्टि मौजूद है आपकी मदद की सराहना करें मार्को var परिणाम = से डीसी में। पंजीकरण में ओ.टी.आई. में। ओपरेशनल 1 पर r.RegistrationID बराबर o1। पंजीकरण पंजीकरण आर चुनें यह केवल रिकॉर्ड वापस करेगा I N तालिका पंजीकरण यदि वे वैकल्पिक तालिका 1 में रिकॉर्ड सम्मिलित हैं

android - multiple listview in single activity dynamically -

How can we create multiple activity dynamically in single activity Please provide me a code .... text> itemprop = "text"> Make linear layout side-by-side, orientation in horizontal form (enter id on layout), a dynamically a list in the code Create and add views to those 2 listviews in your layout Like, List View lv1 = new ListView (); ListView lv2 = New ListView (); // Get the context of your layout LinearLayout lL1 = (LinearLayout) findViewById (R.id.layoutId1); LinearLayout lL2 = (LinearLayout) findViewById (R.id.layoutId2); // Attach the ListView object to LinearLayouts lL1.addview (lv1); LL2.addview (LV2); You should start this.

udp - Android: Using TCP to receive stream from Darwin Streaming Server(DSS) -

I am working on an Android app that uses DSS to play the RTSP stream from a server. It works most of the time, but sometimes I can not get this work done. I tested with the virusHark and saw that the UDP sends a request but no response is received, and the reason may be that the firewall has blocked the UDP packet, I suppose that while I used to open VLC to open the same RTSP stream I use the RTP response, which uses TCP. For now because I can not change the firewall situation, I want to change my app to get an RTSP stream using TCP. , Which I think is not possible to use build-in media player / video view. So how can I do this? Any suggestions? Thanks in advance. Bolton If the underlying media player does not support it, You need to implement RTSP client and RTSP setup requests, you must specify the TCP as the transport. Standard RTSP setup: Track 1: SETUP rtsp: //146.64.28.137/TheItCrowd.mm1 / Track1 RTSP / 1.0 csac: 3 Transport: RTP / AVP; Unicast; Client_p...

HTML PHP put a cell under a specific header according to query -

I have different tasks under various departments. The Department's name and ID table header ( & lt; th & gt; Gt; ). I have displayed them Now I ask for work and if the work is concerned, then the department should have it and lt; Th id = 'a' & gt; and if the work department should be done in Department B & lt; Th id = 'B' & gt; . My problem is that some departments can not work for this particular line and the room should be empty. If there is a value in the next cell, then when necessary, to tell the HTML to make an empty call, I want to do something like this: if (yes id == 'deptA' and ResultSet.deptId = 'DeptA') then & lt; Td & gt; ResultSet (i); & Lt; / TD & gt; Second & lt; Td & gt; & Lt; / TD & gt; I'm a little new to HTML and PHP All help is greatly appreciated. How to: & lt ;; Php echo '& lt; Table & gt; '; Foreign (...) {echoing '& l...

java - How to use HttpClient with multithreaded operation? -

I have to do an application that requests a login post in a fixed host, then navigate to some pages, Finds and Recovers Some Figures Website Resource is protected from the session, so before doing some operations like receiving or posting some data, I have to first log in to the website. My question is is that the HTTP client is not thread-safe, how can I create only one HTTP client instance, but thread can do it safely? Remember that the underlying connection can be used first to operate. Here is an answer:

Syntax highlighting of javascript file in an ASP.NET MVC view? -

I have an ASP.NET MVC website, which has a special JavaScript file that has something to run through the razor parser I have to submit the @ url value I have an administrator's action whose name is Public ActionSercent Javascript () , which gives javascript.cshtml as partial view. All this works well, except that I lose syntax highlighting javascript. There is a way to enable the razor parser on custom file extensions, so can I rename my view to javascript.js and highlight the syntax? To avoid this, is there any other way that I can force the scene file as Javascript to syntax highlighting when it comes to & lt; Script & gt; is not wrapped in the tag Javascript to @ Url.Action (.. .) In the call, there are better ways of referencing controller functions compared to baking. For example:

textpattern - Change article_custom so that 'past' doesn't exclude an event on the current date -

I am using textpattern and am trying to display a list of upcoming events. I am using article_custom. & lt; Txp: article_custom form = "eventhome" limit = "4" time = "future" sort = "post section =" event "/> I have the issue that these events Is considered to be front, but to use the 'future' means that when an event is on the present date, it is not showing (this is not the future). Both the 'last' and the 'future' The options are started to expire on the current date. This means that the people coming to the site will fall on that day I will not see that which is an issue. I have a quick look around the code but unable to understand the way the SQL statement changes, so that the current date is included in the future. / P> Any help appreciated. Its a bit old, but when I have fixed the same problem, so I thought that I can exploit my very simple in this matter. The article that I did wa...

jquery - Javascript doesn't work on ajax generated code? -

I am using to upload files. Without refreshing the plugin page, uses hidden iframes to upload. Everything works well except javascript does not work on the generated code. Here is my code: & lt; Form id = "image_form" action = "" method = "post" enctype = "multipart / form-data" & gt; & Lt; Input type = "file" id = "image_file" name = "image_file" & gt; & Lt; Br> & Lt; Input type = "submit" value = "upload" & gt; & Lt; / Form & gt; & Lt; Div id = "avatar_wrapper" & gt; & Lt; / Div & gt; This form uploads an image to the server and the server will return some processed images. & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {var option = {success: showResponse, datatype: 'html'}; $ ('# image_form') .jaxform (option); $ ('select_avatar'). Hover (f...

java - How to bind object with h:selectManyCheckbox -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मेरे पास कोई वस्तु है, कहते हैं कि उपयोगकर्ता, जिनके पास 10 गुण हैं, मैं इसे बद्ध करना चाहता हूं: selectManyCheckbox और आइटम के रूप में दो विशिष्ट क्षेत्रों को प्रदर्शित करना चाहते हैं itemLabel & amp; आइटम का मूल्य: चयन आइटम मैं उसे कैसे कर सकता हूँ? कृपया मदद करें! अपने फेसलेट में निम्नलिखित का प्रयोग करें: & lt ; H: selectManyCheckbox id = "yourElementID" मान = "# {myBean.selectedList}" & gt; & Lt; f: कनवर्टर converterId = "userConverter" / & gt; & Lt; f: selectItems मान = "# {myBean.availableItemsList}" var = "आइटम" itemLabel = "# {item.labelAttribute}" itemValue = "# {item.valueAttribute}" / & gt; & Lt; / h: selectManyCheckbox & gt; बदलें: myBean अपने बीन के नाम के साथ selectedList सूची है कि चुने गए मानों availableItemsList अपने उपलब्ध वस्तुओं की सूची के साथ> रखती है साथ labelAttribut...

ruby on rails - next available record id -

@user = user.new @ उपयोगकर्ता आईडी शून्य पर लौटता है लेकिन मुझे बचाने से पहले इसे जानना आवश्यक है I क्या यह संभव है? नहीं, आप सहेजने से पहले आईडी नहीं पा सकते हैं। आईडी नंबर डेटाबेस से आता है लेकिन जब तक आप save को कॉल नहीं करते, तब तक डेटाबेस आईडी को निर्दिष्ट नहीं करेगा यह सब मानते हुए है कि आप निश्चित रूप से ActiveRecord का उपयोग कर रहे हैं।

Does Android support Playlist for video files? -

I have just begun studying Android and I'm still lost, I just want to ask that the playlist of video files Supported in Android 2.3.3 and above or not? I just found out that mediastore.Audio. Playlist is not Mediastore but Video. Playlist Any feedback will be highly appreciated. Thank you, the artist OK, there is no such thing as mediastore. Video. Playlists and secondly, if you want to play a list of videos, then I strongly advise you to play them from a folder (i.e. you have a list view that displays all the videos in the folder you specify and Play them all as playlists). Why? Because Because: There is a convenient way to use ContentProvider to use MediaStore which is included in the database in which the meta-data is copyrighted audio (track) it happens ). If you do not have an audio license, which means that you are not purchasing tracks from a legal source, then you will not be able to use Mediastore. So the same thing happens with the video

iphone - Calling NSXMLParser with different variables depending on which button is pressed -

How do I change the temporary date variable properly? Nested if- statements, if other statements and so on. What I have to do is for IBAC which is said under three separate buttons so that the temporary data variable can be changed so that different buttons send different data so that I can get the - (zero ) Parser: parsedanded document representative method - (IBAction) sendXmlData: (ID) sender {if ([the button is pressed]) {temporaryDateVariable = date1Variable} if ([ Self ("auto button pressed")} {temporary date Varyable = date2Variable}} {temporaryDateVariable = date3Variable} NSString * postString = [[NSString alloc ] InitWithFormat: @ "& lt; xml-string & gt;", Temporary Date Variable] // lot of NSXMPPsstuff, that's working.} The result is that the last The date is always prevalent. Edit: Each of the three buttons has a tag variable Specified this problem by specifying, and specify the tag variable for all buttons and poststr...

html - Relative URLs and trailing slashes -

I have looked around the web for this first, and I doubt that "you can not do", but Later, I have not received any reply which is definite, I think it is worth asking here. The closest I've touched this problem (which is currently down but Google is). With an indexed slash, the traditional design of the URL is being interpreted as a directory and without any trailing slash interpreted as a file resource, and the related URL If working in the current page, / lorem / ipsum / dolor P> non-roller / lorem / ipsum / not- which naturally can be understood When / lorem / ipsum / dolor is viewed as a file resource, dolor , directory, / lorem / ipsum / ; Typical, intuitive conventions However, since a large number of websites are now dynamic applications without the filesystem mapping for each URL, this can cause headache, because sometimes you really want to work relative to the path, though In the present design, there were a trailing slash Is the...

c# - Run .Net Programs without .net framework or convert them to this purpose -

संभव डुप्लिकेट: मैं उन कंप्यूटरों पर चलने के लिए अपने कार्यक्रमों को कैसे रूपांतरित या संकलित कर सकता हूं, जिनके पास नेट वर्कवर्क नहीं है? क्या मेरे प्रबंधित कोड को मूल में संकलित करने का कोई तरीका है? है मेरे प्रबंधित कोड और प्रबंधित लाइब्रेरी को किसी मूल अनुप्रयोग में संकलित करने का कोई भी तरीका है? नहीं .NET अनुप्रयोगों को हमेशा स्थापित करने के लिए .NET Framework की आवश्यकता होती है। एक नज़र डालें @ जिसे पर जॉन स्कीट द्वारा पोस्ट किया गया था।

javascript - serialize form to json and store in the cookie -

After I formatting the form back in, I want to store the cookie in json, on the client side. What I'm doing: Serialization for JSON: Function Forms (selector) {var form = {}; $ (Selector) .find (': input [name]: enabled'). Each (function () {var self = $ (this); var name = self.attr ('name'); if (name.indexOf ('text box', 0) == 0} {if (form [name] } {Form} [form]; form] [name] = form [name] + ',' + self.val ();} else {form [name] = self.val ();}}}); return form;} $ ('# form1: input'). = FormToJSON ($ ('# form1')); $ .cookie.set ('fo', eba, {json: true}) var a = $ .cookie.get ('fo', true); Alert (A) ; //$.cookie.set('form123 ', {"ksf": "safe", "tt": ""}, {json: true}) // var b = $ cookie.get (' form123 ' , True); //alert(JSON.stringify (b));}); In Debugger - Aba Jason Obs Q, but alert (A) provides zero.The comment code works, it's json serial, an...

java - How to mock a list that will have certain values -

मेरे पास एक विधि है: उम्मीद (प्रोसेसर। प्रोसेस (arg1, सूची)) ; expectLastCall () anytimes ()।; अब, मुझे कुछ मानों को शामिल करने की सूची चाहिए और समस्या ये है कि मूल्यों को सही क्रम में सूची में जोड़ा जाना है, अन्यथा सूची वास्तविक सूची के बराबर नहीं होगी इसलिए मैं सिर्फ एक नई सूची नहीं बना पा रहा हूं और इसमें मूल्य जोड़ सकता हूं, क्योंकि यदि विधि प्रक्रिया ने सूची में मान जोड़ने का क्रम बदल दिया है, तो परीक्षण विफल होगा मैंने इसे करने की कोशिश की सूची सूची = बनायें (सूची। वर्ग); (List.add (मान 1)) उम्मीद andReturn (सही)। (Lst.add (मान 2)) उम्मीद andReturn (सही)। लेकिन वह यह अपवाद देता है: java.lang.AssertionError: अप्रत्याशित विधि कॉल प्रक्रिया (arg, [listvalue1, listvalue2]): प्रक्रिया (arg , इंटरफ़ेस के लिए EasyMock java.util.List): अपेक्षित: 1, वास्तविक: 0 बहुत बहुत धन्यवाद। आप IAnswer और EasyMock.getCurrentArguments () का उपयोग कर सकते हैं और फिर सूची की सामग्री मैन्युअल रूप से डालें अपेक्षित (प्रोसेसर। प्रोसेस (आर्ग 1, सूची)); expectLastCall () a...

debugging - Catch a crash-n-reboot of an Android device -

मैं एक आवेदन लिख रहा हूँ। इसमें एक सेवा है जो औरroid.intent.action.BOOT_COMPLETED । मुझे लगता है कि यह दुर्घटना-एन-रिस्टार्ट मेरे ऐप से संबंधित है या इसकी सेवा ('क्योंकि इस तरह की दुर्घटना मुश्किल-रीसेट के बाद नहीं है और मेरे ऐप के बिना फोन का उपयोग करना )। सवाल है। क्या दुर्घटनाग्रस्त सेवा शुरू करने से संबंधित एलजी ऑप्टिमस वन के साथ कोई ज्ञात बग है? मैं इस बग को कैसे पकड़ सकता हूं? एडीबी लॉगकैट यहां उपयुक्त है (फ़ोन पर संचालित होने के बाद लॉग-आउट योग्य है, जब BOOT_COMPLETED प्रसारण भेजा जाता है?) मैं वहां कोई और डिबग तकनीक जो मैं कर सकता हूं मेरे मामले में उपयोग करें? 1) पता नहीं 2) क्या आप ऐसा कर सकते हैं, गतिविधि के बारे में निश्चित नहीं एक गतिविधि में काम करता है: सार्वजनिक शून्य पर क्रिएट () {Thread.setDefaultUncaughtExceptionHandler (onBlooey); } निजी धागा.अनुवाद एक्सपैशनहैंडलर onBlooey = नया धागा.अपने एक्सक्शंसहैंडलर () {सार्वजनिक शून्य uncaughtException (धागा थ्रेड, थ्रोहेबल पूर्व) {Log.e (टैग, "मेनिपेज धागा अनचाहे अपवाद", पूर्व...

php - No elements returned from array -

I asked a question about the same code, but lost in translation here That's what comes down to the question. I certify that if there is a definite array, then I want one element from it but does not return any value. What is happening? EDIT: I am adding code that tells where the string is coming from is a guest book where I need to come up with a solution which is not the database of the session variable. The curriculum is required; $ file = "gb_berichten.txt"; $ Date = date ("D-M-Y"); $ Bericht = "& lt; p> Name: & lt; / p & gt; $ _ Post [Name] & lt; br & gt; & lt; p & gt; Email: & Lt; / p & gt; $ _ Post [Email] & lt; br & gt; & lt; p & gt; onderwerp: & lt; / p & gt; $ _ Post [subj] & lt; br & gt; & lt; b & gt; Bericht: & lt; / p & gt; $ _ Post [Bericht] & lt; p & gt; Segment verzonden: & lt ; / B & gt; $ datum & lt; / p & gt; & l...

javascript - Disable anti-aliasing when drawing an image to a canvas-element in IE9 -

Our application loads a PNG-image via javascript and reads it for the 2D reference of the canvas element Draws the exact color value of pixels (using getImageData) It works well in all browsers supporting Canvas-API except in IE9: ctx.drawImage (img, 0, 0) any type of image anti Is it possible to disable this behavior to implement aliasing? Our code type looks like this: var img = document.createElement ('IMG'); Img.addEventListener ('Load', function (e) {var w = img.width, h = img.height, ctx = canvas.getContext ('2d'); ctx.drawImage (IMG, 0, 0); var data = Ctx.getImageData (0, 0, w, h), pixel = for datadata; (var y = 0, i = 0; y & lt; h; y ++) {for (var x = 0; x & Lt; w; x ++, i + = 4) {var r = pixel [i], g = pixel [i + 1], b = pixels [i + 2], color = (r & lt; 16) | (G & lt; 8) | b; // something with x, y and color}}}); Img.src = 'images / source.png'; The approach to improving the crunchiness of the lines depends on whethe...

Boost ( 1.34) Regex syntax bug -

I have read some documentation, and I am more familiar with sending the current version with VS2010. But for now I am stuck with ubuntu 8.04, and increasing the 1.34 and getting some strange type of error, can someone tell me what I am doing wrong? What I am doing in my code here: std :: string sLine; Gateline (datafile, lines); Promote: match_results & lt; Std :: string :: const_iterator & gt; LineSmatch; Boost :: match_flag_type regFlags = boost :: match_default; Boost :: regex finalRegex (linePattern); Boost :: regex_search (sLine.begin (), sLine.end (), linemack, final regex, regflag); There is a compilation error here: Error: 'regex_search (__ gnu_cxx :: ___ common_field, std :: allocator → gt; & gt;; Std :: allocation> : Allocate>>>>>>>>>>>> = "Post-text" itemprop = "text"> If you select regex_search to sLine instead of iterator , Howard as applicable, Micro you can use star...

vb.net SQL checking dates -

Actually, I have a list of dates in a SQL table, in which there are some figures next to each of them I want to compare dates with a certain date in the table. However, in my table, my dates are stored as Vaishar (50) (and should be). Obviously I can convert date to date in the table but I do not know. Does anyone know how? My current code can be seen below if chosen = "today" then datestop = today. Add (-1) Dim ObjectMDD in the form of new SQL Commands ("from select COUNT (*) data where (date & gt;" & DateStop & amp; "," ObjConn ") MessageBox.Show (" Select COUNT (* ) Statistics where (date & gt; "& DateStop.Date & amp;;)" ObjDataReader = objCmd.ExecuteReader test = ObjDataReader (0) MessageBox.Show thanks in advance. / P> Edit: I get an error of missing data, when I know that there are definitely dates in my table before and after the day I am trying . I think what you are missing objCmd .re...

C# dataset clear method -

I'm new to C # I want to create a window with a Knboboks and Detagreed scene. I fill out the DataGrid view based on the value selected from the CONGBOX. So far, so good. But when I change the value of the tell, and like so many attempts to reload the contents of the DataGridView: private void comboBox1_SelectedIndexChanged (object sender, EventArgs e) {if (! ComboBox1. SelectedValue = nULL) {If (ds.Tables.Contains ( "League")) {ds.Tables [ "leagues"]. clean (); // and & lt; - error occurs here) league adapter. Select Comand Parameter [0]. Value = combo box. Value selected; Main. Insert Commander Parameter [0]. Value = combo box. Value selected; League adapters. Filled (DS, "League"); }} myDataSet.Tables [ "mytable"] Clear () said , I have the following to get a DataGridView Default Error dialog :. System.IndexOutOfRangeException: Index 0 System.Windows.Forms.DataGridView.DataGridViewDataConnection.GetError (Int32 rowIndex) i...

php - Can you make Netbeans+Xdebug break after a given number of hits? -

So I have an issue with some PHP code, and I'm not a supporter in PHP. However, I found out that Where is the issue from, and now I want to see what happens in walking under Netbeen. So I have to do this with similar results in comparison to 2010 (C # stuff). My problem is, this issue occurs after 300 years of running, and in 2010, I can break after only 300 hits if I want to. Otherwise it is going to be a long and boring afternoon of F8 xD Thank you. If you have a conditional code in your code, where you want to place a breakpoint, such as: if ($ some loop variables> = 300) {"dont notting"; // make this line a breakpoint} Did I answer your question, or misunderstood it?

c++ - How to measure travel time of a socket message? -

I have client and server applications on 2 different servers in intranet, time taken from the server to the client Could? (I can not rely on machine timestamps because they can be closed) Split the time reported from two This is a very good, though there is little optimistic estimation of practical latency. (Ping uses the ICMP protocol, you will get different measurements with the TCP application, because TCP is the first one needed.) If you want to do it in the C ++ application, your best The option can be to call ping command and parse its output Esp. On Unix, where you usually need root privileges to send an ICMP packet.

sql server - SQL - Get Numerical Day of Month/Quarter -

Use of SQL Server 2005: How can I get the number of days and days of the month Quarterly in a query? DECLARE @DATE DATETIME SET @DATE = GETDATE () SELECT DATEPART (dy, @DATE) AS DayOfYear -, & lt; Something & gt; AS Def Quarter -, & lt; Some & gt; thank you in advanced! text "> DECLARE @DATE DATETIME SET @DATE = GETDATE () Select DATEPART (dy, @DATE) AS DayOfYear, DATEDIFF (d, DATEADD (qq, DATEDIFF (qq, 0, dd), 0) , @DATE) + 1 AS DayOfQtarter, Day (@date) AS DayoffMonth, DATEPART (dw, @DATE) AS DeFoyewick

sql - Inserting a query with a 'static' form field into a table -

I am trying to keep a record of which newsletters have received customers TempQuery I want to take the field TempQuery.CustID It contains several numerical IDs and Combine it with two fixed values ​​specified at a constant form form! [FrmAddCorrespondence]! [TxtNID] form! [FrmAddCorrespondence]! [TxtDate] Something like I CustID NID Date 1 5 28/03/2011 3 5 28/03/2011 14 5 28 / 03/2011 56 5 28/03/2011 Again the field will be the same value for the NID and the date specified for each person on frmAddCorrespondence and the CustID is pulled from TempQuery. I would like to have this a query, from which data can be inserted in the log table of all our previous anomalies. Any help is greatly appreciated Thanks, Rob Want to add a complete outline between the date and id entered on your temporary query and runtime? If so, you can drink asses to two new column values ​​(ID and date) as parameters for your query. Simply create a new query based on your exist...

mysql - How do I insert a NULL value in FUEL / ActiveRecord -

Brief Forward: I tried to ask it on the FUEL forums, but every time I try and register, So their forum "sending failed activation email" and I can not log in or reset my account so hopefully people will see it here. I had previously seen some developers of fuel on this site. Here is an example mysql table: create table 'test' (`user_id` INT unacamelled tap AUTO_INCREMENT primary key, username 'VARCHAR (128) NULL,` last_login DATETIME NULL engine = InnoDB Obviously, unlike many people, I personally want to take advantage of the tap, the value of the database is in the common man's terms, zero means that it Not started with any price. In this case, if our user has never entered, then I would like to see that due to the fact that the tapering equivalent of the final recording is seen in his record. So, the cord = "never entered". If I had to add a new user to my database through something like a phpMyAdmin or through the command line, then...

Combining mysql queries that recycle multiple self joins -

I have the following set of a MySQL query, which is used to track the user's progress through the website is. Is it a good way to make them easy? # How many people choose phase 2 as a form of "total" as the COUNT (separate one session_id) form______, where one. Progress = 2 and DATE (A.datetime) = "2011-03-23"; # How many people have reached stage 4, select step 2 "as a total (as a session_id), formation_payment_ights, (SELECT f.session_id, f.datetime) form___fits_fits f ou.progress = 2) WHERE a.progress = 4 and a.session_id = b.session_id and DATE (b.datetime) = "2011-03-23" and DATE (a.datetime) = "2011-03-23" # # People reached Phase 7, after arriving at step 4, select step 2, forming "total" as the "total" form_date (select one f.session_id, f.tatetime) while reaching step 1 ) From form__f_fits_fits where F progress = 4) b In form, the form___fits_fits f (f.progress = 2) from WHERE a.progress = 7 and a.sess...

SQL - Different sum levels in one select with where clause -

I have 2 tables are a basic amount that remains constant in the second table applied to the time against the original amount in the first table There is a list of partial amounts. DB Tables: *** Memotable *** ID [Primary, Exclusive] Zodiac (General Zodiac) *** TranStable *** ID [Single in Memotable] Id ID number in transtable ID; Date applied (date apply) I last week (apply> 2011-04-21), used to date Want to find a single selection, ID, amount used in the amount that was made? The only rows that should be shown in the result are when an amount has been used from the previous week (apply> 2011-04-21). I am stuck in trying to get the amount for the amount used to date, because it needs to be included in the amount the values ​​used when that apply & gt; 2011-04-21. In this case it is possible to avoid sub-selection: SELECT ID, AmountUsedSinceLastWeek = SUM (in case when applying> 4/21/2011 'then the amount used END) amount from

java - Creating a Custom Expanded View in Code -

I want to customize the notification area, add an icon to the right and some buttons. I have read the tutorial here: The problem is that I need to include this code in a library, an SDK, which I want to distribute to improve information. (See) Is it possible to write XML all UI in the code without describing the remote view? This is because resources can not be included in SDK, so I will need to add an XM to my resources from the users of my SDK and referencing all the resources by name ... which I would like to save I already Only the other parts of the SDK user interface are written in the Java code, but I'm having trouble doing this for the Remove View. A remote weave is usually created like this: Remote power content view = new remote power (getPackageName (), R. layout, custom_notification_layout); Can I create a remote view from a layout created with Java code? Any other solution? I thought that you can do this with your parcel, but on the code, Parcel s...

xml - Reading a Log4View Logfile using Log4net log4net.Layout.XmlLayout? -

Image
I am trying to read a Log4net XMLLayout output log file using Log4View. & lt;? XML version = "1.0"? & Gt; & Lt; Log4net & gt; & Lt; Appender Name = "FileApender" type = "log4net.epadder.php filepider" & gt; & Lt ;! - Note: Make sure your user has write rights to this directory. - & gt; & Lt; File value = "C: \ temp \ logFile1.xml" /> & Lt; AppendToFile vlaue = "true" /> & Lt; Encoding value = "unicodefif" /> & Lt; Layout type = "log4net.layout.xmlLayout" /> & Lt; / Appender & gt; & Lt; Root & gt; & Lt; Level value = "ALL" /> & Lt; Appender-Rif Ref = "File Expander" /> & Lt; / Root & gt; & Lt; / Log4net & gt; log4net.config - An XmlLayout configured to log4net output . & Lt ;? Xml version = "1.0" & gt; & Lt ;! DOCTYPE log4net: Event System "log4net-even...

php - want to do a simple url shortner -

I want to create a simple URL shorter which will do the following: Where the code will be something like a476u (random string of letters and numbers). My only problem is reading the code from URL. I want all the requests to go to index.fpp where the URL will be read and the code will be received. But the URL that normally would have pointed the folder (where a476u is a folder). How can I do a folder without having to enter a file instead of going to a file like this? I like the .htaccess file ... Rev. Rule ([a-zA-Z0- 9] {5}) index.php? Code = $ 1 Then, feel free to do this.

CS5 Flash Prof: Looking for a Batch/Mass Publishing Plugin -

I am working on a flash project that has many flav files associated with it. Is there a plug-in, by which Will I get permission to manually open and publish many flash files without publishing myself? I know that there is a batch processing of photoshop in Photoshop but if it is one for Flash then it was unaware. Thanks. You can participate with an original JSFL script: Var dir = fl.browseForFolderURL ("choose fla folder"); // Open a folder var file = FLfile ListFolder (dir, "files"); // Receive files (note: do not recursive!) Var filename = files. Long; Fl.outputPanel.clear (); (Files i) .substr (files [i] .lastIndexOf (".") + 1) == 'fla') for {var i = 0; i & lt; filesNum; i ++} Look for / fla var doctor = fl.open document (dir + '/' + files [ii]); // http: //doc.exportSWF toggle the comment on the preferred way of exporting, add your location here, use the server settings?); Doc.publish (); //doc.testMovie (); Fl.saveDocum...