Posts

Showing posts from April, 2011

osx - How can a Cocoa application add itself as a global login item? -

I tried LSSharedFileListRef globalLoginItems = LSSharedFileListCreate (zero, kLSSharedFileListGlobalLoginItems, null); If (Global Log Entities) {LSSharedFileListItemRef ourLoginItem = LSSharedFileListInsertItemURL (GlobalLogin Item, KLS Sheriff List List List, NULL, NULL, (CFRRF) [[NSBundle Main Bundle] Bundle URL], Faucet, Null); If (our Latin Intam) {CFREIEEEEEEEEE (our login image); } Else {NSLog (@ "can not be included as a global login item itself"); } CFEEEEEEEECE (Global Legitim); } Else {NSLog (@ "Could not find global login items"); } LSSharedFileListInsertItemURL () Just returned when I ran and ran the application. Do I need to do something else? Some types of authorization Note:? Use-case here for the global login items, that is using kLSSharedFileListGlobalLoginItems and kLSSharedFileListSessionLoginItems I got this job all I had to do was add these lines before I insert the app into the login item: AuthorizationRef authentication =...

map - vimrc mapping problem; execute python script mapping not working from vimrc -

grr I'm struggling with the learning curve of VIM. Trying to get a simple mapping in your vimrc and to execute the current buffer's Python script. Mapping is well made and I work after entering it in the command line in Viam. This mapping is: map & lt; Buffer & gt; & lt; S-e & gt; : & lt; CR & gt; :! Usr / bin / env python% & lt; CR & gt; But it will not load from my VIMRC :( I'm using the original Vimrc_sample only with this mapping added. What is odd is that I could do a different mapping from VIMRC I am: map itest does it work, but the script is not executable? > I suspect that you have something before map : & Lt; buffer & gt; argument means that mapping is only defined for the current buffer, so it should be added to vimrc without something like autocmd FileType python before it is strange Perhaps this is the reason why it does not work: You can switch to another buffer before testing this ma...

c++ - task scheduler manage at.exe tasks -

एक नया शेड्यूल किए गए कार्य बनाते समय, Create.process.exe कमांड के साथ CreateProcess का उपयोग करते हुए, मुझे 1 नामित अनुसूचित कार्य फ़ोल्डर में फाइल मिलती है I नौकरी, at2.job, at3.job, आदि। अब मैं उनमें से कुछ को हटाना चाहता हूं, c ++ प्रोग्रामिंग का उपयोग करना मैं सभी फाइलों में खोजना चाहता हूं, उनके कमांड लाइन में एक विशिष्ट कमांड के लिए खोजना चाहता हूं, और फाइलों में उन डिलीट को हटाने के लिए इस कमांड को शामिल करना है। मैं यह कैसे कर सकता हूं? धन्यवाद at.exe का उपयोग करना बहुत कच्चा है। ITaskScheduler का उपयोग करें इसमें एक एन्यूम () और एक डिलीट () विधि है। प्रारंभ, उस पृष्ठ पर सी ++ में उदाहरण के लिए एक लिंक है।

Initializing an array of a certain type using another array (C#) -

This is my question: Suppose I have a class with such a manufacturer: Class A {Private Eye Eye; Public A (Int NII) {i = new_i; }} Can I initialize an array of A with an array of int? If so, how can I do this? I was thinking something like this: int [] b = new int [5] (0,1,2,3,4}; a [] a; a = new a [] (B); Thanks! var A = All Convert All (B, Item => New A (Item)); The advantage here is that it will be created with the right size without any intermediate steps - Plus it works without LINQ. This is a little bit of C # 2.0 - the following similar : : A [] a = array.Convert all & lt; int, a & gt; (b, delegate (Int item) {new A (item);}); var , the combination of lambdass, and the improvement in the general type of estimation actually comes from C # 3.0 Is shining for.

c - general question about solving problems with parallelisation -

I have a general question about programming parallel algorithms in C. Let's say that our work is to implement some matrix algorithms with the MPI. And / or OpenMPs are some situations, such as false partnerships in OpenMP or IPI, where the dependence of the matrix dimension (divided into columns cyclic processes) arises, there can be some problems. Will it be a common effort to solve a good and common situation, for example, transporancing to the matrix, as this can reduce the required communication or avoid the false sharing problem? After that you will undo the dignity of course, assuming that better speed will increase than this, I do not think that it will be very clever and there will be more ways of laziness to do this. But I am curious to read some of these challenges. Let's first start with the first question: it can do to move the feeling ? The answer is, it depends, and you can guess whether it will improve things or not. One time memory bandwidth cost is 2 * (...

java - parsing owl file -

Thanks for the previous post. This helped me to parse the OWL file. Please see the following code. Owlontology Manager Manager = OWLManager.createowLOntologyManager (); OWLDataFactory factory = manager.getOWLDataFactory (); File file = new file ("sample.owl"); Ovlantology Local Atontology = manager.loadOntologyFromOntologyDocument (file); System.out.println ("weighted otology:" + local ontology); IRI Documents IRI = manager.getOntologyDocumentIRI (Local Onology); System.out.println ("From:" + DocumentaryIRI); OWLClass clsAMethodA = Factory. Getowlas (Document IRI); The examples given in Owl's documents use the IRI, which is not present right now. I do not understand how to remove all the sections of the Oval file? Where should I avoid classes? How do I know about saving those classes ?? Any help? You have to import the OWL API and then I have to follow the code like mine I get all the logical nature With Axioms, you can remove other mode...

c - How are the structure members stored on a little endian machine? -

struct डमी {int x; चारों ओर; }; Int main () {struct डमी डम; Dum.x = 10; Dum.y = 'a'; } एक छोटी सी एंडियन मशीन पर संरचना के सदस्यों का लेआउट कैसा होगा? क्या ऐसा कुछ होगा? 0x1000 +0 +1 +2 +3 ___________________ x: | 10 | 0 | 0 | 0 | ------------------- y: | 'एक' | 0 | 0 | 0 | ------------------- 0x1000 +4 +5 +6 +7 मुझे लगता है कि आपको उपयोगी मिलेगा अंत में आम तौर पर स्मृति में एक शब्द के लिए प्रासंगिक होता है, संपूर्ण संरचना के लिए नहीं।

java - Starting Services -- Directed Acyclic Graph -

The structure I am working with includes state services, which depend on other services, a guided escie Create graphs I want to start services as efficiently as possible. It means starting services in parallel, where possible. For example, in the article on the Wikipedia link, I will start 3, 5 and 7 at the same time because they have no dependencies, I have seen the topological types, but alone you do not tell what can be started in parallel is. I am looking for group services for a library / API, like something: ab, c, d, e f, g, h where it calls me "a" First, then says "B", "C", and "D" in parallel, then "E" and so on. I have got some libraries which are model videos, but the grouping I am looking for did not get anything. So far, I have received some implementations for the guided graph, however, I need an approved license (eg non-GPL). I have got a ComputeNode order (from Equine org.eclipse.osgi_3.6.2.R36x_v20110210), J...

PHP Determining Font Size based off of width -

I have the fixed width of an element, and an unknown string length that is inserted by the user. I am trying to keep javascript out, otherwise this problem will be solved using the jQuery method described in other positions. I am generating a static page with PHP which will not change and I am trying to calculate the size of the text to fit within the Div. Is this just the following: string length - width of the container - server side with PHP And can you please give me a hand to find the right solution? Cheers If this is about an HTML element, then you get 100 Can not set the width of PHP with% reliability You really have to find an element in the client browser, and it is possible that using javascript only. Li> The availability of fonts used on the client machine By manually defining the width of the element with a normal zoom, you can be the best (or if it is dynamic Text, maybe what a judge has been proposed)

audio - better way to load sound in android game than load from res -

I wonder how is the best way to load sound files in the game? Loading from Res is slow, and I do not want to have such games in my game. Is there any other way to load the file with load? Even AudioTrack Perhaps a game developer can pipe here, but my usual meaning of working with audio in Android is that the exact time can be difficult, maybe someday we will get the openale and Can this change?

tsql - finish the execution of sql server stored procedure -

At the time of debugging, I am calling SQL stored calls from AJAX, I realized that its execution has been for a long time. I have stopped this contact via phone. How can I verify that the proc is still not running and how can I complete it from SQL (script or manual). To determine whether an existing session is executing the process, which you can use Apply (If your process requires you to tweak other processes upward) You kill & lt; Session_id & gt; (if you have enough permissions) can kill a session in an irregular manner but keep in mind that if this log is doing the activity then you may have to wait a long time to roll it back for.

Protocols in Objective-C -

id और id & lt; NSObject & gt; के बीच क्या अंतर है। & lt; NSObject & gt; अनावश्यक नहीं है क्योंकि यह वस्तु इस प्रोटोकॉल के अनुरूप है। आईडी किसी भी वर्ग का एक उदाहरण है, जरूरी नहीं कि एनएसओबीक्स्ट वर्ग से प्राप्त होता है जावा के ऑब्जेक्ट के विपरीत, एनएसओबाइजेक्ट "एक सच्चे बेस क्लास" नहीं है, जिसमें से प्रत्येक वर्ग को विरासत में मिला है तो नहीं, सभी ऑब्जेक्ट NSObject प्रोटोकॉल के अनुरूप नहीं हैं, जिसका अर्थ है & lt; NSObject & gt; बेमानी नहीं है।

javascript - How to catch asp.net textbox1.text via jquery -

Pure text box control so I try to capture through jquery. But I can not do how can I do this. Thanks ... Just name your textbox control, say tbName . Then, using jQuery, do this: $ ("# tbName"). Val ();

Python IndexError: list index out of range doesn't make sense -

I'm working on a little python code which parses the response from the Google Maps API, but "Index error: list Out of the index limit "error, which does not make sense to me for some requests, the code is working for some other people, no. The purpose of the code is to configure the answer to a random address address and to put in any word structure for later use. I checked for the list of categories (for example N counting to -1), but this is not a problem. Exact traceback: Tracebacks (last most recent call): File "& lt; stdin>", line 1, & lt; Module & gt; File "geoCodeAPI.py", line 67, in GetLocation data {i] = {'formatted_address'}: Formatted address [i], 'street': street name [i], 'street_number': street number [ I], 'city': city [i], 'country': country [i], 'lat': lat [i], 'lng': lng [i]} index error: out of range index index Suggestions and general comments in an...

I don't know how to use the stack in mips (assembly) -

I give the code that has the problem and the use of the stack can not work. Can anyone ask me to fix this? .data. Allven 2 array: .space 100.text .globl Main main: li $ t0,10 addi $ sp, $ sp, -12 # stack self $ RA, 0 ($ sp) sw $ s0.4 ($ sp) $ self S1,8 ($ sp) jal function addi $ sp, $ sp, 12 lw $ ra, 0 ($ sp) #hello Stack alad $ s0.4 ($ sp) lw $ s1,8 ($ sp) li $ v0 , Add 1 $ a0, $ t6, $ 0 syscall li $ v0,10 syscall function: move to $ s0, moves $ a2, $ s1, $ a1 li $ s0,10101 # s0, s1 its prices have never changed $ Li1,20202 li $ t6777 $ $ v0, $ t6 jr $ ra Have you heard about the "delay slot" in the MIPS processor? After any "branch" instructions the next instruction is placed in "delay slot". This means that this instruction will be implemented in any way, even if the branch is done. Then in the next part of the code: jal function addi $ sp, $ sp, 12 you nop code> jal After the command because addi is executed immediately aft...

Get real time updates from Facebook Groups? -

Is there a way to get updates in real time about their own servers in a Facebook group? I am trying to create a service that allows users to receive SMS messages with a message sent in the group. Is it possible now? Without voting? You can currently subscribe to updates for these types of objects: Receive notifications about specific areas and connections in accordance with user nodes in user graph apache permissions one ???? When your users change permissions, get notifications that have your apps. The field is in the related FQL table. Page - Receive notifications when the pages installed on your application change their public properties Note that the subject of the page is only used to subscribe for changes in the public attributes of the page (such as name, category, image, etc.) is. This is the same information that is returned by the graph API call. You can subscribe to the page's feed in the manner of subscribing to the user's feed - the subject of the subsc...

How to retrieve form "POST" data via cgi-bin program written in C -

I am trying to get mail data from html form using program written in C Currently I'm using: char * formdata = getenv ("QUERY_STRING"); It seems that the form is fine with the "GET" method but not with the "POST" method. How do I get post data after double click? The post header request header has been added to the CGI-Bine environment, you read it from STDIN. Warning that at the end of the server you do not have to send an eoof letter (or some expiry indicator) to read any more than CONTENT_LENGTH bytes of post data.

java - Why does this create a FORCE CLOSE -

सार्वजनिक वर्ग मेन क्लास गतिविधि को बढ़ाता है {@ ओवररेड सार्वजनिक शून्य को क्रेट पर (बंडल सहेजा गया इन्स्टैंसस्टेट) {super.onCreate (savedInstanceState); setContentView (R.layout.main); आशय intent1 = नया आशय (MainClass.this, SecondClass.class); startActivity (intent1); } // --------------------------------------------- सार्वजनिक कक्षा सेकंड क्लास गतिविधि को बढ़ाता है (तीसरा क्लास तीसरा वर्ग; @Create पर सार्वजनिक शून्य को ओवरराइड करें (बंडल सहेजे गए इन्स्टैंसस्टेट) {सुपर.नक्रेट (सहेजे गए इन्स्टेंसस्टेट); setContentView (R.layout.keyboard); thirdclass.Random_Method ( 'ए'); } // --------------------------------------------- सार्वजनिक कक्षा तीसरा वर्ग गतिविधि [सार्वजनिक शून्य] Random_Method (char NewChar) {} तीसरे वर्ग का तीसरा वर्ग कभी नहीं था initalized। कोड को तीसरा वर्ग = नया थर्ड क्लास () में बदलें; thirdclass.Random_Method (एक ???? ए.ए. ????); या, वैकल्पिक रूप से, ऐसा करें: नया थर्ड क्लास ()। रैंडम मेथ ('ए'); इसके अलावा, तीसरा क्लास को गतिविधि क...

sql - How to create an Inverted Index on a table using Oracle -

I have a table named book with ISBN, title and description. I am trying to create the Inverted Index using this command on this table: Book on my index (details) INDEXTYPE is CTXSYS.CONTEXT; And I'm trying to query it with the query below: SELECT score (1), contains the title WHERE from Book B ( B. Description, 'Hucklebury Finn', 1) & gt; Order according to 0 points; (1) DESC; Every time I run this query, although no rows are selected, the query SELECT title, book from the description where Description = 'Huckleberry Finn'; Returns: Title Description ------------------------- ----------- 'Huckleberry', 'Huckleberry Finn'. I'm not sure what is wrong with my questions, this is the first time I've ever tried Inverted So to make an index, so if someone can tell me what is wrong in my query or there is another way to do this, I would appreciate it. itemproc = "text"> have you synced your index? In new v...

php - different values for POST value? -

I have a contact edit form. The entire form is requested through AJAX (a lightbox). The form is preloaded with contact data. When you edit the jQuery check for the difference in the form and only returns the converted input. This works. }] Turns it over to production [[\ "name \": \ "FirstName \", \ "value \": \ "James \"}] where additional \ is coming from. If it helps localhost = windows, php 5.3 / Output = Linux PHP 5.2 Tell me if you want more code var contact = $ (this) .attr ('rel'); $ .facebox ( Function () {$ .ajax ({url: site_url + 'ajax / contact', type: 'POST', data: {id: contact, method: 'editForm'}, success: function (data) {$ .facebox ( Data); $ ('# editForm'). Submit (function () {var data = []; var finalForm = $ (this) .serializeArray (); var for difference = 0; (initialForm in var i) (if (difference> gt; {$ Ajax ('url: site_url +'), ...

php - CakePHP has the wrong model name -

Now I'm trying CakePHP and I can not work my app because CakePHP "thinks" my model name is 'Tach' when it's actually in 'Tache' Why this? My controller is defined as: app / controller / taches_controller.php class TachesController enhances AppController {function index () {$ AllTaches = $ This- & gt; Tech- & gt; Search ('All'); $ This- & gt; Set ('taches', $ allTaches); } } And here's my model: AP / Modal / Tache.fp Extended to Class Tove App MODEL Is {var $ useTable = 'tash'; } If I use 'tshe' in my controller, I get an error: $ allTaches = $ This->; Tache-> It seems ('all'); But if I use 'tech', I do not get any error: $ allTaches = $ this- & gt; Touch- & gt; Search ('All'); Why can not I use the model name 'Tache'? Am I doing something wrong ? The way I am on PHP 5.3 and my Cake PHP version is 1.3.8 Thanks! Alex To add...

php - get image preview on upload -

I need to upload an image and then display the thumbnail preview of the image on the same page (#exx). Can someone give me some hint? index.html & lt; Script & gt; Function ajaxfileload (upload_field) {// checking file type var re_text = /\.jpg|\.gif|\.jpeg/i; Var filename = upload_field.value; If (filename.search (re_text) == -1) {warning ("file should be either JPG or GIF or JPEG"); Upload_field.form.reset (); return false; } Document.getElementById ('picture_preview'). InnerHTML = '& lt; Div & gt; & Lt; Img src = "picture / progressbar.gif" range = "0" /> & Lt; / Div & gt; '; Upload_field.form.action = 'upload-picture.php'; Upload_field.form.target = 'upload_iframe'; Upload_field.form.submit (); Upload_field.form.action = ''; Upload_field.form.target = ''; Back true; } & Lt; / Script & gt; & Lt ;! - Used iframe to upload AJAX file - & gt; & Lt ...

c++ - Reducing network latency in communication of high volume intranet applications -

We have a set of server applications that get measurement data from the device / device. Message transit time is currently our main obstacle, so we are interested in reducing it to improve the process. Communication between device and server applications is through THP / IP sockets, which use C ++ on Redhat Linux. Is it possible to reduce the time of message transfer using hardware by changing TCP / IP configuration settings or by changing TCP kernel functions? (We can sacrifice security for speed, because communication is on a secure intranet) workload Depending on, disabling on socket connections can be of great help. While working with high volume of small messages, I found that this is a huge difference. By memory, I believe the socket option C ++ was called TCP_NODELAY

ruby - How to set path for vim config files? -

I know that they want to store the vim config file in their control. Is there any way where config files are? Eg .vimrc etc? i.e. I store them in a separate folder where my second GIT repo occurs. What are the good color plugins for BTW, Ruby? You can change the location of your ~ / .imim / directory You can use the VIM environment variable, if you want to keep all your GIT repo in one place for more information see the : $ VIM help section, but here It is something that looks most useful: Environmental variables "$ VIM" is used to find different users files for VIM, like sub See Ogkrta startup script ".vimrc" It depends on the system, | Startup | If you add export VIM = / home / blankman / git / vim / to your ~ / .bashrc You should be set.

Android SDK Version -

I want to know about the Android version In other software, the lower version is mostly compatible with the higher version. I know that Android always asks for a higher SDK or ask the same API version whenever I run a lower version of API or SDK. It should be able to cope with it, is not it? Another question is how do I download an Android SDK package from Eclipse, it overwrites it on my existing SDK and I should not be so thankful. I know that my search is simple or I can be numb. But ignore me is a good day. Well, Android is always high SDK or at least one The SDK version is asking because the new feature is continuing to develop through SDK generations, if your current project is created using 2.2 SDK then there will be a chance that some code will not work with 2.2 in 2.2. There is no way to download SDK packages about SDK packages, but I certainly do not recommend doing so.

computation theory - What is the context free grammar for the complement of the double word over 0,1? -

l = {ww | What is the complimentary complimentary CFG {0,1} *}? L1 = {w1w | W {0,1} *}, L0 = {w0w | W {0,1} *} These languages ​​can be defined by the following CFGs: S0 / 1 - & gt; | 0 S 1 S1 0 S1 | 1 s Now see L3: L3 = (L1) U (L2) U (L1 L2) U (L2L1) This context is free from the close of union and closing Let's prove that L3 is the language for which we are searching. First of all we have seen that it is related to all the possible heterogeneous length words. Even for the word of the length, if they are in the language, there is a pair of terminals, at least, which is different from both sides of the word. Call this pair A and B. Each word can also be divided into this way: (x_1 ^ m) (a) (x_2 ^ m) (y_1 ^ n) (b) (y_2 ^ N) And it is absolutely fine (L1L2) U (L2L1) U (L2L1) This means that CFG language Are not closed under the supplement.

How to transfer application from Emultor to Android phone -

I have written an application on the Android emulator which is running well, but to transfer it from the emulator to Android phones Object: Either: a) Plug the phone using USB cable and the app is turned on from Apple Do Phone This is the best way but you may need to find the right ADB drivers first. B) Copy the .apk file from the project / bin folder to the phone's SD card, locate and run the file to install. C). By placing the APK file on an HTTP server, download and install the phone browser.

classpath - tomcat 6 not looking for classes in webapps folder at startup -

I have a problem that when I start a tomcat, it logs in the LocalNostFoundException exception in the localhost.log file. I run it under Windows 7. Everything works. The only way to stop CNE exceptions was to stop all my $ CATALINA_HOME / webapps / root / WEB-INF / lib content $ CATALINA_HOME / webapps / root / WEB-INF / I was running on code> $ CATALINA_HOME / lib I do not know where to see Classpath config How to configure Tomcat to view sections in lib and $ CATALINA_HOME / webapps / Root / Web-INF? / Class folders? And is there any way to do this without war file deployment? If you are deploying project as .war, you can not get a class notfound exception Should, but I recommend you to re-establish your project. If you are using Eclipse IDE then just set up a new server in the IDE and then run it ... run in server ... this will redefine your server and re-deploy Can help in doing it.

asp.net mvc - How to use HandleError with model state errors -

I use a custom action filter to handle specific exceptions to my service class to populate the model service I want to, and then return the scene. For example, take your previous code: public ActionResult SomeAction (SomeViewModel Models) {try {_someService.SomeMethod (model); } Catch (prior to service expansion) {ModelState.AddModelError (ex.Key, ex.ErrorMessage); } See Return (); } Actually, this would call a service, and if a ServiceException was thrown, it did not know there was any issue w / model data, and add error to ModelState, then Just come back to the scene but I have seen some very non-dry patterns because I had this same try / catch code in every verb method. Therefore, to make it dry up a bit, I originally created a new HandleServiceError action filter: Public class HandleServiceErrorAttribute: HandleErrorAttribute {Public Override Zero OnException ( ExceptionContext reference) {((Controller) context.Controller) .ModelState .AddModelError ((ServiceExceptio...

google play - App is published in Android Market but not visible in some phones -

I have an application published in the market. Here is the link given below. I have a fire in HTC Wilderness and both have with me Android 2.2 is Now I can see it and install this application on HTC Desire, but I can see it on the HTC Wildfire market. But if I install the app manually, then it works, then why is not HTC listed in the market for wildfire? While my goal of SDK is 8 and the minute SDK 3 is. Whats the problem here Can anyone see a link and help me? [Updated] Below is the manifest code I have deleted my 6 activities while copy-paste . & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "com.cricket.fast" android: versionCode = "1" Android: versionName = "0.1" & gt; & Lt; Apps Android: Icon = "@Drawable / Epicon" Android: label = "@ string / app_name" & gt; ...

asp.net - IIS express deploy application -

I have Visual Studio 2010 at home and developed a web application. Now I am on another computer in another place. I have a project folder on my USB drive and all this computer is installed IIS Express. Is there any way that I can run my web application anyway? Assuming that you have the necessary files to run web applications in all project folders, Should be able to create a site and launch it. Here you must add the IIS Express configuration file. The file is usually located in "C: \ USER \\ DOCUMENT \ IISExpress \ config \ applicationhost.config". Below, you will need to change the path of the website and make sure you tie it correctly. You may have to change the port number if it fights with any other websites you want to keep. & lt; Sites & gt; & Lt; Site name = "MyWaveSite" id = "1" serverAutoStart = "wrong" & gt; & Lt; Application path = "/" & gt; & Lt; Virtual Directory Path = "/...

stack - Does the system allocates memory from high->low or the reverse? -

Image
IIRC यह उच्च-> कम होना चाहिए, लेकिन इस छवि के अनुसार, यह कम-> उच्च । अब मैं उलझन में हूँ, जो कि मामला है? लगता है कि कोड को कम-> hight से भी निष्पादित किया जाता है: 0x0000000000400498 & lt; main + 0 & gt; पुश% आरबीपी 0x0000000000400499 & lt; मुख्य + 1 & gt ;: mov% rsp,% rbp 0x000000000040049c & lt; main + 4 & gt ;: उप $ 0x10,% rsp 0x00000000004004a0 & lt; main + 8 & gt ;: Movl $ 0x6, -0x4 (% rbp) इंटेल x86 / x64 पर, जो सबसे लोकप्रिय आर्किटेक्चर हैं जो विंडोज चलाते हैं, स्टैक निचले पते पर "बढ़ता है" I.e., स्टैक पर दबाव डालने में स्टैक पॉइंटर (ईएसपी) से घटाना होता है, और स्टैक से पॉपिंग में स्टैक पॉइंटर को जोड़ना होता है। स्टैक आपके उदाहरण में ऊपर से नीचे तक बढ़ता है। यह फ़ंक्शन का प्रस्तावना है, और यह स्थानीय चर के लिए स्टैक स्पेस आवंटित करने के लिए उप निर्देश का उपयोग करता है। आप उस मेमोरी के साथ स्टैक को भ्रमित कर सकते हैं जिसमें आपका प्रोग्राम संग्रहित है - उस क्षेत्र में, सीपीयू क्रमशः कम से उच्च पते पर ...

php - How do I create simple code to select 5 names from input? -

I want to create simple puzzles to select random 5 names from the input. We say that I want to give a gift for my blog commentators so I submit my name and what I paste in textarea $ winner = 'John, Michelle, Peter, Sally, Rooney, Owen, Tweez, Ronaldo, Wayne Rooney, Nanny'; How to choose winners with PHP or Jpier can be done. I know First put all input text in an array and then with random Choose value> test $ winArray = explosion (",", $ winner); $ Last winner = array_rand ($ winArray, 5) echo "prefix"; Print_r ($ finalWinner); // Return keys " " Resonates; {Echo $ winArray [$ i] to retrieve the names of the winners for $ (= i = 0; $ i & lt; 5; $ i ++). "& Lt; br & gt;"; }

.net - Arranging/Organizing my classes/interfaces into folders? Not changing namespace with folder (Resharper: Namespace Provider = false) -

I currently have a project and its increasing size is in everyday it is a container for an API that I provide I am doing I currently have all of my classes and all interface routes I have separated my Erum, Contents etc. into my folders, but I have a folder named as part of the name space Because they are containers to keep them organized. I was wondering if anyone has any experience here? Should I separate my interfaces in my own folder (should not inherit the folder as part of the namespace) Do I even separate my classes? should do? I also have classes which are children of other classes .. That is, a class applies it as property so it will never be instantiated outside, so will I separate them further (for example ) "My Products" will be a folder called "Products" and inside this folder, and then my item class and other classes that are specific to the product? I would love to hear some feedback. Thanks / div> Same happens ever. In ...

php - How to pass variable to new page? -

मेरे पास एक सवाल है। नए पेज पर नये पेज ... विधि के बिना प्राप्त करें । लेकिन यह दृश्यमान है। क्या किसी नए पेज पर वेरिएबल को नया पेज पर पास करना संभव है ... विधि POST एक फॉर्म के बिना? क्या ajax के साथ एक नया पेज पर वैरिएबल प्राप्त करना संभव है? मुझे एक पेज से किसी दूसरे पेज पर आईडी पास करने की आवश्यकता है ... बिना उस विज़िटर को यूआरएल में चर देखता है। संपादित करें: हाँ, मैंने सत्र के लिए सोचा था लेकिन जब मैं घर जाता हूं, तो मुझे इस सत्र को हटाना होगा। क्या यह वाकई सत्र का उपयोग करने के लिए एक अच्छा विचार है? संपादित करें: सबसे अच्छा तरीका कौन सा है? COOKIE या सत्र धन्यवाद मुझे लगता है कि आप चाहते हैं: PHP में सत्र समर्थन, बाद के अभिगमों में कुछ डेटा को संरक्षित करने का एक तरीका शामिल है। यह आपको अधिक अनुकूलित अनुप्रयोग बनाने और अपनी वेब साइट की अपील बढ़ाने के लिए सक्षम बनाता है। सभी जानकारी अनुभाग में है। पहला पृष्ठ सत्र में आईडी डाल सकता है और दूसरा पृष्ठ इसे पुनः प्राप्त कर सकता है।

Ruby / Datamapper create or update issue - immutable error -

I have a user class, which can optionally be a billing address when I post a payment form Assuming the user has indicated that they want to save their billing address details, I want to create a new address record or update the original. I have tried to do a lot of things but the closest I can get is the work code ... Datamapar in Class User :: Resource Property: ID, Serial Property: Provider, String, Length = & gt; 100 Property: Identifier, String,: Length = & gt; 100 Property: Username, String ,: Length = & gt; 100 Property: remember_billing, 1 near Boolean, Billing_Address and Class Billing Address includes DataMaper :: resource property: first, string, length = & gt; 20 Property: Nickname, String,: Length = & gt; 20 Property: Address1, String, Length = & gt; 50 Property: Address 2, String ,: Length = & gt; 50 Property: Townicity, String,: Length = & gt; 40 Property: State, String ,: Length = & gt; 2 Property: Postcode, String,: Length = ...

javascript - how to do this style slide navigation? -

Example: Main navigation is "one", "two", "three", "four" example. Under the main navigation "A", the navigation "Navigation is welcome to our site" "two 1", "two 2", "two 3", "two 4" two, "three 1", "three times main Begus "three" for the Navy Now, I should look at the mouse hover one, "Welcome to our site" shows in a blcok.The block shows only "one" baby navigation , When two on the hover, "two1", "two2", "two3", "two4", the same block in the show. These blocks only show "two" child nav, then "three" Hover over. Similar to above. Can I use jquery or javascript to get it? If you want to use JavaScript, here is an example

iphone - Navigation Controller does not load views -

मेरे पास कस्टम डिटेक्टर नियंत्रक DRTableViewController मेरे ऐप प्रतिनिधि में है, मैं लोड करने के लिए निम्न फ़ंक्शन का उपयोग - (BOOL) अनुप्रयोग: (UIApplication *) अनुप्रयोग में किया गया FinishLaunchingWithOptions: (NSDictionary *) launchOptions {// ओवरराइड प्वाइंट के लिए एप्लिकेशन लॉन्च के बाद Tvc = [[DRTableViewController alloc] init]; // टीवीसी xib navCon = के साथ बनाया गया है [[UINavigationController alloc] initWithRootViewController: tvc]; [स्व। विन्डो ऐड एस्यूब्यूव्यू: [नेवियन दृश्य]]; [नवकॉन रिलीज़]; [स्वयं। विन्डो बनाते हैं और जानकार]; हां वापसी; } लेकिन जब मैं अपना अनुप्रयोग प्रारंभ करता हूँ, नेविगेशन नियंत्रक प्रकट होता है लेकिन इसमें का दृश्य काला है, जब मैं [स्व.विंडो ऐडस्यूब्यूव्यू: [टीवीसीए दृश्य]]; [navCon दृश्य] के बजाय मैं बिना किसी समस्या के अपने विचार देख सकता हूँ पहले से धन्यवाद आपको अपने नेविगेशन नियंत्रक को बनाए रखने की आवश्यकता है, इसलिए इसे रिहा नहीं किया जाता है। आप नेविगेशन नियंत्रक के लिए एक संपत्ति बनाएं [navCon release] ...

Animation options HTML5 Canvas/CSS3/jQuery -

I'm interested in combining some more Flash-like animation, or HTML5 / JQuery. One of the ideas that goes around is the animation sequences like bird flying, character animation and 'tin'. I am a flash goddess from the background, so this is the second nature of the flash based timeline based twist system, so I am thinking that what is possible with new emerging technologies like HTML5 canvas, CSS and JNU? How are these accomplishments on tiving like animation? What is a good starting point to read on? For example, flying birds are wonderful, they appear to be 3D, variable direction, speed, rotation, flap, speed. It can be easily achieved in a relative flash, making pitt animation set in the form of a movieclip, produces them on stage and moves them around in different speed or PV 3D in Twinlight, but I do not know That's how it will be on the canvas. So in a nutshell, the ideas of the above method, good reading material on this type of animation outside the f...

php - Image use tracking possible? -

I have some images on my site that I have created, just some .gif and .jpg . . Is it possible to find out that someone is stealing my images and "post-text" itemprop = "text"> I suggest not to image the image as straight path But src = "/ ImageProvider.php? ImgId = 12345" in that page / control you will be able to modify, the host that requested the image

objective c - in statement in for loop -

मेरे पास निम्न के लिए लूप स्टेट ब्योर है: के लिए (NSString * name in NameArray) नामअरे NSArray है। उपर्युक्त बयान में इसका क्या अर्थ है: NSString * name in nameArray सभी नामों में NSString * नाम से एरेरे। कम स्पष्ट रूप से लिखा जा सकता है: ध्यान रखें: एक अस्थायी सरणी को पुनरावृति न करें और इसे उत्परिवर्तित करें (और सुनिश्चित करें कि कोई अन्य थ्रेड नहीं)। ऐसे मामले में आपको गिनती हर पुनरावृत्ति को ऊपर प्रदर्शित की तरह कॉल करने की आवश्यकता है।

iphone - Using buttons to switch views -

I have a main view with four buttons, each time a button is added to a subview. But when I click on the button, and the subview comes up, I can not press any of the other buttons Do anyone have any suggestions? Here is a code when a button is clicked: newView = [[UIView alloc] initWithFrame: CGRectMake (25,25,50,20)]; [Add new view Add: Preview: testArena.view]; [New view set frame: CGRactam (0.0 F, 480.0F, 320.0F, 480.0F)]; [UIView Start Permissions: @ "Animate Arena View" Reference: Zero]; [UIView Set Animation Duration: 0.4]; [New view setframe: CGRactack (0.0 F, 20.0F, 320.0F, 460.0F)]; [UIView commitAnimations]; [New view set user interaction enabled: Yes]; [Self.view addSubview: newView]; Where the new view is a UIView, and testArena.view is the square that I want to show. Looks like the new view is hiding the buttons being pressed? Try sending it back, so this can not cover the button: [self.view sendSubviewToBack: newView];

How to create an Excel file using a database query in VB.Net? -

I would like to generate an excel file using the database query in VB.Net. How can I do this? To be more accurate: I would like to "bind" a query (like binding a query in a grid view) in an excel file, such as the row in the table capturing the relevant cell in a new Excel file Do it, and save the file to your computer, and then send it to someone. While I can handle the mailing part, it is the creation of such a file that I need help, anyone know what I want to achieve? PS: I need to do this in VBNET and I am using SQL Server 2008. OK This is not correct, but you should start it. First of all you would like to add a reference to the version that uses Excel. In my case it is 12.0 (2007), but this code should work with the previous two or three versions in which there is slight change or two. Import Import Public Function CreateTable) DataTable dim cn New SqlConnection (My.Settings.con) using the slow cmd New SqlCommand as new as the new SqlDataAdapte...

How to search ListView in Android (Contact's style) -

I have a question about the creation. I have a custom list view defined. It is supported with DB data. I know that I can press the search button and that search will appear (likewise it is done on the contact list), but I do not know how to handle it. I like the search type in Contacts because it keeps changing while typing I will be happy with any advice Thank you so much! You can do this in two steps: A filter Make eligible listings - and .

css - Skinning Halo scroll bar in Flex -

I have the spark scroll bar in my application the way I want to know where i s | VScrollBar and then set skinClass: ClassReference (my skin class) in my CSS file. For my Halo scroll bar I have set up for each element of the scroll bar (arrow, thumb, track etc.), but I should have a central square with the spark scroll bar. Is there any way of doing it? Yes, but not the same way, as you can in SPARC. Spark was made for easy skinning, which is a good thing about Flex 4, but Flex 3 worked very differently. What you can do is to increase the flex 3 scrollbar into a custom square that sets all of those elements. Then refer to the custom class within that project. Sadly, all this can be done.

ms word - convert Html to doc in c# and return it as binary -

I have this code to convert an html page into the document, but I have a question Microsoft.Office.Interop.Word.Application terms = new Microsoft.Office.Interop.Word.Application (); Microsoft.Office.Interop.Word.Document wordDoc = new Microsoft.Office.Interop.Word.Document (); Object oing = system reflection. missing. Value; WordDoc = word.Documents.Add (referencing oMissing, referee oMissing, referee oMissing, referee oMissing); Word.Visible = false; Object file path = "c: \\ pagina.html"; Object Request Conversion = System. reflection. missing. Value; To read the object only = false; Object saveto = "c: \\ doc.pdf"; Object ozbustustation = system reflection. missing. Value; wordDoc = word.Documents.Open (reference Filepath, Confirmconversion ref, ref, read-only, ref oMissing, OMissing referee, referee oMissing, OMissing referee, referee oMissing, OMissing referee, referee oMissing, referee oMissing, OMissing referee, referee oMissing, Referee oMissing, Rif...

facebook - Publish on wall (status, link, video etc) with security -

I am using facebook-ios-sdk, I can use security (status, link, video, and whatever) I want to publish on the faceback wall so that only specific friend updates can be seen. How can I do this? Check privacy arguments in this link and the code is like this . This code is for status updates only NSDictionary * privacyDict = [[NSDictionary alloc] initWithObjectsAndKeys: @ "SELF", @ "value", zero]; SBJSON * Jasonurter = [[SBJesson New] AutoCare]; NSString * privacyJSONStr = [jsonWriter StringWideObject: privacyDict]; NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @ "My Message", @ "Message", privacyJSONStr, @ "Privacy", zero]; Set the objectofkey (value, friends, network, allow, reject) of the dictionary privacy Sort by your use NSDictionary * PrivacyDict = [[NSDictionary alloc] initWithObjectsAndKeys: @ "CUSTOM", @ "value", @ "SOME_FRIENDS", @ "f...

sql - Access VBA: Run-time error '94': Invalid use of Null -

I try to calculate the distance between two points (according to the latitude / longitude of those points in decimal format) I am VBA code: constable = 3.14159265358979 function distance (lat1, lon1, lat2, lon2) dim theta, district theta = lon1 - lon2 district = sin (deg2rad ( Because (deg2rad (lat2)) * because (deg2rad (lat2)) * sin (deg2rad (lat2)) * (deg2rad (lat1)) * because (deg2rad (lat2)) * because (=) district = acos (district) district = rad2deg (district) = (Dist * 60 * 1.1515) * 1.609344 and Function Function ACOS (RD) if ABS (RD) & lt; & Gt; 1 then acos = pi / 2 - ATN (red / Sqr (1 - red * red)) elseif red = -1 then end = exemplary acos if end function function deg2rad (degree) deg2rad = cdbl (degree * pi / 180) Function function rad2deg (rad) rad2deg = CDbl (rad * 180 / pi) termination function and I get an error Run-time error '94': invalid usage of tap in this line " Deg2rad = CDBL (dig * p / 180) ". I write a question: select dif...

jquery - carouFredSel current image caption -

I was thinking that none of you is familiar with this. I like scripts but I'm struggling to remove the number of current slides, so I can show a caption. The problem I have is that I load the captions for each slide instead of showing 3 slides and script middle one, only one, I can not even understand that the current How to get item number so that I can use it to fade in the right caption ... You can use $ ("# thumb"). Trigger Handler ("Configuration", "Item. Visible"); Math.floor () to get the middle element on it. And $ ('# thumbs'). Triggers ('Slide to', [$ (this), - Mid_Element]); I have been able to get something here, its helpful for you Although its late reply .. Assistant to anyone else Maybe: p

Using an object as an instance variable in a basic Objective C program, I get an "expected specifier-qualifier-list" error -

I am writing a simple program that uses an object * center from an XYPoint class as an Exercise Variable. @ Interface Circle: NSOJject {Int Bidia; XYPoint * center; } However, I get this error message when compiling the code: Error: 'Expected specification-eligibility-list' before 'XYPoint' / P> How can I fix this? In circle H, you declare the XYPoint class: @ Class XYPoint; Then, in the circle, import its full definition: #import "XYPoint.h"

r - Any way to produce a LaTeX table from an lme4 mer model fit object? -

क्या किसी को एक lme4 mer ऑब्जेक्ट से एक अच्छी प्रकाशन गुणवत्ता लाटेक्स तालिका बनाने का एक तरीका पता है? एक्सटेबल विधि (पैकेज एक्सटेबल ) और न ही लेटेक्स विधि (पैकेज Hmisc ) से पता नहीं कैसे मेर वस्तुओं। उदाहरण के लिए, यह फिट दिया गया है: लाइब्रेरी (lme4) fm1 & lt; - lmer (प्रतिक्रिया ~ दिन + (दिन | क्या निश्चित और यादृच्छिक प्रभाव दोनों के लिए गुणांक अनुमानों की एक अच्छी लाटेकस तालिका तैयार करने के लिए कोई विकल्प हैं? संपादित करें: क्योंकि यह नीचे टिप्पणी थ्रेड्स में कुछ दफन है, ध्यान दें कि एक समुदाय विकी आर लेटेक टेबल के लिए विकास में है: यहां एक ब्लॉग पोस्ट है जो इस स्थिति के लिए दर्जी बनता है

html - Question about CSS in Internet Explorer -

I have an idea that I can imagine. Put me in a CSS file: height: 50px; If the browser is Internet Explorer, and height: 45px; If the browser is Chrome or Firefox. How can I do this? A special tag can be used as the following: & lt; Style type = "text / css" media = "screen" & gt; . Your tag {weight: 45px; } / * Common Browsers * / & lt; / Style & gt; & Lt ;! - [if IE] & gt; & Lt; Style type = "text / css" media = "screen" & gt; / * IE * /. Your tag {weight: 50px; } & Lt; / Style & gt; & Lt; [Endif] - & gt; NB: IE understands the weight of the element with boundaries, when other browsers do not.

Trouble Filtering With Ajax-populated Data with Jquery Datatables -

मेरे पास निम्न कोड का उपयोग करते हुए एक jquery datatable है: // टेस्ट सूची तालिका $ ("# डीशबोर्ड_स्टेस्ट_लिटेबल")। डेटाटेबल ({"बीजेक्कीयूआई": सच है, "बीटूविड्थ": गलत, "बीप्रोसेसिंग": सच है, "आइसोर्टिंग": [[0, 'एसीसी'], [2, 'एसीसी]]], "SPaginationStyle": "{{" sTitle ":" प्रोटोकॉल / टेस्ट / केस "}," एसपीएक्सएस्सोर्स ":" प्रोजेक्टटेस्ट लिस्टटेपोप्यूलेटयूआरएल "," ओलाउजेज ": {" एस खोज ":" सभी कॉलम खोजें: "}," एओ कॉलम " {"STitle": "अंतिम रन"}, {"sTitle": "अंतिम बिल्ड / चरण"}, {"sTitle": "detail", "sClass": "center"}, {"sTitle": "owner" }]}); मेरा सर्वर JSON को सही तरीके से वापस भेजता है और तालिका अपेक्षित मानती है। मुझे जो समस्या है, वह यह है कि मैं अपनी तालिका में कोई भी फ़िल्टर नहीं कर सकता । खोज बॉक्स में कोई भी अक्षर प्रदर्...

android - SearchDialog cannot be shown within ActivityGroup -

I have two activities within an activity group, a "province activity" and another "city activity". Code: Expands the public category CityManagerActivity Activity Group {see v1 = getLocalActivityManager (). StartActivity ("Tab 1", new intent (this, province activity category) .addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP)) GetDecorView (); ReplaceView (v1); } But when I have the default search to search by pressing the search key in "Tab 1" I have an error: 08-19 17: 18: 23.438: Error / Android Random (9 078): Uncouted Handlers: Due to the exception of the main thread, 08-19 17: 18: 23.458: Error / Android Random (9 078): java.lang.IllegalArgumentException : No ident 08-19 17: 18: 23.458: error / Android Random (9 078): Android. App activity. Surgeon Search Manager (Activity. Java 3499) 08-19 17: 18: 23.458: Error / Android Random (9 078): Android. On the App Start search (Activity Java 04648) 08-19 17: 18: 23.458: Error / Android Random ...

J2ME java target problems? -

I have a huge app in Java which is a port on j2me and it is quite difficult. Target Java (1.3 I believe) It is very difficult to shut down the JTM. I am working in Netbeans and I was wondering if to change a Java scheme for repregorization of multiple classes for compliance with a higher 1.3 and if I had changed it Can you expect to run on any device? I have looked around on my IDE and can not find any option to change the goal. It is not possible to change the Java target of Java ME app, so you only use its achievement from CLDC Please, but you can try the J2ME Polish Client Framework D. Enough.Polish. Take a look at the package.

python - ZMQ failing when sending larger chunks of data over LAN -

Well, basically I have a master system and 3 slave systems. I send content to my client system I used the request / feedback step because it resolves my problem of data sharing naturally after sending the content to my 3 client systems, I close the socket which was responsible for the REC / REP Topolis and Joe A Get content from another group Sockets build-up was that all 3 systems to the individual were added with different slave system. I ran the whole code in the local host, I had no problem and everything was easy, even when I tried to send a 40 MB data set from one of the master systems in the client system. The problem was when I tried to apply it to my lab on the LAN The RE / REP phase runs smoothly, so basically All client systems work on data sets. Indivadal pair fails with client type when I try to process large sets of data (like 40 MB, which I do not think is a bit bigger Because I load the content in the dictionary and the size of the dictionary object is in ...

c# - Need regex for password requirements -

I need a regex to test user password for: Less There should be no less than 8 characters alphanumeric format, no more than 4 consecutive numbers, no id in the password (i.e. it can not be used: 1234 , 9876 , abcd , or 1234abvc ) I ^ ([a-zA-Z0- 9! @ # $ *%] {815) }) $ currently and it works great, but felt There is no account for a string of string letters. I'm not sure how to add a mixture. Any help would be great! If you want to solve it with regex, then just add a negative lookahead assertion. You can test it ^ (?!. * \ D {4,}. *) ([A-zA-Z0- 9! @ # $ *%] {8, }) $ added part (?!. * \ D {4,}. *) does not consume your string, it only checks Whether 4 or more numbers in a row and if so, its false. Why would you like to limit the password for 15 characters? I removed it in my example.

asp.net - how to find the selected link button value in the repeater control -

I have an issue about the link button, on my website I found a product for the sale page, in which one Right side bar is with filter option, while the left-hand bar filtering results shows on my Opinion Sidebar I have used EpiRion with Repeater Control which displays the search criteria from the database. For example, I have 2 search criteria models and pricing, there are three models under model erordian, which I want to receive, when the user clicks on that specific model, the page will run a query in relation to that click and The result should be tied to the bar on the repeater, I know the query to get the result, but I do not know how to get the value of the hyper link button, etc. The buttons will be dynamic can be 3,4 or 10. How do I get the clicked hyperlink value so that I can run a query based on the selected model? Any help or tutorials would be highly appreciated. Autism = "none" Fed Transitions = "True" Transition Duration = "250" Frames P...

qt - How to set font style on the first item of a QComboBox? -

I have to set the first item's font style on QComboBox. How do I make the QT framework I can do? The problem is resolved. combo SetItemData (rowIndex, QVariant (myCustomFont), Qt.FontRole) I am using PyQt

internet explorer - Javascript is called in IE but not in Chrome and FF -

मेरे पास यह कोड मेरे पृष्ठ में है & lt; script language = "javascript" defer & gt ; TotCb ["1 9 782"] = 2; & lt; / स्क्रिप्ट & gt; मैं इसे स्क्रिप्ट के अंत में लगभग कॉल करता हूं, इसमे सरणी totCb के लिए नया मान जोड़ना चाहिए। यह आईई में काम करता है, लेकिन क्रोम या एफएफ में नहीं, क्यों? मुझे पता नहीं है कि आप क्या कर रहे हैं,

Determine whether MATLAB was launched from OS GUI or as a Parallel Toolbox thread -

In a similar style, there is a way to determine whether a given MATLAB example was started by the user. Or not created by parallel toolbox scheduler? Warning: untested code looks like That this can do the trick: If the% getCurrentWorker works% then the work is launched as a worker% then the GUI starts at the end of the session. / Code> Here is the reference:

inheritance - Locating the project.parent's POM -

I am using Maven in a project that contains several modules when we are staying, we Module is deployed in our own Mewen repository The project module is derived from an original project that defines common properties such as tool reporting, SCM space, repository, etc. to use. ./ pom.xml & lt; Project & gt; & Lt; Group & gt; Com.example & lt; / Group & gt; & Lt; ArtifactId & gt; Parents & lt; / ArtifactId> & Lt; Version & gt; 1.0 & lt; / Version & lt; Repository & gt; & Lt; Stores & gt; & Lt; URL & gt; Repo.example.com & lt; / URL & gt; ... & lt; / Repository & gt; & Lt; / Treasures & gt; ... & lt; / Project & gt; ./ module / pom.xml & lt; Project & gt; & Lt; Group & gt; Com.example & lt; / Group & gt; & Lt; ArtifactId & gt; Module & lt; / ArtifactId> & Lt; Parents & gt; & Lt; Group & gt; Com.example & lt; ...

game engine - Dynamically reloading classes in C# (looping through all instances) -

I am creating a game engine in C #, and my goal is to dynamically edit component squares and Being able to load is written in C #, what is known to me through a few different instances, it is actually possible to load an assembly (DLL) in an applet, then unload it and edit it Reload the compiled version. Through my own testing I have found that it works very well, only the sole problem is left, destroys all run-time references for a specific example of that object so that it is reloaded Can be done and changed. Actually, I would like to be able to get a list of all references to a specific object. I know that it can be completely impossible in C #, because it relies on a language that stores a list of all objects referenced to a specific object. It does not matter that the implementation is incredibly slow, as long as it works properly. I have pasted some pseudo code that I want to do: I know in a way that I can do that I have my own "weak reference" type which I or...

fixed scaling in opengl -

Someone can help me in scaling the OpenLL; I am using the glScalef () function to scale the polygon , But what do I need to do is scaling it at a certain point, but it has not been achieved with the following function. Can some put some light on it? normally occurs around the scaling roots, therefore, a point (X, Y, Z) To scale around, someone should translate the Genesis, and return. Specifically: Translation by (- x, -) scale by translating (x, y) , Z) Note: This is the same thing as rotation around a point.

c - ridiculous simple MPI_Send/Recv problem and I don_t understand why -

There are two tasks with different algorithms to me I first function I non-blocking communication (Mpiai_aiarsivi, Mpiai_aisand) apply And the program runs without any errors. Even when I change the non-blocking to block communication, it's all right. No deadlock but if I do I apply such other functions with the default intercept communications (at issue algorithm): if (my_rank == 0) {a = 3 ; MPI Side (& amp; A, 1, MPIDouble, 1.0, MPIKMM_WORLD); } And if (my_rank == 1) {MPI_Recv (& amp; A, 1, MPI_ DOUBLE, 0,0, MPI_COMM_WORLD, and position); } Therefore, Process 1 should get the value from Process 1. But I am getting this error: Fatal error in MPI_Recv: message small, error stack: MPI_Rakewe (187) ................. ......: Mpiai_arkev (buf = 0xbfbef2a8, count = 1, Mpiai_ DOUBLE, src = 0, tag = 0, MPI_COMM_WORLD, status = 0xbfbef294) failed MPIDI_CH3U_Request_unpack_uebuf (600): the message has been shortened; Received 32 bytes, but the buffer size 8 rank in job ...

c# - Cleaner way of abstraction -

I am reapplying some old code and thinking about a design decision AbstractClassA-Step 1 Step 2 - Step 2.1 - Step 2.2 - Stap 3 Summary methods of the Abstract class Step 1, Step 2, and Step 3. Step 2 always Requirements to call on methods 2.1 2.2. But in the current design, Phase 2.1 and 2.2 have not been declared as abstract and it has been implemented and called in each heritage class. I am planning to reactivate the code by dragging all these methods (including 2.1 and 2.2) in one interface. I am then planning to implement an intangible class of this interface, which will call Phase 2, 2.1 and 2.2. But somehow it does not seem obvious, I want to know whether this design is faulty or not? Interface A -Step1 -Step2 -Step 2.1 -Step 2.2 -Step3 It looks like what you are looking for will be: imyInterface {void Step1 (); Zero Step 2 (); Zero Step 3 (); } Summary class MyBaseClass: IMyInterface {public essence zero phase 1 (); Public Zero Stage 2 () {Stage 2_1 (); Step...

prototypejs - javascript prototype access this -

I have javascript 'class' in which jquery is a wrapping method for calling .ajax. I want to pass onSuccess and Honor Function handlers, but I'm not sure how. I can do this with plain old global works, but I'm trying to improve my JavaScript (from the Java background). function testApp () {new X ()); function X () {// Init X, by calling Ajax, call AJAX to pass the Fanq. This._makeAjaxCall (initUrl, this.onSuccessInit, this.onError); // Make another component to call it another AJAX. _maxaxcoll (initUrl, this.onSuccessSomeOtherAjaxCall, this.onError); } X.prototype.onSuccessInit = function () {this.doStuff (...); } X. Prototype.OnSwedte Some other eXcocol = function () {this.doOtherStuff (...); } / ** * Call an AJAX, and call available success / error handler * / X.prototype._makeAjaxCall = function (url, onSuccessHandler, onError) {$. AJAX ({url: url, success: function (jsonData, TextStatus, XMLHttpRequest) {// If I have not called the user 'this', I h...

java - Set write permissions on ProgramData subfolder using JNA -

itemprop = "text"> I have a program that is written in Java, which is basically all of its files in the program file Users program It is necessary for our users to run as administrator all the time. In an attempt to reduce it, we decided to move those files, which during the regular use of the ProgramData folder by using % ALLUSERSPROFILE% environment variable Need to be written. Using a subfolder in our directory works best for our application, if it is specified as writable during the installation process, which works fine using NSIS. The problem comes with the upgrade of existing users, the Java file API provides setWritable but it does not work after testing on the development machines. It seems that the new file API with Java 7 will solve this problem, but I do not want to wait with any release date on the horizon. It seems that simple solution would be to call JNA to upgrade the proper Windows API call software to set up this directory for writing in ord...