Posts

Showing posts from February, 2011

mocking - How to prevent a call to the data layer from a mocked object -

Text after "div class =" itemprop = "text"> I have a business objective that I am joking about testing for business (using the Moq). When I call the object, it calls another business object that goes to the data layer. I have the objective that I can set a return for calls within the written, but how can I prevent it from calling other objects and moving into the data layer? Is there a standard practice to stop this? Apologies if this is not clear enough; I will answer those questions as I have been asked! Thank you An example of a code here, simplified is just a bit: Business Test In the form of a slow mockPer New Fake (IYTDMarketShrink) Create items for use in 'DLL Kolling' test as new cConfiguration cConfig.Environment = Ent.MeijerEnvironmentEnum.DEVELOPMENT as new Clogger Production Deccoconfig. New system as demat test data. DataDetDetestadata RedXLSKema ("MarketSpreadDataAxAsd") Dstestadata .ReadXml ("MarketShrinkPerTestDa...

php - Add widgets in forms -

Hello, I want to know that it is possible to add a widget to the CRUD form: I want to select an entry in a list or If the entry is not in the list to enter text in the input. The user selects in the list or writes in the input, then the user selects with the radio button. Is this possible? If yes, how can I do this? I'm not completely sure if I understand your question correctly. If you want to add a field to your autogenerated form, then you can simply modify the "XxxxForm" class which resides in /lib/forms/XxxxForm.class.php. You can add a radio button by adding the following code: Configure Public Function () {parent: Configure (); $ This- & gt; Widgetskima ['myfield'] = new sfWidgetFormInputCheckbox (); $ This- & gt; Valid chem ['myfield'] = new sfValidatorBoolean (array ('required' => true)); } I hope it helps.

Obfuscating Python code? -

I'm looking for a way to hide my Python source code. print "Hello World!" How can I encode this example so that it is not human-readable? I have been asked to use Base 64 but I'm not sure how. itemprop = "text"> It is limited only, first level ambiguous resolution, but has built-in: byte-code in Python Is a compiler for: dragon-o-m py_compile & lt; Your program.py & gt; creates a .pyo file with a byte-code, and where the docstrings are removed, etc. You can rename .pyo with the .py extension, and python & lt; Your program.py & gt; runs as your program, but it does not have your source code. PS : If your program blur modules like this, you need to rename them with the .pyc suffix (I Not sure it will not break a day), or you can work with .pyo and run them with python -o ... .pyo ( Import should work). This will allow dragon to search your modules (otherwise, Python looks for the .py module).

Can one specify the fontType in android styles xml? -

I am using Jeff Shark following an example project "Sky" using styles in my layout. It's working quite well, however, I can not determine how to specify the font type-face using styles. Without it, I have to implement the font for every text view, editing view, etc., while I would like to apply it during my application and when. It seems that it is not possible with XML / styles ... You can specify if you are interesting.

c# - Third-party dll crashes program with no exception thrown -

I am using Visual Studio 2010, and coding in C # I have a third party DLL which I I am using the project. When I try to use a specific method, it appears that in random occasions, the program only crashes, in which no exception is thrown. Session only ends, is there any way I can see what is happening? The way in which stack has been placed for a thread in Windows (almost, all this There is not a precise description of something that gives you, just not enough to give you enough, and in the way the CLR stacks handle the pages, it is somewhat different from how unmanaged code handles.) At the top of the stack are all the committed pages you are using. Then there is a "guard page" - if you press that page the guard page becomes a new page stack, and the following page becomes a new guard page, however, the final page of the stack It's special. If you hit it once, you get stack overflow exception. If you press twice , then the process is terminated immediately...

SQL Server 2008 Cannot find the object -

I have created several tables and stored procedures, an entry that is assigned to a role that is allowed to execute is. For 2 of the stored procedures, everything is working properly. But, for 2 of them, I get the following error: Message 15151, Level 16, State 1, Process XX, Line 15 Object can not get 'XX' because it Is not in existence or you do not have permission. I have checked that the process is present and permission for the role is executed on it. If I enter the database with login, then I can see the process and execute it, but I get the error above in the results tab in the results tab of the query window and in the message tab in the query window in the results window. I'm looking for it for a few days and I can not find anywhere To check some things First of all, if you have many schemas in your database, then it is a good idea to make sure that you use Schema when calling them. For example, if you have an account name If you have an account w...

Passing Form Objects to VBA Subs/Functions in MS-Access -

I have a little multi-option application that has 4 green check marks and 4 red x which is the correct answer or wrong answer Will come on the basis. They are not all visible at the beginning and are in specific places on the form so that when they become visible they will be like a green check mark, if they are right next to their answer. And a red I decided to perform a sub-process which accepts three arguments, their answer ("A", "B", "C" or "D"), a green image To make reference visible and red image reference to see. Unfortunately, I can not explain these references at all. Intellisense knows what I'm referring to. The personal sub-BTNA_link ("A", IMG Greeneye, IMGRADA) 'Referring Images from Forms' End Sub-Private Sub Questions- Answered (String as the answer string, image of IMG Greens in the form, IMGR as the image ...) Another (probably related) problem is that I can not specify images in local variables su...

visual studio 2010 - adding/removing a file in VS2010 causes "WebDev.WebServer20.exe has stopped working" error -

This is making us crazy ... in VS-2010, MVC 2 projects, not all projects .... both A project was upgraded from 2008 / MVC 1 and on a new project created within 2010 / MVC2, we have the following behaviors: 1) Develop normally. 2) Hit F5 or CTRL-F5 to open a browser 3) Great Works! 4) Add a CSS file (or JS file or any file, or delete any file) in the project 5) Instant communication pops up "WebDev. WebServer20.exe stopped working " You have to close the program, and" F5 "is correct again and with the whole world ... We Then modify an existing css file. no problem. But adding or removing one, an instantaneous accident It seems that the development webserver project file is "locked on" and when someone detects a change, it dies. The event viewer is very worthless, the following is logged: The defective application is WebDev.WebServer20.exe, version 10.0.30319.1, time stamp 0x4ba204ca, faulty module Kernel32.dll, version 6.0. 6001.1821...

c++ - OpenGL: How to calculate the angle where my mouse is pointing at in the 3d space? -

I just need to know which angle (x, y, z vector) is pointing my cursor so I can kill any particle in the direction. I I can not use depth tests, so the typical picking method is not an option. Is it possible with pure mathematics only? If I know View Port Aspect Ratio and Perspective etc? Edit: I need to get coordinated with the blank view. Completely empty, not exactly drawing!

web services - Is it approperiate to request users to look for own hosting resources? -

