Posts

Showing posts from July, 2013

git svn - git-svn pushing existing repository mapping usernames the other way -

My team and I am currently working on a university project. We were given the project but it was not officially started, so we started working in GIT to start the head. The project coordinator has forced us to use SVN, so I am trying to use git-svn to interface two treasures. I can move my earnings in the svn repository in .git / info / grafts so this is not an issue. My problem is that in our course we are given the marks of participation which are based on our history. Although obviously all our commands have my SVN username because I had transferred them (which is not sure my teammates will be very happy) I have seen in the file of git authors, but where As far as I can tell, it is used for reverse lookup. Now I understand that with SSH + SVN I clearly for the summary: P> I need "git svn dcommit" to map git writers to my gsyn user names and if possible (less important) date information is correct. There is a warning on that that some writers on git ha...

serial port - Hyperterminal quick question -

I need some help using this pre-historic application: Hyper-Terminal I get some commands from a COM port I need to send in: I'm doing this: New Connection> Enter a name and an icon> Choose COM3 port and type 115200kbaud> OK> type some text and press enter. I have a loop-back circuit, so what I hope to receive is what I mark. However, when I enter the press and I do not see anything. Any suggestions? "I debug my skills" using the C # app with Hyperterical Im I even sent a while back and received Dada from the COM portals I have no problem with this application That's why I think I am doing something wrong in hypertensional. Thank you! I think the "hyper-terminal is messing up" to click on the icon Launching it in the first place involves launching. But it should be able to loopback this type. Make sure that you do not have any type of flow control enabled, and make sure that before you change any settings click on disconnect but...

c# - How to receive multiple tasks at the same time in a single com port in c sharp -

I'm a novice fast and IM stuck with this task I need to, I am creating many threads and ask to communicate with this thread (using COM1) to a serial port, COM2 will send all threads using a single COM port (received using COM2). Say "Send 1 Thread 1" (using Thread 1) and "NarcorWald 2" (Thread 2) by using Com 1 and Hyper-Terminal in Compi2. So I need to look at both the hellfire at Harper-terminal at the same time. Please help me You would like to start. You can instantiate SerialPort class 2 instances for each comm port you want to send / receive. I have used 2 variations to obtain a serial port class: 1 You can "read" on the port manually on a certain interval (like you can read each thread as needed). 2. The SerialPort class exposes a DataReceived event that can be subscribed (an error is also available). Option 1 may be the best fit. Edit After reading your comment, option 2 can be a better fit so that you can get a "threa...

When and Why to use abstract classes/methods? -

I have some basic questions about abstract classes / methods. I know the basic use of basic classes is to create templates for future classes. But do they have more uses? When and how should you like them on the interface? Besides, when are abstraction methods useful? I know that the basic use of basic classes is to create templates for future classes. But is there any more use of these? Not only can you define a template for children, but abstract classes have offered an added benefit to defining your functionality, which your child will use later on You can not provide an implementation for an interface. When should you like the interface and when not? Abstract classes are a good fit if you want to provide implementation details to your children, but do not want to allow an example of your class directly to the institute (which allows you to partially Allows to define a class) If you want to define a contract to follow only the objects, then use an interface. ...

database - What kind of application would CouchDB be most useful/performant for? -

I am messing about the UK Postcode / Coordination Ordinance Survey dataset. Since a free hosted CouchDBi instance was offered, I thought I would put my geographic data in one of them, in the process, there would be a little bit to learn about Cochchadi. The idea was that since Cochindi is considered to be good, handling large datasets (postcode data is approximately 1.7 million records) and works basically with REST / JSON, it can be used for Google Maps applications. Client-side for use with jQuery will tie well with jQuery My initial purpose is to withdraw only a single XX object with a postcode as a parax, with a latitude / lawn properties, to withdraw a single JSON object, I have successfully completed it, but coming from the relational DB background, I thought that it was very complex; As I have read more about CHDB and playing with it a bit I think that this will not really be the right tool for this job, I am actually using it for a real world project. Am I right to ...

language design - What is the point of having $this and self:: in PHP? -

Why do you need to explicitly write $ this ? I used to understand that you had to use $ this : function fu ($ bar) {$ this- & gt; Bar = $ bar; } But you should explicitly write it in the verbose code which looks like this: $ this-> Var3 = globalFun ($ this-> var, $ this-> var2 [$ this-> activation], $ this-> method ()); Contrary to : $ var3 = globaFun ($ var, $ var2 [$ anotherVar], method ()); So what does $ this mean? Additional Bonus Question: Why do we have to do this to isolate static references and examples? Why do we need: static function getValue () {returns self :: value; } Can not know on PHP / runtime if the query in the variable / method is static? Now if I want to change one method to static by non-static, then I have to replace all those self :: with $ this-> / Code> (and vice versa). It would not be better if we have $ this which behaves like this in Java? OK, we remove the need to type $ this ever...

random - Algorithm for picking thumbed-up items -

I have software like pandora where a user can thumb a song or a thumb over a song. The software, called Silverlight + C #, is a language and platform-neutral question. My software must choose a song based on the user's preferences. I need a good algorithm for this I want my software to choose one song to run the following requirements: Should be preferred, and regular Is played in the form The undefined song (Neither up or down thumb) should still be played; The songs below must hardly be played. Whatever the algorithm, the song should not be repeated again. Looking at these design decisions, is there some good algorithm here? I have some code that catches all the songs, songs liked, and dislikes song: var allsongs = ... var likes song = all song. Where (S => S.LikedByUser (...)); Var dislike songs = all songs Where (S => s.DislikedByUser (...)); Any simple idea to choose a good song for the user? You can weigh the songs; It is said ...

cocoa touch - iphone - performSelectorOnMainThread with return value -

