Posts

Showing posts from March, 2010

ruby on rails - Sidekiq worker is leaking memory -

Using sidekate gem - I have a sidekuike worker who runs a process (GIT-TF clone of large store). Tracks stdout to check the progress of IO.popen and clones. When I am running a worker, I think the sidekick memory is getting bigger in that time until I get the kernel OOM and the process is killed. Sub process (Java process) is taking only 5% of total memory How can I check the memory leak in my code? And sidekick memory is the memory of my workers, which is with popon process? And does anyone have any ideas for how to fix this? Edit This is my worker's code Edit 2 I Code is not taken without a sidekick, and I do not have any memory leaks. This is something weird with sidewalks and large repositories in Tiffany I did not find the reason for the memory leak in the sidekick, but I found a path from the sidekick. I modified the server command to GIT-TF which accepts commands from the command I have modified version of git-tf here: I will add a document abou...

Set currenttime on html5 audio player with link -

Does anyone have to click the link over time to set the current time property of html5 audio? How does YouTube do the same? Say I click on a link "3:10", it will change the currently running audio current at 3:10. & lt; Audio control loop class = "sound" & gt; & Lt; Source src = "../../ site / music / music 1.mp3" /> & Lt; Source src = "../../ site / music / music 2. og" /> & Lt; / Audio & gt; For this website, & lt; B & gt; & Lt; One & gt; 3: 10 & lt; / A & gt; & Lt; / B & gt; Half-century Simple, just use the property of currentTime Or tags Notes: - The current time is not set in second minutes, so 3:10 means the second is 190. - You must provide an id for your audio / video example: & lt; Audio id = "myAud" control loop class = "" & gt; & Lt; A href = "#" onClick = "{myAud.currentTime = 190;}" & gt; Se...

graphics - Suppress redraw when calling polygon in R -

I want to attract 60,000+ non-overlapping triangles (part of an unstructured triangular trap) in a plot in R. Currently, it takes 15-20 minutes per plot, which makes it impossible to use it to make animations. For example, n & lt; - 100 # copy it to 60,000 x Is it possible to suppress polygon () by recycling after polygon? I'm guessing this is the most time-consuming step, and it is not mentioned in the man page. Alternative tips will be appreciated on how to achieve this. Thank you. You can pass multiple polygons at polygon . Separation of what you have to do is different from NA . Here's a code: Cut Works fast I tested to control the seed and compare with the plot generated by your code.

ios - Updating UITableViewCell subview's frame has no effect -