I'm wondering if it's okay to ask users to use their hosting resources for images, videos, etc. I think the same for stack overflow images is correct? Another option I see is integration with such services. Screenser for YouTube, YouTube Slideshows for slideshows I'm thinking about some well-known people Twitpic, flickr, imageshack large amount of code / text for snippers, pastebins 1 The main reason is that I am using such external hosts Thinking about using so that I am in large quantity host information. It is also that I do not have to manage such resources. 1 concern is for services like Screensaver, twitpic, Flickr etc. where hosted resources are "related" for posters Only in services which are "anonymous" Posting is like posting, would it be better to have pastebins for such integration? You can also view in different content delivery networks that host these types of files Are experts in doing They also see the path...

java - How can I notify another application that my application has failed? -

In my application, I start an activity which is in another application (Eclipse Project) in the following manner: / P> intent = new intent (); Intent.setAction (game.getLaunch ()); Intent.addFlags (Intent.FLAG_ACTIVITY_SINGLE_TOP); StartActivityForResult (intent, game.getId ()); If this second application is finished, I call: MySecondApplication.this.setResult (getGameId ()); MySecondApplication.this.finish (); This works fine if the second application ends normally, but I want to capture any unpleasant exception in the second application and first inform the application that the second application fails has gone. So I tried to use UncaughtExceptionHandler in my other application: thread.set DefaultAdvancedAxception handler (handler); This method works fine @ override public zero uncaughtException (Thread Thread, Throttle Ex) {System.out.println ("In Exception My second application "); } However, I can not do anything else, instead of creating a ...

coldfusion - Strange Form problem: cffile not working -

Hmmm ... strange problems ... I am creating a form of course uploading Actually, one searches for a course and selects the button next to the course, which says "upload silebi". After this, a window will prompt them for the file. I passed the information on this page to enter the URL in the database etc. & Lt; Input name = "upload" type = "button" value = "upload course" id = "upload" onclick = "window.open ('upload_syllabi.cfm course = # syllabus # & semester = # semester # & amp; Referee = # refnum # ',' popup ',' width = 350, height = 170, scrollbar = no, resizable = no, toolbar = no, directory = no, location = no, menubar = no, not position = no , Left = 0, top = 0 ') "/> It is on this page: & lt; Cfset session.semester = # url.semest # & gt; & Lt; Cfset session.course = # url.course # & gt; & Lt; Cfset session.ref = # url.ref # & gt; & Lt; N...

c# - Best practice? open and close multi connections, or one large open connection for ado.net -

I am using ADO.Net for some database connectivity and I was just hoping that I should use it correctly Was doing from. I am opening and closing multiple connections for each stored procedure. Or would I just wrap it in an open connection (less resources on the database)? Thank you, and if anything is weird or something that I'm doing better, thank me! Example: But I have 6 of them like ... using (SqlConnection conn = new SqlConnection (ConnectionString )) {SqlCommand cmd = new SqlCommand ("spSelect AllTrip", Kon); Cmd.CommandType = CommandType.StoredProcedure; Conn.Open (); DdlTripTypeA.DataSource = cmd.ExecuteReader (); DdlTripTypeA.DataTextField = "TripType"; DdlTripTypeA.DataValueField = "TripTypeAID"; DdlTripTypeA.DataBind (); } (SqlConnection conn = New SqlConnection (connection string)) {SqlCommand cmd = new SqlCommand ("spSelect AllTripB", conn); Cmd.CommandType = CommandType.StoredProcedure; Conn.Open (); DdlTripTypeB.DataS...

jquery - Expanding jqgrid subgrid -

I have a jqgrid that has subgroup, how can I expand a sub-grid without clicking on the plus sign Am I I came to $ ("# jqgrid_id"). Expanded radarrow (line ID); But unsure which rowId to use to extend the subgood. Thanks Use $ ("# jqgrid_id") . Extend subgroups (Row IID); in the grid's on-start event. Something like this: jQuery ("# ​​jqgrid_id"). JqGrid ({... onSelectRow: function (rowId) {$ ("# Jqgrid_id"). Expand subgroups (rowID);}, ...}); Edited: grid complete event jQuery ("# ​​jqgrid_id"). JqGrid ({... gridComplete: function () {var rowIds = $ ("# jqgrid_id"). GetDataIDs (); $ .each (rows, function (index, line id) {$ ("# jqgrid_id"). Make the GridRao (line ID);});},.)});

wpf - xaml date format string ignored -

My label is displaying '7/27/2010' instead of '27 July 2010 '. Can anyone please tell me why my markup code has been ignored? Ribbon label content = "{binding source = {x: static system: date time} today, string format = '{} {0: mmmm d, yyyy}'}" & lt; Ribbon label & gt; & Lt; TextBlock Text = "{Binding Source = {x: Static System: DateTime} Today, string format = '{} {0: MMMM d, yyyy}'}" /> & Lt; / RibbonLabel & gt; You can also define datatyme for datetime and then you can only set up the content nowadays: & lt; window. Resources & gt; & Lt; DataTemplate DataType = "{x: type: date time}" & gt; & Lt; Text block text = "{binding string format = '{} {0: MMMM d, yyyy}'}" /> & Lt; / DataTemplate & gt; & Lt; /Window.Resources> ... & lt; Ribbon label content = "{binding source = {x: static system: datetime.}}" & Gt; Ed...

combobox - c# loop comparisons -

I do a lot using Cambodox. For example, I often loop through them to find matching based on the selected value ... while (cmbCompany.SelectedValue.ToString ()! = B1ID) { CmbCompany.SelectedIndex ++; } a) Do I have some very fast options! B) If my comparison was against an integer, then there is a benefit in declaring the string and that is equal to integer. Ostring (), or if i just use B1ID.ToString () in my example (in my example above) Is compiler customizable for me? C) or string comparison is so slow that I will be better parsing (or casting) the value selected for an integer? cmbCompany.SelectedValue = B1ID should do the trick - is not it? is?

actionscript 3 - try statement tripping debugger (as3) -

Trying a try-holding sequence that works fine in the release version, but running errors in debugger can be performed. Obviously there are errors, this is the reason why I am trying to use this stuff inside, but I'm thinking that by any means I can get the debugger to stop stopping. Although I do not even remember the error message, the app is no longer executed properly. I have found a this [$ val] that I need a blank return, there is no such variable in the class. Try {return this [$ val] + ""; } Hold (error: ArgumentError) {// nothing} return ""; Again, it works, but it causes errors in debugger Any ideas for alternative? I suppose you hold a logic error in place of the real problem of handling a blank object Are + string error Try using:; Try {return this [$ val]; } Hold (error: error) {// nothing} return "";

