Posts

Showing posts from March, 2012

java - Android retrieving info form a another activity, creating new layout -

I'm learning how to develop under Android. I have created a new project, main activity, and I wanted to design a new window. I've added the new functionality as described here But I can not get the visual editor for that new activity. I know that I think that to create a new layout , But how to do it and add it to other activity? How to properly get back from other activity (turn it off? How to reduce it to the main activity?) And do not collect loose information because we use the second activity (For example, what options have the user made? Similarly, I am the second alternation (intent); intent = new intent (this, DrugieOkno.class) div class = "post-text" itemprop = "text"> for question 1: a new There is a basic tutorial about how to create an action. For Question 2: There is a good tutorial for preserving the data between activities . Hope that helps.

In Inno Setup, what is the precise definition of ewWaitUntilIdle? -

As part of my installer, I need to call a DBMS system and close it, and later After starting it. If DBMS is hanging for any reason, then my installer is hanging forever. I call Exec in the command that will start or stop the database, my question is: What is the definition of ewWaitUntilIdle? If my command never comes back to start / stop the database, then what unnecessary condition does it take? This is the exact code from sources of Inno: process handle process Brick (Procedural: Thandal; Constant Wait: Texsevite; Constant Messaging Process: Tiprooceture; var Result Code: Integer); Wait if wait = ewWaitUntilIdle then repeat ProcessMessagesProc; Until WaitForInputIdle (Prosecutor, 50) & lt; & Gt; WAIT_TIMEOUT; End; Wait if wait = ewWaitUntilTerminated {Wait until the process is finished, but still process any incoming message. } Repeat {execute any pending message first, because MsgWaitForMultipleObjects (called below) only gives * new * message when it arrives]...

format - Conditional gnuplot tic formatting -

Is there any way to draft the X / Y tick labels depending on the value of TC? I am estimating a format of the format set format y ((((> > 3> & amp; amp; amp; & amp; so that a log scale graph P> 10 ^ {- 4}, 10 ^ {- 3}, 0.01, 0.1, 1, 10, 10 ^ {2} and so on, numbers near 1 For more natural representation. I address this address clearly, ie, set xtics ("10 ^ {- 3}" 1e-3, "0.01" 0.01, "0.1" 0.1, "Can be done by declaring 1" 1, "10" 10, "10 ^ {2}" 1e2) But I would like to avoid being very specific, because the label's This set changes each time Graph changes I hope no answer to this question is 'No', but here is the hope. Good ... depending on how hard you want to make this plot Here is an example that you want. This is a bit difficult plot to make an automated fashion, (you need to adjust the margin for the title, etc.), but if you need a good looking conspiracy for a pre...

python - Missing mysql.sock; yielding OperationalError: (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)") -

First of all, I swear that I've seen every single question that references this error, almost every solution that Provides someone, it varies, and does not understand systemic reasons for any error. What I need to face on this web, and this common problem, many people are needed, there is an explanation of what is actually going wrong. Actually, when I try to run: Open from Dragon Management django.db import connection cursor = connection.cursor () Django 1.4 and python 2.7.3, I get the following error: OperationCenter: (2002, "Can not connect via socket to local MySQL server '/tmp/mysql.sock' ( 2) ") I believe that my settings .py file is correct. And everything that I should have established was established. Here settings.py: database = {'default': {'ENGINE': 'django.db.backends.mysql', # add 'postgresql_psycopg2', 'postgresql', 'Mysql ',' 'Username', 'sqlite3' or 'oracle...

c# - python.net: Unable to load python27.dll with winforms but console application works -

I am using .NET Framework 4.5, but found similar results with 4.0: If I write a bare bones console application to start Python.net, it works as expected, if I try to do the same thing from a Winforms application, then I need to "DLL" to load "python27" Unable to get: The specified module was not found. (HRESULT: Exception from 0x8007007E) " If I call the implementation console application and python.net initialize a method from the reference Winforms application, it is the default build settings for both settings. I was still putting Python 27 directly in the executable folder, but the same error still occurs, so I'm guessing that this 32 bit 64 bit problem can be caused by both projects for any CPU After some more pixeling, I found two things: After some more pixeling, I found two things: Change the build X86 is the goal of resolving the missing DLL error, although the application crashed cryptically while calling Python Python. I start t...

jQuery remove waypoint -

I have an element that slides while reaching #News Deviel, and slides slides when #News is sliding . $ (document) .ready (function () {$ ('# news'). Route (function (event, direction) {if (direction === 'down') {$ Animate ({top: 10}, {queue: false, duration: 500});} and {$ ('# menu_list') ({top: 50}, {queue: false, duration: 500});}} , {Offset: '6'});}); I would like to know how to "divide", "How to apply"? When leaving the site and going to other divisions, Slide / Slide Out in slide / position. If those points are not the right plugin to do this, then I appreciate some signals to get such effect. Thank you! $ ('#news'). Waypoint ('deleted') Uncontrolled one of the "route points" and $ ('#News') to all handlers. WayPoint ('Remove') a ???? Unregister the routing points but retain the handler. Have you read the point full document ?? Src:

- Where Developers Learn, Share, & Build Careers

Image
OK, so data about several types of posts (common post and complicated with many form fields, assuming DB Preformated post). It is clear that the data of these posts should be stored in separate tables. The problem is that all these post tables should have some additional choices / comments that are linked to them. This will mean more than tables / queries ... Would you recommend top organizations in this reply? Or this image: But another with polymorphic assoc The problem is, there can not be comment in all the posts (entities). And if I only have to do a search to post, then this is only the information of the object (from the comment table), I have to find a table of all the posts to find it ... or you would recommend it to the solid aproach and a lot Have more tables and inquiries? PS: Any suggestion will be very unfair :) As you do not paint it, consider getting a good database book and reading part about general forms. In the very wrong context it is the idea that ...

c++ - How to fix JsonCPP error from getMemberNames()? -

JSON फ़ाइल इस तरह दिखती है: {"string": [{"key_one ":" मूल्य_एक! " }, {"Key_two": "value_two!" },]} सी ++ फ़ाइल इस तरह दिखती है: जेसन :: मान रूट; जेसन :: रीडर रीडर; Bool parsingSuccessful = reader.parse (सामग्री, रूट); Const जेसन :: मान स्ट्रिंग = रूट ["तार"]; std :: वेक्टर & LT; std :: स्ट्रिंग & gt; सूची = स्ट्रिंग्स.गेटमेनबार (); "Strings.getMemberNames ()" के कारण त्रुटि है: प्रविष्टि विफल: (type_ == nullValue || type_ == objectValue), समारोह getMemberNames, file /projects/.../jsoncpp.cpp, स्ट्रिंग एक arrayValue है, मैंने इसे ValueType = 6 प्राप्त करने की पुष्टि की है । जैसा कि आप कहते हैं, तार एक सरणी है, एक वस्तु नहीं आपको या तो कुछ करना चाहिए: (i) अपने तार json को ऑब्जेक्ट में परिवर्तित करना। {"string": {"key_one": "value_one!", "Key_two": "value_two!" }} उस स्थिति में आपका मौजूदा कोड ठीक होगा। यह है कि मैं क्या करूँगा...

ruby - Undefined methods using strings to populate inputs in Rails -

I am trying to pass a string from a variable in my rails app in the database. This is the user's email address. I can not understand why I am getting an "undefined method merge" error for my life. Here is the offending code: & lt;% = F.email_field: Commenter, current_user.email%> Any help will definitely help Cheers! Rails expect that the second argument is a hash, so that you want to do or better now A, set the : commenter attribute in that particular model (after you have been flushing / creating) in the controller, you can leave this value hax. That way, when using this , Then post the form, and get a verification error, the value will be the users who were posting, current_user.email no.

java - How to test a JAX-RS @POST -

Image
How can I test a @ POST method? It is easy to test @ to use the URL, how can I do this for POSTs? Do you really need to submit a form? Programmatic? Something like this: string data = urlcoder.x code ("key1", "utf-8") + "=" + url encoder.x code ("value1", "utf- 8 "); Data + = "& amp;" + URLEncoder.encode ("key2", "UTF-8") + "=" + URLEncoder.encode ("value2", "UTF-8"); // data url url = Send new URL ("http: // hostname 80 / urlhosthost"); URL Connection Connection = url.openConnection (); Conn.setDoOutput (right); OutputStream Vector wr = New OutputStream Water (conn.getOutputStream ()); Wr.write (data); Wr.flush (); Interactive? You can use SoapUI (free edition) to do this

- Where Developers Learn, Share, & Build Careers

I have a simple style question I'm writing that in an application there are several class methods that an attempt / hold block As well as the external functions of the block that depends on the outcome of the block, for example (in psudo code): try {start_transaction; Persist_data; Stop_transaction; } Hold {rollback_transaction; } Finally {} if (transaction_successful) send_message; Once the transaction is successful, I can think of the test, the only way is to try a method variable flag in the catch hold blocks, and after that I will undoubtedly work, although I want to know What is that traditional "knowledge"? It is possible that the attempt of "send_message" should be in the catch block, though it may be unnecessary clutter? I think this is a very straight question - just trying to make sure my code is well structured / organized. It looks like you have a proper leveling of your software / on increasing the coordination for this class / method Wil...

apache - Why is executing this HttpGet in Android raising a NullPointerException? -

I have created a new Android project in which the code I added is the code onCreate () Method (I have also included Internet permission in the manifest): Override public null on @Create (bundled saved instenstate) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_http_get_test); HTTP Client Client = New DefaultHttpClient (); HttpGet Request = New HttpGet (); Try {System.out.println ("Try to Make"); URI Yuri = New URI ("http://w3mentor.com/"); Request.setURI (URI); Println ("implemented"); Client.execute (request); // This line throws exceptions System.out.println ("done!"); } Hold (exception e) {System.out.println (e.getMessage ()); In logging in, I see that the last thing printed by try block blocks was followed, after which a NullPointerException was thrown. I initially loose my code, but I can not see what I am doing which causes a nullionist exception. When running in a debugger, see that the exception i...

Titanium iOS - Facebook SSO not returning to App -

I recently signed a Facebook single sign in my application using titular titles of appelster. Which is "working well, but has failed to automatically return to its application when presented with a" previously authorized "Facebook page. If the user is inside Facebook" OK "Clicks on the button then re-opens the application and works as always. I'm just getting rid of that extra step for the users. Any suggestions? I came into the Objective-C solution Like: f Yaros, Tom I believe this issue was linked to the Facebook app, not set properly Is happening and not directly tested on any device instead of the simulator. The following settings should apply to you in the Facebook application. IOS Bundle ID: com.yourcompany. IPhone App Store ID: 24242423 Enable: Local iOS App Configure for iOS OS Tested on the simulator, Safari will be triggered to open and show authorization due to setting up the Facebook app (hence why you need a real devic...

jQuery Autocomplete: How to enable cache? -

This is my source code that uses the function to push the suggestion object: {Code> jquery (document) .ready (function ($) {var cache = {}; function partition (val) {return valple split (/, \ s * /);} remove the function last (word) {return partition ( Word) .pop ();} $ ("#ctags-input") .bind ("keydown", function (event) {if (event.keyCode === $ .ui.keyCode.TAB & amp; $ (This) .data ("auto integer"). Menuu.active) {event.preventDefault ();}}) .autocompatible ({source: function (r , Add) {var ctags_action = 'suggest_tags'; var term = req.term; if (in term cache) {add (cache [word]); return;} $ .getJSON (suggestTags.url +'? Callback =? And Action = '+ CTAG_Action, Rick, Function (data) {var Suggestion = []; $ (information, work (i, wal) {suggestions.push ({label: val.name, count: val.count})}} Cache [word] = suggestion; add (suggestion);})}} focus: function () {return false;}, select: function (event, ui) {var word = partition (t...

- Where Developers Learn, Share, & Build Careers

Searching for GoogleGrouping and Stack Overflow will not yield any results that I can recognize, I'm sorry if asked beforehand do it. . I have dropped down the main menu that uses lists as its basis. The problem is, the lists are very detailed, and they do not indent enough when expanded. So, this is my problem! How can I create an indent amount on more lists via CSS? A ul dropdown menu, use / * main level * / ul {margin-left: 10px; } / * Second level * / ul ul {margin-left: 15px; } / * Third level * / ul ul ul {margin-left: 20px; } / * And so on ... * / You can indent li and (if applicable) a Update with the different effects, with margin-left You can use padding-left instead. By default, many browsers use padding-left to set initial indentation. If you want to get rid of it, then padding-left: 0px; Set, however, both margin-left and padding-left settings affect indentation of the list in different ways Specifically: margin-left affec...

Updated dll file version on build in visual studio -

Is it possible to increase the file version of DLL in Visual Studio without third party tools or plugins or is running manual By the commands e.g. I just want to press F5 is the beginning of my creation and all DLL has a new version number if they have not changed then I do not make any difference. Edit: Comment below as I autobuildversion.codeplex.com. try it In VB 2005, the version number increases when you use the app Publish to Right click on the project and select the property Click the Publish tab Below you will see the published version and one for the free increase Check box

- Where Developers Learn, Share, & Build Careers

I have a columned database, which I have changed over a period of time. For example, I have a user name, user's level and date (I have seen Stackshowverflows in other posts, and they are asking me to use triggers. But in my situation, I want to ask about the query of the database that is for the number of changes made. If my question can not be answered, please let me know if I can What is the need for other columns in it? Should I use the interval for this?) A database is inherently The two suggestions will not take this information for you either, your data will be stored in the form of time series so that instead of updating the price you add a new line as a new line and end the old value Are there. The second option is to add only one column so that you can track the number of updates in that column that cares for you. It can be done in code or in the trigger

How to query the number of changes that have been made to a particular column in SQL -

I have a columned database, which I have changed over a period of time. For example, I have a user name, user's level and date (I have seen Stackshowverflows in other posts, and they are asking me to use triggers. But in my situation, I want to ask about the query of the database that is for the number of changes made. If my question can not be answered, please let me know if I can What is the need for other columns in it? Should I use the interval for this?) A database is inherently The two suggestions will not take this information for you either, your data will be stored in the form of time series so that instead of updating the price you add a new line as a new line and end the old value Are there. The second option is to add only one column so that you can track the number of updates in that column that cares for you. It can be done in code or in the trigger

css - Why is there excessive whitespace with Facebook mobile comments plugin? -

Image
I am struggling to see that the Facebook Module of Facebook comments on our pages is extremely white on those pages The page is viewed with a mobile browser. After debugging for hours, I am now excluding specific code and it is still repros. I initially thought that this was due to the Twitter Bootstrap, but I have a comparison with it and without it , And that's the bug. It compares with a bootstrap: And this is not what one does: Both display the problem. If you are not signed in, you will see a 200 pixels white spot below. However, if you are signed in, you will see the first comment plugin, then you will see a large amount of white space. I do not know what it is The reason is .. any thoughts? Is this a bug in the FB Mobile Comment plugin? I had a single problem and finally found out

- Where Developers Learn, Share, & Build Careers

I am trying to convert image hover to another picture which I found is not working for me yet is. Here's my HTML & lt; Div id = "navbar" & gt; & Lt; Table style = "margin-left: automatic; margin-right: auto;" & Gt; & Lt; TR & gt; & Lt; Td> & Lt; A href = "index.html" & gt; Div id = "navbar_button" style = "background-image: url (images / navbar_home page); width: 213px;" & Gt; & Lt; / Div & gt; & Lt; / A & gt; & Lt; / TD & gt; & Lt; Td> & Lt; A href = "play.html" & gt; Div id = "navbar_button" style = "background-image: url (images / navbar_playong); width: 213px;" & Gt; & Lt; / Div & gt; & Lt; / A & gt; & Lt; / TD & gt; & Lt; Td> & Lt; A href = "home / index.php" & gt; & Lt; Div id = "navbar_button" style = "background-image: url (images / navb...

youtube api - PHP: Verifying YT video id exists through YT APIs -

Research seems to be the best practice through YT APIs when YT Video ID is present. I am a new learner for PHP and have created a function, but there are errors in it, I am not sure whether it is reaching correctly or if I have to change my code. How can I verify a YouTube video ID properly? I'm getting two errors: WARNING: Incorrect parameter count for preg_replace () Fatal error: Class 'HTTP' not found code function is valid Youtube video ($ isValid) {$ isValid = false; If ($ videoID == preg_replace ('~ https ?: // (?: [0- 9A-Z-] + \.)? (?: Youtu \ .be / | youtube \ .com \ s * [^ \ W [-] '] [^ | The best way to check with YouTube's API is by doing this method I worked with: $ headers = get_headers ('http://gdata.youtube. Com / feeds / api / videos / '. $ Video id); If (! Stros ($ headers [0], '200')) {echo "The YouTube video you entered does not exist"; Return Return;} Simply copy and replace with the rest...

android - Destroying Activity or application itself from another application -

I have two applications, one is a receiver and it is starting my application. it works fine. Now I want to delete my application from the receiver. Is this possible? Please note that these are my own applications This is possible but the activity is -method. You can register an activity using a registerReiver (..) for a receiver and handle your logic in your activity. Do not forget the ungrassed receiver (...) inside OnDestroy. Example: Broadcast receiver MRIVAR; @ Override Public Waste Create (Bundle Saved InstantState) {IntentFilter filter = new IntentFilter (); Filter.addAction (...); MReceiver = new broadcast receiver () {@ Override Public Records on Receive (Reference Reference, Intent of Intent) {// Applied Logic Finish (); }} Register Receiver (MREC, Filters); }

indexing - SQLAlchemy add index in mixin based upon inherited table keys? -

In SQLAlchemy, I want to define a mixer which automatically creates an indicator in getting the tables. Assuming that there is a member list in the inheriting table called 'keys', I want the mixer to create a single multi-column index in the inherited table on the columns listed in the keys. However, the mixer does not know how long the keys have been made! How do I do this? "Text"> example: metadata () base = declarative_base (metadata = metadata) class MyMixin (object): @declared_attr def __table_args __ (CLS): return (index ('test_idx_% s '% Cls .__ tablename__, * cls.INDEX), class MyModel (MyMixin, base): __tablename__ =' atable 'INDEX = (' a ',' b ',) id = column (integer, primary_key = true) = Column (integer) B = column (integer) c = column (W Digit) if __name__ == '__main__': sqlalchemy import: create_engine engine = create_engine ('sqlite: ///', echo = true) metadata.bind = engine metadata.creat...

class - c++ declaring a variable when passing it into a function -

I have come from the world of C # which is doing something like it is allowed. When I try in C ++, I do not get any compiler errors, but I'm not sure it's actually working. So more experienced people are allowed to do this: unit-> gt; Setpozzi (vector 2 (200, 400)); As Vector 2 has a square and the condition of the set requires a vector parameter? Is this permission or I need to pre-start the variable like this: vector 2 aquacare (200, 400); Entity-> SetPosition (aVector); Thanksgiving Vector 2 (200, 400)); OK (and better) If you have defined SetPosition as one of the following: zero set (vector 2 constant and v); // OK: const reference zero setPosition (vector 2V); // OK: value is such, accepting the setposition argument as const context , Or just as value . This will not work though: Zero Setposi (vector 2 and v); // is not ok: non-constitutional reference - In C +11, you can write it (provided you have vector 2 to) : ...

- Where Developers Learn, Share, & Build Careers

I have a project where I am using the GWT command pattern to apply RPC. How can I integrate GWT with Spring? Without spring I am able to get RPC. But here I have to use Spring Dependency injection for the GWT server side package. I am unable to find the appropriate sample or link to implement it. Without command pattern, I am able to integrate spring with GWT by referring to the following link Thanks , If you are using it, you can use it to use this trick. Instead of working with spring I have not seen them for a while - not sure what extent they are being made - please do not use them Please check before taking Hny.

apache - Redirect requests to router -

I have a wireless router and I want to emphasize those people who have their own local Apache (WAMP) establish. So, when people connect to my Wi-Fi and launch a browser, it shows what I have, they are not able to make an external connection. Keep in mind, li It is called a captive portal and it is open to many The source is applied in the products. NoiseSplash Koiva Chilli WiFiDog / li> Many open source firmware options come with a captive portal in which I know it comes out of the box. , And some other types of captive portals but I'm not sure how the setup looks. If you do not need to allow people to open on the Internet anytime, then you use an open top firmware firmware and firewall to redirect all 80 port traffic to your Apache IP address. .

php - String format - Logic issue -

संभव डुप्लिकेट: मुझे निम्नलिखित JSON प्रारूप में आउटपुट डेटा की आवश्यकता है I आउटपुट: [{"name": "jake", "age": "20"}] निम्न कोड, मुझे एक तरह से कुंजी और मूल्य जोड़े सेट करना होगा जहां यह उपरोक्त JSON आउटपुट देगा। मैं यह कैसे कर सकता हूं? कोड: $ result = array (); $ Key = array ("name", "age"); $ Value = array ("jake", "20"); जबकि ($ i & gt; 2) {$ परिणाम [] = यहां मुझे SET & lt; key की आवश्यकता है: मान & gt; संयोग, मुझे एक तरह से निर्धारित करने की आवश्यकता है कि वह ऊपर दिए गए जेसन आउटपुट के प्रारूप देगी I } इको json_encode ($ परिणाम); $ key = सरणी ("नाम", "उम्र"); $ Value = array ("jake", "20"); $ Json = सरणी (); के लिए ($ i = 0; $ i & lt; = गणना ($ कुंजी) -1; $ i ++) {$ json [$ की [$ i]] = $ मान [$ i]; } गूंज json_encode ($ json); // {"नाम": "जेक", "आयु": "20"}

c# - How to access Session in .ashx file? -

I want to enter some value in the .hx file (which has already been set in.aspx file) I am I tried to use that value query string, session etc. but it failed every time. Anyone can suggest me how can we get the value of the session in .hx file? in ASPX file: session. Add ("Filename", "Test Test"); After you set the session value in the aspx file. Use the following to get value in the ashx file. In Ash file: Public class ImageHandler: IHttpHandler, System.Web.SessionState.IRequiresSessionState {Public Zero Processor (HttpContext) Context) {string name = ""; If (context.Session ["filename"] = = null) name = reference Session ["file name"]. ToString (); }}

- Where Developers Learn, Share, & Build Careers

I have text resources in Android, some have already been translated, while others are unavailable. Is there a tool that can import Value XML file besides the Value XML file for Italian and checks whether it is missing and helps in incorporating unavailable translations? I tried Omgati, this program imports Android resources and also writes in it. However, it did not show translated content already. Virtal Translator does not support XML files as input. I have to make a simple tool outside Eclipse, so that I can help others translate things. I've been considered the easiest and easy to use for Android string translation. It supports Android XML string import and I believe that you can import your individual files in a single translation and it will fill your unavailable definitions. Export will provide you an XML with all your definitions together, and it also has automatic translations or you can invite translators / friends to work with you by putting your email int...

- Where Developers Learn, Share, & Build Careers

I am using JavaScript / jQuery that attempt to parse an XML document obtained through an AMX Has been doing. I can not post an XML document, but it is well-formed and the tag I see is present. AJAX requests succeed and gives full XML documents in both Chrome and Firefox - now I can not parse it for some reason. This code is working on Chrome, but Firefox or IE is not really I'm interested in IE Type: "GET", Data Type: "application / xml", url: '../api/indica TorGroupSets.xml ', success: function (XML) {/ * Find indicator group set tags in XML file * / alert ($ (xml) .find (' indicator group asset '). Length); // This warning is available in Firefox' 0 'reads' 4' in Chrome / Firefox does not execute the following function: $ (xml) .find ('index group asset') .each (function () {/ * for each set, get name & Amp; id * / var groupSet = {name: $ (.) .attr ('name'), id: $ (this) .attr ('id')} ...

Problems parsing XML with jQuery in Firefox -

I am using JavaScript / jQuery that attempt to parse an XML document obtained through an AMX Has been doing. I can not post an XML document, but it is well-formed and the tag I see is present. AJAX requests succeed and gives full XML documents in both Chrome and Firefox - now I can not parse it for some reason. This code is working on Chrome, but Firefox or IE is not really I'm interested in IE window.onload = function getGroupSets () {$ .ajax ({{ Type: "GET", Data Type: "application / xml", url: '../api/indica TorGroupSets.xml ', success: function (XML) {/ * Find indicator group set tags in XML file * / alert ($ (xml) .find (' indicator group asset '). Length); // This warning is available in Firefox' 0 'reads' 4' in Chrome / Firefox does not execute the following function: $ (xml) .find ('index group asset') .each (function () {/ * for each set, get name & Amp; id * / var groupSet = {name: $ (.) .attr ('na...

- Where Developers Learn, Share, & Build Careers

Image
It's difficult to reproduce my issue, but I hope someone can give me a hint here How is it solved? I received a ComponentProvider & lt; JLabel & gt; is written which creates a clickable cell decorated with an icon if there is a URL in the string if no URL is found in the string value, then there is no icon set for the label. And the cell should not be clickable Here is the code: Public class ExternalLinkProvider ExponentProvider Expands & lt; JLabel & gt; Rollover renderer {private string url = null; Applies; @ Override Protected Zero Format (Selconent Reference) {} @ Override Protected Zero Configuration (Cell Content Reference) {If (context.getValue (Example String)} {String stringValue = (string) context.getValue (); WwwLink Link = NewWwwLink (stringValue); // Set a link icon if it has a valid URL. If (link.isValid ()) {rendererComponent.setIcon (ExternalLink.WWW_LINK_ICON); Url = link.getUrl (); } Else {rendererComponent.setIcon (null); Url = null; ...

c++ - Winsock 200ms delay issue -

I know that WinSock send call may be delayed from MSDN: Naval Algorithm: S_Algorithm Problem Summary : If the short message with the SOSNDBUF "0" option again (& lt; MTU), Function Block 200ms. My question : Why send a message first Delay 200ms? Because TCP is inactive before sending it first, I think the first message should be sent immediately. But the results of the test are not desired. Why delay 200ms in the first message, Thanks for the answer. Add some details : Nagllog algorithm works for small messages such as the following: 1 If the wire is useless , Then send it immediately. 2. If ACK has not been received for formal message, then ACK & amp; Send 3. TCP Aluminum William McKenzie send the ACC after 200 mms of the window. So, I hope that the first message sends immediately and the second message waits for the first message of 200 ms for the acc. Is this wrong? Typically TCP puts data in buffer as long as the action is n...

Rails and Facebook - can I do this? -

I'm thinking of implementing Facebook integration for my web app, I know the names of friends, their age and their I want to be able to import interests / likes A. First of all, is this possible? Can I use this information? This import will be more or less, one time imported I also use Facebook-login and parallel it for my "normal" login (auth) functionality. I want to be able to use I think it should be quite straightforward because most websites have this method (like Fiverr.com). B These two things are the basic need of my Facebook integration, which will you recommend to use me gem? C I am in 1 1/2 years ROR and feel good on rail programming, but hardly know javascript and very little jquery. Will this integration be difficult for me, do you think? Welcome to the useful blog post etc. would also be appreciated! Check Facebook doctor on the permissions. I would say that you can get a user friend list (id and name), but nothing else: friends will ha...

java - Error when running Flyway on JBoss 7 -

I'm trying to set up my application so it will automatically upgrade the database, when any environment Will be posted in the following for Spring Config: & lt; Bean id = "datasource" class = "org.apache.commons.dbcp.basicDataSource" & gt; & Lt; Property Name = "driverClassName" value = "oracle.jdbc.driver.OracleDriver" /> & Lt; Property name = "url" value = "jdbc: oracle: thin: $ $ {db.host}: $ {db.port}: $ {db.database}" / & gt; & Lt; Property name = "user name" value = "$ {db.username}" /> & Lt; Property name = "password" value = "$ {db.password}" /> & Lt; Property Name = "Maxactive" value = "4" /> & Lt; Property Name = "MaxWhite" value = "5000" /> & Lt; Property Name = "Default Auto Comet" value = "False" /> & Lt; Property Name = "defaultReadOnly...

c# - Best pattern to use with inheritance model -

I have an ideal in which I have an abstract class (it's called vehicle ) and Classes in the form of many heritage bikes , motorbike , car , van etc, it is basically a real one Simplified version is world problem Abstract class auto id; Int wheelcount; String OwnerName; Class Bike Datetime Latest Security Checks; Class motorbike-engine engine class car double engine's class van double storage capacity I have a system, which is the IEnumerable & lt; Vehicle & gt; This thread is rooted in the Secular Unitan class, which essentially acts as an in-memory database. I want to make a method in my application (in singleton or separate class) which allows me to query only for a certain type of vehicle. Initially I thought of a method: Internal IEnumerable & lt; T & gt; GetVehicles & lt; T & gt; () Where T: Vehicle I will be able to provide a type T in order to retrieve that type. I know that I can use type () to do logic, but I do not...

Scala how can I count the number of occurrences in a list -

wall list = list (1,2,4,2,4,7,3,2,4) I want to implement it like this: list.count (2) (return 3). The mark is count in the archive: list.count (_ == 2)

- Where Developers Learn, Share, & Build Careers

Indicates how to export a custom exception class from C ++, and how the exception class is exported How can I do the exception of Python? It exposes an exception class that has custom methods for receiving the information and that category has been obtained with the exception of Python. A practical solution, rather than receiving from the wrapped C ++ recommended by Jim Bosch, of the structure To use The code should be made to be a python exception as is done, and then add a C ++ exception wrapped as an example variable of the Python exception. Zero Translator (const MyCPPException & x) {BP :: Object Ex (X); // C + Exception: BP :: Object exc_t Wrap (BP :: Handle : (BP :: Credit (exception type)); Exc_t.attr ("cause") = exc; // Python exception add wrapped exceptions PyErr_SetString (exceptionType, x.what ()); } Wrapped C ++ exception can be accessed from Python in such a way: Try: MyModule.MyCPPExceptionType e: Reason = E But the exception here will ...

iphone - can i crop a zoomed image . fixed cordinates -

Problem: Can I crop an image at a fixed coordinate (50,50,200,200) after zoom? I pass several hours and look at the similar question. But the answer is not answered thanks The logic of my harvest is here .. CGSE Item Item = CGSJack (200, 200); UIGFIFENESS Bizinetzisten (items, NO, 0); CGRTP Choiceant = CGRactMake (50, 50, 200, 200); [ImageView1.image drawInRect: imageRect]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); But I can not crop the exact image into the scroll view. I want the crop image that is displayed in the scrollview after zoom. Answer to my own question: After a googling I found a link and After doing a little modification it works fine for me. It may be that he saved another time and effort. Thanks UIGraphicsBeginImageContext (CGSizeMake (200, 200)); [ScrollView.layer renderInContext: UIGraphicsGetCurrentContext ()]; UIImage * fullScreenshot = UIGraphicsGetImageFromCurrentImageContext (); UIGr...

SQL Server : scheduling programmatically -

I stored SQL Server need a process I am trying to force you to call every hour. I have read the following articles: They are very big and very straight forward Are not there. Is it the following SQL code to my work that could confirm correct: USE msdb; Go EXEC dbo.sp_add_job @job_name = Extract N'ExecUldCSIIMportData '; Get EXEC sp_add_jobstep @job_name = N'Exec RemoveOldCsvImportData ', @step_name = N'execute stored procedure', @subsystem = N'TSQL ', @command = N'exec RemoveOldCsvImportData', @retry_attempts = 5, @retry_interval = 5; Go access Dboksp_aed_schedule @schedule_nam = N'runonke, @frenk_taip = 4, @frenk_intrvl = 1, @frenk_subday_taip = 0x8, @frenk_subday_intrvl = 1, @aktiv_start_taim = 233,000; USE MSDB; Go access Sp_attac_schedule @job_nam = N'akses Removeoldaksvimportdta, @schedule_nam = N'runonke; Go EXEC dbo.sp_add_jobserver @job_name = Remove N'ExecOldCSIIMportData '; GO My suggestions ...

php - Zend_Date comparison errors -

Image
I am using Magento to get product date field value. Then I decided to use the Zend_Date to handle that value because Magenta gives dates in different formats (based on local set). But for some time I was scared to me. I found three dates, 12 July 2012 (let's call it today), 2 March 2012 and 2 September 2012 . And checking that the return of each other later than today returns true for both codes. G. Today has been made after 2 March (which is true ) later on September 2 (which has left me stunned) Here is evidence from PhpStorm watches: I have the following types of dates: $ productData ['news_from'] = Dana :: app () - & Gt; GetLocale () - & gt; Date ($ productData ['news_from']); $ ProductData ['news_to'] = Dana :: app () - & gt; GetLocale () - & gt; Date ($ product data ['news_to']); $ _currentDate = Mage :: app () - & gt; GetLocale () - & gt; date (); What am I doing ??? It may be tha...

How to play streaming video on ipad using html5 -

I want to play a streaming video on my iPad for this but I have written this code but it is not working . Please tell me what I'm missing I create a sample page for this OS jsbin The link gives you a html file, not a video file. src attribute requires a direct link to the video file, for example: & lt; Source src = "http://example.com/video.mp4" type = 'video / mp34' & gt; When I open my Vimeo link: http://vimeo.com/45578271 Real http://player.vimeo.com/play_redirect?clip_id=45578271&sig=ce8ba1a31d3d05b9f1df5672eab81d5f&time=1342087202&quality=sd&codecs=H264,VP8,VP6&amp: downloaded video Gaya ; Type = moogaloop_local & amp; ... embed_location = It turns out, but every time Vimeo visit Vimeo does not allow their content

How can I close a specific window using Selenium WebDriver with Java? -

I use Selenium WebDriver I open the first page and open another page - take a few actions and return to the first page Go before I want to close the second page, I driver.close (); I use the command , but it closes the first page in place of the other. How can I create Selenium to close a specific window? Part of the code before the string handle = driver.Janavandhandle (); . Click on Driver.findElement (By.xpath ("...")) (); (String blocking: driver.getWindowHandles ()) {driver.switchTo (). Window (Dakhandi); } Driver.findElement (By.linkText ("001")). Click (); Driver.close (); string base = driver .getWindowHandle (); Set & lt; String & gt; Set = driver.getWindowHandles (); Set.remove (base); Set up Size () == 1; Driver.changeTo () Window (set.toArray (new string [0])); Driver.close (); Driver.switchTo () window (base) This works for me ...

c# - how to use use transparent proxy(local host) in middle of browser and destination server? -

"We ask you to send all traffic to the local traffic from the browser and then traffic to our servers can be sent Otherwise the browser directly requests the destination server (like Google). " Transparent proxy can be used in any place, it does not break http and https traffic is. Browser - & gt; LOOM Host (Make SSL) - & gt; Our server - & gt; Google Then, how do I use the proxy (local host) transparent between browser and destination server ?? I will start seeing the quickstart video. This is a tool used as a proxy for web debugging, and as you describe it is used as a transparent proxy. The basic idea is the same, to point your proxy to your browser And then the proxy will have to 'forward' the traffic.

svn checkout http:// not working -

The svn server is behind a proxy server behind the firewall. svn http: // * / * returns does not work: repository permanently transferred; Please move , while svn co svn + ssh: // * / * works well within the local domain of the proxy server. Do you really use the correct URL with the http protocol? Keep in mind that web access (as provided by VVVC) is different from svn access ... If you can, So you should also verify the configuration on the webserver. This question can also be helpful on ServerFault:

Authorize.net credit card payment for non US customers -

I have a website that tells our customers the possibility to publish some people. The first time an ed editor has been received and the interlace has been examined. After this, we are asking the customer for payment and when payment is received, the ad is published. My goal is to give our customers the possibility of paying with their credit card. For example, send an invoice via email with a link (or button) on a webpage where they can introduce their credit card numbers etc. The company is also located in Switzerland and our bank. I'm actually reading a lot about Authorize.net, but apparently, we are using a bank in the US? Our customers are based around the world, this may be the cause of a problem and additional fees. Can we easily send an invoice via email with a link to credit card payment? Thank you very much. I'm actually reading a lot about authorize.net but apparantly, we Shuld is a bank in America? Our customers are based around the world, this ma...

c# - 3 tier arch. in diff projects -

Image
यह तब तक समाधान है जहां तक ​​यह जाता है। बोल व्यापार ऑब्जेक्ट लेयर बीएल। बिजनेस लेयर दाल। डेटा स्तर (समाधान में कोई वेब पृष्ठ नहीं है क्योंकि यह एक बाद में प्रक्रिया में विकसित एक पीएचपी होगा) बोल संदर्भ BL - तब BL संदर्भ डीएएल । मुझे बहुत ज्यादा अनुमान है कि आप प्रत्येक .C.C फ़ाइल के अंदर क्या जानते हैं। तो मुझे वास्तव में इस 3 स्तरीय वास्तुकला और चीजों को अलग रखने की तरह (पहली बार इस तरह से काम करना) अब, जब परतें के माध्यम से डेटा भेजने और प्राप्त करने की बात आती है तो मैं कुछ मुद्दों पर दौड़ रहा था उदाहरण के लिए: BL (methods.cs) सार्वजनिक वर्ग के तरीकों {LineaDAL obj = new LineaDAL (); सार्वजनिक डेटासेट GetLinea () {var डी एस = नया डाटासेट (); Ds = obj.GetLineaDAL (); वापसी डी एस; } //// अधिक कोड} यह महान काम करता है, डीएएल से वस्तु बनाएं (जो संदर्भित है) और फिर डीएएल को कॉल करें और डेटा को DataSet पर पुनर्प्राप्त करें । यह अच्छा है, और यह डीएएल / एसक्यूएल से कुछ पाने के लिए बहुत अच्छा काम करता है लेकिन अब मैं एक अपडेट पर काम कर रहा हूं, और मुझे एक डी...

how to play spotify media in android jni -

I'm trying to make a simple player after the guidance in Android, using it I can play with the track Ubuntu Spitative but I can not work on Android. So far I'm able to query for track from Spreadchap but when I tried to add playback capabilities using ALSA, there was a nightmare. What have I tried to use openAl and still a very easy way to run streaming audio in Jni stuck? My & amp; At the end of the on_search_complete callback, I call a function 'play' which looks like this: zero play (sp_session * session, sp_track * track) {if (DEBUG_MODE) __android_log_print (ANDROID_LOG_INFO, Explanation "," attempt to play the track ... "); Sp_error error = sp_session_player_load (session, track); If (error! = SP_ERROR_OK) {if (DEBUG_MODE) __android_log_print (ANDROID_LOG_INFO, "explanation", "error:% s \ n", sp_error_message (error)); Exit (1); } If (DEBUG_MODE) __android_log_print (ANDROID_LOG_INFO, "explanation", "p...

- Where Developers Learn, Share, & Build Careers

I have a way to find a collection of employees by name. I pass the array of last names that I want to meet, and the law gives employees with these names is simple. Public IQueryable & lt; Employee & gt; GetEmployees (IEnumerable & lt; string & gt; last name) {var query = employee. Where (E => Last name is included (E. Last Name)); Return query; } Now I need to change the law so that I can cross the array of partial last names, and get all the employees whose last name matches the partial last name Eat. / P> Public IQueryable & lt; Employee & gt; So if I have employees with these names: Sigourney Weaver, Amanda Beaver, John Smith, Jane Matheson (Ianumerable & lt; String & gt; partial ListNames) And I pass partial "unknown", "mathematics"], it will return a query to me which can be sent to the questioning signer, Weyman, Amanada Beaver and Jane Matheson How can I do this? Thank you I think you are lookin...

best way to catch exception in visual studio c++ debug mode only happen when running from IDE -

I have an application that is multi-threading with a heap and includes fixed global members in the item (I know. ..not good) I am thrown away from different places every time. What is the best strategy to catch it? Getting: unexpected exception on 0x0135f2a7 in myapp.exe: 0xC0000005: Location violation 0x00000004 UPDATE I think when I compile in release mode and run it outside the IDE, then its work is fine, how can it be? I'm assuming that what you're trying to do is solve a common problem rather than a normal run-time exception Handling system? There is an option named "Exceptions ..." under the "Debug" menu of VS2010 and 2012. You can request that a break in the VS debugger application when an exception is thrown; This should give you some insight which is actually going wrong and where is it.

algorithm - How to solve rubik's cube in a efficient way -

संभव डुप्लिकेट: मैं रूबेक के क्यूब को सुलझाने के लिए एक अनुप्रयोग बनाना चाहता हूं। मैंने पढ़ा है कि एक कंप्यूटर अधिकतम 20 चाल में उसे हल कर सकता है हालांकि इंटरनेट पर खोज मैं यह कैसे लागू करने के लिए नहीं मिल सकता है। इसलिए मैं फ्र्रिडिचर विधि () के बारे में सोचता हूं लेकिन पीसी पर सभी एल्गोरिदम को पढ़ना मुश्किल है। कोई सुझाव? अनुलेख मेरी अंग्रेजी के लिए क्षमा करें:) यह सबूत है कि गणना करने के लिए आवश्यक 20 चाल में किसी भी स्थिति का समाधान किया जा सकता है। यह, एक रचनात्मक सबूत था: प्रत्येक स्थिति (मॉड्यूलो समरूपता) के लिए 20 घंटों या उससे कम के वास्तविक समाधान की गणना की गई (हालांकि उस स्थिति के लिए अनुकूलतम समाधान जरूरी नहीं)। वे ऐसा करते थे, उपलब्ध है। यह सी में लिखा है लेकिन सीडब्लब के माध्यम से साक्षर प्रोग्रामिंग का उपयोग कर रहा है, इसलिए यह काफी आत्म-दस्तावेजीकरण है।

c++ - array...for loop -

मेरे पास दो पूर्णांक a, b और इस तरह एक पाश है: के लिए (int I = 0; i & lt; 8; ++ i) {if ((बी एंड (0x01 & lt; & lt; i))! = 0x00) {// c ^ = (a & lt; & lt; i); }} ए और बी चार एरे में संग्रहीत होने पर मैं यह कैसे कर सकता हूँ? अहस्ताक्षरित चार परीक्षण (अहस्ताक्षरित चार * एक [], अहस्ताक्षरित Char * b []) {for (int i = 0; i & lt; 8; ++ i) {if ((b [i] & amp; (0x01 & lt; & lt; i)) = 0x00) {shiftleft (ए) ; सी [आई] ^ = ए; चूंकि ए और बी अब एरेज़ हैं, आपको पहले इंडेक्स होना चाहिए और तुल्यता के साथ काम करना चाहते हैं इसलिए, उदाहरण के लिए, c ^ = (a & lt; & lt; i) के स्थान पर; आप कर सकते हैं: c [i] ^ = (a [i] & lt; & lt; i); कृपया ध्यान दें कि क्योंकि ^ = पिछले मान पर निर्भर करता है, सी [i] आरंभ करने से पहले कुछ अर्थपूर्ण होनी चाहिए।

Get date using javascript in this format [MM/DD/YY] -

How can I use JavaScript [mm / dd / yy] in this format? I am struggling to get the 'year' figure of 2 points as opposed to the whole issue. Thanks! Try it out: HTML & Lt; Div id = "output" & gt; & Lt; / Div & gt; JS (function () {// Get current date var date = new date (); // format day / month / year to Two digits variedrate = ('0' + date .getDate ()). Piece (-2); var formattedmont = ('0' + (date .getMonth (+ 1)). Piece (-2); var formatted year = Date.getFullYear (.) ToString (). Substr (2,2); // Combination and Format Date String var dateString = formattedMonth + '/' + formattedDate + '/' + formattedYear; // Reference output DIV var output = Document .querySelector ('#output'); // output datestring output. Wiener html = datestring;}); Object:

SQL Server MDX query parameter -

I am very new in the MDX query. I am trying to pass a parameter through my query. This is giving me this SQL error: Creating the query failed. The function is expected to have a tufal expression for 5 arguments. A taple set expression was used. is the query: SELECT {[remedy]. [DENOMINATOR [Director] [Indicators], [remedy]. Columns on [target]}, non-empty ([dim indicator]. [Indicator set]. [Indicator set] .ALLMBERS, [dim indicator]. [Indicator group] [Indicator group]. [Indicator name]. [Indicator's Name]. [Name of Indicator] .MEMEMBERS] [Dummy-Dashboard] --Parameter's query on rows goes here WHERE (Strontosateender ID) If you need to ask a query with the parameter, then you will need to use XMLA for this. Please see the examples given below for xmla: & lt; Envelope xmlns = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Body & gt; & Lt; Execute xmlns = "karash: schema-microsoft-com: xml-analysis" & g...

php curl - follow relative paths -

संभव डुप्लिकेट: समस्या का त्वरित सारांश। मैं FOLLOWLOCATION का उपयोग कर रहा हूं यूआरएल का पालन करने के लिए / कोड> विकल्प, लेकिन जब यूआरएल है: /redirectPage.html कर्ल इस तरह से इसे पसंद करता है: localhost / redirect page.html यह मेरा कोड है: $ ch = curl_init (); // सेट विकल्प curl_setopt ($ ch, CURLOPT_AUTOREFERER, सत्य); Curl_setopt ($ CH, CURLOPT_COOKIEJAR, $ cookiejar); Curl_setopt ($ CH, CURLOPT_COOKIEFILE, $ cookiefile); Curl_setopt ($ CH, CURLOPT_FOLLOWLOCATION, सत्य); Curl_setopt ($ CH, CURLOPT_HTTP_VERSION, 'CURL_HTTP_VERSION_1_1'); Curl_setopt ($ ch, CURLOPT_URL, $ url); Curl_setopt ($ ch, CURLOPT_USERAGENT, $ userAgent); Curl_setopt ($ CH, CURLOPT_REFERER, $ referer); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, गलत); Curl_setopt ($ ch, CURLOPT_POST, सच); Curl_setopt ($ CH, CURLOPT_POSTFIELDS, $ postData); $ Content = curl_exec ($ ch); curl_close ($ ch); मैंने पाया है कि कुछ "समाधान" DOM ​​दस्तावेज़ को पार्स करने और href यू...

Change default resolution list in Visual Studio Simulator for Windows 8 Apps -

Image
Is it possible to change the default screen resolution list in the Visual Studio Simulator for Windows 8 apps? The simulator uses the following pattern for the following resolution configuration C: \ Program Files (X86) \ Common Files \ Microsoft Shared \ Windows Simulator \ 12.0 \ HardwareConfigurations \ HardwareConfigurations * .xml So if you use the following code as HardwareConfigurations-SurfacePro3 Copy into a file named ".xml" in that folder (you need administrator rights) you receive an additional entry in the list, so that you can access the Surface Pro 3 May have been followed. & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; ArrayOfHardwareConfiguration xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: xsi = "http://www.w3.org/2001/XMLSchema -instance" & gt; & Lt; HardwareConfiguration & gt; & Lt; Name & gt; 12-2160x1440 & lt; / Name & gt; & Lt; ...

- Where Developers Learn, Share, & Build Careers

This is my problem, In Windows I am creating a zip file that contains a text. Sh file which is supposed to execute in linux. At the other end, the user opens the zip file in Linux and tries to execute the .sh file, but the executed permission disappears. So the user has to do it manually (as explained below:.) How can I do this in Windows. SB is executable and add it to a zip file so that when the zip file is in Linux. Also retains the permission for its execution (so that the user should not do it manually) That I know the permission system in Linux in such a way I think that whatever you can do is to run a custom unzip one liner on your Linux user at the prompt: Zip and zip. X_script_name.sh If you have several scripts that you want as a grant_perms Sh to allow write: #! / Bin / bash # file: grant_perms.sh chmod + x script_1.sh chmod + X sc Rip_2.sh ... chmod + x script_n.sh (You can put all the scripts on a line for chmod, but I can get different lines w...

scala - Structural subtyping reflection -

Can we use reflections from the outside of the vals: string type of function F ? val f = (r: {val s: string}) => {} scale & gt; Import Scala. Reflection.artum {Universe = & gt; Ru} import scala.reflect.runtime {Universe = & gt; Ru} skeleton & gt; Import slaal.fact.rontime.incer._ import slailey.frack.timetime.News._scale & gt; Def type [T: Rs. Type] (x: t) = ru Type [T] // Capture- compiled time type information type off: [T] (X: T) (Untrue proof $ 1: Reflect. TIPTAGG [T]) Reflect. Rendime. Music. Type skeleton & gt; Val f = (r: {val s: string}) => {} F: AnyRef {val s: string} = & gt; Unit = & lt; Function 1 & gt; Scala & gt; Val tpe = typeOf (f) tpe: reflect.runtime.universe.Type = scala.AnyRef {val s: string} => Unit Scale & gt; RU.SHRO (TEP) res0: string = Typref (this type (scala), scala.function1, list (refined type (list type (Typref (this type (scala), nuittipam ("ANIRF"), list ()) Scope (Nutteram na...

ios - Full-featured music player using AVPlayer -

I am writing a music player for iOS, which has all the features of the built-in music app. My app needs to continue running in the background so that I have to use AvPlayer class. Is there an open source application that I can use myself instead of writing the whole thing? Just got it. It works great:

- Where Developers Learn, Share, & Build Careers

वर्तमान स्थिति : मैं वर्तमान में एक अच्छा इंस्टॉलर सिस्टम (उदाहरण के लिए, Nullsoft NSIS) मजबूत> उन्नयन कार्यक्षमता पर एक मजबूत फोकस मैं कुछ प्रकार की प्रोग्रामिंग आईडीई विकसित कर रहा हूं जो कि वर्तमान में अल्फा / बीटा स्थिति में है - इसलिए मुझे अपने ग्राहकों को काफी उन्नयन करने की जरूरत है I मेरा लक्ष्य केवल नस्सेसी फ़ाइलों को हस्तांतरित करना है (उदाहरण के तौर पर 400 MB प्रोजेक्ट, केवल एक्सई बदल दिया गया है == & gt; केवल exe इंस्टॉलर में पैक किया गया है)। यदि आपके पास संस्करण 10 है और संस्करण 15 में अपग्रेड करने की आवश्यकता है, तो उसी विधि को लागू किया जाना चाहिए। यह अंतिम ~ 5 अपडेट्स (सर्वर पर स्थापना पैकेजों की कोई गतिशील सृजन नहीं है, बल्कि प्रत्येक अपडेट के लिए कई स्थापना फ़ाइलों के स्थैतिक निर्माण की गतिशील सृजन की जानी चाहिए। इसलिए यदि मैं पिछले 5 संस्करणों में "अपग्रेड हटाएं" चाहता हूं, तो मुझे 1 पूर्ण स्थापना की आवश्यकता है सर्वर पर प्रत्येक संस्करण के लिए + 1 + 2 + 3 + 4 = 11 फ़ाइलें - जो मेरे लिए ठीक है)। फिलहाल मैं नलसॉफ्ट एनएसआईएस इंस्टालर सिस्टम का...

How do I test a controller with rspec-rails? -

I want to test that my editing recipe page uses RSPC, although it is not root for My current test looks like this Pre> Description "Show recipe to edit" "edit it should display the recipe page" Get: Edit Feedback Should have feedback. Render_template render_template (edit) Ending "post-text" itemprop = "text"> problem In your example, the code required to actually test the controller object does not include the resize controller in your imagination. Solution Ensure that your controller stays under specs / controllers or is set to clear type: controller after that, in fact a controller Describes, either using the built-in subject or establishing a controller instance in the first or test block. As the most basic example: Describe RecipeController # Take a few tests using the RecipeController.new end read more

bioconductor - R - XCMS package Error -

मेरे पास निम्न समस्या है: त्रुटि। ("नेटसीडीओफ़ोन", As.ccharacter (filename), ncid = integer (1), स्थिति = पूर्णांक (1),: "प्रतीक" नाम "NetCDFOpen" पैकेज "xcms" के लिए DLL में नहीं आप कैसे करते हैं इस त्रुटि मिलती है: nc & lt; - xcms ::: netCDFOpen (cdfFile) ncData & lt; - xcms ::: netCDFRawData (NC) xcms ::: netCDFClose (NC) मुझे नहीं पता कि यह काम क्यों नहीं करता है, हालांकि यह करना चाहिए। अधिक जानकारी के लिए पूछने के लिए स्वतंत्र महसूस करें। नि: शुल्क। Cdf फ़ाइलें TargetSearchData पैकेज में पाया जा सकता है कोड का उदाहरण: ## नेटसीडीएफ जीसी-एमएस फाइलों सीडीएफपीथ और लिटी; - फाइलपैथ (.फिड.पैकेज ("लक्ष्यशोधडेटा"), " जीसी-एमएस-डेटा ") सीडीएफपीथ मुझे नहीं लगता कि यह चाहिए , जैसा कि आप दिखा रहे हैं। पहले, आप ::: के माध्यम से एक गैर-निर्यात किए गए फ़ंक्शन का उपयोग कर रहे हैं। इसके अलावा, जैसा कि त्रुटि संदेश द्वारा बताया गया है, कोई NetCDFOpen प्रतीक परिभाषित नहीं है dll / इसलिए फ़ाइलें। ...