Posts

Showing posts from February, 2015

javascript - How to call a function inside chrome/plug-in from html page? -

I am developing a Firefox plug-in. In it, I am using the sidebar and I'm coming with source material from an HTML page within an iframe element. Now, I want to call a JavaScript function that is inside the 'Chrome' (i.e. inside the plug-in by an onClick () event on the HTML page loaded in the sidebar. Is it possible? Please help me in this. Its main purpose is to highlight the context in the main browser window that is loaded in the sidebar of the HTML page. Thanks. / P>

Profesionally looking graphs from gnuplot -

I think it would be quite subjective, but I'm looking for example script "gnuplot. I am plotting 3-5 pricing procedures (all the same domain and the same range of values), and I am looking for a set of tweaks to improve the output so that I can include it in a report or publication. Unfortunately I'm visually impaired, so I'm not able to determine exactly what I'm really - but the issue is that the default plot created by mathematica looks very good and is similar to a default 90-relationship with GNUplot. Vector format). I think that expresses Gnuplot makes good results in the terminal A latex delivery is required around, but the results are very good. Set terminal appellate standalone header '\ usepackage {color}' set output 'image.tex' Try to start your file with something like this, you can use regular plotting commands - Gnuplot computer uses everything using modern fonts, and the resultant image is image.tex , which you call ...

ipad - Training a person in iPhone development -

I will hire a c / c ++ programmer and I'm going to train him in iPhone and iPad programming. I wanted some advice on fast training to somebody. I mainly want to make him a basic secondary complexity app. I do not want to take too much time training because people usually leave job in 5-6 months Give. (We are originally startup with about 8-9 people in our company.). So, I just want your opinion on time to train someone and what are the best ways to do this. Thanks = "Post-Text" itemprop = "text"> Do not spend too much time on theoretical training. The best way to learn programming is to do programming. If the person is already familiar with C / C ++ and has the ability to deal with new technology / language then it will not take much time to learn iPhone programming. First, just train the basics Do not go into the basics of OBJE-C, just basic syntax (method, class, property, init etc). There are many web resources for them just go to Google...

iphone - Asynchronous IO with CFReadStream -

This is a brother question I am using CF ReadStreamScheduledRuleLuleup and CF ReadSteam with blocking to do Asynchronous IO How can all dates be secured safely? Assume the actual size of the message was 1200 (but we do not know), and the size of my reading buffer was 1024. CFReadStreamRead will receive 1024 bytes of data, but since we do not know the message size, we should call CFReadStreamRead again and again. The problem is that since we do not know how much data the stream socket has received, CFRDstream read can be blocked by another call. How can we avoid this problem? Thank you! call again CFReadStreamHasBytesAvailable () to see if it Still it is safe to read (or if the only way to know is to try).

Fullcalendar: back to selected date after postback -

How can I return the question about jquery plugin fullcalendar, the date I chose after postback? .. For example, I have the week's agenda as the default view, suppose I choose the next week (custom week) and make an event in it. I return to the default week after postback, but I have to get a custom week. How can this issue be resolved? .. help please! Thanks Javascript can get value from a property, so enter the value in the session state before the postback. Drag asset from state to post on postback. Get value from client then property Server side: public string bar {get; Set; } Secure zero Page_Load (Object Sender, EventArgs E) {if (IsPostBack) bar = session ["barvalue"]. ToString (); } Client side: $ (document) .ready (function () {var foo = '& lt;% = bar% & gt; '; Warning (foo);});

sql - ActiveRecord::Relation join, how to add a column of a join table to the query result with a new name? -

To set the step, I am using Rail 3 and I have these tables and relation: The user has_many lists list has_many work assignments have_many stints I would like to create a query which allows me to select all the current user stints, And list.id is available as a result on each term in the result I need to rename list.id in list_id Awareness will be because otherwise it overwrites the attribute ID term results. I felt that "as" will work, but it is not. This gives me the last action of the user 1: Stint.joins (: task => [[:: list = & gt ;: user]] ). Where (: lists => gt; {user_id = & gt; 1}). Final = & gt; # & Lt; Stutt ID: 753, Task_id: 245 & gt; However, what I would like to do is: = & gt; # & Lt; Stant ID: 753, Task_id: 245, List_ID: 2 & gt; So I thought this would work: Stint.joins (: task => [[:: list = & gt ;: user} ]). Choose (where: = lists = & gt; {user_id = & gt; 1}). ('Stints. *, List....

java - Creating/filtering fileset from a list in a file or from a property with ant -

मान लीजिए मेरे पास इस सामग्री के साथ "list-of-files.txt" नामक फाइल है: file1.txt file2.properties file3.class मैं एक चींटी में इस सामग्री का उपयोग करना चाहूंगा: & lt; fileset filelist = "फाइलों की सूची। Txt" / & gt; क्या यह संभव है? इसके अलावा, अगर मुझे संपत्ति में फाइल की यह सूची थी: & lt; property name = "Different.files" value = "file1.txt, file2.properties, file3.class" / & gt; क्या इसके साथ एक फाइलसेट बनाने का कोई तरीका है? कुछ ऐसा: & lt; fileset files = "$ {different.files}" / & gt; आपको पहले से धन्यवाद! ऐसा लगता है कि सहायता हो को शामिल करें और शामिल फ़ाइल विशेषताओं और नेस्टेड तत्वों को देखें। आप उस प्रसंग में कैसे उपयोग किया जाता है यह देखने के लिए आप दस्तावेज़ीकरण भी देख सकते हैं।

c# - Bound Textbox/Labels not updating when OnPropertyChanged fired -

मेरे पास एक साधारण अनुप्रयोग है जो एक बाइंडलिस्ट & lt; (Person)>, लोगों, कर्मचारियों (Windows फॉर्म) । व्यक्ति के पास कई गुण हैं जैसे कि नाम, दिनांकऑफ़बर्थ आदि। और इनोटेफप्रोटीटि चेंज किया गया है। बाईडिंग लिस्ट & amp; lt; (व्यक्ति)> लोग, बाध्यकारी स्रोत के लिए बाध्य हैं। डेटाग्रिड दृश्य नियंत्रण इस स्रोत के लिए बाध्य है, और जैसा कि अपेक्षित प्रॉपर्टी बदलाव डेटाग्रिड दृश्य पर अपडेट किए जाते हैं। उदाहरण के लिए, जब मैं किसी व्यक्ति की उम्र बदलता हूं, तो डेटाग्रिड दृश्य तुरंत अद्यतन होता है। मेरी समस्या तब होती है जब मैं एक ही बाध्यकारी स्रोत अन्य नियंत्रणों का उपयोग करता हूं मेरे पास एक टेक्स्ट बॉक्स की टेक्स्ट प्रॉपर्टी है जिसे Person.Name पर बांधा गया है, उसी बाध्यकारी स्रोत का उपयोग करके डेटाग्रीड दृश्य। DataGridView पर प्रॉपर्टी अपडेट पर नैनो प्रॉपर्टी अपडेट। लेकिन टेक्स्ट बॉक्स पर नहीं। मैं टेक्स्ट बॉक्स अपडेट कैसे बना सकता हूं, जैसे कि डाटाग्रीड दृश्य, जब कोई प्रॉपर्टी बदल जाती है? क्रिस बस जल्दी से, यह जांच नहीं की जा रही है, संभवतः इसे डिस्पैचर द्वार...