nvarchar - A ideal data type for long utf8 strings in mysql -

Is it true that VARCHAR type mysql only suppory 255 character data length? If it is true, what type of data type for UTF8 strings is useful for long texts? I am using the utf8_persian_ci datatype. Note that there is a problem with the utf8_persian_ci in the text datatype. VARCHAR in all current versions of MySQL is 65535. In the earlier versions of MySQL, the maximum length of , VARCHAR was 255, but this ancient history (where Ancient is before March 2005). The CHAR data type is still a limit of 255 characters.

ssis - SQL Server Integration Services - Incremental data load hash comparison -

Using SQL Server Integration Services (SSIS) to load mounting data, a hash of per-imported and existing row Compare information. I am using this: To create a SHA512 hash to compare when the data hash hash and the current hash is conditional split function (expression is NEW_HASH == OLD_HASH) When I try to compare the data import hash and compare, I get the following error when entering the expression: The data type "DT_BYTES" can not be used with the binary operator "= = "One or both kinds of endands for operation Rthit not. To perform this operation, one or both of the operators need to be explicitly cast with a cast operator. An equivalence error has occurred before attempting to cut each string one string (DT_WSTR, 64). Is there a better way to do this, or do I miss some small detail? thanks Have you tried to increase the length of 64? I believe that DT_BYTES is valid for 8000 characters. I have legal cast destinations for the following DT_...

jQuery/JavaScript: Avoid unique ID's for each row in a table? -

I'm not sure I'm doing this correctly. I have a table that I fill with rows that represent a song in every playlist. Now, I assign a unique ID per line, and also assign some jQuery.data () to each ID. html + = '\ & lt; Tr id = "track-'+ i +' class =" track-line "& gt; \ & Lt; Td square = "track" & gt; & Lt; A = id = "play - '+ i +' class =" game "& gt; & lt; / a & gt; & lt; an id =" play2- '+ i + "& gt;' + Song.song_track + '& Lt; span class = "mix-style" & gt; + Song_mix + '& lt; / span & gt; & lt; / a & gt; & lt; / td & gt; \ & lt; td class = "artist" & gt;' Song.song_artist + '& lt ; / Td> \ & lt; td class = "favorite-holder"> an id = "favorite- '+ +" class = "favorite"> So you can see, each line has a track , Such as track...

Jquery ajax with facebook social graph json -

I am trying to create a feed using jquery AJAX and using the Jason method, data from Facebook's social graph I am requesting. Can anyone tell me why he is not doing the job? I have tried $ GetJSON (); No luck! This is the code that I have just tested and still no luck: $ (document) .ready (function () {var url = " Http://graph.facebook.com/prettyklicks/feed?limit=3&callback=?pk "; $ .getJSON (url, function (jsn) {var html =" "; $ EEC (JasonAdata, Function (I, FB) {html + = " " + fb.message + " ";}); Html + = "& lt; / Ul & gt; "$$ ('facebookfeed'). Html (html);});}); You are close, just remove 'pk' from json url, give jquery for you Provide the name of the callback: $ (document) .ready (function () {var url = "http://graph.facebook.com/prettyklicks/feed?limit= 3 & amp; ; Callback =? "; $ .getJSON (url, function (jsn) {var html =" & lt; ul & gt; "; $ .E...

javascript - Automatically scroll down with Jquery? -

I have a modal box with defined height. There is an apparion box inside this box which is spread when a user links Clicks. The height of the agnitry box, when it is toggled, then the model is higher than the height of the box and thus the scrollbar is visible. I want to automatically scroll the bars to my lowest point to display new content in the Acerian box. The accordian box looks like this: & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("BTN-Slide"). Click (function () {$ ("# panel") Slide Toggle ("Slow"); $ (this) .toggleClass (" Active "); return false;});}); & Lt; / Script & gt; Is there any way to integrate this scroll function into existing functions? Is there an existing jquery function for this type of behavior? If you do not want to trust, you can change any plugin or real URL You can use ScrollPop, Check Cheers.

Can I rebind EOF in bash/Readline? -

I want to turn off the CD from sending eofs in Bash, and want to set it on the other key. This idea is to put EOD in my code in my .bashrc , but to reboot it in my .bash_profile so that I can kill someone by repeatedly cd Also be taken out of the subsecals and kept in M, but leave me in my login shell. Is this possible? C-D is being forced to removed-four , which displays the current text on the current line. If there is no text on the current line, then it only sends EOF, say, CF delete-variable applies the action, but not sending the EOF. Does Redline provide a way to rebound the EOF command? What you're talking about is stty . You do not force any other keystrokes, or you do not get a CD or anything, whether you are in the login shell or non login shell or that ? / html>

Add rows to jQuery table after the the present row -

I wanted to know how I would like to know about adding rows after a particular line in my dataset. I am using jQuery datatable plug-in for this purpose. I can pass table row index. That I need to insert the line in my Javascript function, such as: function addNewContact (rCount) {..} and my HTML code Is: table id = "example tbl" tr. TD .... / TD (data of the first column) TD .... / TD (Data of the second column) ... TD input type = "button" id = "AddNewContact & lt;% = rCount%>" name = "addNewContact_Details" value = "+" onclick = "javascript: addNewContact (& lt;% = RCount%>);" / td / tr / Table For the newly added line, I want the first 3 columns to be blank and the other column (5) to include the text box. Below your table, looks like this: & lt ; Table id = "example tbl" & gt; & Lt; TR & gt; & Lt; TD & gt; .... & lt; / TD & gt; & Lt;...

c# - Can you programmatically interact with Component-Based Servicing (TrustedInstaller)? -

I am trying to learn how to programmatically interact with program-based servicing (CBS) Originally Trusted Installer and Other Services For the packages which have been set up, with the aim of being able to interrogate CBS for them, and any other information they can get on the installed packages. Here's one. Basically using C / C ++ / C # (not pick) I would like to interact with this through an API. This link is related to the API that I could get and it is not too much, but here's another one which gives some details but nothing really about the API I can use to communicate with it. This is under a package manager, in order to set up a CBS based package, you can negotiate through the command line. The best quote from that final link is: "Different APIs ( those which are not publicly available ) to serve CSB operating system components are available for their client installation . " All this can say, but I am not ready to give up at home either at least...

c# - Currency CultureInfo -

