Posts

Showing posts from August, 2013

C# How do i define methods for the same class in mutliple files? -

I have a class that is getting bigger, how do I define it, such methods are different Can get in CS files? You can declare your class. This allows you to split on multiple files. // file 1: partial class test {public zero} method 1 () {...}} // file 2 partial class test {public zero method2 () {...} }

Are there stack based variables in Python? -

यदि मैं ऐसा करता हूं: def foo (): a = someObject () < / Code> क्या 'ए' फू को छोड़ने के तुरंत बाद नष्ट हो गया है? या क्या यह कुछ जीसी होने का इंतजार करता है? हां और नहीं आपके द्वारा एफयू छोड़ने के बाद ऑब्जेक्ट को नष्ट कर दिया जाएगा (जब तक कि इसके बारे में कोई अन्य संदर्भ नहीं है), लेकिन यह तत्काल है या नहीं, यह कार्यान्वयन विवरण है, और अलग-अलग होगा। CPython (मानक अजगर कार्यान्वयन), refcounting का उपयोग किया जाता है, इसलिए आइटम तुरंत नष्ट हो जाएगा। इसमें कुछ अपवाद हैं, जैसे कि जब ऑब्जेक्ट में चक्रीय संदर्भ होते हैं, या जब सम्मिलित फ्रेम में संदर्भ होते हैं (उदाहरण के लिए एक अपवाद उठाया जाता है जो फ्रेम के वेरिएबल्स के संदर्भ को बरकरार रखता है।) इसमें हालांकि जिप्थन या आयरनपेथान जैसे implimentations, ऑब्जेक्ट को अंतिम रूप नहीं दिया जाएगा जब तक कि कचरा कलेक्टर अंदर किक नहीं करता। इस तरह, आपको ऑब्जेक्ट के समय पर अंतिम रूप से भरोसा नहीं करना चाहिए, लेकिन यह केवल मानना ​​चाहिए कि यह हो जाएगा अंतिम संदर्भ के बाद किसी बिंदु पर नष्ट हो जाता है जब आपको वाक्यात्मक

c# - Mapping a set of properties to another set where multiple source properties may be used in conversion rules? -