मेरे पास निम्न विधि है: - (NSMutableArray *) getElements: (NSString * ) theURL; और मुझे यह जानना है कि क्या उस पद्धति को कॉल करने के लिए एक तरीका है, जो प्रयोग करनेवाला selectNonMainThread का उपयोग करता है ताकि मैं रिटर्न वैल्यू प्राप्त कर सकूं। अब तक, मैंने कोशिश की है: myArray = [ऑब्जेक्ट निष्पादन चयनकर्ताऑनमाइनट्रेड: @ सिलेक्टर (getElements :) साथऑब्जेक्ट: url waitUntilDone: हाँ]; लेकिन यह काम नहीं करता है, क्योंकि प्रदर्शनकर्ताओंमैनमथथ्रेड रहितता देता है। मैं यह कैसे हल कर सकता हूं? बहु-थ्रेडेड परिवेश में मेरा मित्र आपका स्वागत है। आपको एक आवृत्ति चर में रिटर्न मान को स्टोर करने की आवश्यकता होगी या withObject पैरामीटर के माध्यम से किसी ऑब्जेक्ट में पास करें: NSMutableDictionary * myDict; [ऑब्जेक्ट कार्य निष्पादित करेंइन्माइनथाथ: @ सिलेक्टर (मिल एलेमेंट्स :) साथ ऑब्जेक्ट: & amp; माईदिक्ट इंतजारउपलब्ध हैं: हाँ]; आपका तरीका प्रोटोटाइप अब इस तरह दिखना चाहिए: - (शून्य) getElements: (NSMutableDictionary **) वस्तुओं;

How to create a transparent background to a flash animation? -

I want to create a transparent background for my Flash animation and want to save it in GIF format. Please help me .. This page tells you the settings required to publish a transparent GIF : The main relevant steps are: Publish the file> Settings, click Format, and choose a GIF image. "Transparent" option for "transparent"

python - soaplib problems with XML characters in string payload -

I have created a simple SOAP web service using Sosipilib and run in a problem where SOAP parameter ampersand or angles Bracket Whether this method is set to accept a primitive string or any of the 'primitive' types, none of those characters can use this type of webfault (using suds ) The result presents: suds.WebFault: Server mistakenly: 'my_method (2) takes exactly 2 arguments (1 given) '' For now, here's the method, removing the extra code used to store the result: @soapmethod (soap_types.String, _returns = soap_types.Boolean) def my_method_ (auto, sample): return True This method can be used for any simple string Calling works well, eg in Suds, suds_object.service.my_method ('Hello world') In the "true" result But add to any ampersands or angle brackets, e.g. suds_object.service.my_method ('Hello and World') And the exception has increased. With logging on, I can see that the vengeance is escaping fr...

c# - How to create a dataset from an xsd schema in Visual studio 2010 -

I searched it here and on MSDN, but they did not get a satisfactory answer because things changed from 2005/2008 to 2010. Or I do not know how to use VS IDE, what is it that I want to have an XSD file and I want to find action on it. For this I thought I would need this class and the way to go dataset. I created a dataset from the file system (it does not want to be complicated) and while trying to add schema and xsd to me, I have also read that there is a way to create a class (ORM) whenever I change the schema I do, the class also updates. Links to MSDN articles that I have read: Yes XSD.exe (among other things) will generate a Dataset for a C # class and / or a given schema (use the / c switch to create classes to create datasets and / d). If you are using VS.net 2008 (and possibly VSNet 2010, I do not have 2010), you can right click on your project and by selecting "Add new item" You can select the Dataset template and the IDE will automatically generate cl...

jquery - Accessing Javascript Instance from Child iFrame -

Can parent JavaScript variables and functions (originally full runtime installation) be introduced to the child's iframe? Example: ** Guardian ** & lt; Script & gt; Function foo () & lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" & gt; & Lt; / Script & gt; ** Hair IFrame **: Function Bar () {Warning (foo); } $ (Document) .ready (function () {$ ("a"). Click (function (event) {Warning ("Thank you for visiting!");});}); Question 1) Can the bar () be called in Javascript in the hair frame? 2) Can the JPYER object be referenced in IFrame when it is declared in the original? The answer is yes, but you will need to make additional things to do this job. In fact, using an iframe, parents have access to the window object. So an easy way to create bar available for iframe function bar () {warning ("foo...

css - CssClass value not found for non-MVC ASP.NET form -

I know that while using partial classes in ASP.NET MVC, people have some problems with the undefined CssClass value . My project is not MVC, though, and I have a Includes CSS file which is in the original folder of my project, yet a referenced square value is still a result in VS 2008 warning. Aspx file in me: & lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Head runat = "server" & gt; & Lt ;! - ... - & gt; & Lt; Link media = "all" href = "~ MyStyles.css" type = "text / css" rel = "stylesheet" /> & Lt; / Head & gt; & Lt; Body id = "bodyTag" vlink = "# 666666" alink = "# 666666" link = "# 666666" bgcolor = "# ffffff" leftmargin = "0" topmargin = "0" runat = "server" & gt; & Lt; Script type = "text / javascript" language = "javascript" src = "~ scripts \...

Random ID/Number Generator in PHP -

I am creating a list of "agent ID" in my database with the following requirements: ID must be 9 digits (numeric only) The ID can not be more than 3 out of the same number. The same number can consist of more than 2 consecutive digits (i.e. 887766551; 888). So far my share is solid 1 down, but I My code is struggling with 2 and 3 is below. Function vs. RandomGatino () {srand ((double) microtim () * 1000000); $ Random_agtno = Rand (1000000000000000000); Return $ random_agtno; } // use $ NEWAGTNO = createRandomAGTNO (); Any ideas? Unless your PHP is very old , You probably do not need it, unless you want to completely cover the security of your random number. Again the seeds are RNG at all, just as PHP seeds give it to you on startup and there are very few cases where you need to replace the seed with your own selection. If this is available to you, use it instead of rand instead of mt_rand . My example will use mt_rand . For the rest - you ...

iphone - Unicode not converted when displayed -

I am localizing an app for Spanish, and localizationable for that language via Unicode. String file The letter is encoded in. For example, I have an entry: "login.saveSettings" = "GUIDER CONFIGURATION \\ u00F3n:"; Instead of "guard configuration": " which is displayed properly in the UILB (" Garden Configurgy \\ u00F3n: ")," Garden Configurator: "I tried various forms like" \ u00F3 ", or "\\ U00F3", but without any success. I use NSLocalizedString like this: self.saveSettingsLabel.text = NSLocalizedString (@ "login.saveSettings", @ "Save Settings:"); What am I doing wrong? Thanks for any help! Mihai The correct type is \ U00F3 with 1 backslash and one capital U .

c# - SqlBulkCopy with Byte[] DataTable column error -