I need to display a particular currency in a culture, we are currently only supporting English-speaking counters , But it can spread to other countries. We are implementing it quickly so I need a way to display a universal currency format for time as long as I can implement a specific culture. Does anyone know the best way to do this? For example, "N-GB" which is the "Thread" for "Welsh - Great Brittany", English-Great Britain "or" Sai-GB "(the first 2 letters represent the second 2 languages ​​of the country) for a culture infographic feature attached. So when you are calling double amount = 2.00; Zodiac. Toasting ("C") // Without a culture argument you are actually passing culture information Therefore, to add a specific culture to a string, you will need a new supply Have to do CultureInfo and add it as a second argument to ToString: CultureInfo ci = new CultureInfo ("en-GB"); Zodiac. Toasting (...

Building a dynamic tree with session information in Django (template question) -

So I have expansion / falling trees which I keep track of session data I want to be able to render the tree in Zago based on session data. I am saving the state like this: In my template for rendering, I am looping through items and wanting for each item Set the visibility of the object for example: %} for items in {%} and is the place where I am confused Can I specify: request .session.treedata. (Item.id) or request.session.treedata. (Forloop.counter) Do I have to pre-process the item and state in a new reference variable? Thanks Assume that items is a model, and item_id is item.id , you should be able to: {item items %%} in & lt; Div {% if request.session.treed.titem.id%} style = "display: none" {% endif%} & gt; The contents of the subtree & lt; / Div & gt; {% Endfor%} You can read about how the dynamo template is seeing variables here:

Tools/Techniques for Debugging Memory Leaks/Usage Bugs in PHP -

"itemprop =" text "> I have found a command line script that runs an array () one of the files Using a filename as an argument to call a method on loop, and a helper object. PHP's memory_get_usage reports a large number > 53294264 57019624 61374624 65699176 70230600 75157152 79900392 84630472 89359264 94300016 100031176 105202448 110360808 115777528 121146976 126784824 132366952 as long as I PHP fatal error: allowing end memory size of 134217728 bytes It is clear that some memory is leaking, or keeps adding to some type of global / stable storage area. What is the best way to debug this type of error in PHP? Are there normal situations where it is inadvertently PHP? Does Xdebug have some magic options that can help me recognize this? Other equipment? The best I'm running, I'm following a series of performance and by calling the codebase to memory_get_usage (), as long as I do not solve the exact problem, but it is a tedious and ...

javascript - jQuery.proxy() usage -

I was reading about API, it looks promising but I was wondering what is the best use of this situation . When there is a function in which is this then can someone illuminate me? This is just a built-in example of the situation where it can be useful to assume that a person is an object in which the name of the property is also linked to a text input element , And whenever there is a change in the input value, the name also updates in this person's object. function person (l) {this.name = ''; $ (L) .change (function) {// person wants to update this name of the object, but this is not because it refers to element // here that triggered the change event .}); } A solution that we use often is to store this reference in a variable and use it inside the callback function: function Person l) {this.name = ''; Var self = this; // store reference for this $ (L) .change (function (event) {self.name = this.value; // captures itself in a closure}); } Al...

internet explorer - jQuery submit handler for form with single input field doesn't trigger on IE -

I have an input element but no submit button. I use jQuery to attach an onsmitt handler: $ ('# tickerbox-form'). Submit (function (ev) {warning ('submit'); // I have other code actually does something ... return false;}); I need input (anonymous function) handler when the Enter button is pressed in the input field. It works for me on Safari, but not on IE What am i doing BTW: Works on entering IE, and invites a post request on the URL for the specified "Action" parameter of the form. > $ ('# tickerbox-form'). Keypress (function (e) {if (ehihi == 13) {$ (this). Submit ();}});

c# - connection problem -

इस स्क्रिप्ट को कैसे लिखना यदि (con.open == true); {Totalv.ExecuteNonQuery (); } Else {con.Open (); totalv.ExecuteNonQuery (); } ठीक है, मुख्य समस्या के अंत में अर्द्ध-बृहदान्त्र के कारण है आपका यदि : यदि (con.Open == सच); यह मूल रूप से if स्टेटमेंट को समाप्त कर रहा है जैसा कि आपके पास इसके बाद एक ब्लॉक मिला है ... जिसका अर्थ है else कुछ भी नहीं है उल्लेख करने के लिए। तो सबसे कम परिवर्तन होगा: यदि (con.Open == सच) {totalv.ExecuteNonQuery (); } Else {con.Open (); totalv.ExecuteNonQuery (); } हालांकि, यह अधिक आसानी से लिखा गया है: अगर (! Con.Open) {con.Open (); } Totalv.ExecuteNotQuery (); अगला समस्या - आप एक संपत्ति और विधि दोनों के रूप में ओपन का उपयोग करने का प्रयास कर रहे हैं मुझे संदेह है कि आप ऐसा कुछ चाहते हैं: यदि (con.State == ConnectionState.Closed) {con.Open (); } Totalv.ExecuteNotQuery (); हालांकि, मैं प्राणा के साथ सहमत हूं कि जब भी आपको इसकी ज़रूरत होती है, तब कनेक्शन को खोलने और बंद करने के लिए बेहतर होगा, और भौतिक नेटवर्क कनेक्शन क...

java - Dynamic Jar loading is confusing me -

Conceptually, what am I doing to load a new jar? URLClassloader Is The Only Option? How do I make those URLs to point to a subdirectory with more jar? If someone is feeling over-generous, then some display code will be helpful in performing the following tasks (let's say "jars / ezar" say "myClass" in which we want to instantiate): Load some jars from a sub-directory Return that to a particular class Instant that class Conceptually, what am I doing when I am loading a new jar You have a new jar Do not load Sector Instead, you are defining a class loader will load code and other resources from JR file on demand. Is URLClassloader the only option? In theory, you can implement your subclass of ClassLoader , but this is not necessary for what you are trying to do. How do I create URLs that point to more jar subdirectories. This is a small part of your problem which I think. The structure interprets the argument as url [] ...

problem in flv video streaming in sharepoint 2010 -

I am using a flow player inside user control in SharePoint 2010 This user control test But when I put it in a SharePoint project in a Web Part The player appears empty and the film does not work * IIS7 Any thoughts please Problem Problems at all: D I just do not forget to put the correct link to the .swf playe file

svn - How can I manage this CodeIgniter/PHP + Subversion workflow? -

Sorry if this is really a simple question or something as you can tell, I'm Subversion (but hey, we all I have to start somewhere, okay?) I am a complete newbie. So I've set up, subversion using + to my webpad, now I'm just managing it manually and manually. So I have successfully installed it and in my local folder, with my codeigner installation, I can see the branch / trunk / command folders. Now I am told that the files you are working in all your trunk folders, however, I still want to test the site locally with my MAMP installation. Does this mean that I need to copy my whole site to the trunk folder, by changing the root URL of MAMP to mysitefolder / trunk by running it - thus making the trunk automatically any change Save? In this way, when I need to push changes to the FTP server - the live changes that the user will use for the actual webapp - I manually file / em trunk This kills me as an inefficient workflow. Am I going to go wrong about this, o...

c# - Is it possible to deploy Silverlight Apps on Android? -

Hello friends, I just want to ask that it is possible to apply the Silverlight application to Android . / P> No, there is nothing on this platform, which allows you to run Silverlight applications . Will allow the upcoming platforms, Silverlight and XNA applications to be run. My expectations are already coming, which will bring Android to C # and then be ported later.

jquery - Stop the jcarousel Lite animation on mouseover? -

When I'm hovering over a particular item, I'm trying to stop the animation of my jackassold item. I am scrolling non-image content and I give a chance to read the scrolled text. How to do it? This documentation has not been mentioned too. Try this revised jquery light script

iphone - UIButton setText programmatically -

I have about 10 UIButtons on the xib file and want to set program program You can try to assign a separate tag for every button in the interface builder. (or if you need that same tag) and then use the following code [myview view details: I]; [MyButton setTitle: @ "My Text" forState: UIControlStateNormal]; }

Python fork-exec problem, child process output goes to same place as parent process -

निम्न कोड को निम्न के साथ कोशिश करें: python fork.py और: अजगर कांटा। Py 1 यह देखने के लिए कि यह क्या करता है। #! / Usr / bin / env python2 import os import sys child_exit_status = 0 यदि len (sys.argv) & gt; 1: child_exit_status = int (sys.argv [1]) pid = os.fork () अगर pid == 0: प्रिंट "यह बच्चा है" अगर child_exit_status == 0: os.execl ('/ usr / bin / whoami ') अन्य: os._exit (child_exit_status) अन्य: प्रिंट "यह माता-पिता है" (child_pid, child_status) = os.wait () प्रिंट "हमारे बच्चे% s स्थिति% s से बाहर निकल"% (child_pid, child_status) प्रश्न: बाल प्रक्रिया 'प्रिंट' कैसे कर सकती है और यह अभी भी माता-पिता की प्रक्रिया के रूप में उसी स्थान पर आती है? (उबंटू 10.04 पर पायथन 2.6 का उपयोग कर रहा हूं ) लिनक्स के अंतर्गत, बच्चे की प्रक्रिया को विरासत में मिली (लगभग) अभिभावक से सब कुछ, फाइल विवरणकर्ताओं सहित आपके मामले में, फ़ाइल विवरणक 1 (stdout) और फ़ाइल डिस्क्रिप्टर 2 (स्टेडरआर) माता-पिता के रूप में एक ही फाइल के लिए खुल...

image - php script to convert .png to .icns for mac os -

I'm looking for a php script which Converts a .png file to a .csns file for Mac Thank you. Apparently the image does not support ICNS outside the box (I'm sure I used it before But maybe with some additional libraries?) However, just a bit of Linux has also tested. There is no PHP-binding, so you will need to issue a system call (horror) Take care of those variables, depending on which you can not fully trust, in the system call :)