I have a set of properties defined, values ​​are all stored in the form of stars to return a new set of new properties Where the value of each new property can be in one of three ways. A direct copy of a specific source value. A default value. The result of some arguments applied to the values ​​of 1 or more source properties. My approach to this problem was to create an IMFable interface For each method, I set an implementation of this interface with the required logic in this method. I have a factory method based on the name of an inappropriate asset: Private Imapable GetMapper (string localpropertyName) {char [] character = LocalpropertyNet. ToCharArray ( ); Chairs [0] = four. Touper (chairs [0]); String classname = new string (chars) + "mapping"; {Legislative assembly assembly = try assembly. GETExecutingAssembly (); Type classype = assembly GetType ("MyNamespace.Rules." + Classname, false, true); Implabel system. Activator Create instances

.net - Why aren't Array methods built into an Array instance? -

Maybe there's a silly question, but it's annoying me ... int [] I = {3, 2, 1}; // Why Array? Sir (i); I.sort () instead of //; Four c = 'c'; // why char.IsLetter (c); C instead of // Issliter (); Thanks to Pedro De Aquino for identifying these other answering questions. The basic point is that the example methods threads on structures are not secure, but there are static methods. See these questions:

.net - Using Windows Workflow Foundation in all applications can be a good idea? -

Is it a good idea to use WF for all application sizes? With more complex applications for more complex applications, assuming that all applications follow a workflow, even in most cases can workflows be included? No, the workflow foundation will not be useful for every single app you created. Depending on the case, you are going to measure the benefits and costs against your project, to determine whether it will be feasible. This will actually prove to be a case for anything you use. While each application is, in a sense, a workflow, the workflow foundation is a heavy framework, especially a handy workflow that is easily defined, and should be used only when you To define a significant amount of effort should be made which are the workflow of your application.

asp.net - Setting the src attribute of an IFrame to data:application/pdf;base64? -

Setting the src attribute of iframe into data: application / pdf; Base 64 is not working for me, no idea why? Here is the .aspx markup & lt;% @ Page language = "C #" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inheritance = "_Default"% & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt; Title & gt; Untitled Page & lt; / Title & gt; & Lt; Script type = "text / javascript" & gt; Function loadIFrameFromHiddenField () {// in the hidden area var xmlDoc = new ActiveXObject ("Microsoft.XMLDOM"), get xml from node containing base64 pdf data; XmlDoc.loadXML (document.getElementById ("pdfData") value.); XmlDoc.setProperty ('SelectLanguage', 'XPath'); Var pdfDataNode = xmlDoc.selectSingleNode ("// PDF"); // If we have found the node (pdfDataNode! = Null) {// Get the d

c# - Implementing a fully-functional prototype for a web-based application -

I am creating a prototype for a web based application and considering creating front end in HTML , Which may then be reused for later actual application. I previously had a flash-based prototype, in which .swf was embedded in the C # executable. Flash was made for faster turnaround times, while Windows applications provided unlimited access to Fancy APIs for DB access and sound. I want to think about something similar for this one. Does this approach make sense? I am particularly concerned how the HTML container will communicate with the app. What do I understand from the initial research, it will be only via javascript, which can be quickly cumbersome, this is especially because unlike Flash-based prototypes, which executes many of its functionality in .swf, HTML The UI will completely depend on the shell to maintain the state. Also, I do not want more than access to the database. That's why a desktop application can be overkill. Another option that comes to mind is to cre

java - When to close Connection, Statement, PreparedStatement and ResultSet in JDBC -

Some questions on JDBC coding: For a client application, do we have a connection Pool? Is it a good idea to make connections at the beginning and exit it without closing it? Why? The location created is connected with the connection, if my connection is not closed after every query, why not keep the preparedness alive and do not reuse it in other methods. Do you? If we do every query, does the database know that it was created the same and could ignore unnecessary actions for the first time? Once created, the statement is not made once and many times the statement is not being reused? If so, why should it be shut down every time? I know that the call to stop () will release the resource, but if we know that we are going to use it later, why release it and then later Request again? How about the multi-client application? We need a connection pool and why do we need to create and close the statements, statements and statements made every time? Thanks, Personall

new operator - new on objective-c -

मैं यह करना चाहता हूं: [[क्लास ए नया] addObject: [[क्लास नया] addObject: [क्लास ए नया]]]; लेकिन कंपाइलर देता है: "त्रुटि: शून्य अभिव्यक्ति का अमान्य उपयोग" क्या कोई तरीका है इसे करने के लिए? जैसे जावा में: क्लास ए = न्यू क्लास (नया क्लास (नया क्लास ए ())); असली समस्या यह है कि - [वर्ग ए addObject:] बहुत संभावना में रिक्त प्रकार का शून्य है, इसलिए आप उस अभिव्यक्ति को बाहरी -addObject : कॉल के तर्क के रूप में घोंसला नहीं कर सकते। उदाहरण के लिए, दस्तावेज देखें - विधि हस्ताक्षर - (शून्य) addObject: (id) anObject है। यदि आप किसी अन्य भाषा में विशेष रूप से जावा में अलग-अलग व्यवहार करने के लिए उपयोग किया जाता है, तो यह आपको गार्ड से बचा सकता है यह भी ध्यान रखें कि -removeObject: रिटर्न शून्य , उस ऑब्जेक्ट को नहीं हटाया गया था। इसके अलावा, हर कोई यह बात गुम है कि + नए को ओवरराइड होने तक विरासत में मिला है - देखें। हालांकि, + new का उपयोग "प्रचलित से बाहर" है, और + alloc / -init ... पसंदीदा है एक कारण यह है कि जब से + new को -ini

c++ - Why does std::fstream set the EOF bit the way it does? -

I recently went into a problem using fstream :: eof (). I read the following line from the following: function Aoff () Returns is correct if the related input has reached the end of the file, otherwise it is incorrect. And (mistakenly) assumes that if I use fstream :: read () and before the end of the file, then the function will tell me (eof) I did something like this (very generalized): for (int i = 0; i & lt; max & amp;; file.eof (); i ++) {file.read (Myfan, methane); } The problem has come up, which is mentioned later on the page given above (which I initially failed to read, because of the misleading first paragraph): On the contrary, the stream does not go to the EOF state, if any white space has to be done after the last token, but trying to read another token will still fail, therefore, using the EOF flag Do not be used as a test in a loop Awareness is aimed to read all stream content to Iof. Instead, one should check the failed status after trying to

string - Problem with Strpos In PHP -

I am writing a simple function and for some reason (maybe a simple one) it is not working for me and I was thinking that you guys could help me out if function check_value ($ postid) {$ id = $ postid $ Cookie = $ _COOKIE ['list_of_IDS']; $ Position = strokes ($ cookie, $ id); Resonance 'ID:' $ Id '- cookie:'. $ Cookie; If ($ position! == incorrect) {Resonance "ID is in cookie"; }} To figure out what problem I was putting in that there was then the above statement resonance line in trying to make sure that there is actually stuff in the variable. My problem is that if IF statements never print. A $ postID is a number 123123 . $ cookie string is usually something like 123123.23422.234234.2342342.234234 thanks for your help! The stroke will not work with an int, so you have to put the id in the string. Try this: $ id = (string) $ postid;

What's the simplest, quickest way to pause/play Windows Media Player? -

I'm just trying to get a quick way to run and stop the Windows Media Player remotely So after reading many questions here, I realized that most people were talking about C #, Java, Com, Active X ... which looks a bit more for my project. Have a simple interface to mess with WMP? My preferred method would be some python modules, where I can just write a few things fast and deploy it in five minutes. Nothing is fancy. You need it: ............

Updating select box options via jQuery AJAX? -

Is there some type of plugin to do this? The server will return labeled JSON content to label and value. I can do it manually, I just want to see that there is no easy way. < Select var: div class = "text" itemprop = "text"> = Document.createElement ('options'); Opt.value = "someValue"; Opt.appendChild (document.createTextNode ("someText")); $ ('# MySelect') enclosed (optional).

iphone - Can I get a function list in Xcode? -

I'm a long-standing cryvrite user on PC for software on PC, and recently gone on the development of the iPhone and I'm learning to use Xcode There is a way to see the function list for the current open file, so I can quickly move my source files like I can come back to the right-hand side? Or have I just made book marks? Keith Center center of the top bar in the editor window All methods, functions and many There is a drop-down list of other things. Some notable things you can get in this list: One section title "Some Text": #pragma some text > // FIXME: something to do FIXME: and TODO: There are magic strings here. This is not just any random string.

.net - Pass current transaction or use DependentClone? -

I have a WinForm application that uses SQL Server 3.5 as a database. I use dataset queries typed for the DB operation. I have to use the transaction for this operation. The problem is, they are spread in different assemblies. My question is, what should I use to run them all in a transaction? Here's an example operation: // Transactions should start here here. MyOtherAssembly.myClass.QueryDbForSomethingElse (); System.IO.File.Delete (file name); // End transaction I'm thinking of using TransactionScope but will it work in this situation? I would mean QueryDbForSomethingElse () rollback if File.Delete () fails? Should I make a new transaction using the transaction.Current or Transaction.Current.DependentClone (DependentCloneOption.BlockCommitUntilComplete) as a parameter and using passed parameters? I appreciate any thoughts on this. TransactionScope works in assemblies - it actually does not care where The code is implemented, rather, it is related

Adding an HTML formatted column in SQL Server Reporting Services 2005 -

itemprop = "text"> I have a table in the database where the "Description" column is of nvarchar (MAX) type in which the HTML string has been saved. Now, what I want to do is to see a report from that table, and the "Description" column provides the content as a formatted HTML already, such as in SQL Server Reporting Services 2005 Are there any chances to do? I think the formatting can be handled automatically, do you try to insert columns on the report Is that?

can't add yahoo pipes to google reader -

feed for some reason when I do it will not load then add in Google Reader. pipe is very simple, it is only 2 filter are running themselves properly in Yahoo Pipes, when I try to Fenc just will not find in Google Reader. Has anyone seen this before? You may not be published pipe to provide publicly since Google Reader on the Internet the need to reach the pipe, so it should be public.

.net - How do I return multiple generic Lists in one Web Call? -

I have decided that returning datasets and datasets working with DATETs back to a front end app is a bad idea . So with the generic magic I am returning a general list via website call (WCF not just plain ol 'ASMX). This works until you need to return a list per call on your phone service. The scenario I am running is that I have a more screen involved where there are some dropdowns and so on. I need to force those dropdowns into a generic list. The problem is that I do not want to make multiple web calls, one for each dropdown, to get my data. In the past, I just returned a dataset and had a dropdown in a specific table in the dataset. Therefore, it would be super to back up many generic lists in a web call. I have tried: Using the list of lists Using the collection of general listings Support Class and list ; Base & gt; In order to try things for goods, there are conversion issues, list & lt; Base & gt; Using . Creating a class whose properties

data structures - ColdFusion: How to check if a certain element exists in a 2-dimensional array? -

I have a 2 dimensional array. I write 3 values ​​in the array during my initialization and add a quarter value if An array value is not equal to the value passed through a form. Then I want to check if the fourth value is present. update.cfm & lt; Cfset array = obj.getArray () /> & Lt; Cfif no StructIsEmpty (form) & gt; & Lt; Cfloop collection = "#form #" item = "key" & gt; & Lt; Cfif left (key, 3) eq "ID_" & gt; & Lt; Cfset number = listLast (key, "_") /> & Lt; Cfset value = evaluation (0, key) /> & Lt; Cfloop index = "j" = "1" from "# arraylen (array) #" & gt; & Lt; Cfif (array [j] [1] eac number) and (array [j] [3] neb value) & gt; & Lt; Cfset array [j] [3] = value / & gt; & Lt; Cfset array [j] [4] = "true" /> & lt; / Cfif> & Lt; / Cfloop & gt; & Lt; / Cfif> & Lt; / Cfloop & gt; & Lt; Cf

c# - Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider? -

What most people have developed with the site's membership capabilities while using the Networks SQL Ambership Provider, ScalrolProver, and SQL Profiles Provider ? Or do many people completely do their own providers, or even their own membership system? What are the limitations of SQL providers that will roll your own? Is it easy to extend SQL providers to provide this additional functionality? For reference , so that you can customize it, rather than just starting from scratch, just an FYI. We use everything except the profile provider The profile provider is fully text based and complete Looks for the text - it gets very slower because you have a great base of user base. We found a better solution to the "Profile of our own profile" section of the subscription API database, which is in the subscription.

Looking for a jQuery Carousel plug-in with in place AJAX refresh -

I'm looking for plug-ins similar to what you see on Amazon's homepage. Scroll down and see how Carousel actually works. Note that when you click Right or Left, you get an AJA refresh (not a full slide of the pictures which plugs the most carousel). So I'm looking for a jQuery based plugin to do this. I have seen many jQuery carousel plug-ins but they all slide effects. Not like what I'm looking for I want to replace Amazon with AJAX refresh action. So hopefully I have been seen here in a carousel plug-in to save some time searching, who does this? When you click Right or Left, it makes an AJAX call and in this way intermediate processing can show Animated GIFs? I could not find anything, but writing something should not be very difficult. Use PHP, Perl, Python, .NET, etc. and create a server side script which is a JSON object Since you have only asked for help with jQuery, I think that you have your own How to write server scripts. The following is on

c# - .Net library for saving an image to Mac's PICT/PCT file format -

Is the address of the .Net library to save or change someone in a Mac PCT / PICT file format? I can save JPG in PCT / PIC format in Photoshop; And I look at this Lead Tools Library for $ 995, but she wants to spend less money for that simple convert. I do not need all the other features, it supports expensive library. A client claims that they need JPG images in the PIC / PICT file format for their SSI anniversary mac software. Thank you! In addition to writing your own exporter, you may be able to use it. I have seen that they have been used successfully with P / Ivek and Com; I see one that uses it with VB.net. If it helps, then the picture v1.0 is quite old (I believe it was disliked in the 90's for some time) inside the PICT There are some details on v2.0 format, and I remember to hear something about JPEG encoding in PICT.

Flex Air HTMLLoader blank pop up window when flash content is loaded -

मेरे पास एक फ्लेक्स एयर प्रोग्राम है जो HTMLLoader के साथ बाह्य सामग्री लोड करता है अब किसी कारण के लिए जब भी मैं एक पृष्ठ लोड करता हूँ जिसमें कोई फ्लैश सामग्री होती है तो रिक्त सिस्टम विंडो मेरे कार्यक्रम के बाहर चली जाती है यह पूरी तरह से खाली है, न्यूनतम, अधिकतम और करीब बटन के साथ सभी सफेद। अगर मैं इसे बंद करता हूं तो मैंने जो फ्लैश सामग्री लोड की है वह काम बंद कर देती है I मेरे जीवन के लिए मुझे पता नहीं है कि क्या हो रहा है और कंसोल में कोई संदेश नहीं है और विंडो के लिए कोई शीर्षक नहीं है। क्या किसी के पास कोई विचार है? मुझे आपकी कोई भी मदद की सराहना है जो आप दे सकते हैं यहां पर वह कोड है जो मैं उपयोग कर रहा हूं: निजी var वेबपेज: HTMLLoader; निजी फ़ंक्शन रजिस्टरइवेंट्स (): शून्य {this.addEventListener (gameLoadEvent.GAME_LOAD, gameLoad); // वेबपेज = नया HTMLLoader (); } // समारोह सही खेल निजी समारोह gameLoad को लोड करने के लिए खेल कमांड से वापस बुलाया (घटना: घटना): शून्य {var gameEvent: gameLoadEvent = gameLoadEvent = eventLoadEvent के रूप में; Loadgame (gameEvent.url,

javascript - Getting offsetTop of element in a table -

I can not seem to find how to get an element offset within a table. It works fine on the elements outside of the table, but all elements of the table have returned the same results, and this is usually at the top of the page. I tried it in Firefox and Chrome, how do I get an element offsettop in the table? Returns a value related to offsetTop offsetParent is; You must add recursively offsetParent.offsetTop through all parents to offsetParent null . Consider using the () method. Edit : If you do not want to use jQuery, you can type in a method like this (untested): Function Offset (AMM) {If (! AMM) AMM = This; Var x = elem.offsetLeft; Var y = elem.offsetTop; While (elem = elem.offsetParent) {x + = elem.offsetLeft; Y + = elem.offsetTop; } Return {left: x, above: y}; }

winapi - Why can't I find the #define for CSIDL_PROFILES? -

I am trying to use the path to the User Profile folder to determine. The documentation states that CSIDL_PROFILES defines this folder: CSIDL_PROFILES (0x003e) Version 6.0. File system directory that contains user profile folders. A special path is C: \ Documents and Settings. I am using Visual Studio 2005 SP1, and I can not find the definition of continuous CSIDL_PROFILES in the platform contains SDK files? Do I Need a New Version of Platform SDK? So I used something else using the ID 0x3e instead of the symbol. However, it seems that the 0x3e is not a valid argument for shell functions that accepts the CSIDL * logic (an invalid logic error occurs). So I think that CSIDL PROFILES is not a valid argument and at least on some subjects MSDN pages are wrong when they mention this symbol. I have to say in all my years of working with the Win32 / MSDN documentation that I do not remember such a situation. It's listed in no , so a new version of PSDK will help you

select_related across many to many fields in django or how do i access many to many fields using .all() -

I am writing data migrations using south ... but select question_relation to get many people using Field for The documentation specifies that select_related can be used for fields with relationships of foreign use ... I can not understand that 'work with many areas right'? In my area empty = zero but the documentation says that you can still call select_related ('field_name') and it will drag related relationships. So far when I try to do this below ... listing a query in the query group RealEstateListing.objects.all () am: listing_type_slug_url = slugify (listing.listing_type.name) sub_type = orm.SubType.objects.get (slug_url = listing_type_slug_url) pricing_option = PricingOption.objects.get (name = listing.pricing_option.name) lt = orm.Listing (listing_type = sub_type.parent, sub_type = sub_type, expiration_date = listing.expiration_date, title = listing.title, slug_url = listing.slug_url, Description = listing.description, contact_person = listing.conta

Fill textbox with current username logged in sharepoint -

I created a custom list, it actually fills out a form for an absence request workflow. I got a flaw before publishing it. The first textbox is a person or group textbox, it helps to recover the Active Directory username, but the drawback is that I can type the username I want to say: "Users X is logged, but if he enters the user's Wi and hit, he can request anonymity for the user wi " So what do I want, hide the textbox Receive and fill automatically with the logged on user. I am looking for formulas for computed text boxes but I could not find anything. I'm not sure what you are going to do here, but if you have a ombudsman If you want to fill the current user, then you have to disable the control to not be able to change the value to the user. PickRinity unit = new pickinty {key = spontex. Present. Web. Current user login name}; PeopleEditor.Entities.Add (unit); PeopleEditor.UpdateEntities (PeopleEditor.Entities);

How can I list all of the files in a directory with Perl? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 8 जवाब क्या पर्ल में कोई फ़ंक्शन है जो निर्देशिका में सभी फाइलों और निर्देशिकाओं को सूचीबद्ध करता है? मुझे याद है कि जावा में File.list () ऐसा करने के लिए है? क्या पर्ल में एक तुलनीय विधि है? यदि आप दी गई निर्देशिका की सामग्री प्राप्त करना चाहते हैं, और केवल यह (अर्थात् कोई उपनिर्देशिका नहीं), सबसे अच्छा तरीका है opendir / readdir / बंदर का उपयोग करना है: मेरे $ dir पर क्लिक करें, "/ कुछ / पथ" या मर "निर्देशिका नहीं खोल सकता: $!"; मेरी @फ़ाइलें = रीडडिर $ dir; बंदर $ dir; आप इसका उपयोग भी कर सकते हैं: my @files = glob ($ dir। '/ *'); लेकिन मेरी राय में यह उतना अच्छा नहीं है - ज्यादातर क्योंकि ग्लोब काफी जटिल बात है (परिणाम स्वचालित रूप से फ़िल्टर कर सकते हैं) और डायरेक्टरी के सभी तत्वों को प्राप्त करने के लिए इसका उपयोग करना एक बहुत सरल कार्य के रूप में लगता है। दूसरी ओर, यदि आपको सभी निर्देशिकाओं और उपनिर्देशिकाओं से सामग्री प्राप्त करने की आवश्यकता है, तो मूल रूप से एक मानक स

textbox - ASP.NET - Swap TextBoxes for Labels when Enabled=False -

Setup: Web form with lots of text box controls When I enable the property of the wrong property of any text box control, I want to "swap" that text box for a label on the runtime. This idea is here that if it reads just like that, do not display it in the design designed for editing. I think it should be very simple and reusable, but what is the best way to do it? Not sure that its the best way, I will create a text box with a custom server control, / P>> Then override the render method, check that it is read only, If it is read only then it is necessary to present your Span Tag like label controls. If not, then render on the base (textbox) ... public class specialtaxbox: textbox {public override recourse control (HtmlTextWriter author) {if (! ReadOnly) {base.RenderControl (writer); } Other {author. Light (string.format ("& lt; span id = \" {0} \ "class = \" {1} \ "& gt; {2} ", This .client id, this .css class, t

.net - Client Profile Application prerequisites -

Image
One final question about client profile installation I have downloaded Microsoft. NET Framework Client Profile Online Installer because we want to keep it in the installation CD because our end users either Net Framework is not 3.5 or the Internet. So we want to handle both matters. In something else I am able to select the place where the file will be, but I do not know where it should be. Somehow I want to be able to do something like CD, D: \ ProductName \ Prerequisites \ DotNetFx35ClientSetup.exe Then it can get it and can install it from there Anyone can know how it can Can be obtained? Thank you. Here are the prerequisites window: OK, these are things I tried with the client profile but it was not working, I think the client profile installer does not have the features of NAT Framework 3.5 SP1 so that the net framework 3.5 SP1 Also, I had to make it available offline too. First is the deal: First of all you need to download , you need to copy the file to t

perl - What is the difference betweeen %INC and @INC? -

पर्ल में % INC और @INC के बीच क्या अंतर है ? सरणी सभी फ़ाइल सिस्टम पथ रखता है जहां पर्ल मॉड्यूल की तलाश में होगा जब आप उपयोग करेंगे या आवश्यकता उपयोग या आवश्यकता के बाद, हैश में लोड किए गए मॉड्यूल होंगे और जहां से वे लोड किए गए थे। मेरे लैपटॉप से ​​उदाहरण: @INC: '/ etc / perl', '/usr/local/lib/perl/5.10.0', '/usr/local/share/perl/5.10.0', '/ usr / Lib / perl5 ',' / usr / share / perl5 ',' /usr/lib/perl/5.10 ',' /usr/share/perl/5.10 ',' / usr / local / lib / site_perl ','। ' और% INC: 'चेतावनियां / रजिस्टर.pm' = & gt; '/usr/share/perl/5.10/warnings/register.pm', 'bytes.pm' = & gt; '/usr/share/perl/5.10/bytes.pm', 'XSLoader.pm' = & gt; '/usr/lib/perl/5.10/XSLoader.pm', 'कार्प पीएम' = & gt; '/usr/share/perl/5.10/Carp.pm', 'एक्सपोर्टर.पीएम' = & gt; '/usr/share/perl/5.10/Exporter.pm', 'warnin

language agnostic - Upper limit of bugs in a given program -

Is there a limit on the number of bugs present in a given program? If the number of instructions is known, can someone say that the program can not be more than 'N'? For example, how many bugs might be in the following functions? Double Calci Interest (Double Amount) {Return- O.07 / zodiac; } A parser will count four words in the function, and I can count these errors: Wrong number syntax Inaccurate Potentially divided by zero Obviously not a number of bugs (business requirements error) Incorrect calculations (should be multiplied) Infinite gave a limited number of instructions, alternatively someone can say that the function accepts 2 ^ 64 inputs, and they How many tend to produce correct output. However, is there any way to formally prove the upper limit? If the bug was not found by the "a requirement" " program, the bug There is no limit on the number of (per line or other) number, because there is no limit on the number of requi

c# - Preferred method to set the value of a get only Property: constructor vs backing field -

edit : Although I have accepted the answer, the answer should also be considered correct. Which method is preferred for setting the read-only value? Property: Using the backing field or using Constructor? Assuming that the design is for a property and there is no area (in the future, there may be an update for which the property needs to set up a setter which has to be stopped using a field). Given the simple example, which method is preferred? If someone is favorite over another, then why? Option 1 (backing field) : class some object {// logic} square fu {Private SomeObject _myObject; Public SomeObject MyObject {get {if (_myObject == empty) {_myObject = new SomeObject (); } Back _myObject; }} Public Foo () {// logic}} Option 2 (constructor) : class SomeObject {/ / Logic} class Foo {public SomeObject MyObject {get; Private set; } Public Foo () {MyObject = new SomeObject (); // logic}} It depends on the time required by the new SomeObject () , "And the pro

javascript - FBJS in facebook -

I want to use javascript in my Facebook application, but I do not know how to use it for FBJS How to get started with Please help me out! & lt; Div onclick = "greeting ();" & Gt; Me & lt; / Div & gt; Click; & Lt; Script & gt; Function Greetings () {Warning ("Hello world"); } & Lt; / Script & gt; This works for me: & Lt; Script type = "text / javascript" & gt; Function Arasyuroor (Description, ID, Opt) {var dialog = new dialog (dialog) IDALOG_POP .showChoice ('Are you sure?', 'Are you sure you want to delete' '+ + Details +' "? May be undone, 'yes', 'no'); Dialog.onconfirm = function () {document.setLocation ("http://apps.facebook.com/myapp/delete.php?rec ord =" + id + Opt);}} & lt; / script & gt; & lt; a href = "#" onclick = "areyousure (arg1, arg2, arg3)" & gt; & lt; img src = "http: /mysite/images/del

visual studio 2008 - install/uninstall a Windows Service -

मैंने VSTS 2008 Windows सेवा प्रकार प्रोजेक्ट का उपयोग कर एक विंडोज सर्विस प्रोजेक्ट बनाया है और अब मैं इसे इंस्टॉल / अनइंस्टॉल करने के लिए स्क्रिप्ट लिखना चाहता हूं PowerShell का उपयोग कर कोई संदर्भ नमूने या दस्तावेज? यहां एक स्थापित स्क्रिप्ट का एक सिनिटेड संस्करण है मैंने लिखा। आपको जो कुछ भी करने की ज़रूरत है उसे प्रदर्शित करना चाहिए: ## मौजूदा सेवा हटाएं # को इसके बहुत अधिक के लिए WMI का उपयोग करना है, देशी सीएमडीलेट अधूरे $ सेवा हैं = Get-WMIObject -Class Win32_Service -Filter "नाम = 'मेरी सेवा' "अगर ($ सेवा-एक $ नल) {$ सेवा | स्टॉप-सर्विस $ service.Delete () | Out-null} ## install installil # 'frameworkdir' env var जाहिरा तौर पर Win2003 पर मौजूद नहीं है ... $ installUtil = join-path $ env: SystemRoot Microsoft.NET \ Framework \ v2.0.50727 \ installutil.exe $ serviceExe = जॉइन-पथ $ संदेशसेरपैथ MyService.exe $ installUtilLog = join-path $ messageServerPath InstallUtil.log & amp; $ Install $ सेवाएक्स / लॉगफ़ाइल = "$ installUtilLog&qu

c# - Easiest way to read from a URL into a string in .NET -

स्ट्रिंग में एक यूआरएल को देखते हुए: http://www.example.com /test.xml सी # में एक स्ट्रिंग में सर्वर से फ़ाइल की सामग्री (यूआरएल द्वारा इंगित) को डाउनलोड करने का सबसे आसान / सबसे सरल तरीका क्या है? < P> इस समय मैं इसे कर रहा हूं: WebRequest अनुरोध = WebRequest.Create ("http://www.example.com/test.xml"); WebResponse प्रतिक्रिया = अनुरोध। GetResponse (); स्ट्रीम स्ट्रीम स्ट्रीम = प्रतिसाद। गेटरेस्पॉन्सस्ट्रीम (); स्ट्रीमरिडर रीडर = नया स्ट्रीमरिडर (डेटास्ट्रीम); स्ट्रिंग रिस्पांसफॉर्मसेरवर = रीडर। रीडटेओंड (); यह बहुत सारे कोड हैं जो अनिवार्य रूप से एक पंक्ति हो सकती है: स्ट्रिंग प्रतिक्रिया FROMServer = ????। GetStringFromUrl ("http: // www। example.com/test.xml "); नोट: मुझे पता है कि मैं इसे लपेट कर सकता हूँ - मैं सिर्फ एक चीज का आसान तरीका है मुझे चिंता नहीं है एसिंक्रोनस कॉल के बारे में - यह उत्पादन कोड नहीं है। का उपयोग कर (वेब ​​क्लाइंट क्लाइंट = नया वेबक्लेन्ट ()) {string s = client.DownloadString (url); }

java - How to cache information in a DAO in a threadsafe manner -

I often need the implementation of DAO for some reference data, which does not change very often, sometimes I am on DAO I cache it in the archive area - so that it is only once full and clearly updated if necessary. Although it brings issues of several concurrency - what if another thread tries to access data during data loading or renewal Obviously this data is received Both the makers and setters can be controlled by synchronizing - but for a large web application this is an overhead. What I want as a trivial faulty Stormman Please suggest alternative ways of applying it. Public Class Location IDOIMPL Applicable Location DAO {Private List & Location; Location & gt; Places = null; Public listing & lt; Location & gt; GetAllLocations () {if (places == zero) {loadAllLocations (); } Return location; } For more information, I am using hibernate and spring but this requirement will apply to many techniques. Some more thoughts: Should not it be handled in

c# - HttpWebRequest and Transfer-Encoding -

HTTP WebBurst used to download files from ASP.NET site with original authentication is. In many cases everything works fine, but the response to some proxies is cold and HttpWebRequest.GetResponse () throws an exception if the answer is given with 401 status code is. The exception is: System.Net.WebException: The server has violated a protocol. Section = Answer System: The answer to System.Net.HttpWebRequest.GetResponse () is trace: & lt; Pre & gt; "HTTP / 1.1 401 Authority Required \ r \ n Date: Fri, 26 June 2009 04:45:18 GMT \ r \ nServer: Microsoft-IIS / 6.0 \ r \ nx-power-by: ASP.NET \ r \ NX-esponet-version: 2.0.50727 \ r \ nWWW-authentication: Original realm = \ "iis-server \" \ r \ nCache-control: private \ r \ nContent-type: text / html; charset = ISO-8859-1 \ R \ n Via: 1.1 Server \ r \ n Keep-Elevation: Timeout = 15, Max = 100 \ r \ n Connection: Keep-Elive \ r \ n Transfer-Encoding: Chunked \ r \ n Content -language: n \ r \ n \ r \ n0 \ r

iphone - how to use custom font in html pages for UIWebView? -

I have the "Futura.ttf" font file. I'm displaying an HTML page in UIWebView, but my requirement is that I want to use custom fonts in my CSS file. There is a way that I can use my CSS file in a custom CSS file Thank you. Custom font in your UIWebView in iOS3.2 and above It is possible to load Add a font to your bundle (see), then just reference the font in your UIWebView's stylesheet like you would other font:

string - Format a double value like currency but without the currency sign (C#) -

I have a text box with a string value feed that shows me a balance that needs to be formatted as follows: / P> ###, ###, ###, ### I can use the price. Toastring ("c"), but it will put currency sign in. Any idea that I will manipulate the string before feeding the text box to achieve the given formatting? I tried, without success: string.format ("###, ###, ###, ## 0.00", Current Balance) ; Many thanks, for display = currentBalance .ToString ("N2");

navigation - SharePoint content targeting, is it possible to have multiple views per user? -

There are some extensive groups in our SharePoint site that use it. In essence they are managers and users have different people in different tabs are viewable now we need to pose for some time for the managers that they are users, and see how users will typically see how the . We are able to list the ideas that you want to do for the managers to get all tabs can not think of a way to achieve this toggle, managers and users to see, but demand Are done. It is not necessary that users are excluded from manager content to let predicts URL, but equally if they are excluded it is not a big problem. If necessary, we can write code, we do not know where to begin with this! Edit: The entire sub-sites and information pages for both subtitles, not just content on the same page. Create Put manager content and individual user Content Editor Web Part in different Diwaijh, and query string Use javascript to hide irrelevant ones on the base. Link to: mypage.aspx? Page = manager

How can I confirm and then disable a button in asp.net/javascript -

I have a standard ASP.NET 2.0 web page on which with a deleted button What I need and how to remove it can not be ascertained when the user gives a confirmation dialog popup to the delete button, which the user is "Are you sure?" If the user says yes then I want to disable the removal button and want to postback which will run server side code deleteButton_Click. Here's the tag: & lt; ASP: Button ID = "Delete Button" text = "Delete" OnClick = "deleteButton_Click" runat = "server" /> To click on the client side, javascript (in jquery) is: var deleteButton = $ (input.eq (0)); DeleteButton.click (function () {var a = Confirm ("Are you sure you want to delete this item?"); If (a == false) {return false;} else {deleteButton.attr ("disabled", "Disabled"); __do postback (delitaton ("id"), "");}}); The confirmation dialog works and works as expected and works fine to

asp.net - Browser fails to recognise Content Type header correctly -

There is a problem with my browser that fails to identify content types, I am sending in my replies and its Instead of trying to download the file, I have a general handler (named SPARQL.ashx) that are written in ASP.NET which works for something and There are two possible types of which it produces. Either it receives a SPARQLResultSet or a graph and then sets the appropriate content type before using the appropriate method to send content to the user. Code section is below: // execute query object = store.ExecuteQuery (sparqlquery); If (the result is SPARQLResultSet) {// SPARQL return results as XML format references. Response Content Type = MIMETypesHelper.SPARQL [0]; SPARQLResultSet resultet = (SPARQLResultSet) results; Resultset.Save (new StreamWriter (context.Response.OutputStream)); } And if (the result is graph) {// Return as Turtle Reference. Response Contact Type = MIMETypesHelper.Turtle [0]; Graph G = (graph) result; TurtleWriter ttlwriter = New TurtleWriter (); Ttl

Dictionaries with volatile values in Python unit tests? -

I have to write a unit test for a function that gives a dictionary. In this dictionary, one of the values ​​is Datetime.datetime.now () which definitely changes with running each test. I want to fully represent that key right now I have a dictionary comparison function, but I really want to use assertEqual in this way: Def my_func (auto): Return {'monkey_head_count': 3, 'monkey_creation': datetime.datetime now ()} ... Unit test class MonkeyTester (unittest.TestCase): def test_myfunc (auto): self.assertEqual (my_func) (), {'Monkey_head_count': 3}) # I want to ignore the timestamp! Is there any best practice or elegant solution to do this? I know assertAlmostEqual () , but it is only useful for IORA floats. Just remove the timestamp from the dict before comparing: Class manicaster (one-time testcases): def test_myfunc (self): without_timestamp = my_func () Dell without_tammest ["pander_cration"] Self.assertEqual (without_temstamp,

php - Zend Framework Query -

Can someone help me do this correctly? I mean: $ db-> select () -> group ..... I tried a few times but does not work for me: ( $ the-> q- > FetchAll ('Select * from clubs, club_photos_default where Clubs.id = club_photos_default.c_id group by club. Id'); Best relationship, In this case, you are doing this correctly because the entire SQL query is known and static. > Zend_Db_Select is not required to use questions In fact, it is often more complex and least readable, just type the textual SQL query. Use Zend_Db_Select When you use < Em> Required But to answer your question, it should work: $ select = $ Db-> Select () -> gt; ;; (Ar ('c' = & gt; 'club')) - & gt; Join (array ('P' => 'club_photos_default'), 'c.id = p.c_id') - & gt; Group ('c.id'); $ This- & gt; Q- & gt; FetchAll ($ selection); ( $ db value is an object of Zend_Db_Adapter .)

ruby - action caching and queued posts in rails -

I have a landing page on the rail with a "blog" style post, because it is the most visited page on the site. So, I'm using Action Caching. The cache is cleaned on the model change. However, when adding new blog posts, I want to be able to create post in -future- (a la queue post in Tumblr). So just going to see the model will not work anymore to clean the cache. Is there a better way to clean the cache than doing the job from time to time (every half hour)? You can use an end cache. If you have a cache backend memkach, this feature is supported by default. Otherwise, you need to make a key of a cache that contains a value that expires the cache after the scheduled time. Or you can also follow another method. Instead of publishing publications where publised_at & lt; Time. Now (I'm assuming that your current behavior falls in this case), you can run a cron and update the status database field. In this way updates will trigger your cleaning staff an

flex - How do I asynchronously poll a file using a flash timer without blocking the UI? -

I have a Flex application that chooses a remote XML file to detect frequent changes, but I've found that once the file hits a certain size, the election blocks the UI and the page makes it unresponsive for a short time Is there any way to make sure that the call made from the server Or flash. Tiles. Timer class ran from asynchronous to main UI thread? Brandon's Rights - The code that we write is always on the main thread; While the network call is only on a background thread, the call is operated on the main one. One thing to keep in mind is that the WebServices and HTTPS service classes will try to sort your responses automatically, which means that the processing hit unexpectedly. Using the URL loader, on the other hand, you can provide more direct access to the feedback data, so that you can work more directly with it without the unnecessary overhead of that built-in processing. In that light, if you think that you have to process the entire XML file, you may

WCF: Debugging service through Terminal Services -

I am part of a distributed development team. We work through all terminal services, reach a remote server. Where our apps are located. We are working on a project in which the client application uses the WCF service, which exposes all business logic functionality. In our development process, the developer is often asked to develop full usage cases from the user interface for database access including service and trading logic, in such cases the developer has to do the functions / methods on the server side Should be capable of debugging, which he has created for a given usage case. The problem with this is that the service should run and when another developer needs to debug his work, an exception is thrown (I think it is known that 'address is not the first option) and The second developer is not capable of performing any kind of debugging in the service that we think that there are different user names and so we are working in different sessions. May include. It is still poss

Home Interior Design Rules as an AI/Computer Intelligence problem? -

Is there a site that actually describes interior design principles in a logical manner? For example, the width of the path should be xx inches. I have done some goggles, but most of the results are relatively common (and spam). Is there a solid research done in this area, which can be the foundation for automatic assistants? View building code as a starting point to interpret them by any less practical than computer Is designed for; A bureaucrat

filesystems - Lots of small files or a couple huge ones? -

In terms of performance and efficiency, it is better to use very few files (by many I mean something equal Million) or a couple (ten or very) huge (many gigabytes) files? Let's just say that I'm building a database (not completely accurate, but all these cases is that it is being delivered to a lot). I'm concerned primarily with the performance of my file system currently on Linux 3x3 (Ubuntu server version if this is the case), although I am in a situation where I still switch So, the comparison between the different file systems would be great. For technical reasons I can not use a real DBMS (hence the question) for this, so "just use MySQL" is not a good answer. Thank you in advance, and tell me what I want to be more specific. Edit: I am going to store small pieces of data, so using very few files will be easy. So if I went with using some big files, then I'm only retrieving some of them KB at a time. I am also using an index, so there is real

Why does the sql select statement fail? -

In the scenario below, the final selection fails from the alliance view, why any thoughts? The subset table does not contain a single line that corresponds to one in the mastercod, which is not assigned any integer values. Create Table MasterCode (ID INT, code VARCHAR (10)) Select Tab Subset (ID INT) Select SID, M. Combine code, CAST (M.Code ANNT), Intradode with substrate s inner MAID = S IDCET MasterCard (ID, code) values ​​(ID, code) values ​​on MasterCard M (1, '1') INSERT MasterCard (ID, code) value (2, '2') MasterCard (ID, code) value (3, 'three') INSERT MasterCoodes ID, code) value (4, '4') INSERT subset (id) values ​​(1 ) INSERT subset (id) values ​​(2) select INSERT subset (id) values ​​(4) * from the combination - Selects 3 rows * Adds WHERE code = '2' - 1 row returned SELECT * to WHERE code = '3' - 0 rows mixed SELECT * FROM Combine WHERE IntCode = 2 - Failure, error Msg msg 24, Level 16, state is 1, failed to convert

jQuery slider bar with progress bar-type fill -

I'm looking at implementing jQuery UI so that the slider bar fills one color with one color as Thank you for dragging the handle, like a progress bar I should have looked more closely I think what you want is a very easy way to do it. This is already built in the jQuery UI. The example given below is directly taken from jQuery's slider () document page which is linked to the top of the category Assets have been passed in the option by giving it the value of " min " and the slider must be filled with color to the left. Javascript: $ (slider ($ range: "min", value: 37, min: 1, maximum: 700, slide: function (event, UI) $ ("$ '+ Ui.value);}}); $ (" # zodiac "). Val (' $ '+ $ (" # slider-range-min "). Slider (" Value ");}); Markup:

wpf - How do I get input bindings which would trigger routed command? -

I have a menu that has a command (MyCommands.Indent) and two text fields, both an input binding My Commands Trigger. The hard part of the indent is that there are different gestures in the input binding and I would like to change these gestures to the menu system. So my question is: How do I get input binding, which will speed up this root command? The only way you are asking that to do special, To explore the tree, inputbinning is not a good idea for your routing commodity! But there may be a better way: Do not define shortcuts in routing commissions, using the Entrepreneurs property? In this way you will no longer need InputBindings ...

html - error handling for AJAX div -

I am using a very useful AJAX-based script that has many Twitter timings in a div for a sports team -Line is said to load. The good thing about the script is that it (1) combines multiple timelines in a chronological timeline and (2) caches XML to fast loading every time, however, the Twitter feed goes down, Which means that (i) caching fails, (ii) the content will not load (I stick to the loading message), and (iii) if the problem is too large, the entire page (not just the div) is a 404 error Breaks and throws Land. Therefore, I want to add error handling - specifically, pre-written message / div-content which will replace the message if the content does not load in a certain amount of time. I have found some good examples on this forum, how to handle timeouts, but with very easy work / script syntax, being a deal cut / paste / simulation programmer, let me optimize it Is having trouble. The main HTML looks like this: & lt; Ul id = 'AjaxTwits' & gt; & L

c++ - KeyboardProc returning TRUE causes performance drops -

I am developing an interface for a game for an add-on. I can not use the game API (with the fact that the code should be game-atheist) and I need to get keyboard input from the user, so I have a keyboard hook to process the user (WH_KEYBOARD ) Have decided to use input on completion of certain conditions. The problem is that when I can get input and handle the process correctly, when my hook returns to the system rather than giving things to the system many times (more than 800ms) seems to be expected Follow the analogy and it is not acceptable as it does not allow for a fluid typing experience. What I have to achieve, important press messages are being stopped to reach WndProc, so the question is: what can I do to achieve my goal without doing so much harm to the performance of the game that the result is unacceptable Will happen? Edit: due to specific requirements (a game which can cause problems with my code, using attiches, although it is not related to fraud) active wndpr

impersonation - Impersonating an Assembly -

मेरे पास 2 संकलित विधानसभाएं हैं विधानसभा एक संदर्भ विधानसभा बी। मैं विधानसभा बी में कुछ कोड बदलना चाहूंगा। मैं एक वर्ग पुस्तकालय बनाना चाहूंगा जो विधानसभा ए की आंखों में विधानसभा बी का प्रतिरूप करती है। मैं विधानसभा ए को काम जारी रखने के लिए चाहता हूं। मेरे नए प्रकार और नेमस्पेस के साथ जैसे ही कुछ नहीं हुआ। क्या मैं एक ही नाम और संस्करण संख्या के साथ नई विधानसभा बना सकता हूँ? क्या विधानसभा एक यह मानती है कि नई विधानसभा पुरानी विधानसभा बी की तरह ही है? मान लें कि मूल विधानसभा हस्ताक्षर नहीं किया गया है और पुराने असेंबली का इंटरफ़ेस नया है (हो सकता है) का एक सबसेट है, आपको ठीक होना चाहिए। यह मूल रूप से बी के सभी इंटर्नल को बदलने और संभवतः वर्जन नंबर को अपडेट किए बिना नये तरीके जोड़ना होगा।

Howto embed images in Actionscript 3 / Flex 3 the right way? -

I am creating a game where a lot of images are being used in Action Script / Flex 3 (Flash) When I went to the Designer stage, I would have to prepare a structural way of using embedded images (which is to be tampered with rotation, color, etc.). Unfortunately, after a little investigation, it seems that before you can use them, they have to be manually embedded. I currently set it up like this: Resource.as class file: package {public final category processing {[embed (source = "/ property / ship / 1.gif")] public static constant SHIPS_1: class; }} Therefore, for a ship I just want to do this: Insert an image into the correct folder with the correct name in the Resource.as file Make the same with the same name in the Resource.as file Although it is possible only by putting the file into a specified folder. To make things even worse, I still have to use it: var test: bitmap = new resource SHIPS_1 (); Should there be a better way to handle resources

How to remove a wpf element on a canvas by it's tag name? -

How can you remove a wpf element with some type of name? So like sth: // times some sort of usercontrol times is b = new bar (); Btig = "some iid"; TheCanvas.Children.Add (b); // Later can be removed without reference to the sheeting. Children In addition to the course, RemoveElementWithTag is not an existing method ... Just use some LINQ: var child = (In sheeting where children have" some id ".Equals (c.Tag) Select c). first (); TheCanvas.Children.Remove (child); He said, I am very skeptical that whatever you want to achieve, there is a cleaner, better way to achieve it.

stylesheet - How can you configure Rails to use blueprint-css instead of the default scaffolding css? -

What configurations do you need to make to create a rail project to configure blueprintus as a default stylesheet when Do you scaffold.css instead of scaffolding? I recommend writing my own generator, but if you want to change it by default You can do the following: 1 - For an app: uses freeze rail and stylesheet Scaffold Generator. Railway / Seller / Rail / Railway / lib / rails_generators / Generator / Component / Scaffold / Template / Style.css 2 - For All Apps: One in Your System Rail Installation Change the style.css file itself.

windows - DirectInput analogue joystick range -

I use DirectInput to handle input devices, I calculate the devices and elements on each device. Analogue sticks to my game pad, they report prices in range 0-65535. Is it always the case for the absolute axis of all letters? If not: there is no way to know the limit of DIVOEXADA :: dwData of a DX8 input element DIDFT_ABSAXIS? I can think that the only other option is to use some built-in internal calibration inside my app, and it is also true that 'true for the 80s. Can not get the boundary using GetProperty and fill in an appropriate DIPRPRNNG structure ? Use the DIPROP_RANGE GUID.

database - Are less tables better than more? -

I am implementing a small time tracking app and I can not decide between two database designs. First of all there are all log entries in the table, that is, Timelapse ------------- job_id: Long timestamp start: Boolean [or perhaps' other option should be kept in two tables, for 'stop' entries One of the 'start' entries for the other. Code> Startlag Stoplog ------------- ------------- job_id: Long job_id: long timestamp timestamp ID: long ID: long What are the pros and cons of each approach? Is there any other option? My specific application will be running on SQLite and I want to optimize it for speed - but I am interested in general arguments. I go to the first (single-table, type-differentiated) design, especially not because much There are all tables, but only because of database institutions are very similar and there will be equal obstacles and operations.

lisp - Clojure Variables and Looping -

Googling around, I found out that while are loops or frustrated using the variable . I have now implemented a very simple algorithm that reads the letters from an inputstream and parse accordingly: If input is 10: abcdefghej then it will be 10 < / Code> and then read 10 bites after the colon. I have lost a little bit this is how I can refactor it, it does not depend on the variable. (defn decode-string [input-stream indicator] (with-local-wares [length (str (four pointer)) delimiter (read input-stream) string (str "") counter 0] (Var () (var-set delimiter) (var-set delimiter) (var-set delimiter) (var-set delimiter) (Var-set delimiter) (Var-set length (New BigInteger (var) - Gate length)) (var-set length) (while (no? (Var-get string (Var-set string) ( Var-set string (str (var (get)) (var-get string))) (var-get string))) In addition, I understand that the only way to declare variable is using the local-word keyword is not ineffective to define all the