I have a strongly inserted dataset with a datat with one of the columns in the form of a byte [] column. Enter a binary (4) database table field I am able to set the byte [] column values ​​without any problems, but when I run sqlbulkcopy on the data cable, I get the following exception: "32 types of data source can be given specified target calls In has been converted into a binary type. " Detaatbl is a large dataset and Skelblkikopi dataset and [byte with the database table] / binary (4) works fine with the column. The following is the code that I have inserted which is using SqlBulkCopy on .NET 2.0. byte [] codeByteArray = GetByteArray (); Dt.byteArrayCol = codeByteArray; ... use (SqlBulkCopy BC = new SqlBulkCopy (conn)) {bc.DestinationTableName = dt.TableName; Bc.WriteToServer (DT); Bc.Close (); } I have searched my problem byte [column] in my data labels equally In the situation the corresponding database column was not sorted. The datatable column was 56...

c# - Deploy WebApplication on localhost using IIS -

I am using Visual Studio 2010, Windows 7 and IIS I have written a small webapp and I I want to publish in the host. So I click the project that select Visual Studio => Publish => File Sitemaps => Local IIS. After this, I get an error: To reach local IIS web sites, you must install the following IIS components: IIS 6 metabase And IIS 6 configuration compatibility ASP.NET In addition, you should run Visual Studio in the context of an administrator account. For more information, press F1. This topic is new to me, so what am I starting to do to resolve this error? Please help me. Thank you in advance! Start -> Control Panel -> Programs -> Programs and Features -> Turn the Windows feature on or off -> IIS -> Web management tools -> IIS 6 Management compatibility WAT!

java - Create a picture viewer with image-selection capabilities -

I am trying to create a simple picture viewer who has the user click on a button and then select an image Will allow file system and that image is displayed in JLabel. I am not familiar with seeing the picture, but I have already referred the file. (This question seems to be homework, so I am answering you Without giving it in the right direction.) Look at the creator who takes a sign parameter, even more square.

django-nonrel 500 server error on Google App deployment -

I am a newbie with the problem of working with Django-nonrel on Google App Engine. I created a new app called "Hello". 1) I have created a view in Hello world called view.py: import from django.http HttpResponse HTTPS ("Hello World") 2) I have linked with it in urls.py: import from blockquote> django.conf.urls.defaults * Import Hello from helloapp.views urlpatterns = patterns ('', & nbsp; & nbsp;; & nbsp; (r '^ Hello / $ ', Hello), ) This works fine at the local level, but I am receiving 500 server errors. In the GAE log I think I'm getting an import error ImportError: a module named helloapp.views This is confusing because as It has been told, it works locally well. Help. Perhaps try: import from imports Locally, your thoughts are in a hello directory but when it is uploaded to the app engine, it is placed in a directory along with this version number, . Observation is not present: /base...

Develop remotely in XCode using iPad and VNC / RDP -

OK, this is a simple question. What are the features of the VNC / RDP app for the iPad (maybe the developer-friendly keyboard layout) that are good for using Xcode remotely? Perhaps some of you Mac developers have an iPad, and some VNC / RDP apps have tried to remotely use the Ax on their iPad. The question is, which is best to work in XCODE? Log-ins Ignition / iTeleport / Anything, these are all exactly What do you think? Bluetooth from the physical keyboard to CMD, Ctrl, Alt combinations are not working. Although I should tell that they have available soft-keys working like you ctrl-win and tap above - all work as soft keys on a mini keyboard line and it works. I do not like an onscreen keyboard at all, but I appreciate that there is a functioning. This mini-soft keyboard line covers only a very small bottom area, so this is not a bad choice. It is enough to tell me alone that Mocha VNC for IPC is probably not the best for remote Xcode development. Hopefully, other, mo...

c++ - can OpenGL do this? -

I am making an application that draws shapes and I use the camera to come to other places. Actually, suppose I have a 4x3 rectangle and want to use glagicsx to get all the pixels for 1024x768, but my monitor can not support that resolution. How can I render something bigger than the monitor? So I can save a picture of the figures on the arbitrary resolution of the user. Using glviewport will extend beyond frame so can i just make glgetpixels? Thank you By defining an FBO (frame buffer object) RTT (render-to-texture) can do. Check glBindFramebufferEXT () And after drawing the view, you can execute glGetTexImage () and retrieve the pixels for it. RTT is a very well-established and documented technique.

sql - SQLite : finding a function's minimum values -

मेरे पास उन टेबल हैं नोड (#id, route_id, lat, lng) रूट (#id) और मेरे पास चार इनपुट वैल्यू हैं: $ लैट 1, $ lng1, $ lat2, $ lng2, जो 2 जीपीएस निर्देशांक जीपीएस 1 और जीपीएस 2 का प्रतिनिधित्व करते हैं। मेरे पास एक दूरी का कार्य भी है जो मैंने डेटाबेस में जोड़ा है: दूरी (lat1, lng1, lat2, lng2) जो मैं देख रहा हूं वह अनुरोध है जो मुझे जीपीएस 1 के सबसे निकटतम बिंदु देगा और प्रत्येक मार्ग के लिए जीपीएस 2 के निकटतम बिंदु इसलिए मुझे लगता है कि इसे शुरू करना चाहिए: का चयन करें r.id, n1.lat, n1.lng, n2.lat, n2.lng नोड n1 से, नोड एन 2 को रूट पर एन 1 एनओ। Route_id = r.id और n2.route_id = r.id और मैंने को जोड़ने की कोशिश की, जहां दूरी (n1.lat, n1.lng, $ Lat1, $ lng1) = MIN (दूरी (n1.lat, n1.lng, $ lat1, $ lng1)) और दूरी (n2.lat, n2.lng, $ lat2, $ lng2) = MIN (दूरी (एन 2। लेकिन यह इस त्रुटि को फेंकता है: "कुल कार्य का दुरुपयोग MIN ()" मैंने भी सोचा कि मैं SELECT r.id, n1.lat, n1.lng, n2.lat, n2.lng, दूरी (एन 1) का उपयोग कर सकता हूं । एलटी, एन 1.एल.एन., $ एल...

asp.net mvc - MVC Model Binding Confusion -

I am not using "model binding" in my MVC application - that is, I have not tried this Form of "Mapping" form for one or more classes in the Action Parameters list, which is described in many places. Instead, I send parameters for each person's form field, or use the formclasses. I was thinking that I would like to try it, but I am confused about the basic premise. It seems that you use the same model for your "binding" (from the scene to the controller) that you use for your viewold (to see with the controller). (I'm using strongly typed ideas for each scene with a separate view modal.) Still, I think the needs of my thoughts differ greatly from the needs of my action For example, for example, many selectors may be required from which the user can choose. However, the action needs to be done to know which item the user has chosen, not every option in every list. Is it really to use the same class going in both directions? For example, h...