svn - Can/Should I run svnadmin pack on a mirrored repository -

We are mirroring a 1.6 repo using svnsync. We run svnadmin packs on the owner repo once in a week, but I am wondering if we can run it on a mirrored repository or else. What I understand about SVN Internal, changes the svnadmin pack in the file system, which does not mirror (which I understand). Can anyone confirm if I can run the svnadmin pack in the mirror? It has been found that it was okay to run on reflected repo.

Zoom in & out by javaScript -

I want to create the same functionality of "Ctrl +"; "Ctrl -" shortcuts. How can I do this using Javascript? If Javascript is not valid then what is another option? In advance thank you I do not think you can zoom level of browser through javascript But you can simulate zoom behavior by changing the font size using javascript and CSS

objective c - iPhone MVC app: Where should I put the model? -

I am very new to the development of the iPhone. I am creating an app that has multiple views controllers There is only one model. I need to share the model among all the controllers; So I have modeled the app within the App Delegate header file: @interface MyAppDelegate (... cutting ...) @ property (non-constructive, retaining) calcomold * model; and then synthesized accordingly. Inside a controller, I have tried to refer to such models: CalcModel * model = [[[UIApplication shared application] representative] Model]; The problem is that the compiler is not found in the '-model' protocol That's because the representative field gives the type of protocol, not the solid MyAppDelegate type. .. then what should I put in [[UIApplication sharedApplication] representative] MyAppDelegate, so can I use model property? if so, how? Or is this all wrong? In more detail, how do you view a model between controllers? Many thanks for your help Yes, just inse...

drupal - Fivestar stopped working -

My Favstar rating has stopped working I use ideas to display both the average user rating and user rating I am doing The strange thing is that my old ideas that evaluate and user rating are active I have made new ideas and user ratings are not interactive. It happened sometime ago when I updated the core to 6.16 and some other modules. Now I am at 6.17 Was anyone on this issue? I hope that you have backed up your site before updating the code update before updating Tried to do? How about if you roll both code updates and data back, then start upgrading a module from time to time, then considering each update when the audience stops working? If the new code is the problem, then it should be fixed.

Which non-ruby projects use Rake? -

I have recently started using rakes for my personal projects, mainly because I am no longer I like to avoid learning custom and language only to build However, on the basis of a quick Google, there are no non-Ruby projects using the rake. And surely no one with any remembrance value Am I right? Are any non-Ruby projects using rakes? And why is the back behind? EDIT: Why is there no big open source project to use Rack, since being backward? For example, what is the lack of rack versus the CMK? I run an open source project called Albacore: hosted Github: This project provides .NET developers with a suite of rack works to build their NATT system. More than 5,00,000 downloads from Rubygems.org are from Albacore. I personally know about many multinational corporations who are using Rake and Albacore (a very large financial institution), as well as many large-scale enterprises, major tight project management At least one of the products, and many of my friends and of cours...

objective c - Core Data: Error if deleting unsaved object -

I have some problems with core data projects I have NSArrayController with NSManagedObjects, and +/- Button if the file is saved , I remove an object in the line, it works perfectly, but if I add a new object, and remove it immediately (without changing any default value), I Receives an error: Critical Application Error Core da An exception was caught during the changeover process: Mathematical function unknown number for expression or zero. Anonymous number type or zero arithmetic function expression was passed with user infos (null). This is the only case if I cancels adding new objects. What can anyone do to give me an indicator? I think there is something to do with it that there is only one temporary id in it, but I do not know how to solve it. I found the problem and the solution I would describe it for the record. The problem was that the object in its init function added a supervisor to itself. This is probably how the error was triggered if I remove the obje...

c# - Load Textboxes from array -