मेरे पास एक कस्टम (उपवर्ग) UITableViewCell है जिसमें कुछ यूआईलाबेल, एक UIButton, और एक NSBlock गुण के रूप में है इस उपवर्ग को ExploreCell कहा जाता है दो संपत्तियों में यूआईएलएबल्स हैं और उन्हें क्रमशः waitLabel और lastUpdateLabel नाम दिया गया है। जब अंतिम अपवाद लेबल की सामग्री शून्य है या रिक्त है तो @ "" , मुझे waitLabel को स्थानांतरित करने की आवश्यकता है I खड़ी नीचे (वाई अक्ष पर) 10 पिक्सल मैं इसे -tableView: cellForRowAtIndexPath: विधि में डाल दिया है जो निम्न कोड में दिखाया गया है के रूप में NSDictionary में कुछ वस्तुओं की जाँच करके यह कर रहा हूं। सीजीआरटीएफ़ फ्रेम = सेल। वाइटलाबेल.फ्रेम; यदि ([[सभी स्थल की जगह] ओब्जेक्ट: @ "प्रतीक्षा_टाइम" और amp; amp; और; ([[स्थल ऑब्जेक्ट फोरेकी: @ "प्रतीक्षा_टाइम"] गणना]] gt;) {frame.origin.y = 43; } अन्य {frame.origin.y = 53; } [Cell.waitLabel setFrame: फ्रेम]; हालांकि, यह कोड मज़बूत काम करता है, और -setNeedsLayout पर कॉल करने की कोशिश कर रहा है, फिर भी यह काम नहीं करता है। मंथली रूप से...

email - How to send mails from Magento? -

I have installed Magneta 1.7 on my Mac. What I should do to send an email about the order from the local host. I am developing a local store and just want to check how it works. link to device to send an email to the SMTP server What needs to listen to port number 25 There is no SMTP server with Vamp by default. You need to use a few SMTP tools to check the facility of sending emails in the local environment.

Stacking Bootstrap carousel items on mobile? -

I am using a bootstrap carousel to cycle through the sub-sections of a page. Although it fits perfectly on the big screen, on mobile I like to display sub-squares only one after another. Is this possible? So, for example (to clarify) About this section, there is a carousel on the desktop which is the mission, the cycle through contact, and the next / previous button Customer list with On mobile I want one of those three parts on the other and you normally scroll to them; No next / previous button. Thank you. I managed to do this easily by overriding bootstraps default style on the carousel item with the media query Last: @ media (max-width: 767px) {#myCarousel {.item {display: block; Padding-bottom: 10px; }}} This carousel takes .item s, normally is set to display: any unless . Active and after each other shows them with a small padding. It does not disable or suspend the bootstrap's carousel behavior, but if you hide the carousel-indicator and any carou...

subprocess - Python Popen: Write to stdout AND log file simultaneously -

I am using popen to call a shell script which is consistently typing in a stdout and stderr in the log file is. Is there any way to continuously output the log file (on screen), or alternatively, write the shell script in both log file and stdout at the same time? I basically want to do something like this in Python: cat file 2> And 1. Tee -a logfile # "cat file" will be replaced with some scripts Again, this pipe stderr / stdout simultaneously t, which it writes both for stdout and my logfile I know how to write stdout and stderr in a logfile in Python. Where I'm stuck is how to duplicate it back to the screen: Subprocess. Pope ("cat file", shell = true, stdout = logfile, stderr = logfile) Of course I could do just that, but would it be any T and Shell file descriptor redirection Is there any way to do without ?: Subprocess. Poppen ("cat file 2 & gt; and amp; 1 | tee -a logfile", shell = true) You can use the pipe t...

css - Centering text on top of multiple Divs? -

I have a percent time and I'm trying to put some text in front of it. My example does this, but it focuses on a short time, not everything. My question: How do I get the word "test" centered at full time, not just small HTML & lt; Div id = "bar1" & gt; & Lt; Div style = "width: 55%; text-line: center;" & Gt; Exam & lt; / Div & gt; & Lt; / Div & gt; CSS # bar1 {background color: black; Boundary-radius: 13px; / * (Height of inner div) / 2 + padding * / padding: 3px; } # Bar1 div {background-color: green; Height: 20px; Range radius: 10px; -WebKit-Background-Size: 50px 50px; Background image: -Vibit-repeat-radial-gradient (center, circle, green, # 00BB00 40%, green 80%); Webkit-Animation: Upbar 3S Linear Infinite; } @ -webkit-keyframes upbar {0% {background-position: 0}} 100% {background-position: 0px-100px}} (sorry for tasting the bar I'm trying to find an appropriate top animation for this, ...

php - inspect data (url variable) before inserting to mysql -

My PHP script is posting bad URLs that AJAX sends it. When I try to filter the url and put it in mysql, it does not work. What I want to do is verify this $ link variable if it is a link if not, do not post the data to mysql. Do I know what I did wrong and how did it fix it? Thanks :) Here's my code $ con = mysql_connect ("localhost", "root", ""); If (! $ Con) {dead ('Could not connect:' Mysql_error ()); } Mysql_select_db ("database", $ conn); $ Link = $ _POST ['New']; $ Name = $ _POST ['name']; $ Size = $ _POST ['size']; $ Cat = $ _POST ['Cat']; // PHP 5.3.5-1ubuntu7.2 $ link = mysql_real_escape_string ($ link); $ Name = mysql_real_escape_string ($ name); $ Size = mysql_real_escape_string ($ size); $ Cat = mysql_real_escape_string ($ Cat); If (filter_var ($ link, FILTER_VALIDATE_URL)) {} else {echo "URL is not valid"; Mysql_close ($ thief); Go out(); } $ Check = mysql_query ("Sele...

android - Toggle Service via ToggleButton for GPS Tracker -

I am currently writing an app that should be on the following: UI has only one toggle button if this GPS state is turned on, then it will be sent to an external server. If it stops, then nothing will happen. If the button is on and the app turns off, the location should still be sent until the button is closed again. How can I get this? I have read many threads and tutorials and dev.google.com, but I was not able to get the best solution to my problem. My current perspective: The main activity Java on public void (see V) {if (OnOffButtonkisChecked ()) {Intent startIntent = new Intent (this, LocationService.class); StartService (startIntent); } And {stopService (new intent (this, LocationService.class)); Public service provides expanded service service service {final public static string START_ACTION = "START_LOCATION" LocationService.java ; Last public static int NOTE_ID = 1; Private intuperate; Personal Location Manager Location Manager; Notify...

c# - How to hide checkbox name in receipt when not checked? -

I would like to know how I can hide the check box in the receipt when it is not checked that my code is low : richTextBox2. Valid = true; TabControl1.wij = wrong; RichTextBox2.Text = First name Text + '' + surname. Text + (Systems Environmental Neo Environment) + Fullsiders Text + (system. Environment new line) + contact number Text + (System. Environmental New) + Email Address Text + (System Environment. New Line) + dob.Text + (System.Environment.NewLine) + "-------------------------- - ------------------------------ "+ (System.Environment.NewLine) + TextBox 1. Text + (System.Environment.NewLine) + Text Box 2. Text + (System Environment. New) + Text Box 3 Text + (System. Environmental New) + "You have selected a banner with the following text: + + label43 at the cost of" + (System.Environment.NewLine) + Bannertext ++ (System.Environment.NewLine) + ". Text + (System.Environment.NewLine) + "You have asked for the following accessories:" ...

Sandbox cannot add funds -

I am sad with the new PayPal developer site and the sandbox. I have created a personal account in the developer, but the funds I have added do not appear. I had read a forum post that you had to deposit money through a sandbox login but it would not add money to me either. You will need to log in with your developer account and then click the application-> Sandbox account- & gt; Create an account, the 5th field is "PayPal balance" that you can put here any amount you want to make in your test account.

c# - Unit testing methods that have multiple complicated objects as parameters in MSTest -

I am currently working on projects in which the parameters are in the form of complex objects (mostly repository objects). The test will have to use MSTEST. Is it a wise approach to the manufactured items in the testing methodology, so that they can be used as a logic in the use of the method to pass the pattern of the actual method in the examination system? Please suggest better options Public class AddOrdersToDbCommand {Private IOrdersRepository _ordersRepository; I am attaching the sample code of the method which requires the unit test (Exectue () method). Private command setting_command; Settings; Public AddOrdersToDbCommand (IOrdersRepository ordersRepository, order ordering order) {_ordersRepository = ordersRepository; _ordersSetting = commandsSetting; } Execute Public Zero () {Modify Order Settings Order Settings = _ordersRepository.Get (_ordersSetting.Id); ModifyOrderSettings.Name = _ordersSetting.Name; Modified order settings. Status = _ordersSetting.Status; Modif...

ios - Data corrupt after converting byte[] to NSData -

I have a .NET Web service response in which there is a byte [] entry between other fields. The data is a pdf file. I extract the dictionary with the data obtained from me: [NSJSONRialization JSONObjectWithData] After this, I use the following code [NSDT] to convert the byte. Then I save the result to disk (see the last line). When opening the resulting PDF file, I get the following error: "Unable to find PDF header:`% PDF 'was not found. " NSArray * byteArray = [rootDictionary ObjectForcae: @ "File"]; Unsigned C = byterequity; Uint8_t * Bytes = Mallok (size (* bytes) * c); Unsigned i; {NSString * str = [byteArray objectItindex: i]; for i (i = 0; i ** While dragging as many as PDFs to many PDFs at the same time, some of the reports received as base 64 strings were also corrupted. PS Please tell me if I have to provide the code from my SVC class, but I do not think there is a problem. Edit: I have a new web service system that takes a byte...

How to store two click counters in variables and do some calculations with it - jquery -

I have to click on a "next" and "preview" div, with the following code, for each It is possible to store numbered clicks in a variable. Alertbox displaying results while clicking. So far, so good. But I do not know why it does not make any calculations with "Verne Counttext" and "Wear Counterpoint"! "var countResult" is always clicking on #test div to alert the result. var countNext = ($ ('# next'). Data ('click_count') || 0); Var countPrev = ($ ('# prev'). Data ('click_count')) 0); Var countResult = countNext - countPrev; $ ('# Next'). ('Click', function () {countNext ++; alert (countNext);}); $ ('# Prev') ('Click', function () {countPrev ++; alert (countPrev);}); $ ('# Exam') ('Click', function () {warning (countResult);}); Do you know what is wrong with it? You need to calculate the calculation every time you click var countNext = ($ (...

c++ - Possible ambiguity with extern "C", overloading, and function pointers -

With normal tasks, any extern "C" int frotz (int) can write ; // In a header int frottage (int x) {return x; } With Function Pointer, however, it has been implemented incompatible with the compiler. extern "C" int Klutz (int (*) (int), int); Intel Clutz (int (* FTP) (int), return (* (FTP) (x); } In the announcement, the argument is also extern "c" . In most definitions, most compilers match these functions and make Klutz a extern "C" function. However, the Sun and the Cray Compiler interpret these functions as separation, create overloaded int Klutz (int (* fptr) (int), int x), which later Generate a link-time error However, Section 7.5.5 of C ++ 98 and C ++ 11 guarantees interpretation of frotz , I am not Can tell whether the standard is unclear about whether to check for extern "C" matching overloading Take or should be. Top Klutz a mangled (C ++) symbol or an extern "C" / code> symbol? 1...

security - How can sanitation that escapes single quotes be defeated by SQL injection in SQL Server? -

To turn this off, I know well that the parameterized queries are the best option, but I'm asking that the strategy What is I weighed down people say that the following solution is not working, so why am I not looking for an example that I will not do it. If dynamic SQL is created in the code using the following escape before being sent to a SQL Server, what type of injection can beat it? string user input = "n" + user input. A similar question was answered, but I believe that no answer is applicable here. "(", "'' '' '' '' '' '' ''" " It is not possible to avoid single quotes with "\" in SQL Server. I believe that SQL smelting with Unicode (underlined) will fail from the fact that the string is being produced, before the single bid, the form of Unicode by N Has been marked in. As far as I know, there is no other character set that the SQL Server will automatically ...

Boundary for sprites in cocos2d? -

On my screen I have different sprites and they are following after their target. It all works well My question is, what is the way to set boundaries? I do not want them to take 160 points on the screen? I see that every example is always using box 2D, is there a way to do it strictly with cocos2d? - (zero) adplayer {winSize = [CCDCD shared director] .Vinos; _officer = [[Officer Alok] initWithLayer: Self]; _officer.position = CCP (winSize.width / 2, 40); _officer.tag = 1; [_batchNode addChild: _officer]; _shotCaller = [[Shot Caller Alok] Init Withstand: 2nd Layer: Self]; // Make spawn point _shotCaller.position = CCP (100, 100); [_batchNode addChild: _shotCaller]; NSString * gunName = [NSString stringWithFormat: @ "gun page"]; _gun = [CCS light spread with asprintFrame name: gunname]; _gun.anchorPoint = CCP (0.5, 0.25); _gun.position = CCP (_shotCaller.contentSize.width / 2, _shotCaller.contentSize.height / 2 - 20); [_shotCaller addChild: _gun]; [Self Positioning: _...

sql server - Executing a SQL statement inside a stored procedure, how to store the result of that SQL statement into a variable for later use? -

I need to execute several SQL status within a stored procedure, save as a result for later use in a variable. SET Knockout of Declar @ P Table @ P = SELECT d.Periodo [SISACT] DEPRECIACIONES D, [CISACT] .CONTROL_PERIODO C. Where c.vigente = 1 and d.Periodo = c.periodo if @ @ROWCOUNT & gt; 0 Print 'Periodo or Districto' Then I can do something like this later UPDATE [SISACT] .ACTIVOS_FIJOS set ultimo_periodo = @ p.periodo . .. I know that @ P = SELECT is incorrect , I have seen that they use another stored procedure instead of a SELECT statement, So I should know that this is possible without using a stored procedure, if so, how? I am going to use the query only once in a stored procedure, so I can not find any reason to put it in another stored procedure. I'm new to T-SQL and SQL Server, I'm also learning on my own and I am sorry that this is a stupid question. PS: Only one record should be returned in the query of this case. I am using SQL Server ...

ruby on rails - trying to deploy to amazon ec2 following railscast tutorial -

I am following this RailTeat tutorial and I am pretty sure that I followed all the steps properly but when I ran the hat rubber: Create_staging I get the following error. Not sure how to debug it. The key pair 'ggs-keypair' is not present (fog :: compute :: AWS :: notefind) / users / enderskitson /. Rbnv / version / 1.9.3-p374 / lib / ruby ​​/ games / 1.9.1 / games / xcon-1.20.1 / lib / excon / connection rb: 332: / users / enderskitson / rbnv / verses / 1.9.3 In `response 'from -p374 / lib / ruby ​​/ gems / 1.9.1 / gems / excon-0.20.1 / lib / excon / connection.rb: 226: / Users / Enderskitson /. In `Request 'from RBNOV / Version / 19.33 / Leib / RB / GPS / 19.11 / Games / Fog-1.10.0 / Lib / Fog / Core / Connection Rbb: 21: / User / Anderskitson / . In `requests' from rbnv / version / 19.33 / lib / ruby ​​/ games / 1.9.1 / games / fog -1.10.0 / lib / fag / na / compute RB: 384: to `_request '/Users/anderskitson/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1...

unity3d - Need Unity character controller to make sharp 90 degree turns and not slide when turning -

I am using the first person controller for my letter movement. On the left arrow keymap, I will rotate the character immediately 90 degrees and would like to move forward. Currently, when I hit the arrow key, the character turns 90 degrees high, but it takes a second to wear the forward speed first, so that the character has to slide in the direction that it is the first was going on. / P> The closest example I can imagine is what I am trying to do is to see how much the character gets accelerated in the temple run. What my game is currently doing, if I have a character on a hole, then it turns a sharp left, it maintains the original speed and closes the edge immediately after going behind it. Since my character is running on the X / Z axis, I am thinking that what would be the method of swapping directional velocity / speed? The motion of the character on the X axis will be switched immediately and the second will be set to zero. I am obviously open to any solution which is ...

flash - Is that possible generate XSS by actionscript's Sound.load() function? -

I've got some episode code such as: var s: sound = new sound (); S.addEventListener (event.complete, on-loaded); Var req: URLRequest = new URLRequest (XX_EXTERNAL_URL); S.load (request); In which case the attacker can control XX_EXTERNAL_URL , is he weak? Most likely it will only generate a sound conversion error or trash sound, which is the SWF Player Or have no effect on the system. Someone needs to have a bug in the sound code which is causing the code injection or data to be corrupted to make this attack successful. But, with the predefined code of the sound object, whether it is either or not, so if you load the sound from somewhere then it will not be too vulnerable.

java - How do I load a JComboBox with values from an Array or ArrayList? -

Text after "div class =" itemprop = "text"> I need to put the following array in a JComboBox and then the selected value is stored when the "Send" button needs to be clicked . listOfDepartments = new string [5]; ListOfDepartments [0] = "Men's Clothing"; ListOfDepartments [1] = "Women's Clothing"; ListOfDepartments [2] = "Children's Clothing"; ListOfDepartments [3] = "Electronics"; Catalog of departments [4] = "toys"; // Department: ComboBox loads from that array // store JButton buttonSubmit = New JButton (); ButtonSubmit.setText ("send"); Container.add (buttonSubmit); ButtonSubmit.addActionListener (New ActionListener) {@Override Public Zero actionPerformed (ActionEvent evt) {// store value from combo box in a variable}}); "itemprop =" text "> First, create a model ... DefaultComboBoxModel Model = New DefaultComboBoxModel (listOfDepartments); ComboB...

cron - cronjob which backs off during off-peak hours -

I have a php script which executes crontab every 30 minutes without off-peak around 2-7 o'clock I did not get much traffic during the hours and so I do not want to run the script during these hours. I'm not sure how to make a chronose which it has to do because I find it hard to test. This time I see the cranobob like this * / 30 * * * * / usr / bin / php /var/www/update/inv.php * / 30 0-1 8-23 * * * / usr / Bin / php /var/www/update/inv.php The range is inclusive, therefore 0-1 00:30, 01:30, then 8-23 will be 0830 to 2330 Ref:

windows phone 7 - WP7: how to count children of a list box in datatemplate? -

I have created a pivot control to show all the data from my database using the binding data. And the code for pivot control looks like this and see the UI here: I want to solve this problem: After I tap on an item in ListBoxed (Pivot control) I'll get the name of the item. Note: There are no names on all the controls (x: name). I am trying to use the tag = "{binding CHUPHONG}" x: for the name. Can you show me the way to solve it? Or where am I wrong? Thanks a lot! & lt; Control: PivotType header = "PHÃ? Ng CHHI I" font seices = "19" margin = "0" background = "{X: null}" & gt; & Lt; List Box X: Name = "List D Song" & gt; & Lt; ListBox.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Toolkit: WrapPanel height = "120" width = "480" margin = "0,10,0,20" & gt; & Lt; Image horizontal alignment = "left" height = "120"...

How do you report extra details from invoice onto detailed statement -

Image
क्विकबुक : जब मैं पूर्व चालान के एक विस्तृत विवरण के लिए एक रिपोर्ट तैयार कर रहा हूं (कहता हूँ 2 ), केवल विवरण मैं मिलता है चालान # , कारण ---- मात्रा , मूल्य = $$ आदि यह बयान कच्चे नंबर्स को दर्शाता है, लेकिन यह नहीं है कि वे क्या हैं। इनवॉइस में "लोड नंबर, शिप डेट, कॉन्ट्रैक्ट #, नेट टॉन, मद विवरण का कॉलम हेडिंग है। ये हेडिंग विस्तृत विवरण पर प्रदर्शित नहीं होते हैं। मैं इन मदों को विस्तृत विवरण पर प्रदर्शित करना चाहूंगा। दोहराए जाने वाले आइटमों के साथ, इसलिए मुझे यकीन नहीं है कि उन्हें बयान में कैसे शामिल किया जाए। संविदा # चालान के मदयुक्त हिस्से से ऊपर है और इसे डालकर जहां रेखा की रेखा विस्तार से बयान पर है या उसके आगे एक कॉलम में है, (मुझे नहीं पता है कैसे) बहुत मदद मिलेगी। लेकिन जैसा कि आप देख सकते हैं कि क्विकबुक के साथ इसे सभी प्रारूपों में बांट दिया गया है और मैं जानकारी को फैलाने और इसे लेबल करने की कोशिश कर रहा हूं। मैं यह कैसे कर सकता हूं? इसलिए कई बार मुझे प्रिंट करना पड़ता है संबंधित चालान यह देखने के लिए कि क्या हो रहा है अगर मुझे किसी को सूचना की रिपोर्...

jquery - how to make columns except first in each row to be align left? -

I want to create all the columns except the first row in the table text-align: left , first Column text-aligned is defined in css . Here's the code: & lt; Script type = "text / javascript" src = "../ss / jquery-1.9.1.min.js" & gt; & Lt; / Script & gt; & Lt; Style type = "text / css" & gt; Table {boundary: 1px solid red; Degradation: collapse; } Table TD {boundary: 1 px solid red; Text align: center; } & Lt; / Style & gt; & Lt; Script type = "text / javascript" & gt; $ (Function () {$ ("input [type = 'button']"). ("Click", function () {$ ("# table tr td: gt (0)") .css ({" Text-to-curry "});});}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Input type = "button" value = "click" /> & Lt; Table id = "table" & gt; & Lt; Tbody & gt; & Lt; TR & gt; ...

iphone - Does data fetch from data base effects speed of application in iOS development -

Many places I would like to know if I have the original data base every time data or I once data Store it locally and use it, it affects the speed of the app Please suggest me. Yes, it does affect the speed to get each time memory..I bring it once Better, store locally & amp; Use it.

Specifying Shiro's LifecycleBeanPostProcessor in programmatic Spring @Configuration causes errors -

I have a spring web app that I am programmatically configuring. I am trying to exclude Apache's head as my certification framework and I am integrating Shiro with Spring, especially using programmatic configuration (as I decided to write a lot of XML Did not want). This is the piece of the relevant code: @Configuration // Changing Spring XML configuration @EnableTransactionManagement // Public Task Announcements for Public Species SpringAppConfig {@Bean Public LifecycleBeanPostProcessor lifecycleBeanPostProcessor () {Return New LifecycleBeanPostProcessor make capable () ; }} When I start my web app, I get errors, where using Spring Annotation is unable to process on any of my beans. itemprop = "text"> after the comment in this issue: I stable In order to avoid early configuration, the system should declare as the bean creation (I'm not really sure how the Spring Configuration Mechanism works, which is probably the reason why I encountered this er...

java - ERROR UPDATING THE SQLITE DATABASE IN ANDROID -

itemprop = "text"> I used this code to update the information in a table named clerk: try {// update query myDataBase.execSQL ("Update clerk set" + "CLK_NAME = '' + sql_clk_name + '', '+' CLK_EXPIRY_DATE = '' + sql_expirydt + '', '+' CLK_PASSWORD = '' + Sql_password + "'" + "WHERE CLK_ID ='" + sql_clk_id + "'', tap); Toast. Make Text (getApplicationContext (), "Modified !!!", Toast.LnnGHHORT) Show (); } Hold (exception before) {toast. MakeApplicationContext (), "Error Modified Clerk", Toast. LNNGHHORT). Show (); } When I run it, I get an exception, ex = null . The record is definitely present in the database. When I use "myDataBase.execSQL" instead of "cursor = myDataBase.rawQuery" but the query is not reflected in the database. Helps me Thank you for your effort and time I found a way to update How i...

enthought - Embedding a Traits UI gui of kind="subpanel" in another window -

In the document of the symptoms, it has been said that blockquote is a panel similar to a window Except that it has been embedded in a large window, which does not require a feature UI window. Do any big windows and do it edit_traits type = 'sub-pinal') items from the merge items from II objects? I got an example of doing this on slide 23 in a wx window, is there a way to do this that does not bind me in wxPython? An answer here would probably answer a similar question () doing this You always make connections with a GUI toolkit. The same thing is: attributes to embed the UI panel into a larger, non-attributable GUI application that uses the desired GUI toolkit The details of the symptoms are dependent on the GUI toolkit, naturally if you have a large application If you are not building directly using the GUI toolkit, you can ignore this functionality. Are you asking instead how to create a Symptom UI which is the full traits_view another example? In th...

android - Detecting sharer app when using share action provider -

When using a shared AdWords provider, I know which sharer app is selected, so that I can send different messages Different apps? I am using the following method for the share action provider; mShareActionProvider = (ShareActionProvider) menu.findItem (R.id.menu_item_share) .getActionProvider (); MShareActionProvider.setShareIntent (getDefaultShareIntent ()); More intent, public intent getDefaultShareIntent () {string message = Fname + Mobileno + Homeno + Workmail + + Homemail + + + + + + Skype + address + Company + title + website; Intuit shareIntent = new intent (Intent.ACTION_SEND); ShareIntent.putExtra (Intent.EXTRA_TEXT, Message); Return share} update: The simplest solution is: @Override Public Boolean onShareTargetSelected (ShareActionProvider source, intended intent) {string shareTarget = intent.getComponent (). GetPackageName (); ...} There is no need to copy files or anything. If you use some files then from Android source or actionbirdroll, copy...

.net - How to show the answer once the answer is over 2 decimal places -

Text after " I have a visual basic calculator that calculates the amount of a cone. I have two answers, one mm in the cube and the second cubed meter (which is the round for the nearest hundred (2 decimal places)). But I want to show only cubed meters once it reaches 0.01 or higher. My calculation code here Private subtxtSidea_Leave (ByVal is used as the object, byVal E, System.EventArgs) handles txtHeight.Leave, txtRadius .Leave 'V calculate using quantity cubic mm = 1/3 exemplary R * 2 * H const PI double = System.Math.PI lbAnswerlVolumeMM.Text = (1/3 * PI * ((Val (txtRadius. Text) ^ 2) * Val (txtHeight.Text)) ToString ("#") + "Cuibic mm" 'calculate the volume cubic meter using V = 1/3 exemplary R * 2 * H / 10 ^ 9 lblAnswerVolumeMetres.Text = ((1/3 * PI * (((txtRadius.Text) ^ 2 ) * Val (txtHeight.Text))) / 10 ^ 9) .toString ("#. ##") + ": cubic meter" end sub will be an example; Height 50 mm and radius 30 mm which wil...

iphone - EXC_BAD_ACCESS what is the object getting released twice? -

Image
यह ज़ोंबी प्रोफाइलिंग से स्क्रीनशॉट हैं: मुझे कैसे पता चलेगा, जो ऑब्जेक्ट पहले रिलीज हो रहा था, जो पूल नाली में फिर से रिहा हो रहा है? मैं कुछ तरीकों से एआरसी का उपयोग कर रहा हूं, @autoreleasepool {} के साथ कृपया रिलीज़ की संख्या और आवंटन के कोई नहीं के साथ पृष्ठभूमि सिंक नामक उर वर्ग की जांच करें। याद रखें कि जारी वस्तुओं में से कोई भी ऑब्जेक्ट की कोई भी संख्या के बराबर नहीं होना चाहिए। 1) आप शायद कुछ ऑब्जेक्ट्स को डेलोक में रिलीज़ कर सकते हैं। 2) आप उपरोक्त उपकरणों की सूची में सूचीबद्ध विशेष फ़ंक्शंस में कुछ ऑब्जेक्ट्स को रिलीज़ कर सकते हैं, इसलिए उन्हें पहले की जांच करें।

Windows RunTime Component with NetworkCredential in windows 8 -

I have created a sample WindowsRunTimeComponent app in Window 8, with a property my class looks .. namespace WindowsRunTimeComponentTest {public sealed class class 1 {public network credential credentials} {get; Setting;}}} When I tried to create it, it was giving the error: method 'WindowsRunTimeComponentTest.class1.Credentials.get () 'System.Net .Credentials', which is not a valid Windows runtime type. The methods that come in contact with the Windows runtime only need to return the Windows runtime type. I have versus 2012, please do I have to change any thoughts to solve this problem? My best guess is, when you create a Windows runtime component, your components use those languages Can not be managed by Javascript or C ++ for more information and see this

ruby - How can i add parameter to the given url which is dynamic in rails -

मेरे पास यूआरएल वाला पृष्ठ है http: // localhost: 3000 / athletes / list जब उपयोगकर्ता इस पृष्ठ पर खोज करता है तो यह http: // localhost: 3000 / एथलीट / सूची? First_name = sachin और last_name = जहां उपयोगकर्ता खोज में प्रथम_नाम और last_name खोज पैरामीटर हैं। मुझे एक लिंक चाहिए पहले URL के लिए http: // localhost: 3000 / एथलीट / सूची? दृश्य_प्रकार = कुछ के लिए पैरामीटर में view_type = कुछ यूआरएल 2 यूआरएल के लिए http: // localhost: 3000 / एथलीट / सूची? प्रथम_नाम = sachin और last_name = tendulkar & amp; देखने_प्रकार = कुछ मैंने निम्नलिखित की कोशिश की है और "कुछ",: view_type = & gt; 'कुछ'% & gt; लेकिन दोनों यूआरएल के लिए यह यूआरएल http: // localhost: 3000 / athletes / list? View_type = something और "%" = "कुछ", params.merge (: view_type = & gt; कुछ ')% & Gt; हालांकि हालांकि अधिकांश मामलों में कोड कुछ कारणों से काम करता है, क्योंकि यह कुछ यूआरएल के लिए त्रुटि दे रहा है क्योंकि ...

machine learning - support for other languages in mahout classifier -

मैं माहाउट अनुभवहीन-बेयस क्लासिफायरियर को प्रशिक्षण देता हूं मेरे प्रशिक्षण डेटा का प्रकृति निम्न है: खेल - & gt; "विभिन्न भाषाओं के पाठ से संबंधित खेल" स्वास्थ्य - & gt; "विभिन्न भाषाओं से पाठ, लेकिन स्वास्थ्य से संबंधित" इस मामले में अंग्रेजी के अलावा अन्य सहायता डेटा का समर्थन होगा? या अन्य भाषा पाठ को नजरअंदाज किया जाएगा। हां और नहीं वर्गीकारक को किसी भी स्ट्रिंग पर काम करने में खुशी होती है, और उनको अर्थ प्रदान नहीं करता है। भाषा अप्रासंगिक है। हालांकि यह किसी भी तरह से नहीं समझा जाएगा कि "स्पोर्ट्स" और "डेपोर्ट्स" अलग-अलग भाषाओं में एक ही शब्द हैं।

cygwin - gitolite can't add keys to authorized_keys when pushing -

While cloning gitolite-admin to manage my workstation and users and repos, but when pushing, I get some of these errors: Remote: /home/git/repositories/fmame.git/ Remote: / bin / find: Should: Use: / bin / find [Path ... Remote: / bin / search: path expression must be before remote: Usage: / bin / rim T: / bin / find: Remote: / bin / find: Path expression must be before remote: Usage: / bin / find [path ...] [expression] Remote: / bin / find: [Path ...] [Expression] Remote: / bin / find: The path must be before the expression remotes: use: / bin / find [path ...] [expression] Remote: / bin / find: The path must be before the expression remotes: Usage: / bin / find [path ...] [expression] to git @ localhost: gitolite-admin Here's my step: 1 / Edit Gitolite .confï¼ ?? Repo Jittool-Edwards RW + = Gitolithmedom Repo Test RW + = @ All Repo Warm RW + Rime 2 / puts ryoma.pub In the keydir directory And my work is running on Windows 7 in Sigwin. How do you modify th...

webforms - Show "" as Text in ASP.NET RadioButton -

Let me know "hello world" Like a radio button to display text (note that I want to display "& lt;" and "& gt;" characters which are not to be interpreted as HTML tag characters). Tried something like this: & amp; Asp: RadioButton ID = "RadioButton1" runat = "server" text = "& amp; lt; hello world & gt;" AutoPostBack = "True" / & gt; But it does not display any text on the browser, and presents some way to the client side: & lt; Span class = "radiobutton" & gt; & Lt; Input id = "ctl00_mainCopy_wizard_RadioButton1" type = "radio" ... /> & Lt; Label = "ctl00_mainCopy_wizard_RadioButton1" & gt; & Lt; Hello World & gt; & Lt; / Label & gt; & Lt; / Span & gt; Labels for Any ideas? Try avoiding double. & amp; Amp; Lt; Hello World & amp; Gt;

ruby on rails - Jquery click event does not execute on first click -

I do not understand that I have to click the link twice in Zakia: Click the $ (function () {$ ("(# more_reviewers") (function () {$ ("# reviewer_list"). Html ("& lt;% = escape_javascript (render 'restaurants / restaurant_reviewer_list' ,: venue = & Gt; @ restaurant, limit = & gt; @ restaurant.reviews.count)%> ");});}); When I click, the view overrides the boundary of the show and shows all the reviewers. I do not get it, so I have to click on a single button twice. None of the other responses of similar questions are working for me because I do not have cookie reliance in this problem, or nothing I am not doing. I have just tested one more thing: When I showed the event type, it does not show anything for the first time (such as the JS script was not bound to the link), secondly, the correct event type ("Click"). The link id with "more_reviewers" in the rail is as follows: The link shows the cor...

Is it possible to use PostSharp 3 with Visual Studio Express? -

Post City 3 is available as a visual studio extension only. Visual Studio does not support Express Extension. Is there any way to use PostSharp 3 with the Express Edition of a Visual Studio? First we use PostSharp 2.1 as peripherals with the free PostSharp Express license, but currently it does. Now it is possible, using the Nuget package. In fact, you should add Postsharp Nuget's reference to all projects that fail to compile. In my case, I have a posthurb reference and console app projects and web application projects in some contextual project, which are also required in the context of the package. To get the license, just go to the package folder and run Postsharp.HQ.v.3.0.exe

java - Generate add() and remove() methods automatically for an @ElementCollection -

मेरे पास एक ऐसा कोड है जिसमें @ElementCollection का स्ट्रिंग s: @RoJavaBean सार्वजनिक वर्ग फ़ू {@ElementCollection निजी सेट & lt; स्ट्रिंग & gt; नाम; } Roo getNames () और setNames (सेट & lt; स्ट्रिंग & gt;) उत्पन्न करता है। क्या addName (स्ट्रिंग) और removeName (स्ट्रिंग) तरीकों को भी उत्पन्न करने के लिए कोई तरीका है? या, रू के अलावा, क्या उन तरीकों को लागू करने के लिए कोई सर्वोत्तम अभ्यास है? हर वर्ग के लिए एक ही कोड लिखना है जिसमें एक @ एलेमेंट कलेक्शन धारण किया गया है, बस सही नहीं लगता है। आप जोड़ / हटा सकते हैं लेकिन सिर्फ obj.getNames () कर सकते हैं। Add () या obj.getNames ()। निकालें (नाम) विशेष रूप से जोड़ने के लिए एक विधि होने का मुझे कोई लाभ नहीं दिखता है जब आप इसे एक साथ जोड़ सकते हैं एक समय में मुझे एक इकाई में किसी संग्रह में विशिष्ट ऐड / हटाए जाने / विधि को बदलने की ज़रूरत है, यदि आप को जोड़ने / हटाने / प्रतिस्थापन के आसपास विशिष्ट तर्क करने की ज़रूरत होती है, तो उस स्थिति में रू असुरक्षित होगा।

xaml - WPF Datagrid Style Selected Row -

Image
I have a wpf 4.5 application in which the user controls a datagrid, I have created a style for the datagrid in blend but when I have your vs 2012, I am making a copy of the style in the project so it is not working properly. Looks like the original style in Blend: Please select the color of the text in the selected row (green) and the padding around the text box which is being edited Now it is the same style that resembles Visual Studio 2012 Is: Highlights from the selected row The text that is made is the same color as the background (it's making this invisible), and I'm not Can & lt; Style target type = "{x: type data grid cell}" gt; Change the textbox border or margin to match this style style. & Lt; Setter Property = "FocusVijual Style" Value = "{x: Faucet}" /> & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "{x: type data g...

sql - Signal value classification by limits from database -

Looking at some signals, I need to know the position of the machine with the minimum and maximum limit. I am planning to create a table with data) | StateID | Signalid | Min. Max | | --------- | ---------- | ----- | ----- | | 1 | 1 | 1 | 2 | | 1 | 3 | 2 | 3 | | 2 | 2 | 0 | 4 | | 3 | 2 | 5 | 9 | In this way, I can obtain potential states through those lines (in the sense that the value of the signal ID is between the minimum and the maximum). The valid states gap should be in the correct position for all signs (table handling has been completed in that manner). But - for some states there is probably no relation to a given signal - I think that the states should start again - do somehow feel incompetence, or? Some examples from the table above (where full meaning is, SignalValue is between minimum and maximum): (1,2,3) - & gt; 1 (line 1 and 2 complete) or - & gt; 2 (line 3 complete) (2,9,2) - & gt; 1 (line 1 and 2 complete) or - & gt; 3 (line 4 full) (3,...

Can not access the mBuffer of android.graphics.Bitmap -

मैं निम्नलिखित codeï ¼ ?? बिटमैप myBmp = Bitmap.createBitmap (720, 1280, Config.ARGB_8888); बाइट [] डेटा = myBmp.mBuffer ???? लेकिन मैंने पाया कि mbuffer तक पहुंचा नहीं जा सकता। और ऐसा कोई संकेत नहीं है कि इसे ग्रहण में नहीं पहुंचा जा सकता है। क्या समस्या है? यदि आप पिक्सेल तक पहुंच चाहते हैं, तो Bitmap.getPixel (int, int) और बिटमैप .सेटपिक्सेल (int, int) क्या यह आप करना चाहते हैं? संपादित करें: 'समस्या' जावा एनोटेशन @hide है जो सदस्य को कोड से एनोटेट करता है पूर्णता और त्रुटियों को प्रेरित करता है जो संकलन से ग्रहण को रोकते हैं।

uiview - remove view from supper view ios -

I have a question about removing a subview from Supper View: now there is a subview of my name: Subview1 and then I add this subview to 2 other views: [supperview1 addSubview: subview1] and [Suppertview2 addSubview: subview1] ... I know the method removeFromSupperview to remove only one subview from supperview, but In this case I want to remove subview1 of Supperview1 but still suppress the appearance of supperview2 It is ... how can I do this? You have the code wrong. If you use [supperview1 addSubview: subview1] and And subview1 wil only added to suppertview2 So, subview1 only suppertview2s Subview Apple has said: The view is only a supervision if There is already a supervision in the scene and it is not the view receiver, then this method can be seen from the previous observation by making the receiver his new supervisor Sector removes.

html - Iframe source to be a dynamic URL -

Not using IFrame too many times so I can really do it with your help ... I have a form on a webpage that opens the external online booking engine with availability on the basis of the dates selected in the form. I want to open the external booking page in a new "mainframe" named iframe page, book.html. The beginning and ending code for the form is: Code: & Lt; / Form & gt; & Lt; Input type = "text" class = "dim" placeholder = "brazil" id = "keywords" name = "keyword" /> & Lt; A href = "#" class = "btn" onclick = "submit ()" & gt; Search & lt; / A & gt; How do I set the goal of "mainframe" on book.html page, so that the results will be displayed from the form? I understand that I need to make the iframe source as a dynamic URL. Thank you, Blazer Just Target attribute. & lt; Name of the form = "Guldform" goal = ...

c# - Process stack items in several threads -

I have, in addition to each item in which the URL is some web resource, I have N Threads (Actually Tasks ), each of which stops an item from the stack process and adds results (on the result store) based on some criteria in this stack or other output queue. This should be done, until the pile is empty. What is a great way to recognize the end of this process and stop this work? In other words, how it is recognized that the stack is empty and there is no execution task which will add more items to the stack The termination condition occurs when all stack reading tasks all are waiting for an item that the heap can be moved. Of course, this can only happen when you provide a way for your work so that you wait for that event. As with the other answers suggested, you can use the intercept collection at the top of the ConcurrentStack class to implement the sync. In relation to termination, the easiest way is to complete a task (termination work) waiting for that situation...

excel - Randomize the order of rows -

I am making a quiz in Excel. The structure is: serial number question select the correct option true / wrong digit I have a list of some questions and the options for the answer are in the dropdown list. I want to randomize the questions with my answer choices [I mean I want to make the whole line random]. Is there a build in Excel function? You can get a substantial result with the addition of one column containing `= RANDBETWEEN (x, Y) and the entire row on that column can be sorted. Here X might be your lowest serial number and y can be the highest. Can be changed with F9 . The underlying (minor) is not really random due to shortcomings, how RANDBETWEEN works and when it is able to build duplicate values, supports the status quo. / P>

android - How do I create ColorStateList programmatically? -

I'm trying to create a ColorStateList using it: color space list state list = new colorStateList (states, colors); But I'm not sure what the two criteria are. According to the document: public colorStateList ant [] [] states, enter [] color) Added to level 1 creates a color-state list that returns to states with special mapping colors. How can someone explain this to me? What does the two-dimensional array mean for states? Look for a list of available states. If you want to set colors for disabled, unfollowed, unchecked states etc. Reject states: int [] [] states = new int [] [] {new int [] {android.R.attr.state_enabled}, // enable new int [] { -android.R.attr.state_enabled}, // Disabled new entry [] {-android.R.attr.state_checked}, // unchecked new int [] {android.R.attr.state_pressed} // Suppressed}; Int [] Color = New Int [] {Color. Black, color RD, color. Green, Color. BLUE}; ColorStateList myList = new ColorStateList (state, color); ...

jquery - Acessing current object from nested function -

How can I pass $ (this) object for the function inside the click event $ ('# mainwrap img'). Click (function () {mcImageManager.browse ({oninsert: function (o) {src = o.focusedFile.url; $ (this) Attr ("src", src);}});}); Any suggestions would be greatly appreciated. This is a special variable - each time the function is entered, Takes it to a new value. In this case, external code is this is available in the internal function, you can tie a new variable outside the nested function: $ ('#mainwrap img'). Click (function () {var $ this = $ (this); // new variable here mcImageManager.browse ({oninsert: function (o) {src = o.focusedFile.url; $ this.attr ("src", Src); // is referenced}});});

ios - Code signing error upon archive -

कोडविज्ञापन त्रुटि: प्रमाणपत्र पहचान 'आईफोन वितरण: विष्णु सिवबलन' चाबी का गुच्छा में एक से अधिक बार प्रकट होता है । कोडिंग उपकरण के लिए केवल एक ही होना आवश्यक है। मुझे इस त्रुटि है जब मैं संग्रह करना चाहता हूं। कृपया चाबी का चक्की पहुंच ऐप जांचें बाएं शीर्ष फलक में 'लॉगिन' और बाईं ओर फलक में 'प्रमाणपत्र' चुनें। आपकी मशीन में आपके पास एक से अधिक वितरण प्रमाणपत्र स्थापित होने की संभावना है यदि हां, तो कृपया एक प्रमाण पत्र को हटा दें।

android - How IntentService stops automatically while Service needs an stopService() call to stop it? -

How is it that an intent service automatically turns off, while one stop service to stop a normal service () Calls required? How does it work internally? IntentService calls to StopSelf () when there are any other tasks (intents) in order to process the queue bus To see it, check the IntentService.java source on the site like androidxref.com: More accurate (check Czech 66 on the provided link): Do not queue in, but every time the Stop SSL (Int) call StopSelf () version which takes an initial (int) as the parameter, actually checks that If there is no new start command to start any service that still has to be handled. Because there is only one worker thread in the IntentService that progressively processes the intrant, this test is similar to testing "queue is empty".

windows - c - interrupt a function call which is executing in a thread -

I have a DLL that has a thread function that looks like pseudocode: Unstable BOOL prevented = false; Zero StopEverything () {/ * Enter important section / prevented = TRUE; / * Skip important section * /} zero worker threadfun () {start (); / * Checkpoint 1 * / if (paused) {/ * Clean / return; } DoLaboriousTask1 (); / * Checkpoint 2 * / if (paused) {/ * Clean / return; } DoLaboriousTask2 (); Uninitialize (); } And in the code that uses this DLL, the cleaning function looks like this: zero cleanup () {StopEverything (); / * Wait for all threads to exit * / / * clean other * /} My question is two times: Is there a better How do I stop my workerThreadFunc () execution instead of checking on different checkpoints? Suppose workerThreadFunc () inside doLaboriousTask2) when the main application call StopEverything () . Interrupt doLaboriousTask2 () and how to get it out immediately? Thank you! Doing my workforce instead of checking on threadfunk () I...

recaptcha - I want to add CAPTCHA on shoppingcart.asp as well one-page-checkout.asp page in Volusion, can anybody help me how to do this? Thanks -

My customer has an ecommerce store on the volume and it is receiving so many fake orders and now I have a captcha I want to add. Shoppincart.asp page or a page-checkout.app page (before the place's order button). My customer website is www.featherstore.com I have already contacted confusion support and they have no specific answer to this problem and only get their service Suggesting to do or is done by your partner. You can use Google CAPTCHA for this: It's easy to use ... you can find out how you can put it. You just need a public key & amp; Private key for a specific domain

android - Achart engine - How to display the Pie chart legends to center -

I'm using Achart Engine to display the pie chart, now I think the legends displayed at the center Is not being done. Do I want the legends to be displayed at the center of how to do it? As told by the many questions and answers, the legends of there should not be centered for anchartargin can. I was really looking for myself. The only solution that is a bunch of me is to hide the present and then display a new one in the text view.

android - Subscribing to an OpenTok stream gives me the mirror image of the publisher view -

I want to implement the video calling feature using Opentok. I P> After the session is received, I am looking at the publisher, I am writing code = Session.createSubscriber (client view, stream); Subscriber.connect (); This allows the viewer to see the mirror image of how to obtain customer views Open OpnTokConfig.java and SUBSCRIBE_TO_SELF to false // Published by this client Subscribe to the stream. Set to false for other client streams only for membership of // Public stable final boolean SUBSCRIBE_TO_SELF = false; This is the reason why you show your video

sql - javascript/WebSQL: how to cancel query -

I have a situation in which I execute a complex query that will take some time but sometimes I need the result now Not so, so I want to cancel it. Is this possible? Here's the basic structure: db.transaction (function (tx) {tx.executeSql ('SELECT * FROM ... JOIN ...', [a, b, c], callback );}, Function (mistake) {....}, function () {/ * transaction complete *}}; There is no exception in the WebSQL API Recommended method Invalid transaction active transaction in SQL You want to include and cancel rollback, as follows: var errback = {return true; // rollback} tx.executeSql ('ABORT', [], faucet, disturbances); / / Yes, this will cause the error

c++ - How to use unordered_map in Android? -

I'm trying to use a hash_map, which is defined in Android NDK, but warns me "exclusion "Gets: ndk / source / cxx-stl / gnu-libstdc ++ / 4.6 / include / ext /../ backward / backward_name. H: 33: 2: Error: # Warning: At least one of the excluded or outdated dates in this file can be removed without further notice. Instead use a non-exiting interface, instead with equivalent functionality. For a list of replacement headers and interfaces, the back_description. Consult the file. To disable the use of this warning, no-exclusion [-wire = CPP] and because of "Unordered_map" gnu-libstdc ++ / 4.6 / include / and gnu-libstdc + + / 4.6 / include / tr1 / also exists, I believe that there is a way to use it. The issue is that I am not getting this. Which of the following is correct (if any): #include & lt; Tr1 / unordered_map.h & gt; # Include & lt; Unordered_map> And then, how to use it? __gnu_cxx :: unordered_map is not recognized ... and I...

asp.net uploading image to server -

I am uploading an image to the server in an asp.net page. Here is the code. Code : Protected Zero Button 2_Click1 (Object Sender, EventArgse E) {// Receimol = "~ / R / "+ File Upload 1.Filename; FileUpload1.SaveAs (Server.MapPath ("~ / / r / a.png")); FileUpload1.SaveAs ("d: /upresim/a.png"); Image1.ImageUrl = "~ / r / a.png"; } The 'r' folder is the image folder in my project. When I add a picture to the 'R' folder on runtime, it works successfully on local IIS, but when I publish my project is hosting on the server (remote server) is opening a web page in the browser, but when I click on the button 2 to add the client image (which is the client user selected from my computer), an error appears below. Runtime errors Description: An application error occurred on the server Current custom error settings for this application prevents applications from remotely seeing details of error (for security reasons). However, ...