silverlight - WP7 ListBoxItem child does not stretch to parent width -

The following code works to pull the child grid inside ListBoxItem in Silverlight 3, but is not in Windows Phone 7 . What is this bug or am I doing something wrong? No matter what I put in ListBoxItem, this list never increases in the size of the box, just for the size of your content. My ultimate goal is to get the text to align left and right within the listbox item. In the process of trying to do this, I went on this issue. Note: Horizontal content works fine for values ​​other than alignment segments. & lt; ListBox & gt; & Lt; ListBoxItem Horizontal ContentElement = "Stretch" & gt; & Lt; Grid & gt; & Lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "0.5 *" /> & Lt; Column width = "0.5 *" /> & Lt; /Grid.ColumnDefinitions> & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition / & gt; & Lt; /Grid.RowDefinitions> & Lt; TextBlock Grid.Row = "0" grid. Column...

coldfusion - cfoutput not throwing any results -

Hello I have a component that has gates and setters, which is fed by a structure for session variables. When I call the Component and use cfoutput that tagter for the greater and the setter is giving the meaningless word as output result. Kffunkshns_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_adres_zip_kod @ 6187548c Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_flags @ 7bbfe559 Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_flags @ 7bbfe559 Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_rikord_nanbr @ 736a7587 Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_rikord_nanbr @ 736a7587 Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_adres_zip_kod @ 6187548c Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_adres_zip_kod @ 6187548c Cffunctions_alldefinedsessnfnkt2ecfc3324l99482 $ Funkgetkstmr_vet @ 524a2d43 Cffunctions_allDefinedSessnFunct2ecfc3324199482 $ funcGETCUSTOMER_WEIGHT @ 524a2d43 c...

ruby - Questions about building a new gem using Wycats template -

I'm writing a new gem which I'm closing and I'm a little confused. Having a Gemfile with dependence and assigning a gemspec with dependence seems too inconvenient for me. Can anyone explain that it is desirable and if it is really necessary? Note, this is the first gem I wrote earlier, so I'm new in all of this. .gemspec dependency rubygems explains that when a user installs your gem dependency To solve, it needs to catch Gemfile dependency while managing you develop gem RubyGums and the bundler, at least not yet.

networking - ksoftirqd consumes >80% CPU on embedded platform -

We are designing SOHO router based on MOP processor, wired with a 24-port switch. CPU runs NAT (configured with iptables), iptables rules, DHCP etc. There is no H / W acceleration for these tasks. When NAT is tested in full-trap mode (i.e. a LAN port in Van port and the other), we see the recession of the critical system, especially the console responds very slowly, and packet loss it happens. The 'top' indicates that KSouterCard consumes over 80% of CPUs. What could be the reason for such behavior? Does the Linux NAT run in the user? casualcard s kernel threads driving .. Soft IRQs, such as TIMER_SOFTIRQ , SCSI_SOFTIRQ , TASKLET_SOFTIRQ , and is relevant to your case, NET_TX_SOFTIRQ and NET_RX_SOFTIRQ . These have been implemented in the bottom parts of the kernel, because defragment work with top horizontal - actual interrupt handlers in device drivers where latency is important. The actual interrupt handler, or hardware IRQ, is concerned about ge...

dashcode - Dash code for MAC Application -

How to always determine the state of the elements (image, button) when scrolling in the dashcode for the iPhone application? Maybe you need something like this: or

java - Design patterns to reduce coupling in Swing application -

All of that, I'm currently working on a Java swing application and I was looking for some guidance. This application is quite small, but I am seeing that the code base is getting bigger, so I have very coupling in my object graph. I'm relatively new to swing, but I'm programming for a long time to know where it is. My biggest problem is establishing my event handling. How should my child's windows and objects communicate without my reference to my high level objects? I have done an appropriate amount of MVC web coding. Can this pattern lend itself well? Should I make my controller? I think I'm just catching fish for patterns that people have found useful work with swing. Thank you in advance for your help. The best way to reduce coupling is by a GUI, I think, using an event bus I Just and you will get If you use your GUI, you may want to see it once more.

html - mod_rewrite for friendly urls unexpected behaviour -

मेरे पास अपाचे है और मुझे .htaccess फ़ाइल में है: RewriteEngine पर RewriteRule ^ Myhome myhome.php क्योंकि मैं / myhome / से /myhome.php पुनर्निर्देशित करना चाहता हूं। यह काम करता है, लेकिन यह असामान्य रूप से व्यवहार करता है। जब मैं myurl.com/myhome में टाइप करता हूं, तो यह ठीक से myurl.com/myhome.php पर रीडायरेक्ट करता है, लेकिन जब मैं अंत में स्लैश के साथ myurl.com/myhome / की कोशिश करें, यह पृष्ठ पर रीडायरेक्ट करता है लेकिन इसे किसी भी स्टाइलशीट या छवियां नहीं मिल सकतीं (जिस मार्ग के लिए रिश्तेदार हैं) कोड संदर्भ "image.png" और "style.css" और अंत में स्लैश के बिना, यह काम करता है और उन फ़ाइलों को ठीक से लोड करता है, लेकिन स्लैश के साथ, यह नहीं है। मुझे लगता है कि यह इसलिए है क्योंकि यह सोच रहा है कि यह आधार निर्देशिका की जगह मेरेहोम / निर्देशिका से लोड हो रहा है। क्या कोई मुझे बता सकता है कि इसे कैसे काम करना सही है? अंत में / जोड़ता है जैसे कि आप myhome का डिफ़ॉल्ट पृष्ठ देख रहे हैं डायरेक्टरी अर्थात myhome / index.htm आमतौर...

How can I communicate between PHP and a Java program? -