There are several lines of my form boxes. The first line is called txtL000 by txtL009, the second line is txtL100 via txtL109, and so on. Under each of these lines, txtT009 is another line of naming boxes txtT000, etc. The user opens the form, I want to load the labeled txtL in an array ... string, what is the name in the corresponding text box Depends on txtT..0. For example, if txtT000 has "ground" in it, I want to load txtL000 through txtL009 with wire from array arrLand. If there is "point" in it, I want to load the txtL000 from txtL009, in which the array will be the wire from the arrpoint. What is the most effective way to do this? After The easiest way I can think of is to use a dictionary to store arrays For: // If you want, use whatever dictionary you want instead of 'list'. & Lt; String, list & gt; Erase = new dictionary & lt; String, list & gt; (); Private Zero OnTextChanged (object source, EventArgs e) {if (source == t...

html - Default :target with CSS -

मेरे पास यह सीएसएस है: & lt; style type = "text / css" & gt ; .tab {display: none; } .tab: लक्ष्य {प्रदर्शन: ब्लॉक; } & Lt; / style & gt; और यह HTML: & lt; div class = "tab_container" & gt; & Lt; ul class = "tabs" & gt; & Lt; li & gt; & lt; a href = "# अपडेट-सूची" & gt; सूची & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "# अपडेट-मैप" & gt; मानचित्र & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; ul class = "टैब सूची" id = "अपडेट-सूची" & gt; हे .. नमस्ते! & Lt; / ul & gt; & Lt; div वर्ग = "टैब मैप" id = "अपडेट-मैप" & gt; & lt; / div & gt; & Lt; / div & gt; हालांकि, यदि कोई लक्ष्य (URL में # ) निर्दिष्ट नहीं है और कोई भी टैब अभी तक क्लिक नहीं किया गया है, तो मेरा पृष्ठ रिक्त है मैं डिफ़ॉल्ट रूप से ul # update-list ...

html - Styling part of the OPTION text -

I have a SELECT list with many option elements Here's my inexperienced approach to styling part of the option text: & lt; Select name = "color" & gt; & Lt; Option value = "0" & ​​gt; Red & lt; Span style = "font-weight: bold;" & Gt; Slow & lt; / Span & gt; & Lt; / Options & gt; & Lt; Option value = "1" & gt; Blue & lieutenant; Duration style = "font-weight: bold;" & Gt; Slow & lt; / Span & gt; & Lt; / Options & gt; & Lt; Option value = "2" & gt; Green & lt; Span style = "font-weight: bold;" & Gt; Slow & lt; / Span & gt; & Lt; / Options & gt; & Lt; / Select & gt; This does not work: the browser does not like a span element inside the element element whether the style of part of the text styling Is there any other way to do it? no The option s is styled in the original form of the plat...

multithreading - Which Java collection should I use to implement a thread-safe cache? -

I'm looking to apply a simple cache without doing a lot of work (naturally). It seems that one of the standard Java archives should be sufficient, with a little extra work. Specifically, I am storing responses from a server, and the keys can be either a hash code generated from either the URL string or the URL. I originally thought I was a weak Hasham , but it seems that the method forces me to manage those objects that I want to keep , And I do not manage strong references to any object, should I try the ConcurrentHashMap instead of the SoftReference values? Or will they be very aggressively cleansed? Now I'm looking at the LinkedHashMap class with some modifications it looks promising for an MRU cache. Any other suggestions? Whatever collection I use should I sort out the LRU values ​​manually, or can I rely on the bias against retrieving access items recently? FYI, I am developing on Android, so I do not want to import any third party libraries. I am worki...

java - documentation - is it a template? -

I think many sites are using the same documentation: More Is this a template I can download somewhere? This is very clear! Opspot (author of Prettyface) and hibernate use the docbook to publish both documents. The entire site (again) is generated using Maven. The styles applied to documents (which may contain CSS styles, fonts, and images) are custom made, but are available for at least one hibernate. NB : You must check the license before using files in your project.

How does getting the application reference from a service work in Android? -

I have a local service with my application running I have application is a square from the square. When a local service is created, it becomes and getApplication by using application . Can the app be terminated while my service is still running and what if this happens? getApplication returns empty? Regards Heinrich Is my service still running AP can be terminated not

C++ can't create vector -

It is weird that I made a vector right in a square but it has not been made in any other category. She has a representation to me: main.h #include & lt; Windows.h & gt; # Include & lt; Shellpi h & gt; # Include & lt; Vector & gt; #include & lt; String & gt; # Include & lt; Iostream & gt; # Included "Taco H" class MyClass {public: int nothingint; Of vector & lt; Int & gt; My order; }; Taco H #include & lt; Vector & gt; Class other class {public: vector & lt; Int & gt; OtherOrder; }; And I compile errors regarding vector announcement in Taco: error C2143: syntax error: missing ';' '& Lt;' Error before C4430: Missing type specifier - int assumed note: C ++ does not support the default-int error C2238: unexpected token predecessor ';' What am I missing here? I can end the second vector declaration and compile it properly. Try: std :: vector & lt;...

regex - Positionally matching substrings in Python -

How do you parse ['i386', 'x86_64'] like a string Can '- Foo 23-Bar-APP PPC -arch i386 -sirrut / -fno-strict-aliasing -fPIC' ? & gt; & Gt; & Gt; My_arch_parse_function ('- foo 23-bar -arch i386 -arch x86_64 -isysroot / -fno-strict-aliasing -fPIC') & gt; & Gt; & Gt; ['I386', 'x86_64'] whether it can be done using regex, or just using modules such as pipercing, or manually dividing and repeating on the partition can be done? Perception: -arch VAL is grouped together. Rex: (? & Lt; = - arch) [^] + gt; & Gt; Again Efandol (R "(? & Lt; = - Arch) ([^] +)", R "'- Afu 23-Bar-PHP-PP-Arc i386 -Sisraot -Funo-Strict-Eliasing -FPIC') [ 'PPC', 'I 386'] Unmatched free space & gt; & gt; Foo = re.compile (r) "(^? & Lt; = - arch) \ s [[^ \ s] +")> gt;> gt; [Repeat AFFOULD (FU, R) '' - AFU-23-Bar-PHP-arch ION [Str.s...

java - Issue with JPopupMenu in a JTree -

I have this problem. In a custom JTree I used a JPP menu to display a different JNNEWITUM according to the selected node using a mouseover. Done The JPP menu is displayed when the mouse right button is clicked. The problem is that if I do not select an item from the popup menu, but instead I select the second node in the tree, either with the right or left button, this event is never caught by the tree MouseListener Can anyone point me in the right direction to solve it? If an example is available, then I would appreciate it. I would like to select TreeSelectionListener to change the selected node as opposed to the MouseListener And repopulating JPopupMenu at that point, but this is your choice. I'm trying to emulate my example, I was thinking, what methods did you override in your mouse listener? In this simple example, the listener seems to receive events whether or not the popup menu is visible Edit -. See my comment below, but do not select a node right-click default...

android - How to intercept a hard key pressed in a service? -

Was a hard key pressed by using a service to launch any activity? In other words: Is it possible to handle the main agencies in the service? Nobody is listening to the key events of the hardware keys than currently active application The normal way of Only camera button events can be detected through its broadcast intent . When the CAMERA button is pressed and it does not stop, ACTION_CAMERA_BUTTON is broadcasting foreground activity: This means that you can only locate the press if the application in the foreground The key is not controlling the press.

winforms - Modifying ComboBox SelectedIndex Without Triggering Event in C# -

मेरे सी # एप्लिकेशन में एक comboBox एक चयनित इंडेक्स परिवर्तित ईवेंट के साथ है आम तौर पर, मुझे यह घटना आग लगाना है, लेकिन कभी-कभी मुझे आग लगने की घटना की आवश्यकता नहीं है। मेरा कॉम्बो बॉक्स एक एमआरयू फ़ाइल सूची है। अगर सूची में एक फ़ाइल मौजूद नहीं है, तो आइटम को कॉम्बो बॉक्स से हटा दिया गया है, और कॉम्बो बॉक्स चुने गए इंडेक्स को शून्य पर सेट किया गया है। हालांकि, comboBox चुने हुए इंडेक्स को शून्य करने के कारण चुने हुए मौजूदा एक्सचेंज ईवेंट को आग में डालता है, जो कि इस मामले में समस्याग्रस्त है क्योंकि यह कुछ यूआईफ़ कोड का कारण बनता है ईवेंट हैंडलर में चलाएं क्या C # फ़ॉर्म नियंत्रणों के लिए ईवेंट को निष्क्रिय / सक्षम करने का एक शानदार तरीका है? धन्यवाद। साथ eventhandler विधि प्रारंभ करें कॉम्बो बॉक्स कॉम्बो = प्रेषक कॉम्बो बॉक्स के रूप में; अगर (combo.SelectedIndex == 0) {वापसी; } यदि आप एक भिन्न इवेंटहोल्डलर के साथ समस्या कर रहे हैं तो आप पहले इवेंटहोल्डर की इवेंट पंजीकरण को निकाल सकते हैं। कॉम्बो। चयनित SomeEventHandler; Combo.SelectedIndex =...

IPC (inter process communication) between python and java -

First, why I'm asking this question in the first place, a small explanation : I am writing Python program (with a wxPython GUI) which requires calling Java Java program from Python and removing its data. I have an in-process solution working in Windows, I have an in-process solution on OSX, as long as I run headless without the Java app. Unfortunately, there is no proper solution that I have found both GUIs to run on OSX in the same process because both both ADT and WX want the first thread and they can not share the wx message loop. What I would like to do is to launch a Java program in a separate process from my Python program and set a pipe or queue or something to pass back and backward data (especially byte arrays) . I appreciate any suggestion, or even rub a nud in the right direction as I have very little experience with the IPC. The answer may be for you. See:

python: exit out of two loops -

for line in B: drug_input for drug: Brand names for brand [medicine]: How do I get out of the current loop and for the row in the next value of in the line: ? To see if you have already worked, it uses a boolean : wrong for x = for x = y: Y in y: if done bad, it is done = trott brakes can be: brake Continue this any if no breaks, if there is a break, then it will be left on else , then this next break Will see. This approach has the advantage of not using a variable, but it can be hard to read some. X for X: For Y in Y: If Bad: Breakage: Continue Break

c# 2.0 - C# DataSet Question - What does the value in quotes mean? -

dataset dataset = new dataset ("PinkAlement"); Can anyone understand the meaning of Pine-Elephant in this context? I understand that I am declaring a new dataset object, but what is Pinkellant? Is this just the name of the dataset? Thanks The name given to DataSet for use in creating an XML Without assigning itself the root tag of the document itself, it will make itself something.

google cloud datastore - Using django-admin on django-nonrel, using App Engine models -

I am creating a Django app for Google App Engine. I am using django-nonrel but the Google App Engine model I am using. I also want to use Django's admin site. Airlines app for my models.py : to google.appengine.ext import db class airline (db.Model): name = Db.StringProperty (required = true) Description = db.TextProperty () Note = DB. TextProperty () class meta: verbose_name_plural = 'airlines' def __unicode __ (self): return self.name is my admin.py : From django.contrib import admin from airlines. Model Import * admin.site.register (Airline) I am a GAE runner and receive the following error: django-nonrel with administrator Can not use Google App Engine model I ? You can not use the app engine model with the Django-nullal You have to use the DJ model This way your code becomes reusable and allows you to close the app engine and use your code with another code.

c++ cli - Issue with Includes, Visual Studio 2008 -

OK, here's my problem (and my first question is SO!), And no, the more I want, I do not have much to say about how structured they are. One of the heritage fields is that management will not make much of a difference to me. I am in WinForms Solution in Visual Studio 2008. In my solution, 5 visual C ++ projects, some managed, some are native. I also have a folder in my solution explorer, which has several "normal" header files, which pull various projects .. Because of the API headers for many vendors, these headers can not be found at the source behind I just have a static library and .h file. The folder layout looks like this: Project A for Project / Project / Debug / Release File Project / ProjectD / Debug / Release file for ProjectA project Project A / Project A / debug / Release Files for Project E / Common Header for Project A / Project AD / Debug / Release file for project / debug / release files are here / debug / release My question is so: Instead of ...

Rails conditions equal to one of an array- Syntax Errors -

Hi, I am trying to understand why I get a syntax error for this: Ranks => ["rank =? And primary. Relationship =?", ['CPT', 'SFC'], "husband / wife"] "Need to check. It seems that it should be very simple, any suggestions? Something might be: : conditions => ["Rank In (?,?) And Primaries. Relationship =?", 'CPT', 'SFC', 'Husband or Wife']

javascript - UJS partial rendering in Rails 3 -

I am struggling to get my head about how to implement UJS of Rail (in particular, Rail 3 with jQuery) I What I did while submitting the form through AJX, and what can I do after this, but to expand this concept, let me add a javascript function to the html element in my view files Having trouble connecting . After all, I would like to be able to create a form where a different partial is provided, depending on which radio button is selected from a series. Am I looking for prototype heritage helpers? And why do I need to create a .js.erb file? Sorry for the newbie question, I can not find the concept of UJs very clearly and how to use it in the rail. Switch from code to AJC / RJS approach Any lot of help Will be appreciated! remote => The correct on the form , your data will go to the server and all returned javascript will be executed in the context of the page, so this is a simple example: & lt; % = Form_tag '/ action_path',: remote = & gt; True is% ...

Retrieving an entire website using Google Cache? -

is a site that I want to get from Google Cache, which has thousands of pages, Can I return using Google Cache or some other web crawler / collector? You can see that Google (anyway) about a website site Restrict: http://www.google.com/search?q=site: [domain] You can also check. (In either case, you probably want to do some heavy duty to get thousands of pages.)

c# - WPF stop mouse down event gaining Application focus -

In WinForms, I used the following block of code to prevent the application being clicked on: Personal Connection WM_MOUSEACTIVATE = 0x0021; Private constant int MA_NactivityAndTat = 0x0004; Safe Override Zero WndProc (Ref message message) {if (m.msg == WM_MOUSEACTIVATE) {m.Result = (IntPtr) MA_NOACTIVATEANDEAT; Return; } Base.WandProc (Ref M); } Is there a choice in the WPF application on this? Can I use an HwndSource? Even so far I have this (only WM_MOUSEACTIVATE does not work as necessary and the app still focuses): Protected Override Zero OnSourceInitialized (EventArgs e) {Base.OnSourceInitialized (e); HwndSource source = PresentationSource.FromVisual (this) as HwndSource; Source.AddHook (WndProc); } Private ITPR WndProc (IntPtr hwnd, Int msg, IntPtr wParam, handled with IntPtr lParam, Riff Bull) {// handle message ... int WM_MOUSEACTIVATE = 0x0021; Int WM_LBUTTONDOWN = 0x0201; // 513in WM_LBUTTONUP = 0x0202; // 514-inch WM_LBUTTONDBLCLK = 0x0203; // 515 if (msg == WM_...

flash - Loaded SWF gets slower -

Hi is making a game that contains several balls that go to the screen. Everything is fine and when I play SWF on my own, but when I load it in another SWF, the animation gets sharper with time. What is the problem? Do you play SWF in Slondon Mode and when loaded by another SDF, you can save memory and CPU Works can bring. Have you done any profiling or memory leak tests?

java - Where could I find the log configuration file in Weblogic server? -

We can modify this file to change the log generation method. For example, we could change log rolling methods, from hours or days; And show different log types: information, error, and more. Thank you. You can get a file named config.xml. In this, there is an item in the config log like: & lt; File-name & gt; Log / Examples Server.log & lt; / File-name & gt; & Lt; Rotation type & gt; ByTime & lt; / Rotation type & gt; & Lt; Number of files limited & gt; True & lt; / Number-files limited by & gt; & Lt; File time duration & gt; 24 & lt; / File Time Duration & gt; & Lt; Rotation time & gt; 00: 00 & lt; / Rotation time & gt; & Lt; Turn-on-on-on-startup & gt; True & lt; / Rotate-log-on-on-startup & gt; & Lt; Logger-severity & gt; Information & lt; / Logger-severity & gt; & Lt; Log-file-severity & gt; Debug & lt; / Log-file-severity & gt; & L...

c# - Catching exceptions thrown in the constructor of the target object of a Using block -

का उपयोग करते हुए (कुछ क्लास x = नया कुछ क्लास ("c: /temp/test.txt"))। ।} उपयोग के ब्लॉक के अंदर, सभी सामान्य रूप में अपवादों के उपचार के साथ ठीक है। लेकिन क्या होगा अगर SomeClass के निर्माता अपवाद फेंक सकते हैं? हां , यह एक समस्या होगी जब कन्स्ट्रक्टर एक अपवाद फेंकता है आप जो भी कर सकते हैं वह उपयोग ब्लॉक को एक प्रयास / कैच ब्लॉक में लपेटता है। यही कारण है कि आपको इसे ऐसा करना चाहिए। ब्लॉकों का उपयोग करना वाक्यों में केवल शर्करात्मक चीनी है और संकलक प्रत्येक का उपयोग करते हुए बराबर प्रयास / अंतिम ब्लॉक के साथ ब्लॉक एकमात्र मुद्दा यह है कि कंपाइलर कंट्रोल ब्लॉक के अंदर कन्स्ट्रक्टर को लपेट नहीं करता है। संकलन के बाद आपका कोड आईएल में रूपांतरण होगा। // प्रकार की ऑब्जेक्ट एक्स कुछ क्लास कुछ क्लास x; // कन्स्ट्रक्टर को कॉल करके ऑब्जेक्ट को इंस्टाइएट करें X = नया कुछ क्लास ("c: /temp/test.txt"); कोशिश {/ / एक्स पर कुछ काम करते हैं } अंत में {if (x! = Null) x.Dispose (); } जैसा कि आप कोड से देख सकते हैं, ऑब्जेक्ट एक्स को तत्काल नहीं किया जाएगा ज...

c# - Why is this simple jQuery not working? -

मेरे पास यह jQuery अनुरोध है: $। Get ($ (this) Attr ("href"), {"खोज अभिव्यक्ति": "श्राउडर"}, फ़ंक्शन (परिणाम) {// do stuff}, "html"); जो इस एक्शन मेथड को प्राप्त करने का अनुरोध भेजता है: सार्वजनिक आंशिक विज़ुअल टैब (स्ट्रिंग सर्च एक्सपेरेशन) {आंशिक दृश्य (नया सर्च विवरमॉडल {पेज़फंड्स = _ फ़ंडस्वायर। गेटफंड्स (खोज अभिव्यक्ति)}); } $। प्राप्त करें अनुरोध टैब विधि के लिए एक अनुरोध भेजता है, लेकिन searchExpression हमेशा होता है एक खाली स्ट्रिंग मैंने पहले यह किया है और यह काम कर रहा है .. क्या किसी को भी कोई विचार नहीं है कि क्यों या तो डेटा भेजा जा रहा है या मॉडल बांधने की मशीन काम नहीं कर रहा है? संपादित करें: मैंने अभी पता लगाया है कि jQuery का इस्तेमाल किया जाने वाला संस्करण 1.2.6 है। इसके अलावा, साइट पर इस्तेमाल किया जा रहा एक अन्य जेएस फ्रेमवर्क है - प्रोटोटाइप, मुझे लगता है - इसलिए यह पूरा फ़ंक्शन है जिसे मैं GET के लिए उपयोग कर रहा हूं, जो संगतता समस्याओं का प्रबंधन करता है: jQuery दस्तावेज़ ()) () (कार्य ($) {$ (...