reinstall - exporting installed plugins from eclipse to another -

How to export plug-ins installed from Eclipse? I want to use some of my installed plugins in another "Lesson"> Start fresh and install plug-ins with old installation Here's the idea that you want to keep your old installation intact, You can download a new Indigo package and can add existing plugins to your setting with Indigo now it becomes super easy Is! Step 1: Download and unzip your Indigo: Step 2: Install File> Import> Plugin from your previous installs> With an existing installation, Take your old installation, choose plug-ins and go there! You will be able to choose the food of the piece, or to check the validity of establishing dependency analysis in any event. Step 3: Click ahead one more time and wait patiently for a byte so that you can download it on your machine. Then restart and enjoy! to

c# - Linq to SQL: Updating an aggregate root -

I have an object in which nested parts are maintained on three tables. These classes are for ILIT and lieutenant;> relations with POCO, no relation on any framework. A_object-> B_object [N] - & gt; C_object [N] I send this item to a repository to update. The content is retained using the SQL from the repository Linq. myRepo.Update (A_object); The first loop that handles updates and deletes: foreach (AB_records in var b) {foreach (var cc records) {if (C is in our parameter object) // database object object update / not found, delete database object} If (b is in our parameter object) // database object object update / not updated, delete database object} found in our parameter object Or if our parameter is not found in the object, then the database records the loop database records when the recorder is removed. Thus updating and deleting are OK. Given that I can not modify the square of the parameter object, there are some patterns or mechanics, I apply ...

How to detect XCode vs Makefile build -

I have to automatically detect (using #ifdef) whether I am using XCode or Darwin I'm using the under-make. Does a specific XCode define or automatically set by a tool? I'ld like to avoid defining the XCode project or Macfile manually. If you expand the XCode 'Build Results' window, and one of the "MyFile.m" compilations (Select the row, then click on the "Text on the right" icon), you can see that the exact order using XCode is to invite GCC, including any "-D" option on the command line. I do not believe that create is adding any-D automatically defines it.

javascript - jquery ajax success result is null -

I am calling an AJAX call using jquery to get data in jjson format. Success callback function is called but data is empty. $ (document) .ready (function () {$ .ajax ({url: "http://apps.sungardhe.com / Student Research / Public / Research SVC / School" Type: "GET", Content Type: "Application / Jason; Charset = UTF-8", Datatype: "Jason", success: CBSschool});}); Function cbSchools (data) {if (data == empty) {warning ("data is empty"); Return; } (Data School in Word) {$ ("# ddSchool") Append ("& lt; option value = '" + data [school]. Shortname + "'>" + data [school]. ShortName + " "); }} I understand that the response is actually returning the JSN data, but for some reason the jquery result object is zero. Can anyone tell me? You are being blocked, preventing cross-domain XMLHttpRequests, since you get JSON back Need to set up headers, in this way Net Web Service, you ar...

javascript - Input box precise text selection -

मेरे पास एक इनपुट बॉक्स है: इनपुट प्रकार = "text" class = "rulerInputText" id = "rulerInputBox" readonly मेरे पास चयनित पाठ का पता लगाने के लिए जावास्क्रिप्ट कोड है और इसके साथ खेलना है। समस्या तब आती है जब मैं उपयोगकर्ता को वास्तव में पाठ चुनने की इजाजत देता हूं। पाठ रिक्त स्थान के साथ बुनियादी है जब उपयोगकर्ता चयन करना शुरू करता है, तो कोई समस्या नहीं है, लेकिन जब कोई स्थान पहुँच जाता है, तो उपयोगकर्ता उसे चुनता है और अगले शब्द स्वतः चयनित होता है। अनिवार्य रूप से, मैं संपूर्ण शब्द का स्वत: चयन रोकना चाहता हूं। मैं केवल वही चयन करना चाहता हूं जो उपयोगकर्ता माउस से चयन करना चाहता है। क्या यह संभव है या क्या मुझे यह करने के लिए कुछ प्रकार की पागल जावास्क्रिप्ट हैक्स का उपयोग करने की आवश्यकता है? यह ऑपरेटिंग सिस्टम की एक विशेषता है। ओएस प्रदान की गई पाठ बॉक्स बेहतर उपयोगकर्ता अनुभव के लिए स्वत: चयन करता है। आप नहीं यहां पर कोई नियंत्रण नहीं है (मैं सिर्फ आईई / विंडोज 7 पर पुष्टि करता हूं)

Lotus Notes/Domino Designer 8 - Disable shared action refresh -

I'm working in Lotus Notes 8 using Domino Designer to update a shared action: shared code & gt; & Gt; Work Every night when the database refreshes my changes, it is being wiped out. In other files the option of them is not refreshing, but the action is not taken. Does anyone know how I can update the file, which is not over-written (after updating the database file without any existing file and refreshing the night)? You can select the design properties of the full list of shared actions and can refresh / replace the design. , But it does not appear that you can control it on any individual action I clicked Shared Code> Actions> and then right-click on "Shared Actions" in the Designer, and Design Properties I clicked Receive the "No Place to Refresh / modify" design

Accepting payments using Eway -

I have to use as a payment gateway but after facing the problem it is to face the problem. Do not want to touch credit card details at any time, due to the requirements of PCI do not accumulate through my site and neither to move, let me send the user to the gateway hosted page Redirects the users provide all the details there and pay the payment to the page I specified for confirming the result on the gateway - call pay_done.php. Now, in payment_done.php, I do not know to confirm that the confirmation payment has returned from the gateway itself or someone posted it on my page and because of its fake confirmation of my page confirmation Can be paid, but can not be paid at all. Now pay_do.php I need to ask the e-if I got this confirmation (with some specific transaction ID) from them and if so, the amount is correct etc. Eva will return to me right / wrong and then I can be sure that the correct amount has been paid. The problem now is that eve permits to query for this, on...

r - used biocep with AWS? -

Has anyone used BioSPEPS with AWS? I am getting a lot of presentations online but nothing is what works perfectly for you to walk during this process. It seems too complex to get your head around; I was expecting someone to tell me some useful tutorials especially useful threads or even better [some] real tutorials? Just the author has heard that say about use-2010, I believe the project Has died or has been fascinated by at least some other thing.

iphone - Use accelerometer in a tab app -

I would like to use the accelerometer in a tab app. All three tabs will reach the current X, Y, Z and make a fun change based on that data. My problem is that where does the accelerometer start up so that all three tabs can be updated based on data? Updates are required only when you are in the current tab. I can only get it to 'work' if I start 3 accelerometer which is not correct. Will the data go to my appeligit and will the code to change the images in each Nibs View Controller? Try to use the appidagite only to handle the basic stuff in order to avoid putting the code in an unregistered Try to do I would recommend applying Singleton-class to your accelerometer data. Singletons is a very basic design pattern, which comes in easy episodes in the environment of mobile devices (less ressources than PCs) You can read about singleton patterns here: An easy way to synthesize a singleton class in your project is Include a follwing file in your project and with...

c++ - writing unmanaged DLL consumable by C#/.NET code -

I need to apply a small part of my application logic in native code. To test PInvoke capabilities, I have created a simple solution with an unmanaged C ++ Win32 Dll and a WPF project that uses the DLF function using PInvoke. The problem I am running is that I get an exception about "stack imbalance" and "possible signature mismatch" Here's my code: 1) C + + (DLL) #include & lt; Stdio.h & gt; #include & lt; Windows.h & gt; Extern "c" {__declspec (dllexport) int plus (int a, int b) {return a + b; }} 2) C #: public partial square main window: window {[DllImport ("MyLibrary.dll")) static extern int add (Int a, int b); Public Manvindo () {Initialization (); } Private Zero btnVersion_Click (Object Sender, RoutedEventArgs e) {var res = add (3,2); Code throws an exception stating the code " This is possible because the managed PInvoke signature does not match the unmanaged target signature. Check that the cal...

C99 Macro to build a quoted string literal after evaluation -

I am developing an embedded application in C99, and there are some integer constants in this project, such as defined: #define LEVEL1 0x0000 #define LEVEL2 (LEVEL1 + 1) This has been useful since tracking these values ​​for logging purposes, so I For example, to create a string from the evaluation versions of the above, use the macro: strncpy (str, STRING (LEVEL2), Lane); Ideally will evaluate strncpy (str, "0x0001", LAN); or even strncpy (str, "0001", lane); Using a two-step macro with # operator (as suggested) approximates its evaluation strncpy (str, "( LEVEL1 + 1) ", Lane); I would like to avoid using a run-time function - so my attempt on macro solutions. Suggestion: Since the pre-processor stringer is a massive pain, you have to add a level of anger Both when creating and stringing the version number: #define STRING1 (s) #s #define STRING (s) STRING1 #define LEVEL (x) x #define LEVEL1 LEVEL (1) Define # LEV...

How to convert images to pdf using PHP? -

Can anyone consider PDF to be converted to images using PHP? Any feedback will be appreciated. Thank you If you have Image Magic installed and Exec permissions, exec ("convert foo.jpeg foo.pdf");

mysql - Same foreign key in multiple tables -

I have seen posts through SO and Google that you can not get many foreign keys with the same name with MySQL My problem is that how do I refer to the same table in several other tables from one table? In my case I have a family table that includes FAM_ID. I want this to be a foreign key in my document and contact table, because the rows in it are related to FAM_ID, so if I think that what I have read is fine, then I must give the name of the column in the documents and FAMILI To map the FAM_ID as a foreign key in the table, contact different names (compared to FAM_ID) to map them. Do not I understand anything or is this my only option? It seems that this data model will have a fairly common requirement. You do not need them to name them different things You have a FAM_ID column in FAMILY, FAM_ID in DOCUMENTS Columns and FAM_ID columns can be found in CONTACT. In this case, giving them the same name makes it clear that they mention the same thing For example, on the family ...

android - Exact Difference between "Content-Provider" and "SQLite Database" -

I have done SQLite database programming for Android, but I also do not know anything about the content provider: "As I mentioned, Android SDK explained about" content-provider "because it uses data to store and " But then, What is the exact difference between" content-provider "and" SQLite database "? Which data is best to store when? Any examples or help !! I have found a major difference as follows: Storing in the database is a great way to continue your data, , but there is a warning in Android - the database created in Android visible only those applications To which they were created. This means that, on an Android, a SQLite database has been created, which is built through an app, it is usable by applications, but not by other applications. Thus, if you need to share data between applications , you need to use the Recommended Content Provider model in Android. This article presents the basics of content providers ...

java - How do you recompile a jar file? -

I took an old jar file and edited it. Now I have a folder that contains all the files and I want to recompile them in a jar file. How do i do this Jar files are not "compiled" in the usual meaning of the word. But you can simply create one with the jar command: jar cvf myfile.jar file1 file2 etc You can create globbing Normally you can use: jar cvf ../myfile.jar * play jar -? or read more for more information. Note that for the executable jar file, you must also specify the manifest file.

.net - What is a correct approach to register several instances for the same type in Windsor Container? -

मैं CommonSrviceLocator के साथ WindworContainer के साथ अपने NHibernage.isession उदाहरण इएसशन उदाहरण सत्रफ़ायर के माध्यम से बनाया गया है कुछ कारणों से मुझे एक आवेदन में विभिन्न डेटाबेस के साथ काम करने की आवश्यकता है, इसलिए मुझे अलग कनेक्शन स्ट्रिंग और विभिन्न NHibernate.isession ऑब्जेक्ट की आवश्यकता है। SessionFactory डीबी नाम से भिन्न इएसशन वस्तुएं बनाएं इसलिए मैं अलग प्राप्त करना चाहते हैं ISession अपने आवेदन में वस्तुओं निम्न सिंटैक्स का उपयोग कर: ISesssion sessionForDb1 = ServiceLocator.Current.GetInstance & LT; ISession & gt; ( "सत्र के लिए DB1 "); इएससिसियन सत्र ForDb2 = सेवासूत्र। वर्तमान। गेट इंस्टेंस & lt; इएसेशन & gt; ("सत्र-के-डीबी 2"); इसे प्राप्त करने के लिए मैंने कंटेनर पंजीकरण के बाद बनाया है: IWindsorContainer कंटेनर = नया विंडसर कॉन्टैनेयर (); container.AddFacility & LT; FactorySupportFacility & gt; (); container.Register (Component.For & LT; ISessionFactory & gt; () .Named ( "सत्र...

mysql - Wordpress (database); Show last modified date? -

When my MySQL-database was updated, how can I show the last modified date? (I know that there is a plugin to show the latest revised date for the post / page, I want to do this, but show that the field / metadata was updating) Thanks for the answer "/ P> OK, solve it. & Lt ;? php global $ wpdb; $ result = $ wpdb- & gt; get_results (show 'table_name'; '' like show table status from database table); Foreach (dollar result as $ result) {$ updatetime = $ data-> Update_time;} $ date = substr ($ Updatetime, 0, -3); Echo $ date;? & Gt;

cross browser - HTML: Why script tags should always have full ending? -

संभव डुप्लिकेट: मुझे आश्चर्य है कि शीर्ष लेख HTML टैग में शामिल लिपियों को हमेशा & lt; tag & gt; & lt; / टैग & gt; इस तरह से होना चाहिए: & lt; script src = " /scripts/jquery-1.4.1.min.js "प्रकार =" टेक्स्ट / जावास्क्रिप्ट "& gt; & lt; / स्क्रिप्ट & gt; जबकि xml अच्छी तरह से बनाए गए लघु रूप & lt; टैग / & gt; ब्राउज़र को पागल बनाता है: & lt; script src = "/scripts/jquery-1.4.1.min.js" प्रकार = "टेक्स्ट / जावास्क्रिप्ट" / & gt; ब्राउज़र पृष्ठ के बजाय रिक्त स्क्रीन प्रदर्शित करते हैं, हालांकि HTML लेआउट मौजूद है। संपादित करें: धन्यवाद लोग, मेरा प्रश्न इस से पहले पूछा गया है डुप्लिकेट

python - Mixin class to trace attribute requests - __attribute__ recursion -

I am trying to create a class that others should have a superclass, tracing their property requests, Thought of using getattribute ", which attributes all the feature requests, but it generates recursive: class Mixin (object): def __getattribute__ (self, attr): print I know why I get recurring: it's for myself dict calls that remember > retrieve I "return item .__ getattribute __ (self, etter) "Has tried to change the last line in as suggested in other posts but the recurrence is remembered. try this: class Mixin (object): def __getattribute__ (Self, atri): print itself, "getting", attr back object .__ Getattribute __ (self, attr) If you are still having recurring problems, The reason is that you have not shown us & gt; & Gt; & Gt; Square compile (object): ... def __getattribute__ (auto, attr): ... print itself, "meet", et ... return object .__ getattribute __ (self, entree) ... & gt; & Gt; ...

has and belongs to many - Rails - deleting a single record in a intersection table habtm -

मेरे पास एक habtm संबंध है (असाइनमेंट & lt; असाइनमेंट_candidates> उम्मीदवारों) मैं सक्षम होना चाहता हूँ एक असाइनमेंट से एक उम्मीदवार को हटा दें यहाँ मेरा कोड है अब तक @assignment = Assignment.find (: पहले,: joins = & gt;: उम्मीदवारों, चुनें = & gt; "assignments_candidates। *",: Conditions = & gt; ["Assignments_candidates.candidate_id =? और assignments_candidates.assignment_id =?", पैरामीटर [: उम्मीदवार_आईडी], पैरामीटर [: असाइनमेंट_आईड]]) @ असाइनमेंट। डेस्टॉय फिलहाल मुझे ये लगता है किसी भी विचार? ऑब्जेक्ट को प्रतिच्छेदन तालिका में रिकार्ड नहीं है? धन्यवाद, एलेक्स यहां बताया गया है कि मैं इसे भविष्य के संदर्भ के लिए कैसे किया था। असाइनमेंट = असाइनमेंट.फंड (पैरामोज [: असाइनमेंट_आईडी]) उम्मीदवार = असाइनमेंट.संदिग्ध। पता (पराम [: उम्मीदवार_आईडी]) असाइनमेंट.candidates.delete (उम्मीदवार)

c# - Should data classes which are passed by a webservice be attributes with [Serializable] -

I want to transfer some data squares via the webservice: public class MyClass {Public int Int {get; Set; } Public MyClass (int v) {Int = v; } Private MyClass () {}} Public Enum MyEnum {One = 7, two = 13, three = 15} Public Class TestDataClass {Private Int _someInt; Public listing & lt; MyClass & gt; Value {receive; Set; } Public int SomeInt {get {return_someInt + 10; } Set {_someInt = value; }} Public TestDataClass (int someInt) {SomeInt = someInt; Value = new list & lt; MyClass & gt; (); For (Int i = 0; I TestData class is the class passed, what should be responsible with the serial? Thank you, Alex If you use the old (old) ASMX style webservice Wish: Yes. When using WCF: No, use [DataContract] instead. In both cases, you need attributes for the main category and for any embedded type, which is not already serialized or 'known type'.

iphone - Navigation bar and top margin -

I have a problem with a UINavigationBar and its offset, I times displayed as a supervision without the UIA controller It does not matter, however, in the scene controller where the navigation bar looks, the setup looks like this: // Add basic view CGRK viewfreem = [[USScreen main screen] ApplicationFrame] ; UIView * myView = [[UIView alloc] initWithFrame: visibleframe]; MyView.backgroundColor = [UIColor Green Color]; Self.view = myView; [MyView release]; UINavigationBar * myBar = [[UINavigationBar alloc] initWithFrame: CGRectMake (0, 0, self.view.frame.size.width, 50)]; .... Add some stuff to the bar ... [self.view addSubview: myBar]; [Meribel Release]; As I have added the navigationbar as a shield, look at the self.view I assumed that the original. Y = 0 would mean that the bar should be displayed directly under the status bar. It expects that if I start the app on my iPad, it will rotate once (or more) and then drill under the view described above. In this case the UINA nav...

ruby on rails - Testing two different expectations with mocking -

I just added my first rails in 3 apps, and I'm having trouble with controller tests. I am testing user control class, which is the same model that uses the developer. Therefore, at the beginning of my imagery, I have this: Before (: each) sign_in @user = factory.create (user) end now I can test the exam without using jokes or gossip like this: Describe "edit GET" "This provides the requested user as user" user = Factory (user :) get: edit: id = & gt; Assigns to User.id (user :). The end of the eql (user) But for academic purposes, I would like to know how to work with joke and stirring, generally to be fully straight forward, but It seems that the device is calling User.find before the controller's action, and the test is failing. Describe "edit GET" "Provides requested user as a user" user = factory (user: user) Exchange:. Together (: first,: conditions => {: id => 37}). Get Returns (Users): Edit: id = ...

java - I am using emma for building my project and I'm not getting directories like coverage -

नीचे त्रुटि देखें Buildfile: F: \ gqmaps \ gqmaps9 \ build.xml Init: compile: [javac] 106 स्रोत फ़ाइलों को एफ: \ gqmaps \ gqmaps9 \ out [javac] पर संकलित करना नोट: कुछ इनपुट फ़ाइलें अनचेक या असुरक्षित संचालन का उपयोग करती हैं [Javac] ध्यान दें: एक्सक्लंट के साथ पुनः कंपाइल करें: विवरण के लिए अनचेक करें। चलाएँ: [emmajava] मुख्य नहीं मिल सकता है org.apache.tools.ant.taskdefs.Java.run पर सुनिश्चित करें कि आप अपने classpath [emmajava] org.apache.tools.ant.taskdefs.ExecuteJava.execute (ExecuteJava.java:138) पर में यह राशि [emmajava] बनाएँ ( Java.java:764) [emmajava] org.apache.tools.ant.taskdefs.Java.executeJava (Java.java:218) [emmajava] org.apache.tools.ant.taskdefs.Java.executeJava पर (जावा में। जावा: 132) [emmajava] org.apache.tools.ant.taskdefs.Java.execute (Java.java:105) [emmajava] com.vladium.emma.emmajavaTask.execute पर (emmajavaTask.java:237) [emmajava पर ] org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:288) पर [emmajava] sun.reflect.NativeMethodAccessorIm...

subsonic with ASP.net MVC2 strongly typed views -

I have an MVC project setup, and I have brought the subgenic active record templates to my project, and they successfully and I I can use subsonic classes to use my database. However, how do I create a properly typed view using the subsonic generated classes? When I select "Add View" and I check the checkbox to create a typed view, none of the sections generated from the subsonic for my data is available. How can I do this? You first need to compile your project.

php - Magento adding install object -

I am creating a module that defines some additional options for the category in Magento after this tutorial to get you started Is: I created a modules module built on with module builder. I have defined my class Infoweb / Margins / Model / Resource / Eav / Mysql4 / in / Setup.php (with capital) and in my class: Class Infoweb_Margins_Resource_Eav_Mysql4_Setup Enhances Mage_Eav_Model_Entity_Setup {} I also created this line in my config.php (rest due to this skeleton module): & lt; Class & gt; Infoweb_Margins_Resource_Ev_Mysql4_Setup & lt; / Class & gt; Now when someone is trying to load a page, there is no serious error on this topic for the Magenta searches that the class was not found ... error: serious Error: Class 'Infoweb_Margins_Resource_Eav_Mysql4_Setup' /home/users/A000456/xxx/xxx/app/code/core/Mage/Core/Model/Resource/Setup.php not found on line 160 Where is the problem lying on the problem? Magento complains that this...

How do I use different drupal page templates? -

I have two page template files, which is just 'page.tpl.php' and for the subset of the second page . I just got a few pages and the rest for this template to be paged.PPP How can I decide? Thank you! I am on Drupal 6. Follow the so-called "tips" in the template in Drupal . For pages, suggestions are drawn up using URL-Path. You can do your page.tpl.php name on page / foo / bar: page.tpl.php Page-foo.tpl.php Page-foo-bar.tpl.php Drupal will look at least specific from most specific and first If found, page-foo-bar.tpl.php is found, then it will use it for foo / bar, if not, then they will see it. If it finds pagefood, then it will use it Page-FUTPPP Will also be used / for Afu / Beehark Foo / Pirates and FU / Parrot, unless the curriculum is closed, you create a page-foo-parrot.tpl.php. There is no path to the front page (obviously), but there is no suggestion for the French page: Page-front. Tpl.php is used only in front Will be for t...

php - Language Switching in Magento -

Thanks in advance, I'm new to Magento and to change languages ​​for users need help. When a customer goes to my website, their IP should be used to determine its country and the language must be properly switched. For example, if I am leaving France then my site should be displayed in French If any other person tries from any country then the website should be in the local language of that country .. - GET I have done once for the customer Prerequisites: The GOIP library for PHP. 1- Create a store view relative to the languages ​​in your Magento admin. 2- Add a filtering system by: 2a - The page of your main / original topic. Edit the Xml layout file and add the line around 35/36 (Add to handle: block type = "page / html" name = "country-filter" Output = "toHtml" template = "page / html / country-filter.phtml" /> 2b - a template / page / html / country- in your main / Create filter.phtml and enter this code that ...

android - Progress Dialog and orientation changed -

I have some problems with the progress dialog. I use the managed progress dialog to show the user that An operation is being performed with the following code written in the onCreateDialog (int id) function: case PROGRESS_DIALOG: {dialog = new ProgressDialog () this); Dialog.setMessage (getResources () GetString (R.string.eStrUpdating)); Dialog.setCancelable (true); Dialog.setOnCancelListener (New DialogInterface.OnCancelListener) {Cancel on Public Zero (DialogInterface dialogInterface) {Log.i (tag, "cancel progress dialog");}}); Return dialog; } When the operation is complete, then I call Dismiss (PROGRESS_DIALOG). The problem is that if I rotate the phone when the progress dialog is displayed, then when the call is defective after the operation is complete, then there is no effect and progress is visible. And why can not I understand this When you rotate the phone, the activity is destroyed and rebuilt. After this, you should reject the diasty system of your ...

How to set up Selenium to work with Visual Studio .NET using C#? -

I tried Google, but there are many different ways to work with Selenium I am using: - Windows 2003 Server - Visual Studio 2008 - Install Selenium IDE through Facebook - Animatit 2.5 is copied into C: - Selenium RC has been copied to C: \ I first created a Library Project using C #. And this is my class: using the system; Using System.Text; Using System.Text.RegularExpressions; Using System.Threading; Using NUnit.Fraamework; Using Selenium; Name space SeleniumTest {[TestFeacions] Public Class Newtest {Private Isleenium Selenium; Private stringbuilder verification etar; [Set Up] Public Zero SetupTest () {Selenium = New Default Selenium ("Localhost", 4444, "* IE Explorer", "http: // localhost: 4444"); Selenium.Start (); VerificationAurriers = new stringbilder (); } [Tyrund] Public Zero Turndown () {try {selenium.Stop ()}} Grip (exception) {// Ignore errors if unable to close browser} Assre.AreEqual ("", ""); } [Test] Public Zer...

cocoa - CGDataProvider doesn't free up data on callback -

I am creating a huge buffer (called buffer 2 in code) using CGDataProviderRef with the following code: - (UIImage *) glToUIImage {NSInteger myDataLength = 768 * 1024 * 4; // array allocated and read it in pixels GLUBE * buffer = (GLUBE *) MOLOK (MYDATA LANG); GlReadPixels (0, 0, 768, 1024, GL_RGBA, GL_UnSIGNED_BYTE, buffer); // GL renders "invert", so swap from top to bottom in the new array // there will be a better way, but it works GLUBE * buffer 2 = (GLUBE *) MOLOK (MYDATA LANG); (Int x = 0; x } I hope CGProvider will call the release buffer data method when it is done with buffer 2 so that I can release the memory taken . The code for this method is: Fixed zero release buffer data (zero * info, blank blank * data, size_ty size) {free (data); } However, even though my callback method is called, memory (data) (buffer 2) takes it never free and therefore it is generated in large scale memory leaks is. What am i doing wrong Have you ever retrieved CGDT...

c# - binding redirect not working in test project -

परीक्षण परियोजना के app.config में बाध्यकारी रीडायरेक्ट लागू करते समय रनटाइम पुनर्निर्देशन आदेश का पालन करने से इनकार करता है और असेंबली के पुराने संस्करण के लिए खोज करता है & lt; runtime & gt; & Lt; विधानसभा बाध्यकारी xmlns = "कलश: स्कीमा-माइक्रोसॉफ्ट-कॉम: asm.v1" & gt; & LT; dependentAssembly & gt; & Lt; विधानसभा आईडी नाम = "एमएसडीसीसी आम" publicKeyToken = "9d9c15280f7f1425" / & gt; & Lt; बाध्यकारी रीडायरेक्ट पुराना संस्करण = "0.0.0.0-2.4.0.0" न्यूवर्सन = "2.4.0.0" / & gt; & Lt; / dependentAssembly & gt; & Lt; / assemblyBinding & gt; & Lt; / क्रम & gt; अच्छी तरह से मैंने डिफ़ॉल्ट नेमस्पेस के बारे में कुछ समस्याएं पैदा करने के बारे में सुना था (बहुत बुद्धिमान व्यक्ति से) इसलिए मैंने "xmlns =" ​​कलश जोड़ा: schemas-microsoft-com: asm.v1 "। परीक्षण का मामला अभी भी नहीं चल रहा है। फ्यूजन लॉग व्यूवर को खोलकर समस्या की जांच की और आश्चर्य की आश्चर्य की बा...

oracle - Convert columns to rows in SQL -

I have to type a query that takes the rows and converts it into columns - here's my table: calculation fname lname id ----------------------------- 1 ABC DEF 20 2 PBR 20 3 ABC xyz 20 4 xyz xyz 20 1 ABC def 21 1 pkr xyz 22 2 ABC ABC 22 This is what I am attempting to produce: id fname lname Fname lname fname lname fname lname -------------------------------------------- - --------------- 20 ABC DEFPPR Faucet ABC xyz xyz xyz 21 ABC DF Free Tap tap tap tap tap 22 ABC ABC Nail nail tap tap tap tap The maximum value of the count for each ID 4. I am using Oracle 9i. There is another person who may have some luck with you, I like @ thinkjet, but this Not sure how much decode cost (if it is more or less than below. SELECT T1.ID, T1.fname, T1.lname, T2.fname, T2.lname , T3.fname, T3.lname, T4.fname, T4.lname table T1 left join table T2 on T.ID = T.ID and T2 COUT = 2 left pair table T3 on T.ID = T.ID and T3CUt = 3 Left job table T4 on T1. ED = t 4kaidi and T 4 C o t ...

PHP- HTML parsing :: How can be taken charset value of webpage with simple html dom parser? -

PHP :: कैसे सरल (यूटीएफ -8, विंडोज़-255, आदि।) के साथ वेब पेज का अक्षरसेट मान लिया जा सकता है टिप्पणी: इसे html dom पार्सर के साथ किया जाना है उदाहरण 1 वेबपृष्ठ वर्णसेट इनपुट: & lt; मेटा सामग्री = "पाठ / html; वर्णसेट = यूटीएफ -8" http-equiv = "सामग्री-प्रकार" & gt; परिणाम: यूटीएफ -8 उदाहरण 2 वेबपृष्ठ वर्णसेट इनपुट: & lt; मेटा सामग्री = "टेक्स्ट / html; charset = windows-255" http-equiv = "सामग्री-प्रकार" & gt; परिणाम: खिड़कियां -255 संपादित करें: मैं यह कोशिश करता हूँ (लेकिन इसका काम नहीं करता ): $ html = file_get_html ('http://www.google.com/'); $ एल = $ html- & gt; लगता है ( 'मेटा [सामग्री]', 0); गूंज $ el- & gt; वर्णसेट; क्या बदलाव होना चाहिए? (मुझे पता है कि $ एएल-> वर्णसेट काम नहीं कर रहा है) धन्यवाद आप 'स्ट्रिंग को नियमित अभिव्यक्ति का उपयोग करना होगा (मुझे आशा है कि आपके पास पीसीआर है ...)। $ el = $ html- & gt; खोजें (' मेटा [http-...

debugging - "source not found" for jsp in eclipse -

It's completely frustrating I can set breakpoints in JSP, and they work, though the source does not load in eclipse And I did not know the empty page message was not found with the source. I did the work of ad source and in the debug configuration I added my JSPRRR directory. This is not a regular eclipse project, due to which there is a framework in the app's framework that does not map to wtp reception. ..

Where can I find a list of Facebook's networks? -

Facebook listed all its networks here: but they deleted it after some time last week. Does anyone know that I want to get a list of Facebook's network? Perhaps they get rid of it when they Although Google returns the first result for Facebook Network , there is nothing in this link, nor does Google have its cached copy.

qt - Can the QPropertyAnimation update interval be increased for ultra-smooth animation? -

Based on the new animation framework on QtimeLine, which is the 'zero setup date interface', the public function is based on QTimeLine Also, QGraphicsItemAnimation can use this function, but new Animation Framework Classes (such as QProperty Animation) can not! Is the Animation Framework locked up to 60 updates per second, which matches 60 pixels per second (for QPropertyAnimation Animation Position property) on a screen with a pixel-by-pixel transition or enhancing everything without fixing it in Is there a way? / P> I think there are some hardware limitations and some limitations with OS / QT some paintings. There can be anything with this in the QT men's loop. In my experience, for doubling buffering and only to replenish those areas which need to be resurrected, you have smooth animation that you are looking for. Also make sure that your graphics are close to size, which you are actually painting them. Increasing the refresh interval will not help most monito...

Managing complex configurations -

I would like to ask you for your opinion on a large number of campus (for example XML, .properties management practices) , Custom format etc.) Nowadays, configuration files come in many ways for counting in every more complex project. How to not lose this kind of disturbance? How to reuse them the best way? Any good tool that can help (maybe some eclipse based)? Obviously, the most fundamental task to do this is to put those configuration files into source control, Because they are actually a source code. But the real challenge with configuration management is determining how many files are and how many replacements you have to do so that you can re-normalize the configuration of those design decisions and the very project- and environment -Versible, and can not make any device for you. A common way is a master config file that has the default value and environment-specific files are only those configured values ​​that are different for their environment, and which overwr...

c++ - How are malloc and free implemented? -

I want to implement my own dynamic memory management system so that it can add new features that can be used in C ++ memory Let's help in the management. I use Windows (XP) and Linux (Ubuntu) to implement tasks like 'Molk' and 'Free'. I think I have to use the lowest level system call. For Windows, I've got the task: GetProcessHeap, HeapAlloc, HeapCreate, HeapDestroy and HeapFree. For Linux, I have no system call for heap management edit: C ++ garbage collector and trash The collector does not provide, Linux, Molok and system calls for free? Is slow. Some allocation is easy to free, but the allocation is that a garbage collector is needed. I want to implement these functions and add new features: * Whenever called free (), check whether the indicator falls under the heap. * Help with garbage collection. I have to store some information about allocated blocks. * Use Multiple Stacks (Hepcat / Hypdstore on Windows) I can quickly remove an entire...

polymorphism - Dynamic instantiation in C++ -

I want my code to be extensible, in this way I can create objects in sequence. For example, suppose I have a grocery class in which there is an array of fruit and I want to fill this crop with fruit which is obtained from the fruit. class fruit {}; Class grocery {std :: vector & lt; Fruit * & gt; M_fruits; }; Square apple: fruit {}; Class pineapple: fruit {}; Now on the runtime, I want my grocery square vector m_fruits to fill it with classical items of Apple and pineapple. So is it possible in some way? If I add another fruit in the form of strawberries in the future, then its object and the implementation of the grocery category will be added to the grocery vector at no pace? Code support will be appreciated. Check your textbook It is mentioned that you only indicators Types can be treated polymorphically In other words, a vector of indicators for the fruit can take indicators apples or pineapple.

java - Is it possible to get maven to accept maxerrs for its compiler plugin? -

I have a project where I am responsible for fixing some errors and other errors are responsible for other errors. The number of errors is more than hundred hundred, and as I am fixing my errors, errors are accumulating. I am at that point where I see 99 errors and one of mine, and I think I Soon to that point Hunc be where he is 100. I saw this configuration for Maven using: & lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-compliant plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; CompilerArgument & gt; -Xmaxerrs 1000 & lt; / CompilerArgument & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; But no dice: Failure to execute javac, but could not parse error: javac: Invalid flag: -Xmaxerrs 1000 Usage: Javac & lt; Options & gt; & Lt; Source files & gt; On the command line using javac, the maxerrs flag wor...

shell - Generating a sha256 from the Linux command line -

मुझे पता है कि स्ट्रिंग "फोबोर" SHA 256 hash c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2 का उपयोग करके P> हालांकि कमांड लाइन खोल: हेन्डी @ x201 ~ $ इको फोबोर्स | Sha256sum aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f - एक अलग हैश उत्पन्न करता है मुझे क्या याद आ रहा है? गूंज सामान्यतया एक नई लाइन का उत्पादन करेगा, जो कि -n के साथ दब गए इसे आज़माएं: echo -n foobar | Sha256sum

c# - Is Python good for writing standard, compatible and complete SOAP web services? -

I used some dragon soap libraries ( twisted wrapper around SOAPpy, Sopilib and SOAPP ) Have done my soap web service When I used the Python client (SOAPP. OopProxy and SUDS), I was able to communicate with my web service (returning simple and complex type objects). But, when I tried with C # ASP.Net, I got many issues. I returned a simple type (int, string, double, boolean) with some hacks in the SOAPpy library. But, I am still struggling with returning the campus type from SOOPP. I could not find any complete, compatible alternative dragon library to write my web service. Main question: Any suggestions / examples for dot net compatible complex type returns from Ajith Web Services will be highly appreciated. Note: I had to hit SOAPpy a lot, to work it in the first place and, in the case of SOAPpy, I wrote the wsdl file. In my personal opinion, the compatibility of Python SOAP libraries is not good with other platforms. . I think there are two problems here: ...

udp - What is the advantage of using the mutable buffer objects in boost ASIO compared to char arrays? -

I am designing / developing a UDP server application and planning for promotion. What are mutable buffer objects for standard four arrays and what is the benefit of this? Use fixed length buffers such as boost :: arrays when you know the priority, how much data you get Or Expect to send ASIO Streambuffs You can get data in an unknown quantity Specifically, async_read_until requires you to use streambuffs.

How to Improve Performance of the Android Emulator -

I'm starting with Android development, but there is a lot to be desired from the emulator's performance on my machine . In all fairness, my machine is not a powerhouse by any means of imagination. Reduction in my hardware upgrade or spending $ $ $, are there any good tips to improve Android emulator performance? Are you testing on your phone? It's a million times faster. Also, are you running "debugging" or "app"? If you do not need to step through the code, consider running it instead of debugging it.

flex - Error when loading html with flash page using https in Internet Explorer -

I have a html page that loads a FLEX SWF file using Https and it successfully uses Chrome, Safari and Loads with Firefox, but not with Internet Explorer Another page, a simple ASPX page, uses https in Internet Explorer (and does not have Flash). There is nothing available for this kind of solution on the Internet. anyone? Update: When I right click on the white screen, 'About Adobe Flash Player 10' ... appears ... then the flash loads. Also, in Charles (http sniffer tool) I can see that loading on the SOFF network ... So, apparently, the Flash Player is running inside my HTML page, SWF Loads on the internet but SDF Internet Explorer does not appear in the browser. Meanwhile, in the lower left corner, IE continues to say: 'Waiting for https: // ... ... Work like this attraction in all other browsers Does. You can see that IE shows a certificate error, but it is also in other browsers. I have already clicked the certificate error to set up the certificate, b...

background image css -

Newbie Query, but I can not understand it: How to include a background image Entire page But no repeat? Thanks body {background-image: url (path to image) is not any repeating Your image should be large enough because you Do not repeat.

android - How to close an Application? -

संभव डुप्लिकेट: जब मैं अपने आवेदन के बीच में हूं, तो किसी भी बटन के क्लिक पर मौजूदा एप्लिकेशन से कैसे बाहर निकलना है? समाप्त () केवल मौजूदा गतिविधि को पूरी तरह खत्म नहीं करेगा। एंड्रॉइड में किसी एप्लिकेशन से बाहर निकलने की अनुशंसा नहीं की जाती है इस पर अधिक जानकारी के लिए इसे पढ़ें। आप उपयोग कर सकते हैं आशय इरादा = नया आशय (आशय। एक्शन_मैं); intent.addCategory (Intent.CATEGORY_HOME); intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK); startActivity (आशय); अपने ऐप में एक बटन के प्रेस पर होम स्क्रीन पर वापस जाने के लिए यह आपके आवेदन को बंद नहीं करेगा लेकिन इसे पृष्ठभूमि में डाल देगा। आपको हमेशा हर गतिविधि में हर बैटरी भारी संसाधन जैसे सेंसर श्रोताओं इत्यादि को रिलीज करना चाहिए। जब ​​आप पृष्ठभूमि में भेजते हैं।

WPF - Reevaluate OneWay Binding -

मेरे पास एक नियंत्रण है जिसकी बाइंडिंग वनवे के रूप में सेट है बाध्यकारी अभिव्यक्ति प्राप्त करें और कॉल करें: बाइंडिंग एक्सपेरशन बाध्यकारी = नियंत्रण। गेटबैंगिंग एक्सेशन (पाठ बॉक्स। टेक्स्टप्रॉपर्टी) बाध्यकारी.अपडेटटैग () बेशक, यदि आप लागू करते हैं क्लास पर इंटरफ़ेस जो आपके बाइंडिंग के लिए स्रोत प्रॉपर्टी रखता है तो डब्लूपीएफ आपके लिए स्वचालित रूप से अद्यतन करने में सक्षम होगा।

iphone - CoreData Entity Inheritance -

Consider that I have two entities with the following relationships: Lt; - & gt; & Gt; Entity B. (one-to-many and inverse) Now I think that I have another entity Entity C, which contains all the properties of Entity B and some others, the following relationship Together: Unit A & lt; - & gt; & Gt; Unit C (one-to-many and inverse) Now I can improve the architecture by making Unit B the parent of the unit C. Unit B ^ | Entity C Now, my question is, as much as the relationship (s) of the relationship (s) as inherited by the unit C? I mean, do I still need to have the following relationship (differently) ?: unit A & lt; - & gt; & Gt; Unit C In addition, I could not find a good example for the core inheritance for the unit data in the Apple document. Does anyone detect any online resource that tells this, for example (preferably)? Yes, attributes and relationships and everything else will be inherited. Although be careful, such...

network programming - How to make a program that sends data through the WiFi router -

I got a WiFi router connected to my PC. What do I want to send some data to my PC from another device via a Wi-Fi adapter? The program on the device has been developed using EVC ++ on PC - VC ++. 1 Edit: There is an IP address in the PC. Another device is set on IP program execution. I mean WiFi IP address and then the connection to the WiFi router is run. Edit 2: What if it uses an ethernet and wifi? How can I make connections through WiFi? If the WiFi is not different from the normal ethernet network, then you usually have to type the other computer's IP (config / ask) User / DNS), commonly establish TCP / IP connections and send data.

exception - NServiceBus without input queue -

Is it possible to use NSSSBs in any application without any input queues? The reason is, I am an ASP.NET MVC application that sends messages to other applications when something happens (for example a new user registrar). The web application never receives any feedback or other messages and so I do not want to suppress the app. With MSMackie picking, which throws every other exception. This is supported, just remove the msmstranport config section and all should be OK This app.config appearance Works with the version of NServiceBus with version 2.0.2281.0 (Net 4) using NServiceBus; Namespace SendOnlyEndpoint.Custom {Public Class Program} {Static Zero Main (string [] ARG) {var bus = Configure. (). Default Bullder () XML Serializer () MSMXTRAsport () .ununestubus () .CreateBus () Start (); Bus.Send ("SendOnlyDestination", New TestMessage ()); }} More information on sending only Endpoint

Fortran compilation on multiple systems -

I have a fortran program, which I can compile on all three operating systems using f77, f95 or ifort They are i386, ia64 and x86_64 systems). However, I just want to be able to compile two types of executables, so that I can share the program and not the code. When I try to compile on a computer and try to run compiled binary on the other, I get the error message can not execute the binary file Does anyone have any ideas, What can i do in If you want the machine to run them natively, you can not do this, you have three different - Different architecture, so you need three separate binary. However , the ability to run the i386 code in x86_64 (more commonly called AMD64), is a small performance penalty, so if you leave 64-bit-NIS If you are ready, you can theoretically leave MD 64 binary and use i386 on that machine. To make this work you have to install the i386 emulation environment on the machine. It is possible that ia64 supports some similarity; I do not know I64 ...

c++ - How do I keep a constant definition in a header file and not have it linked into every library? -

Here is the scenario that we use Visual C ++ 9. There is a C ++ library to be used by many other libraries. Its interface is in a header: Once #pragma / colonelarythider CSOM Class GetSomeClassFunction (); // some. The CPP file is defined in the CSOmclass Magic value (100, 200); // Some predefined values ​​that show the previous function some important , now the library. Dll file is built in. The header file has been published in a common location and is included in many other libraries. Those libraries have been built in their .dll files. The net result is low as each .dll is a separate executable module, so it has to preserve all those constants. Each "continuous" is actually an example of a class with a non-trivial constructor and disaster. Now every .dL has a copy of MagicValue and the code for the creation and destruction of variables is injected into each .dll file which adds load time and. Dll greatly increases files if this is the case with multiple const...

debugging - Can I debug Matlab Code started via Matlab engine? -

I try to debug a script file from the matlab engine and debug it. Using breakpoints in my C ++ program, I could open a matlab editor and set a breakpoint in my script. When I continue the C ++ program, the breakpoint hits, but the steps or similar commands do not work through it (as well as inspecting variables or continuing to continue). Is there a way to debug code? Thanks, Philip Can you do the job In that case, explain the relationship between matlab and C ++? Because you mention C ++, it seems that you are not just trying to debug a Matlab function or script using Matlab debugger, right? (If you are new to Matlab and / or its debugger, Doctor Debug 'and introduce yourself to the commands.)

sql - Updating a db table based on 2 separate conditions -

I need to update my table (dependency) and set a new column (vid) next to a sequence. The way I can not change the data table, please do not mention to remove the redundant data. However, where there is a problem in the condition, two situations need to be completed (column provider and original). There is a separate primary key (prikey): Table dependency (table of dependencies) (46), worker provider (46), Vertur Genesis (46) Vranchal Other Data (16) with integer) The sample data will look like this: - (prikey, ORIGID, PROVID, VID) ('AA1', 'C3C87F000001', '23', 1), (' AA2 ',' C3C7F000001 ',' 23 ', 1), (' AA3 ',' C3C 87F000001 ',' 26 ', 2), (' AA 4 ',' C 3 C 87 F 000001 ',' 53 ', 3) (' AA5 ',' A3C 87F 00000 9 ',' 26 ', 4), (' AA 6 ',' A3C 87 F 00000 9 ',' 23 ', 5) As the data can be seen from , Can repeat the original and provider...

winforms - Cannot update a treeview inside a usercontrol -

I have created a user control with a tree view in it if I add a node to the user handle's manual handler, the previewview will be populated. . But after that (for example, I click on a button in my original form), the preview will not refresh. I can see that the nodes were updated in memory, but it can not be displayed on screen. I have appreciated any suggestion after adding the nodes. /p> I describe your description Based on a quick test, I keep it together and it looks just right. UserControl1 Put a user on a form with a button Public class form 1 private sub button 1_click (ByVal sender System.EventArgs as Ystem.Object, ByVal e as S: handle button 1. Click the UserControl11.AddNewNode (now .toString) expiration class If you are looking at the proper picture, then by any means see handling graphics as a parent, then control the usercontrol In the usercontrol we really need more information.

mysql - SQL Syntax Error -

I am trying to upload a member database with login and making user the facility. Whenever I upload the .sql file to the host, I get an error at the bottom of the page: MySQL said: There is an error in your SQL syntax; To use pass 'ÿþ /' on line 1, check the manual related to your MySQL server version for the correct syntax Whatever I should consider, it will be highly appreciated. I first bit source code Error: C1 C2 LN: 0 1 68 006 STR: ÿ Mayskyuel: 5k0k77 log usr OS, agent, Vir: Win Mozilla 5.0 PMA 2.4.0 PPP VERs, OS 4.4. 7 FreeBSD Lang: eN-ISO -8859-1 SQL: ÿþ / ****** object: foreign keys [Fke__ asp Net_m_apeli__l45 C 0 A3 F] script Date: 07/29/2010 14:50:34 **** ** / If current (select sys.foreign_keys WHERE object_id = a * OBJECT_ID (N '[dbo]. [FK__aspnet_Me__Appli__145C0A3F]') and parent_object_id = OBJECT_ID (N '[DBO]. [Aspnet_Membership]')) optional table [ DBO]. [Aspnet_Membership] DROP CONSTRAINT [FK__aspnet_Me__Appli__145C0A3F] GO / ****** Ob...

How to make SVG appear without scroll bars in html -

How can I reveal SVG trustworthy without the scrollbar in HTML? Something useful is both in Firefox and Chrome. The most basic step is to look at the "natural" width and height in the SVG document. Without fully expanded scroll bars Firefox generally does this. Chrome generally does not (unless I pre-knowledge the actual width and height). The more advanced step is that I have an arbitrary width (say 400 pixels) to SVG, and SVG is properly scaled, while its aspect ratio is protected. Again, no scroll bars. I do not want to know the natural dimensions of SVG in HTML. Changing HTML or CSS is best, however, changing SVG (once, not for every size, which I want) will also have to fix it. Is such a thing possible? Here are some examples of HTML that embeds a SVG. & lt; Html & gt; & Lt; Head & gt; & Lt; Title & gt; SVG Sizing & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Embed Type = "ima...