I am working on a web application that often needs a calculated intensive query to run, resulting in these Uses 500ms about this query, using a different table MySQL (as optimized as possible, believe me). To eliminate this barrier, I have created a Java program that loads relevant DB data into memory and queries itself; It takes about 8ms (which I'm proud of) I want to use this Java program to get results, and if it is unsuccessful or unavailable, the failure to run mysql query in PHP The data in the Java application takes some time to load, it is going to be loaded once and running as a background process. Now, the question is how do I communicate with PHP via this Java application? Keep in mind: Many examples of PHP may need to be communicated simultaneously with this Java process. If the Java instance (such as: crash for some reason) can not be found, PHP can progress by using the old and slower MySQL method. An intermediary process, such as memcatch, is ac...

javascript - Valid Object Constructors -

निम्न में से कौन सा वैध ऑब्जेक्ट कन्स्ट्रक्टर हैं? 1) var m = फंक्शन ) {} 2) मीटर = समारोह () {} 3) m.prototype.constructor = समारोह () {} ये सभी मान्य स्टेटमेंट होते हैं जो खाली फ़ंक्शन घोषित करते हैं, और इसे अलग-अलग चर में निर्दिष्ट करते हैं। जावास्क्रिप्ट में प्रत्येक फ़ंक्शन ऑब्जेक्ट ही है (या f.prototype wouldn 'टी काम) और एक संभावित वस्तु निर्माता किसी भी कार्य को नया थिंगी वाक्यविन्यास (या शायद नया मी आपके उदाहरण में) के साथ कहा जा सकता है या इसे सामान्य रूप से कहा जा सकता है - केवल एक विशेष चीज नया करता है यह फ़े.प्रोटोटाइप से प्राप्त वस्तु के लिए है। एक नव निर्मित फ़ंक्शन एक प्रोटोटाइप संपत्ति होती है जिसमें एक नया खनन वस्तु ( {} ) होता है, जिसमें एक छिपी निर्माता संपत्ति को इंगित करने के अलावा कोई गुण नहीं है ( यह एक परिपत्र संदर्भ है, वास्तव में) यह सच होना चाहिए कि: var m = function () {}; M.prototype.constructor == m;

Why does my Spring AOP aspect work in my unit test but not my webapp? -

I have one aspect that works correctly in a unit test, a log message is printed by the actual method, And later applied to the aspect. While running my webpage, I only see the result of applying '@afterReturning' advice, my method does not execute first. My config: & lt; Bem xmlns = "http://www.springframework.org/schema/beans" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: aop = "http: // www. Springframework.org/schema/aop "xsi: schemaLocation =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans- 3.0.xsd http: / /www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> & Lt; Aop: aspectj-autoproxy proxy-target-square = "true" /> & Lt; Bean id = "Logging Aspect" class = "com.mapackage.myspect" /> & Lt; / Bean & gt; "> If the information you provid...

Debug C++ code in visual studio from python code running in eclipse -

Does anyone know how we can do this? I have Eclipse code in Eclipse and whenever I call this C ++ function, I want to go to the wind point at the Visual Studio C ++ project. You can use a __debabbook in Visual Studio, so that Whenever code is implemented, then it can trigger the debugger (you want to search the function in MSDN). Enter the instructions in the C ++ function (or class method), which you want to debug, e.g. void foo () {__debugbreak (); [...]} At this point, compile the Library and run the Python script, when the Library loads and the code is executed, a message box appears, Want to engage the studio debugger. This old __sm {int3} .

c# - How to consume Windows Communication Foundation (WCF) by a Windows Service -

When I get a Windows service Web application (ASP.) > To set up some work in the client machine, Net C # ) To serve WCF from a web application, I used to refer to the WCF for Window Service Project as a reference Added context, everything looks fine, updated the app.config file, added service reference etc. It was not working. Any idea would be very useful. My code is shown below string result = string Empty; BasicHttpBinding myBinding = New BasicHttpBinding (); Endpoint Address My Idpoint = New Endpoint Reader ("http://test.com/Service.svc/DevicesService"); (Using the Chainfacturing & lt; Idviss services & gt; myChannelFactory = New Channel Factor & lt; ID Developers Services & gt; (MyBanding, MyInndpoint)). {IDevicesService wcfClient1 = myChannelFactory.CreateChannel (); Results = wcfClient1.CheckNetworkConnection (IPLocalHost); If (! String.InsnaleOrcti (results) and results, Ekl (IPOLOKHLHOST)) {event log. Wight Entry ("Test Connection...

asp.net mvc - Best approach for creating image buttons in MVC 2 -

I'm writing a questionnaire application with ASP.NET MVC 2. I have a set of questions that yes, no, the reaction of uncertain is required. These images require a questionnaire returning a value to the controller. What is the best way to add an image button? / P> I have a ImageButton HtmlHelper .

html - Webmobile - Display 3 select boxes at the same time ! -

I have a mobile website (primarily the iPhone, but Android and others too) in it days, months and years For the three selected boxes are included. The iPhone automatically displays a very nice wheel for each selected box, but at the same time there is only one. Is there an easy way to display 3 wheels (consistent with 3 form fields) at the same time, to get the type of a "triple wheel", that date is easy, fast and here Post-text "itemprop =" text "> You can see the copy with HTML.

c# - ASP.NET MVC: Why is `ToMvcHtmlString` not public? -

I'm trying to type my own little HTML assistant which works like DropDownListFor Is, but who is not suffering from that which I have encountered before. Let's not discuss that DropDownListFor is flawed & mdash; It is not what this question is about. Anyway, what is the reason that MVC people ToMvcHtmlString is not internal and public? My guess is that you have to encourage it to use but yes, I thought it myself And I have written a duplicate TOMVCt string extension in my own assistants. MvcHtmlString is, IIRC, just fix their compatibility so MVC 2 will be useful for both .NET 3.5 and 4 - but still use it in your own code.

jquery - Rails form params issue -

I $ jQuery I am creating some data to send to the post, the data I send looks like this: authenticity_token: LxHlgi1WU8o0DtaNuiQOit / E + HlGR2plVcToHUAhA6I = employees [0] [boat_id]: 2 employees [0] [crew] []: 10 end_time: +1280408400 start_time: +1280404800 Which jQuery is created by which by changing the data object For an array found in every 'crew' Dome, make the staff called, Then I can create a circle, more than the employees in the dom And its name id is a list of its employees, which is then added to the crew item and is pushed on to create another array called 'Employees' array (JS is a little late, if necessary, can post Then I have in my controller: def make @outing = outgoing .create (: club => current_user.club, : Title = & gt; 'Tour' ,: start_time = & gt; Time.at (parameter [: START_TIME] .to_i),: end_time => Time.at (parameter [: end_time] .to_i) @ Outgoing .save Rails.logger.debug (params [: crews] .inspect) ...

java - General Purpose Decision Tree Algorithm Code Implementations -

Is anyone well-designed, implementation of general purpose decision tree for iPhones or Java? I know with LINQ that it will be quite trivial, but with the purpose C and Java, it will be much more complex. Actually, I want to drill a set of items based on any number of qualifications or qualities in my app. You can try the API is somewhat frugal and makes simple things complicated, but it's a There is a very good machine learning library and if you want to play with classes before using the programs before writing the code before writing class then it also comes with a GUI front end.

php - How to insert element into arrays at specific position? -

हम सोचते हैं कि हमारे पास दो सरणियाँ हैं: $ array_1 = array ('0' = & Gt; 'शून्य', '1' = & gt; 'एक', '2' = & gt; 'दो', '3' = & gt; 'तीन',); $ Array_2 = सरणी ('शून्य' = & gt; '0', 'one' = & gt; '1', 'two' = & gt; '2', 'three' = & gt; '3',); अब, मैं प्रत्येक सरणी के तीसरे तत्व के बाद सरणी ('sample_key' = & gt; 'sample_value') सम्मिलित करना चाहूंगा। मैं इसे कैसे कर सकता / सकती हूं? $ res = array_slice ($ सरणी, 0, 3, सत्य) + सरणी ("my_key" = & gt; "my_value") + array_slice ($ सरणी, 3, गिनती ($ सरणी) -3, सत्य); यह उदाहरण: $ array = array ('शून्य' = & gt; '0', 'one' = & gt; '1', ' दो '= & gt;' 2 ',' three '= & gt;' 3 ',); $ Res = array_slice ($ सरणी, 0, 3, सत्य) + सरणी ("my_key" =...

dataframe - writing a ".rtest" output to file, using the R program (ex) via write.table? -

I saved something in a special pairwise manner. Opening the cc file and found in a statistical test ( Mantel.rtest , package "AD4"). CCV files are named sequentially as "FileX" or "FileBiWei", where x and y are integers. I want to save the results of this test in a file, but I am running on some issues. Here is the code (please "Paste": Library (ad4) x The following error message Trying to do this: Error in in ** .data.frame.default (x [[i]], alternate = true, stringsfactors = stringsAfactors): ca " Unlist "and" as.vector "have tried to convert" mantleout "into some friendly format." No use. any idea? Thanks, WAW EDIT: I should keep in mind that the production of this test in the R environment is as follows: Monte 999 Based on 99 copy copy copy test based observation: 0.5324712 call: mantel.rtest (m1 = dist (matrix (m1, 9, 9)), m2 = dist (matrix (m2, 9, 9)) - Special: 0.01 " U...

php - Get all posts from custom taxonomy in Wordpress -

Is there a way to get all the posts from a classification in WordPress? In this taxonomy.php , I have this code that receives the word from the word related to the current term. $ current_query = $ wp_query- & gt; Query_versions; Query_posts (array ($ current_query ['taxonomy'] = & gt; $ current_query ['word'], 'showposts => 10)); I want to create a page with all the positions in the classification, regardless of the word. Is there an easy way to do this, or do I have to check classification for words, then loop trough, etc. $ Myterms = get_terms ('classification-name', 'orderby = none and hide for'); Echo $ myterms [0] - & gt; Name; With this you will post the first item, then you can create a foreach ; Loop: foreach ($ miter as word) {? & Gt; & Lt; Li & gt; & Lt; A href = "& lt ;? php echo $ word-> Slug;? & Gt;" & Gt; & Lt ;? Php ek $ word- & gt; Name; ? ...

c# - Creating an edit form using ASP.Net MVC 2 scaffolding -

I have the following code that was generated using the scaffold and IDJefe is an integer in my database, but I want to Choose a name from the end user combo box. How can I complete this? & lt;% @ page title = "" language = "c #" masterpagefile = "~ / view / shared / site.master" inheritance = "system.web.mvc pagepace & lieutenant ; SeguimientoDocente.Area & gt; "& Gt%; & Lt; Asp: Content ID = "Content1" content placeholder ID = "TitleContent" runat = "server" & gt; UTPSA | Edit area & lt; / Asp: Content & gt; & Lt; Asp: Content ID = "Content2" content placeholder id = "main content" run = "server" & gt; & Lt; H2 & gt; Edit area: & lt;%: Model.Nombre% & gt; & Lt; / H2 & gt; Use of & lt;% (Html.BeginForm ()) {%> & Lt;%: HTML Valid (% true)% & gt; & Lt; Fieldset & gt; & Lt; Legend & gt; I...

ASP.NET MVC - Filter which action to invoke based on the query string -

I was thinking that it is possible to filter which action is taken based on a parameter in the query string. For example, I have a grid with a radio button column to select an item in the grid. To edit / delete selected items, the grid is wrapped in one form and at the top of the grid. After clicking on the edit / delete button has been posted back and the jquery magic lacks the magic to set the property so that I can distinguish between an edit and a post. I can then handle it by adding the HPPOST filter feature to my function. Now I need to add a search to the form. The easiest way for me is to keep the search form out of the current form and get the method. It works but I have a case where the search form should be located within my grid form. I understand that I can not get a nested form, so I removed the form tag for the inner form but now when someone searches, this will trigger a post request. If you are still walking along, you will see that it will remove the verb / de...

.net - Minimize the number of cross-core context switches -

I was recently experimenting with the application framework (using the Visual Studio Display Wizard) While working with the indicators, I have seen the fact that cross-core reference switch rates are quite high when the application runs with multiple threads (both background and foreground). To know that a large number of cross-core projection switches can be harmful for display, I would like to reduce it to minimize. Together with the potential ways of doing this in the NAT application, can you add some thread to a single core? But you have to reduce the performance - as long as CLR / OS stops the scheduling threads to the available core can do. To do this, you can use the method to force the thread to be pinned for identification of a particular processor or core.

java - How to take a redirection URL -

I have a problem with redirection, in my work I will have to create a connection from that URL which will automatically be replaced by any other URL Go to this point it takes this credential (username and password) and redirects to that URL that contains the parameter that I want, how can I take this parameter? To be precise, I have to: URL with your client_id embed and type user set Please. Since your app is embedding a small window, you can trigger the compact "popup" version of the authorization dialog with display parameters: graph.facebook.com/oauth/ Authorize? Client_id = ... & amp; Redirect_uri = www.facebook.com / connect / login_success.html & amp; Type = USER_AGENT & amp; Display = popup After authorizing your application, we redirect the user back to the Access token at www.facebook.com/connect/login_success.html Do the URL fragment: www.facebook.com/connect/login_success.html#access_token = ... and. Expires_in = ... Prevent the abo...

java - Why doesn't jrunscript honor my classpath? -

I am trying to access some jdbc using rhino included in java669. But I should be the same as two examples: Java: public domain DbTest {public static zero main (string [] argv ) {Java sql.Connection c = null; Try {java.lang.Class.forName ("net.sourceforge.jtds.jdbc.Driver"); C = java.sql.DriverManager.getConnection ("jdbc: jtds: sqlserver: // myserver / mydb", "user", "password"); } Hold (exception e) {c = null; Println (E); }; If (c! = Null) {System.out.println ("yay, got c!"); Try {c.close (); } Hold (exception e) {}} and {System.out.println ("awww."); }}} Javascript: importPackage (Packages.net.sourceforge.jtds.jdbc); Java.lang.Class.forName ('net.sourceforge.jtds.jdbc.Driver'); Var c = null; Try {c = java.sql.DriverManager.getConnection ('jdbc: jtds: sqlserver: // myserver / mydb', 'user', 'password'); } Hold (e) {c = null; Println (e); }; If (c) {println ('yay, got c!'); C....

math - Big O Log problem solving -

I have a question that reads from an algorithm book that I am reading and how I am stumped on how to solve it (This has been a long time since I have logged in or exponent math). The problem is as follows: Assume that we are comparing the implementation of the entry sort and sorting on the same machine. For the input of size N, the merge sort runs in 8n ^ 2 steps, while the merge sort runs in 64n log n phase. What is the entry type sort merge merge for the N key? The basis of the log is 2. I have started trying to solve for equality, but n = 8 are stuck around log n. I have to answer to discuss how to solve a mathematical way. Thank you in advance! (old link has stopped working)

c# - How to return a Enum value from a string? -

I am trying to return a strongly typed value to the string. I'm sure that there is a better way to do this: It looks like a lot of code for just a simple matter: Public stable device type default device type {get {var deviceTypeString = GetSetting ( "DefaultDeviceType"); If (DeviceTypeString.Equals (DeviceType.IPhone.ToString ())) Back to DeviceType IPhone; If (DeviceTypeString.Equals (DeviceType.Android.ToString ())) Back to DeviceType Android; If (DeviceTypeString.Equals (DeviceType.BlackBerry.ToString ())) DeviceType.BlackBerry; If (DeviceTypeString.Equals (DeviceType.Other.ToString ())) Back to DeviceType other; Returns DeviceType.IPhone; // If no default is provided, then use this default idea} > This takes a parameter (default value calculated). This default also provides a type, so a general estimate can be made and it does not need to explicitly use & lt;> This method is now reduced: Get the public static device type default devic...

c# - Programmatically Lookup a User in SharePoint -

I have encountered a situation where I should be able to see a user by their Active Directory name. I have tried to see the user in the SPS ite. User, sps ite. Aluusers and sps ite site user properties, but the user is not guaranteed to be in any of those lists. For users receiving site permissions through the Active Directory group that receives the site permissions for the site, there are no lists for users in different user lists, only a record for Active Directory group. What is the procedure to find a user programmatically in SharePoint directly without asking the active directory via LDAP? I would ideally like to find a mechanism that works for both form based authentication and AD authentication, but I need Try: Determines whether the specified login name is from a legitimate user of the web site, and if the login name already exists If not, then it adds to the web site This method works with both AD and A If you are using both of the FBA, you will need to have ...

Javascript/jQuery order of operations -

Before I get conditional I have to do an I: To see this Check for whether the data (the older old array of numbers) has already been loaded. If it does not get it and it is not loaded in my all_data object. Plot data (or this warning in this case) Here is the code (many details have been snatched to readable var all_data = {}; function get_data (name, get rid) {if (! All_data [name]) {return $ .get ('/ data.json', {'name': name}, function (data) {All_data [Name] = data;}, "json");} and {return}} function load_file (name, escape) {if (get_data (name, escape)) {warning (all_data [name])}} What happens to the above code is that when I execute get_data, it is immediately "undefined" alert Because jQuery.get is returning an (not completed) requested object. At this point the entry is all_data [name] is undefined. If I receive the request of ~ 5s, and I run the code again, then "[object] Object] "will be warned to have data lo...

Data structure for a search engine? -

Which is the most efficient data structure or algorithm that can be used to store search engine data. Besides who can the filesystem be distributed? Open source lusen for more information And details of Nachchhar architecture.

c# - Is there any way to get the instance class inside the attribute code? -

Is there a way to get an instance class inside the attribute codename C #? Public class MyAttirbute: attribute {public someMethod () {this.InstanceClass ???? }} No, unfortunately not. Attributes are types and per members (such as per "some" which they are attached), not for example You can also inspect the properties and those methods can be called without any examples of that class have been implemented to do this. What are you trying to do that need this?

.net - C# IPC Recommendations and comparisons -

I've been working in the Net for a few years, and this is my first visit to the IPC. I know of various possibilities to do IPC (named pipes, remoting, clipboard management, Win32API messaging), but I do not know what is "right for me". I am planning to use the following setup: Site object: This is the reason that the IPC is required. This will be the only object representing the collection of files on the remote object (can be local, can actually be remote) Server: Server. The Exe process will monitor the file system mentioned above, and will update the site object. This process will then keep any customer connected to the updated server, so that new copies of site object will be at regular intervals (either customer compulsory updates, or servers Automatic updates). Customers: Regularly need to be updated about "site". This site also wants the ability to modify the object (or at least for the server to make specific modifications to the message TL; ...

database - Retrieving information from aggregated weblogs data, how to do it? -

I would like to know how to recover data from the collected logs? This is what I have: - Uncompressed log data of approximately 30 GB daily daily loaded in HDFS (and it will grow to about 100 GB) This is my opinion: - every night it Data is processed with pig Logs are read, split, and retrieves custom UDF data: timestamp , url , User_id (can say, it is all log-in entry and it loads in Hbiz ( Ogg data will be stored infinitely) Then if I want to know which user has seen a particular page within a particular time, then I can immediately ask for a complete query with every query Hbiz without scanning the log data (and I want a quick answer - minutes are acceptable) and many more queries are happening at the same time. What do you think of this workflow? , That this information is HB Base would mean the load? What other options and they'd do I compare my solution? I appreciate all comments / questions and answers. Thank you in advance. With Hadop you are always d...

mvp - Java Web Application Frameworks, keeping Mobile Phones in mind -

About Java web application frameworks have a lot of questions about this site because there are structures there, but I will try Make this question as unique as possible. I am developing web applications to mirror the Java applications of my company. (Unfortunately, they do not have pure presenter layers, so I can not just make another "view.") We can not use mobile phones (Blackberry and Windows Mobile 6.5+, not only iPhone and Android) In a framework, I want to: Progressive growth (without javascript the page needs to maintain full functionality) Standard-based, hard HTML Presentation / layout should be done primarily with CSS Some sensible models like MVP would be nice if we do do more We do not need to re-write the app / interfaces of our apps in the future. Write business logic / verification once and get it server-side, send the customer back to POST, client-actions do not require JavaScript information from the server via javascript , And client-...

jsf - Display single record from database in JSP page through Java Servlet based on GET parameter, how? -

I have a servicelet that returns the data correctly from the database when it does () method I Would like to doGet () to populate the Java Bean, which we then refer to in the product.jsf page. I want to call a URL I can not understand why the record was returned based on the id based on the URL. You do not need to declare the area of ​​Bean What is the name of a field on the page? Most MVC engines can keep two in sync if they follow proper naming conventions.

python - teamplayer and pyhook interacting strangely -

I am using, so that you can simultaneously use more rats on my computer, I also use pyHook To capture the events of the mouse, with the following code: import pyHook import pythoncom def onclick (event): # When mouse events are receiving printed 'MessageName:' It is said, event. Message 'print message:', event. Message Print 'Time:', Event Time Print 'WindowName:', Event. Windows print 'Status:', Event. The print of the post '---' back right hm = pyHook HookManager () hm.MouseLeftDown = onclick hm.MouseLeftUp = onclick hm.HookMouse () pythoncom.PumpMessages () without code teamplayer Works fine - it detects the mouse button on top and bottom correctly. If I run the program then the team player starts, so it continues to work well, this time the exact click is being detected from both rats. However, if I start the after team player program starts, then every mouseclick gets double: MessageName: Mouse Quoted message: 513 Ti...

asp.net mvc 2 - How does the session state work in MVC 2.0? -

मेरे पास एक नियंत्रक है जो विभिन्न सूचनाओं (यानी फॉर्मआईड, प्रश्नऐंस्वायर, आदि) को संग्रहीत करता है। वर्तमान में मैं उन्हें नियंत्रक में संग्रहीत कर रहा हूं। सत्र और यह ठीक काम करता है। मैं एक अलग कक्षा (या नियम नियम) में कुछ तर्क को तोड़ना चाहता था, जहां मैं कुछ चेक आदि करता था, लेकिन जब मैं वहां सत्र की कोशिश करता हूं और संदर्भ देता हूं, यह शून्य है। यह स्पष्ट है कि सत्र केवल विशिष्ट नियंत्रक के संदर्भ में ही मान्य है, लेकिन यह सब क्या कर रहा है? मुझे लगता है यह बहुत आम है, आप कुछ "वैश्विक" चर को साझा करना चाहते हैं विभिन्न नियंत्रकों, सबसे अच्छा अभ्यास क्या है? यहां मेरे कोड का एक हिस्सा है: मेरे बेस कंट्रोलर वर्ग में: सार्वजनिक सूची & lt; प्रश्ननाम & gt; प्रश्ननाम ({{यदि (सत्र ["प्रश्नावली"] == शून्य) {सूची & lt; प्रश्ननाम & gt; QAnswers = qaRepository.GetQuestionAnswers (वर्तमान का पता, UserSmartFormID); सत्र ["प्रश्नावली"] = qAnswers; वापसी qAnswers; } और {वापसी (सूची & lt; प्रश्न Anscer & gt;) सत्र ["प्रश्...

interface builder - Objective-C/Cocoa : Using bindings to access scalar values in an array -

तो मान लें कि एक वर्ग है जिसमें: int कुछ डेटा [EXTREMELY_LARGE_CONSTANT]; इंटरफेस बिल्डर में टेक्स्टफ़ेल्ड से इस सरणी से अनियंत्रित पूर्णांक बाँधने का सबसे आसान तरीका क्या है? क्या मैं किसी तरह कक्षा में एक केवीसी पद्धति के माध्यम से कुछ डेटा [x] पढ़ सकता / लिख सकता / सकता हूं, या मुझे एक टेक्स्टफ़ील्ड उपवर्ग या कुछ समान बनाना है? टेक्स्टफ़ील्ड का टैग इसी इंट के सूचकांक के समान बनाएं आपकी क्रिया विधि में, दृश्य का टैग प्राप्त करें और टेक्स्ट फ़ील्ड के intValue पर संबंधित int सेट करें। ऐसा करने का कोई तरीका नहीं है केवीसी के साथ, क्योंकि एक पूर्णांक सरणी एक वस्तु नहीं है (और वास्तव में सी के परिप्रेक्ष्य से भी एक सुसंगत इकाई है), इसलिए यह केवीसी मशीनरी के लिए पूरी तरह अपारदर्शी है।

iphone - Getters / Setters / Assigning one object to another -

मेरे पास चेयर नामक एक वर्ग है। मेरे पास एक दृश्य नियंत्रक है जिसमें टाइप ऑब्जेक्ट टाइप चेयर । कुछ बिंदु पर, मैं अपने दृश्य नियंत्रकों के उदाहरण को चेयर ऑब्जेक्ट के एक और उदाहरण के रूप में असाइन करने का प्रयास कर रहा हूं: [viewcontroller setChair: thisChair]; मेरा सेटर इस तरह से दिखता है: - (शून्य) सेटचेयर: (कुर्सी *) यह एंट्रीचैर; {MyVCChair = यह एंट्री चेयर; } मुझे यह त्रुटि मिल रही है: [setChair:]: अपरिचित चयनकर्ता को उदाहरण के लिए भेजा गया है मैं एक सेटर समारोह का उपयोग करता हूं या स्पष्ट रूप से इस तरह से या एक सेटर का उपयोग करता हूं: viewcontroller.myVCChair = thisEntryChair; यह दृष्टिकोण, यदि मैंने इसे उसी तरीके से किया है जैसे मेरे पास अन्य चर हैं जो मुझे विश्वास है कि मेरे पास है, मुझे लगता है कि समस्याएं हो रही हैं क्योंकि यह कोई कस्टम ऑब्जेक्ट नहीं है जो इनबिल्ट नहीं है? मदद! मुझे लगता है कि वर्ग का नाम और फ़ील्ड का नाम वही हो सकता है एक समस्या हो सकती है अपने सदस्य चर का नाम बदलने का प्रयास करें achair या ऐसा देखने के लिए कि क्या यह क...