Posts

Showing posts from June, 2015

web applications - how to get print button over here in website reportviewer in asp.net -

The website does not find the printing option in the report viewer. I used it Report Weaver 1 Showprint button = true; But there are still no print options. How to get a print button in website report detail in Asp.net The reason is not showing the print button There is an active X control - not supported by Firefox without any plug-ins. If you are getting this problem under IE, check to see if your active X is being blocked, check the security settings.

mercurial - Why I can switch to a branch after closing it? -

I have come to know today that I can switch back to a branch even after closing it. Why? hg init ABC CD ABC Echo 'Readme 1' & gt; README1.txt Hg CI-AM "1 Commit" Hg Branch Other Branches 'Readme 2' & gt; README2.txt Hg CI-AM "2 Commit" HG Update Default Hg Other Branch Branches HG CI-M "Merges Other Merged Merge in Default" Update Hg Other Hg CI-M "Closing Other Branch" --Col-branch HG update default Now I think I'm not going to do this hg Other branch Update but it works fine It confuses me and I It feels somewhat uncomfortable. UPDATE: Forgotten Sorry I'm Using HG v.1.6 As Amber said, when you close a branch, it only records that it is closed when you do " hg branches ", you will get " default "will appear, and" other-branch "will not be. However, as soon as you switch to this branch and do something new, it automatically opens it again (and thus ...

javascript - Page Pagination -

I would like my help to tell me the easiest way to page page in my JSP. My code is below, which is listing values ​​in a generated table: & lt;% while (rs.next ()) {%> gt; ; & Lt; A href = "cir_view.jsp? Cir_id = & lt;% = rs.getString (" cir_id ")%>" Title = "see" onClick = "return popup (this, 'report')" & gt; & Lt;% = rs.getString ("cir_id")%> & Lt; / A & gt; & Lt; / Span & gt; & Lt; / TD & gt; & Lt; Td width = "39%" & gt; & Lt; Span style = "font-size: 8pt" & gt; & Lt;% = rs.getString ("organization_name")%> & Lt; / Span & gt; & Lt; / Td> & Lt; Td width = "26%" align = "left" & gt; & Lt; Span style = "font-size: 8pt" & gt; & Lt;% = rs.getString ("Requester")% & gt; & Lt; / Span & gt; & Lt; / TD & gt; & Lt; Td width ...

setup deployment - Oledb 4.0 is not registered on the local machine (64 bit) -

I created my setup in Pure Framework 2.0 and using IM, Windows 7 and its 64 bit. Application Unwanted Exception: "Oleb 4.0 is not registered on local machine" to fix the problem. (My work is 32 bit fine .. There is no problem) I think the reason It is that you are using Jet but there is no 64 bit version of Jet. The easiest way to fix this problem is to have your app compiled as 32 bit (I think the advanced compiler option In). Otherwise you can do this by changing your code to such use (which is the continuation of Jet), but I'm not sure. In this article, you can get some details about Jet Vs.

cakePHP - how do I conditionally load a component into a controller? -

I am using the great Facebook plugin for CakePeP 1.3 I currently have this: class UsersController Extends AppController {var $ name = 'Users'; Var $ components = array ('Facebook.Connect'); Failure before function {$ this- & gt; Set ('facebookUser', $ this-> Connect-> User ()); }} but I want to load Facebook. Use the connector conditionally, and use it in the controller - in some such codec ... if ($ this istru) {Load_the_component_and_make_it_ready_for_use; $ This- & gt; Set ('facebookUser', $ this-> Connect-> User ()); } How should I do this? is triggered when loading with the controller after the component I load it later Do not recommend. Like Maggie you have commented that you can load the component (but) you have to call the startup and have to initialize it and attach the object to your controller Everything in it can be just $ -> easy to set up ... is conditional and load components every time.

php - Fetching data from server -

I can use https to post data on apache2 server, whether to get some data from the server There is no way to use, Just request an https request Use to recover data.

cpu usage - We have a problem with the CPU utilization going up to 380 % on a 4 core machine -

We had a problem when CPU usage on a single core machine ran up to 100%. The number of users on the hosted servers at ISP 8-10 is when the server was upgraded to 4 core, the same problem persists. We have implemented Hibernation and JSF for implementation as MySQL and I strongly feel that this is a problem with JBOSS configuration but unable to fix it. Please help I suspect that anyone is going to be able to help you on this Is ... and can provide a SO question properly. The best I can suggest is that you use ... and the host operating system's system monitoring tool ... handle where your system's resources are being used.

java - How to print formatted BigDecimal values? -

मेरे पास BigDecimal क्षेत्र राशि जो धन का प्रतिनिधित्व करता है, और मैं $ 123.00 , $ 15.50 , $ 0.33 जैसे प्रारूप में ब्राउज़र में इसका मान प्रिंट करने की आवश्यकता है। मैं कैसे कर सकता हूं कि (केवल साधारण समाधान जो मैं देख रहा हूं floatValue से BigDecimal और फिर NumberFormat का उपयोग करके) अंश के अंश के लिए दो-अंकों की सटीक)। सार्वजनिक स्थिर स्ट्रिंग मुद्रा स्वरूप (बिगडिस्किम एन) {Return NumberFormat.getCurrencyInstance ()। प्रारूप (एन); } यह आपके मुद्रा प्रतीक का चयन करने के लिए आपके लोकेल का उपयोग करेगा।

iphone - how to solve nsusredefaults problem -

Hi I'm new to iphone. What I'm doing is image viewcontroller with image displayed in 20 images as grid in image image and displayed in image selected. To display imageview lable with the image I am using NSUserDefaults to store the tag value of the image. The problem is that it displays the previous image name eg image 2 for image 2, image 3 second for the displayed image 2, click the first time from AdWords, it is displayed in general how I see this PLS I can solve the Before reading your data, [NSUserDefaults synchronize] Try to call it also to make sure that you do not accidentally have 0th element in the array. Or are.

soap client - Talk to web service without SoapClient in php? -

I am seriously annoyed with many hosting providers who are not enabling SOAP client support on their hosting environments. Generally, after many begging and growing they enable it for me, but sometimes they will not move. P> Use either as a drop-in, or create custom XML, other packages may also be, the FEQ NewsOP is most famous.

winapi - Win32API replicate Spy++ window-information capabilities within Python -

I have a third party GUI program that I wrap a Python class (using CTIPs). Is there Win32 API Functions that can do the following? 1) Get window handle to window on a given screen space. 2) Get a window handle with a button or static window with a caption. 3) Send the text in an edit window. 4) Remove the text from the Richhead example. I have WinSpy (a spy + + - type app) and it is possible to get a window handle and caption using that tool, but I need something that works within Python . I think that the CTPP of Python functions within any Win32 API, so I'm scanning MSDN (especially) that I can not find anything that works. Thank you, Mike To find the child of a window with a given class and name (caption). Repeat the operation to get each parent-child through indecision. Can also be helpful. + + or

java - How do I update row style on AJAX update? -

I have found a figure with row style applied through row squares on the data styling. Rows have AJAX buttons when a button is clicked, it does some database stuff, it updates the text, and changes the data source used by the dataset. The figure is refreshed (because it is one of the AJAX render options). The text of the buttons is fine, but the line styles (through line classes) do not change. I threw some debugging code into it, and not calling the data cable. It appears that it is caching the class value to the first line and never goes back to update it (even if the data is refreshed). How do I want to be able to update the desired style? What is your reliner's goal? I have issues directly with data retratching. I would normally like to render the wrapper component like h: panelGroup or a4j: outputPanel .

Is there a way to detect that TCP connection has been refused using flash.net.Socket? -

is a flash movie that is using flash.net.Socket to connect to a server. But there can be a situation when the server is not running, so nothing is listening on the port socket. When I "telnet hostname port", I refused an instant connection, but Flash.net.Socket does not invite any event (see below), but quietly socket timeout Waits for It is important for me that the time required to detect non-existing servers is reduced, as far as possible, be able to reconnect to another server in the cluster. I have tried the following events, but have not benefitted connect ioError security error SocketData None of these apply to such conditions. Is there any way to find out that TCP connection has been rejected through Flash.NET? Socket? & lt; Img src = 'http: // target: port /' onerror = What to do about capturing connection errors with 'noconnect' & Gt; ?

javascript - navigator.geolocation.getCurrentPosition sometimes works sometimes doesn't -

Then I have a very easy JS using Navigator.Golicy .getCurrentPosition jammy. $ (document) .ready (function () {$ ("# business-locate, # people-locate"). Click (function () {navigator.geolocation.getCurrentPosition (foundLocation, NoLocation;;); Navigator Geolocation.getCurrentPosition (foundLocation, noLocation); Function FoundOption (position) {var lat = position.coords.latitude; var lon = position.coords.longitude; var User Location = Latitude "," + + After that ("& lt; input type = 'hidden' name = 'business, current location, # people-current-location"), remove () "$" ("# business-watermark" ("current location"). ; $ ("# Near-me" $ ​​("# people-min-me") Watermark ("current location"). Lt; input type = 'hidden' name = 'people-current-location' id = 'people-current-location' value = '"+ use RLocation +"' />;);} function nullation...

unix - Exec real world example -

I am looking for a real world scenerio, where using the exec only would be the available option (solve the exec exec if exec Can not be used) I know what exec is and how it is different from the thorn, but still intrested in the real world problem which applies the use of exec command Does. "post-text" itemprop = "text"> How will one shell start another process, using without exec ? fork () (or better, clone () nowadays, on Linux) simply asks to duplicate a process. Then you have two copies of the same process. execve () (and -l, -lp, -vp, -v folks) simply tells the current process to change completely (with a new process) Keeping the maintenance of FD, but not too much) To fire another program, you must first fork () and then exec () resulting processes in one (which is usually the hair process).

python - How can i change the __cmp__ function of an instance (not in class)? -

How can I change the __cmp__ function of an example (not in the class)? Ex: class foo: def __init __ (self, num): self.num = num def cmp (self, others): return self.num - other Class work foo in the .num # class __cmp__ function as the example __cmp__ = cmp a = foo (1) b = foo (1) # Return correct == b # Change __cmp__ function def cmp2 (self, other) Works: Return 1a__ cmp__ = cmp2 b. __cmp__ = cmp2 # Error picking a == b # Taxback (most recent call final): # file " ", line 1, & lt; Module & gt; #TypeError: cmp2 () takes exactly 2 arguments (1 given) no Do this This will make your code smaller and difficult to maintain. The reason for this is difficult because correct is a sub-code to do this foo : class FunkyCmpFoo (foo): def __cmp__ (manually , Other): Return -1 & amp; C., & Amp; C. In this way, you know that all foo compare equally, and compare all funkikkampu s similarly. If you do not, then you will eventually compare a modif...

flash - Backspace a text string, AS3 -

How can I backspace a text string if it was a login screen, then I should be able to backspace a character If I make an error, and continue my login. I'm not sure how to complete this, please help. Thank you, The sample code is obviously wrong, but it can help to explain var log: string = "LOGIN_777"; Trace; B.addEventListener (MouseEvent.CLICK, strangThang); Function strangThang (e: MouseEvent) {/ * I want to read 'LOGIN_77' and decreases after a click, it outputs 'LOGIN_7770' * / log + = log.charAt.length-1; } I think you should try to do something like this (not much) , So some other work may be required). log = log.substr (0, log. Length - 1);

asp.net - Is there ever a reason to write your own authentication instead of using Forms Security -

In ASP.NET, there is a reason to explicitly create your own authentication instead of form security (and a custom Write provider)? What limitations are there in form security and why someone wants to write their certification? There is a border profile provider of out-of-the-box providers, it is a user in a single database field Stores all profile information, making it difficult to query directly. Fortunately, Scott Guthrie's blog is a good table-based provider described in: But generally, I use standard membership providers and controls, they do well And they save a lot of coding. In addition, using Guids for all ID annoys me as I prefer ints. I know, gear is not limited to some Arab users, but none of my sites, which many people have so far registered

oracle10g - Using Parameters with Oracle Packages. ODP .NET -

I have an oracle function which returns the record set. I have introduced the parameters for the Oracle function and it is creating front-end code to go to the hardware. Here is my front-end code. OracleCommand od = oc.CreateCommand (); Od.CommandType = System.Data.CommandType.Text; Od.CommandText = "Select from table * (pkg_fetchPOInfo.getPorowsTable (: 1 ,: 2))"; //od.CommandText = "pkg_fetchPOInfo.getPORowsTable"; //od.CommandType = System.Data.CommandType.TableDirect; OracleParameter op1 = new OracleParameter (); Op1.ParameterName = "1"; Op1.OracleDbType = OracleDbType.Varchar2; Op1 Direction = System. Data Parameter Direction Input; Op1.Size = 6; Op1.Value = strponumber; Od.Parameters.Add (OP1); OracleParameter op2 = New OracleParameter (); Op2.ParameterName = "2"; Op2.OracleDbType = OracleDbType.Varchar2; Op2 Direction = System. Data Parameter Direction Input; Op2.Size = 3; Op2.Value = "US"; Od.Parameters.Add (op2); If...

sql server - Is it possible to get the mac address using a stored procedure? -

Was it possible to obtain the MAC address of the server using the stored procedure? I searched for a while but found nothing. This is using SQL2008. Update Unfortunately the answer that uses the newer-decimation () can return the wrong mac address if the server has VMware. I think you need to execute a shell command from SQL to get a MAC address Will be. If I miss well, you have to turn on the shell command option before you can use it. After that, you can run "getmac" to retrieve the MAC address list for the interface on the server. You have to work your way through the returned text, but it should not be very difficult.

.net - Serializing in C# not serializing a List when there is a DataTable on the side? -

Here is my code: [Serializable ()] public class Project {private List From & lt; String & gt; _Kinds = New list & lt; String & gt; (); Public datable extracted elementtable; Public Project () {ExtractedElementsTable = New DataTable (); ExtractedElementsTable.TableName = "Output"; } Public listing & lt; String & gt; Type ({return _ key;} set {_Kinds = value;}}} , After adding the list & lt some stuff, string & gt; _Kinds my whole poject try to serialize and then deserialize it, _Kinds list is empty. but if I comment out all three lines where ExtractedElementsTable is referred to, it works fine. here's my serializing and deserializing code (Please note currentProject.Kinds.Add ( "Hi") is, .. line serializing code currentProject bus project The example private void openButton_Click (object sender, EventArgs e) {if (openFileDialog1.ShowDialog () == DialogResult.OK) {Stream stream = File.Open (openFileDialog1.Fi...

sql - MySQL function to get list of Mondays -

What is the most effective way to get a list of all specific Mondays from the date fields? When I'm not concerned about efficiency, I have done something like this: DATE-weekday (DATE) + 1 . But now I need to calculate this on a large dataset and I do not want my user being interested in Rubik's cube as it is taking too long edit: What I need is a list of all weeks in which records are. I am preparing a payroll report where the user will select a week to filter the report. Here is the one who came with me: SELECT DISTINCT ((DATE (`Timestart`) - Dophokie (` TimeStart`)) + 2) 1 by DESC By time` command Is there any improvement to suggest anyone? "Date Field to Unique Monday": From the `table` to SELECT DISTINCT (` date`), where WEEKDAY (`date`) = 0 " The week in which we have date values ​​should be as simple as: SELECT DISTINCT (WEEK (`date`)) WHERE year (` date`) from `table` = 2010; SELECT WEEK (now ()), YEAR (now ()); + -------...

css - Know any great examples of CSS3 Transformations/animation for sorting/filtering group of items -

We are basically creating a product / image sorter in pure CSS and JS. The sorter will re-organize the product in different groups based on filtering and selection. What I am talking about is an example in Flash (click on the link given in the middle of the page to see the animation): But I'm looking for examples using pure CSS3 conversions and / or JS which are faster during animating and sorting as the example above. Here's an example that I found using pure CSS as is similar to: Know about someone else? Not sure if you are asking this, but you can give it a shot!

grails + app-engine upload error -

I am using grails 1.3.3 and app-engine plugin 0.8.10; My test case is: upload.gsp: & lt; Form action = "/ test / process" method = "post" encrypt = "multipart / form-data" & gt; & Lt; Input type = "file" name = "file" /> & Lt; Input type = "submit" / & gt; & Lt; / Form & gt; TestController is: def process = {. Println request.getFile ("file") inputStream.text} The first time I am trying to upload the file, I am getting the next error: Error 500: java.rmi.server.UID is a restricted class. Please see the Google App Engine Developer's Guide for more information. Servletlet: _A_Default URI: / exam / process exception message: java.rmi.server.UID is a restricted category. Please see the Google App Engine Developer's Guide for more information. Reason by: java.rmi.server.UID is a restricted class. Please refer to the Google App Engine Developer's Guide for m...

jquery - How to (re)bind to submit button/form on .load(ed) form -

How to implement an incredible JS (using rail and jQuery) How to implement an issue during initial times (Re: Add a Button / After Form Load (ing) is a new material that contains a form. I have set up a new 'Make New Item' form, which is an emerging item (when the user clicks on a click button) sale_case / show / _requirments_new Html .haml: - form_for ([@sale_case, @sale_case_requirement]),: html = & gt; {: Id = & gt; 'Necess_form' ,: class = & gt; "Submit-ajax-ajax"}. F | ...% Button {: type = & gt; "Submit"} Save application.js: jQuery (document) .ready (function () {jQuery (". Submit-with- AJAX "). SubmitWithAjax ();} ... jQuery.ajaxSetup {{beforeSend: function (xhr) {xhr.setRequestHeader (" accept "," text / javascript ")}}) jQuery.fn.submitWithAjax = function ( ) () This {sobit (function () {jQuery.post (this.action, jQuery (this). Serialize (), blank, "script"); Return;;)...

java - JSF: How to add ajax functionality to component in backing bean? -

I want to add functionality to a HtmlCommandButton how do I do it? I can not find a lot of examples on the web. I know that there is something called Ajax Behaviar, but I'm not sure how to incorporate it into my HTML commandboard. Basically I want to do the following for my component: & l: f: Ajax execution = "@ this" render = "component 1 component 2" /> Thanks! You should be familiar with the components of the new API in the new javax.faces.component Behavior package. I do not know that it is advisable to use a programmatic approach to set the ajax behavior directly into it, rather than the more common idiom, Bean's support: & Lt; H: command button & gt; & Lt; F: ajax event = "onclick" execution = "@ this" render = "component 1 component 2" /> & Lt; / H: CommandButton & gt; Here are some links that you should raise and run. (Very good start code components are mapp...

asp.net - Importing into SiteFinity -

I just finished installing SiteFinity 3.7 standard version on Windows Server 2008. Is there any way to import existing / partially present already? With some minor changes in the code of the Net Project (ASP.NET) course in Sitefinet (some XML files or some similar changes may change) I just have an "export" "But there was no import, I am new to cytifity so a detailed help / guidance would be appreciated. Thank you. I think that you are here Sitefinat stores everything in a database so that you have to change the sitemap to the programmable (insert XML in the database). There is an API in Scientifinity which allows you to do this. You can do for example and. Sitefine uses masterpages as templates, so that's easy. You can use any of your controls again. But, as long as you write the conversion code, I think you find that you could have done it in a short time by hand. Unless it is a big website that you have to change.

javascript - How to block writing in input text? -

I'm just making a booking system and I want the user to select a date from the calendar and it will show in the input Lesson - Which I Did! Now I want to block typing in the input text (just get to the calendar where the user selects the date). How do I do this? I think javascript, but how? I do not know much .. Thank you very much! & lt; Disabled property will prevent any user input, but you still have to use it through your Javascript calendar method. Can write.

iphone - How to tell amount of hours since NSDate -

I started an NSDate [date of NSDT]; And I want to check that it has been 5 hours since the NSDT variable. How will i do it? What do I have in my code requestTime = [[NSDT Alok] init]; Request time = [NSDT Date]; Later in one of the rules, I want to check whether the request has been 12 hours since the time of its time or not. Please help! thank you in advanced. int seconds = - (int) [request timeInternewelseon]; Int hours = seconds / 3600; Basically here I am asking how many seconds have passed since we have received our request time earlier. Then with the magic of a little mathematics, the number of seconds in one hour, alias, how many hours can we reach. One word of caution, make sure that you use the "retention" keyword while setting the request time. Likes to forget the encoder how NSDT objects are set without it. requestTime = [[Maintaining the date of NSDT]];

file extension query -

I have a text file c1.data .... im trying to open it but it is not open Used to be? What software do I need for this? If you are looking at numbers, if they are somewhat organized, Can try to import.

c# - WPF: DataGrid Find and Replace -

I use DataGrid to display the properties of specific properties of a collection of objects I have applied the search and cell highlighting to one of the following methods. However, now I need to implement the type of ' find / change ' functionality. I think that through the data grid cells I highlight and replace Will be able to re-enable, but it does not seem to be an easy way to do this. Any thoughts? I think that in this scenario you probably have a wrong mindset, maybe you can win WinForms in the WPF world Coming in ... In WPF DataGrid you do not basically manipulate data through the datagrid, you always work directly on datasource. As is "not an easy way to do this" - you are right If I want to apply a search / change feature - then each click will highlight the next one on the next, then I Except for / find_next - then how do I do this: 1) We need to know our current status - DataGrid. CurrentType returns the current (data source) object...

documentation - Differentiation between const and non-const versions of methods in C++ -

I have some questions about the discrimination between the const and non-const versions of the methods in C ++. MyObject * MyClass :: objectReference () const My questions are: Did the difference between the version of this method Any way is called manually? Or is it completely / fully automated and if so, what version should be called to decide precise rules? (1) If you can not differentiate between calling (1), the constable version is made of non-current version, is it impossible to call a version of a method to prevent duplication? How to create a link to a version or another in the document Doxygen one of the methods used? (For example, the "version of myMethod method") or "mymethod ().") I got it - just add or empty "CONST" at the end of the method signature. I do not know about the dosage; Although here only I know. If there is only one non- const version, then it can not be called on a single const object. If there ...

vb.net - How to make an single instance form -

I have a mdicontainer form that has summons forms. When a user clicks on the menu for that form again, my problem is, it is also another example of this. What I did but this is a public class announcement with a public variable earlier: Boolean isFormOneOpen = false. So every time the formOne opens, this is the first time that I declare the global variable some time ago, it is wrong, if it is, an instance of an object of formOne and then checks to show it. Otherwise, do not do anything very stable, imagine if I have many variations, I have to declare a variable for each form to check if it is already open. Can you provide me a solution for this? Perhaps a method that accepts a form? Or any more clever way to do this. You do not need a variable, you can see if the form is already open Gaya. For example: Private sub-btnViewChild_Click (ByVal, in the form of this System.Object, byVal e System.EventArgs) manages btnViewChild.Click for each child in Me.MdiChildren Typeof baby ...

Simplifying mysql fulltext search -

To search text for wordB and wordpr WordC I'm doing it this way: SELECT * from mytable WHERE MATCH (field 1) (in 'word A' boolean mode) or match Field 1) against ( Just worked and it will also work SELECT * against mytable WHERE MATCH (field1) ('WordA / wordB / wordC' in Boolean mode)

Removing codebehind files from WPF MVVM projects -

I'm coding a WPF application using the MVVM pattern. I do not need codebind files for my user controls. What's the best way to get these files beautifully? I can create a user control class, then I can use this class for all my ideas. (For more information :) Are there any alternative ways? Thank you. I do not think you call the initialize component (answering your question about alternate options) Can not use reflection to do. There are advantages and drawbacks to avoid code-back, I see that one of the benefits is that double-clicking on any control does not work, neither in Blend or Visual Studio. This "army" is not enough to "make it" quickly for some "actions". On the other hand, it is difficult to "fix" correctly to verify something, so it is your business to decide on. Code-laying around the back is wrong, I have almost no code in my current major projects- 20% of XALM files, in the remaining I have not removed th...

sql server - VS 2010 Database Project deploy sql scripts -

I am working on the SQL database project in VS 2010. I know how to synchronize the schema, but what do I want: 1. I have some data in SQL script which includes data in some tables. 2. When I click on deployment to automatically deploy those data scripts on the DB project and execute on SQL Server, I want to. How to do this Thanks You must enter the INSERT statement Post Deployment Script.

installer - How to update the InnoSetup Wizard GUI status text from PascalScript code during uninstall -

During installation, it is possible to update the insetup wizard status text from within the Pascal script event handler "Kirstap Change (EspostInstall)" The following code (): WizardForm.StatusLabel.Caption: = 'Status Update'; This does not work to uninstall "Access to this property from within CurUninstallStepChanged (usUninstall)" fails with the following error: "runtime error: line 526: exception: internal error: before it was attempted to reach the wizard farm." How can the InnoSetup Wizard status text be changed when uninstalling any ideas? Maybe "usUninstall" is very quick? But the label is already there and it appears in the Uni ... : Uninstall Progressform. Status label Caption: = 'Status Update';

java - JSF ViewHandlerWrapper causes NullPointerException -

I have a small issue with a JSF ViewHandlerWrapper that I've coded it works most of the time, but many At times I will get a null pointer exception from the original center of the Moserra and in this way I am surprised that I have implemented my ViewHandlerWrapper correctly. Public Square TokenViewHandler Expands ViewHandlerWrapper {Personal ViewHandler Parents; Public TokenViewHandler (seeHandler Parents) {this.parent = parent; } Get @ Override Public Violence () {Return Parents; } @ Override Public Wide Renderview (Facts Contact Reference, UIVUURUT Visual Tornentor) throws IOException, Face Expression {Final String Token = UUID. RundUUd (). Toasting (); Find and modifier (viewer, token, context); GetWrapped () Renderview (reference, viewer); } Private Waste Search EndmodifyForms (Final UIComPonent Component, Final String Token, Final FaceContact CTX) {If (UEFFORM CONTENT EXAMPLES) {HINTH HTML INPHOOD HIDDEN = (HTML inputHyDQ) CTX.Attepation (). Create Compnant (HTMLInputHi...

perl - monitoring an exe applicaion launching -

I need to monitor the console exe application, in which the user does not have any stdin, it prints some information on the screen I used to have a POE: Wheel for this job Below is my code: Use POE qw (Wheel :: Run); POE :: Session-> Create (Inline_States = & gt; {_start = & gt; Sub} {My ($ stack) = $ _ [IEAP]; My $ run = POE :: Wheel :: Run-> New (program = & gt; my_program .exe ", StdoutEvent = & gt;" print "); $ heap-> {run} = $ run;}, print = & gt; sub {print" somthing ";}}); $ Poe_kernel- & gt; Run (); When I run the code / script above and run my_program.exe, I did not see any print on the screen, someone could tell me what my problem might be is. What can my problem be here? my_program.exe went to three possible candidates but no output was created my_program.exe could not be executed. This program is not in the path, there are incorrect permissions, not executable, etc. A StderrEvent Perh...

javascript - I need some simple logic/programming exercises for a junior programmer -

I am currently teaching an employee ECMA script because it is necessary to maintain a workflow system and we need to Use the challenges as exercises. We have mostly covered the language and now it is very familiar with the syntax, so I just need to use it, I need to exercise it, which thinks it rational. For example, he understands that if there is a if and switch , but is slightly uncertain, I need to give him some practice to use one on another so that he If I can work for the solution, I will sit with him, see his code and give advice. Actually she just needs to practice. Are there any online resources that can give me a list of accessories? I got something and we worked with them (i.e. 99 bottles of beer, etc.) We need something else. You may find suitable exercises on sites. Otherwise it may be possible to check a book with practice.

How to use javadoc:aggregate properly in multi-module maven project? -

This is my parent pom.xml file (part of it) a multi-module project In: ... & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Create & gt; ... This plugin has been inherited in all sub-modules and I do not think this is the right approach. When I am running mvn javadoc: aggregate , the documentation is generated in target / site / apidoc , but the log is filled with warnings: ... [Warning] Removal: To prevent total recurring charge from forked life cycle. ... What am I doing? You need to enable aggregation for this plugin: & lt; Plugin & gt; & Lt; ArtifactId & gt; Maven-Javadoc-plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; Total & gt; True & lt; / Total & gt; & Lt ;! - It enables aggretation - & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; On the command line type: mvn javadoc: total edit: Okay, I did some excavations in Jaina of th...

javascript - insert new DOM between elements -

मेरे पास DOM का निम्न भाग है: & lt; div id = "content" & gt; & Lt; div id = "div-1" & gt; & lt; / div & gt; & Lt;! - यहां नई डोम - & gt; & Lt; div id = "div-2" & gt; & lt; / div & gt; & Lt; / div & gt; मुझे "div-1" और "div-2" के बीच डोम के नये हिस्से को सम्मिलित करने की आवश्यकता है। मैं इसे jQuery के साथ कैसे कर सकता हूं? div-1 पर उपयोग करें $ ( '# Div-1')। बाद ('& lt; div id = "new" & gt; नया div & lt; / div & gt;'); या div-2 $ ('# div-2') पर उपयोग करें। ('& Lt; div आईडी = "नया" & gt; नया div & lt; / div & gt; ');

Get UAC setttings using powershell -

Is UAC position (including level) a way to get into a Windows 7 computer using PowerShell? (Get-ItemProperty HKLM: \ Software \ Microsoft \ Windows CurrentVersion \ Policies \ System) . EnableLUA Will not tell when the UAC is enabled or not.

jquery - Reload parent page on fancybox transitionOut -

I am using fancybox to look at Ephram like this .. Fancybox ({'titleposition': 'inside', 'in transit': 'feedin', 'transit': 'reload ()' click ($ ("function") }). Click ();});}); There are some actions in IFrame within this fancybox; So whatever I want, as soon as I turn off the [transitionout '] fancybox, my parent page reloads. How can I get this? Thanks found: / Strong> $ ("# button"). Fancybox ({'titleposition': 'inside', 'in transit': 'feedin', 'onclosed': function () {parent.location.reload (true) );;}}). Click ();});

php - MySQL: OUTER JOIN and COUNT() -

मेरे पास टेबल 'पोस्टर', टेबल 'समीक्षा' और तालिका 'ट्रेलर' है। प्रत्येक टेबल मूवीआईडी ​​कॉलम के साथ जुड़ा हुआ है, लेकिन प्रत्येक फिल्म कुछ मूवीआईडी ​​के लिए खाली हो सकती है: ++ posters_table +++ ++ reviews_table +++ trailers_table ++ --itemID-- + - फाइलनाम- - आईटैमआईडी - + - समीक्षा - --इटमआईडी + + - ट्रेलर ---------------------- --- ------------------ --------------------- - 001 --- + - 0012343------ 004 --- + - ब्लाल्बा------ 002 --- + - 002345---- 001 --- + - 0013331------ 004 --- + - xlalxa------ 005 --- + - 005434------ 002 --- + - 0020052------ 005 --- + - ज़्ललाजा- ---- 001 --- + - 005335-- मैं विशिष्ट मूवीआईडी ​​के लिए पोस्टर्स, समीक्षा और ट्रेलरों की संख्या COUNT चाहते हैं और यदि कोई उपलब्ध नहीं है तो 0 प्राप्त करें । इसलिए यदि मैं मूवीआईडी ​​= 001 को गिनना चाहता हूं तो मुझे: ['पोस्टर'] = 2 / ['समीक्षा'] = 0 और ['ट्रेलर'] = 1 (उदाहरण के लिए) क्या कोई ऐसा करने के लिए एसक्यूएल क्वेरी को पोस्ट कर सकता है? चुनें (च...

javascript - removing child nodes within a DIV -

I want to remove ChildNodes of a DIV with a specific classname. What would be the best possible way? Thank you. var myDiv = document.getElementById ('my-div'), children = myDiv ChildNodes, len = children.length, reg = / (?: \ S | ^) fooClass (?: \ S | $) /; While (lane -) {if (reg.test (children [lane] .className || '')) {myDiv.removeChild (children [lane]); }}

initialization - C++ Class design - easily init / build objects -

Using C ++ I have created a square of several squares, as well as many functions that can be said in the row during the runtime. So I ended up with the code that looks: A * A = new A (); To do this & gt; Seta (); To do this & gt; Setb (); To do this & gt; SETC (); ... A-> DOA (); To do this & gt; date of birth (); No, this is bad, but I do not like typing "a->" So I liked to rewrite the definition of my class: class A {public: A (); Virtual ~ A (); A * set A (); A * set B (); A * set C (); A * Doo (); A * Doo (); // Other functions private: // vars}; Then I can do my class like this: (method 1) a * one = new A (); To do this & gt; Seta () - & gt; Setb () - & gt; SETC (); ... a- & gt; DoA () - & gt; Dob (); (which I like because it's easy to write) For a more accurate implementation of this, you can see your SDL Sprite C ++ Class Everything seems to work well, however, I would be interested in any reaction to ...

Pattern matching using python -

How to match the dictionary after "answer" and "nonanswer" in the word below opt_dict = ({'answer1': 1, 'answer13': 12, 'answer11': 6, 'answer5': 5, 'nonanswer12': 1, 'nonanswer11': 1, Opt_dict : Ii opt_dict: logging.debug (ii) for logging if opt_dict: if, 'nonanswer4': 1, 'nonanswer5': 1,}) and I have all your Logging But this should work: if opt_dict: value in opt_dict.items () for the key: If the key "nonanswer": Print "Answer", print the "Answer" key in Alif : Print "Answer", Other Value: Increase exception ("Invalid key") Other: Print "blank word"

Can a MEF application built on .NET 4 import types built against .NET 3.5? -

I am developing a host application using the Management Extensibility Framework and it Designed against the NET 4 and System.ComponentModel.Composition assembly is built in the framework I would like to support the ability to develop parts using .NET 3.5 and would like to export them declaratively. Since the export features are in new.4 and thus can not be referred by the assembly of .NET 3.5, the best way to ensure the export of parts is not a new one. Is there an easy way to do this without applying a catalog of catalogs which uses some other mechanism to search for exports? You can write a handler for which 3.5 version is requested, for IEF's NAT The 4th edition will come back. However, the handler that you write will be used only if the assembly can not be found using the basic binding argument, then you will need to ensure that 3.5 MEF DLL is not available, or possibly extension Relate the relational relations without referencing () to prevent that DLL from resolvin...

Looking for a Java based forum engine easy to integrate with existing user tables -

I am looking for a Java based forum engine which is easy to integrate with an existing website. Currently I want to add tables (columns for passwords and email etc.) and just add a forum for users. I have found them: JForum Java Bibi Jesphorum Slavery-Forum mvnForum Free Free Forum SF Forum Jefforum Fusion Among the top candidates are JForam, Jeev, MVNForum and Yajad. / P> My question is, is there any experience of any of these or any other forum engine, and especially, the experience of integrating it with existing user tables? For reference, really all my needs have been met by their single-sign on (SSO)

c++ - What is fastest method to calculate a number having only bit set which is the most significant digit set in another number? -

संभावित डुप्लिकेट: मुझे क्या चाहिए, मान लें कि कोई संख्या 5 यानी 101 है मेरा जवाब होना चाहिए 100 । 9 या 1001 के लिए, जवाब होना चाहिए 1000 आप मशीन जिस पर यह चलाना है पर प्रतिबंधों के बिना तेज़ अनुक्रम के लिए नहीं पूछ सकता। उदाहरण के लिए, कुछ मशीन "गिन अग्रणी शून्य" नामक एक अनुदेश का समर्थन करते हैं या इसका अर्थ है कि इसे बहुत तेज़ी से अनुकरण करना है यदि आप इस अनुदेश तक पहुंच सकते हैं (उदाहरण के लिए जीसीसी के साथ) तो आप लिख सकते हैं: #include & lt; limits.h & gt; # शामिल करें & lt; stdint.h & gt; Uint32_t f (uint32_t x) {वापसी ((uint64_t) 1) & lt; & lt; (32 -__ builtin_clz (x) -1); } Int main () {printf ("= & gt;% d \ n", f (5)); printf ( "= & gt;% d \ n", च (9)); } f (x) आप क्या चाहते हैं (कम से कम वाई x> = y और y = 2 ** n) देता है। कंपाइलर अब लक्ष्य मशीन के लिए इष्टतम कोड अनुक्रम उत्पन्न करेगा। उदाहरण के लिए, जब एक डिफ़ॉल्ट x86_64 आर्किटेक्चर के लिए संकलन करते हैं, तो एफ () इस तरह दिख...

c++ - Unknown errors during compile -

Using the Windows Audio Core API, coding in Visual Studio 2008, I need access to the devicetopology.h header file. I have these errors after adding it to my header file: object 8 error C2011: _DDPIXELFORMAT: sending "struct" c: \ program files \ Microsoft sdks \ windows \ v6.0a \ Include \ Ddraw.h703 Player Hollywood 9 Error C2079: "_DDSURFACEDESC :: ddpfPixelFormat" Unauthorized Strike "_DDPIXELFORMAT" c: \ Program Files \ Microsoft sdks \ windows \ v6.0a \ include \ ddraw.h 2249 Player Error 10 Error C2079 : "_DDSURFACEDESC2 :: ddpfPixelFormat" missing "unknown" string "_DDPIXELFORMAT" c: \ program files \ Microsoft sdks \ windows \ v6.0a \ include \ ddraw.h 2292 Eyr Error 11 error C2011: tagTIMECODE_SAMPLE: Password "struct" c: \ program files \ microsoft sdks \ windows \ v6.0a \ include \ strmif.h 12907 Player Error 13 error C2143: Sincorkss: ""; "Development" C: \ development \ SDK \ D...

c# - Split html row into string array -

मेरे पास तालिका में एक HTML फ़ाइल में डेटा है: & lt; table & gt; & LT; टीआर & gt; & lt; टीडी & gt; 001 & lt; / टीडी & gt; & lt; टीडी & gt; मैक हम्‍मेर & lt; / टीडी & gt; & lt; टीडी & gt; इस पर & lt छू नहीं सकते; / टीडी & gt; & lt; / टीआर & gt; & LT; टीआर & gt; & lt; टीडी & gt; 002 & lt; / टीडी & gt; & lt; टीडी & gt; टोन loc & lt; / टीडी & gt; & lt; टीडी & gt; फंकी शीत मदीना & lt; / टीडी & gt; & lt; / टीआर & gt; & LT; टीआर & gt; & lt; टीडी & gt; 003 & lt; / टीडी & gt; & lt; टीडी & gt; फंकडुबीेस्ट & lt; / टीडी & gt; & lt; टीडी & gt; बो वो वाह & lt; / टीडी & gt; & lt; / टीआर & gt; & Lt; / तालिका & gt; मैं एक सरणी या सूची में एक पंक्ति को कैसे विभाजित कर सकता हूं? स्ट्रिंग पंक्ति = streamReader.ReadLine (); सूची के & lt; स्ट्रिंग & gt; डेटा = row.Split // ... मैं य...

javascript - Drawing over an image using Raphael.js -

Can I put Rafael.JS canvas on a IMG element? Should I work on this layout? Just create the position of Rafael canvas on the top of the image element using the normal CSS techniques: #wrapper {status: relative; Padding: 0; Profile: 1px solid # 999; } # Scraper IMG {Status: Completed; Top: 0; Left: 0; } # Canvas {status: complete; Top: 0; Left: 0; } Then throw your elements in such a way: .

python sort without lambda expressions -

I often do some type of Python using lambda expressions, and although it works fine, It does not seem to be readable, and was hoping to be a better way for me here is a specific use case. I have a list of numbers like x = [12, 101, 4, 56, ...] I have an index There is a separate list: y = boundary (lane (x)) I want to sort y x Value, and I do this: y.sort (key = lambda a: x [a]) without using lambda Is there a good way to do this? You can use __getitem__ to list x Treats like lambda and it will be very fast because it is implemented as a c function instead of python function: & gt; & Gt; & Gt; X = [12, 101, 4, 56]> gt; & Gt; & Gt; Y = boundary (lane (x))> gt; & Gt; & Gt; Sorted (y, key = x .__ getitem__) [2, 0, 3, 1]

c# - I receive error 'Unknown Server Tag' with Page.ParseControl on a custom server control, not asp control? -

I am creating a dynamic form using XML and XSLT, anyway I use a custom ASP.NET control I am doing this, it's an HTML editor. When I try to add control from XSLT using Page.ParseControl (& lt; the-string-from) Unknown server tag ' FCKeditor.CKEditor ' And of: Of course, if I remove control from XSLT then everything is working fine And all regular ASP.NET controls like TextBox etc are provided correctly for the string. Does anyone know what I can do about this? I can be done incorrectly, but it is my understanding that a javascript element, a server side The ASP.NET element is not. This is why you get this error instead, you should instantiate CKEditor on the client-side (see link for details).

geolocation - iOS/Android GPS battery draw? -

I am investigating the possibility of writing an app for Android / iOS 4 / which is the use of GPS in the background I will find the section of the iPhone Developer Document, which recommends that I only register for "Important Location Changes" incidents. I am not aware of any such capability in the Android SDK, but it is still a good idea to do as I can (like not removing the battery). My question is: Has this worked on any type of benchmarking on the iPhone / Android phone? So far, I have seen so many posts / documents that it is very bad to hear GPS incidents in the background and I should avoid it at all prices, but I have not got any number for this. Listening to GPS changes a background app drains power (i.e.% battery drain per time app is running in the background). This information can be useful to me (and possibly even others) because I may be able to sign up for my GPS listener or register / unregistered based on the power drain basically, I can try to roam...

sorting - The jQuery plugin, asmSelect, doesn't retain sort order -

Therefore, I am using a plugin to create a list, but to use it to edit the current list I am also trying. AsmSelect allows you to manually sort / organize the selected options before submitting My problem whenever I go and grab the user sorted list from the database and asmSelect your page By default (because it is a multiple selection), it only commands the selected options in any order, the original option appears in the selection. Therefore, do not keep my ordered order at all ... Has anyone even seen this issue and has done a solution? I have tried to create a list selected from the database in the beginning. I end-up asmselect update & lt; Select ID = "Available Items" class = "Multicolored" name = "menuDishes" multiple = "multiple" title = "select item" & gt; & Lt; C: forEach var = "item" item = "$ {myAvailableItems}" & gt; & Lt; Option value = "$ {item.id}" data-s...

javascript - Delete files with AJAX/PHP -

समस्या मैं एक फ़ाइल को हटाना चाहता हूं AJAX / PHP । लेकिन php कहते हैं कि मैं AJAX के साथ जो फ़ाइल नाम भेजता हूं वह फ़ाइल नहीं है, लेकिन जब मैं सीधे लिंक पर जाता हूं तो मैं फाइल को हटा सकता हूं I मेरा वर्तमान PHP जांचें, मैंने IF / ELSE कथन में डाल दिया है यह जांचने के लिए कि स्ट्रिंग एक फाइल है: is_file , परिणाम false है। > बिना is_file यह कहते हैं: चेतावनी: अनलिंक ("image.jpg") [function.unlink]: सी में अमान्य तर्क: \ wamp \ पंक्ति 8 पर www \ images \ users \ delete.php एजेक्स को कॉल करने वाली फाइल फ़ोल्डर के अंदर है जहां फाइलें भी हटाना चाहती हैं। PHP & lt;? Php // मैं यूआरएल से फ़ाइल स्रोतों को सहेजता हूं जो एएएजीएक्स द्वारा इन चर के लिए भेजा गया था। $ Photo_id = $ _GET ['photo_id']; $ Thumbnail_id = $ _GET ['थंबनेल_आईडी']; फ़ंक्शन deletePhotos ($ id) {// यदि फाइल है तो फ़ाइल को हटाएं। अगर (is_file ($ आईडी)) {अनलिंक वापसी ($ आईडी); // अन्य शो त्रुटि } Else {echo $ id "कोई फ़ाइल नहीं है, या इसके साथ कोई समस्या है...

plot - Efficient plotting library for web applications -

I am looking for a conspiring library which can be used in web applications (plot of point and line - Anting is the other bonuses). This can be either server-side (Python) or client-side. The more interactive graphs are better. I have definitely got some solutions, but none of them is enough to use the dataset. My last attempt was float, but it had crashed the browser for 28k dotpoints. Can you mention making some conspiracy that meets my needs? Interested for those people, in the end I have selected (this server-side, Python-based Solution is)

c# - How to get value of selected item from multicolumn ComboBox in WPF -

& lt; कॉम्बो बॉक्स नाम = "चयन करें" चौड़ाई = "180" ऊँचाई = "27" चयनित इंडेक्स = "0" क्षैतिज कंटेंटएलिन्मेंट = "केंद्र" वर्टिकलएलिनेमेंट = "केंद्र" चयनआधारित = "ASelect_SelectionChanged" & gt; & Lt; ComboBoxItem क्षैतिजसंचारएलिन्मेंट = "सही" वर्टिकल कंटेंटएलिन्मेंट = "केंद्र" & gt; & Lt; स्टैकपैनेल ओरिएंटेशन = "क्षैतिज" क्षैतिज एल्गमेंट = "वाम" & gt; & Lt; छवि स्रोत = "a.png" ऊँचाई = "18" चौड़ाई = "22" / & gt; & Lt; लेबल सामग्री = "" / & gt; & Lt; टेक्स्टब्लॉक चौड़ाई = "150" नाम = "सभी" & gt; सभी मान & lt; / TextBlock & gt; & Lt; / StackPanel & gt; & Lt; / ComboBoxItem & gt; & Lt; कॉम्बोबॉक्स आईटम क्षैतिज कंटेंटएलिन्मेंट = "वाम" & gt; & Lt; स्टैकपैनेल ओरिएंटेशन = "क्षैतिज" & gt; & Lt; छवि स्रोत = "टि...

printing - WPF Window.Measure not setting the DesiredSize -

I am trying to set up a printable view of my WPF window and I have a lot to bring to content The hard times are coming (okay!). Specifically, measurement does not install the desired size of my window property. The basic approach I am trying to take is that I have created a separate window object in which I want to print. Now I am trying to instantiate the program window and then sending it to the printer. PrintView Print Weave = new printview (as mModel.Clone () MyModel); PrintView.Measure (new size (double.positinifinity, double-positive infinity)); PrintView.Arrange (new reset (new point (0, 0), printView.DesiredSize)); Principaloog.Printvisual (Printview, "Strategy"); // blank page every time Unfortunately, set to volume on print 3. Always call 0 after call 3. Measure, the cause of the magazine printed page is empty, of course. I thought that. The measure is that the property set is supposed to be. The interesting thing is that if you paste a call. Organize,...

c# - When exporting gridview to xls, the entire row is formatted. How can I limit this to my gridview columns -

I have the gridview that I am exporting in Excel file. When I open Excel file, the color of the optional line Excel spreads to the end of the table, but I only want to format my 6 data columns. How can I limit the formatting? GridView id = "grdExportable" runat = "server" BackColor = "white" ForeColor = "black" width = "1100px" AutoGenerateColumns = "False" visible = "False" & gt; & Lt; PageRacing mode = "NumericFirstLast" /> & Lt; Columns & gt; & Lt; ASP: BoundfieldDefined = "ActivityDetermine" header text = "date / time" /> & Lt; ASP: Boundfield datedfield = "Tastem" header text = "testname" /> & Lt; ASP: Boundfield datedfield = "round serial number" header text = "round cial number" /> & Lt; ASP: BoundfieldDIFF field = "Round type" header text = "round type" /> & Lt; A...

asp.net - can't get GET variables -

I am trying to get the value. I'm using: request .QueryString ["$ random_var"] For some time now with success, this code: bool preview = (! String.IsNullOrEmpty (Request .JQueryString ["Preview Thames"])); Produces this error: requires an object reference to non-static field, method, or property 'System.Web. UI.UserControl Request.get ' I am using the following: using System.Web; Using System.Web.Security; Using System.Web.UI; Using System.Web.UI.WebControls; Using System.Web.UI.WebControls.WebParts; Using System.Web.UI.HtmlControls; What is the ASP.NET.net doing this simple task?

variables - define array name within a loop -

I am going about it wrongly, but I try to define and fill the array within a loop I am here. xx = tall for i = 0,39 (findgen (n + 1l) * sx + line1x [i]) sz = size (xx) arrayname = 'line' + strtrim (i , 2)) Arrayname = findgen (3, sz [1]) array name [0, *] = xx arrayname [1, *] = yy arrayname [2, *] = virtual end It will not work clearly, but is there any way to create a new array on every wavelength and use the string set by 'line' + stratim (i, 2) to fill it? In this case my name will be 40 arrays ... ... 39 The hard part here is that SG [1] varies, so I can not simply define a large array by holding everything. idl 8.0 or later you can use the HASH datatype for this Are there. Your code will look like this: for ii = 0,39 array_dict = hash () xx = tall (findgen (n + 1l) * sx + line1x [ii ]) Sz = size (xx) arrayname = 'line' + string (1, FORMAT = '(I02)' array = findgen (3, sz [1]) array [0, *] = xx array [1, *] = Yy array [2, *] = v...

regex - How to find indices of all occurrences of one string in another in JavaScript? -

I am trying to find the status of all versions of a string, case-insensitive. For example, the string has been given: I learned to play UKeye in Lebanon. and the search string le , I want to get the array: [2, 25, 27, 33] will be both string variables - that is, I can not hard-code their values I thought it was an easy task for regular expression, but after struggling to do some work, I had no luck. How do I complete this using the .indexOf () , but should definitely be a more concise way to do this? var str = "I learned to play guitar in Lebanon." Var regex = / le / Gi, results, index = []; While ((result = regex.exec (str))) {indices.push (result.index); } UPDATE I failed to find out in the original question that the search string needs to be a variable. There is another version written in order to deal with the case, which uses indexOf , so you have come back to where it started, as in the comments Vkkarn has told, with normal things To d...

google maps - Convert lat/lon to pixels and back -

I am using Google Maps in my application, and I have a database that is filled with latitude / LAN values. has gone. I want to mark them on the map, but I want to cluster them together if they are within every pixel-distance. I think if I remove all points from the database, then I should be able to do something like this (pseudocode): clusters [] ; While (count (points)) {cluster []; Point = points.pop (); Boundingbox = PixelOTBB (Point, Pixelestance, ZoomLawl); Query = "From the database where the ElT> Boundingbox. Mineral and Late and Left. Boundingbox.Maxlat and LNG> Boundingbox; mining and LNG & lt; Boundingbox.maxlaunch; (Results in execution) {cluster [] + = results; Points.remove (results); } Cluster [] + = cluster; } PixelsToBB (point, distance, zoomlaywall) {center = convertXY (point, zoomleval); Maxlng = convertToLng (center.X, distance, zoomleval); Minlng = ConvertTelling (center.X, -distance, zoomlevel); Minlat = convertToLat (center y, -distance, z...

c++ - Why does the following program give a error? -

निम्न प्रोग्राम क्यों एक चेतावनी देते हैं? नोट : इसका स्पष्ट है कि कॉन्स्ट पॉइंटर की आवश्यकता वाले फ़ंक्शन को सामान्य पॉइंटर भेजने से कोई चेतावनी नहीं होती है। #include & lt; stdio.h & gt; शून्य सेम (const char ** p) {} int main (int argc, char ** argv) {sam (argv); वापसी 0; } मुझे निम्न त्रुटि मिलती है, फ़ंक्शन में `int main (int, char **) ':' char ** 'को तर्क के रूप में गुजरना `सैम (const char **) में से 1 'const' बिना हस्तक्षेप के बिना सीवी-क्वालिटी जोड़ता है यह कोड const सही का उल्लंघन करता है। मुद्दा यह है कि यह कोड मूल रूप से असुरक्षित है क्योंकि आप अनजाने एक const वस्तु को संशोधित कर सकते हैं। सी ++ अकसर किये गए सवाल लाइट का जवाब इस में एक उत्कृष्ट उदाहरण है class Foo {public: शून्य modify (); // कुछ इस वस्तु को संशोधित करें}; Int main () {कॉन्स्ट फू एक्स; फू * पी; फू कंस्ट्र ** q = & amp; p; // q अब पी के लिए अंक; यह (सौभाग्य से!) एक त्रुटि * q = & amp; x; // p अब एक्स पी- & gt; संशोधित करने के लिए इंगित करता है...

javascript - Get full height of element? -

इस सवाल का पहले से ही एक उत्तर है: मेरे ब्लॉग में एक सामग्री है div एक आईडी के #content के साथ। जब मैं इसे चुनता हूं, उदा। फायरबग के साथ यह div की पूर्ण ऊंचाई की रूपरेखा करता है, इसके ऊपर और नीचे के सभी पैडिंग और मार्जिन के साथ। jQuery ऊंचाई () केवल तत्व की आंतरिक ऊँचाई देता है। मैं पूर्ण की ऊंचाई कैसे पूछ सकता हूं तत्व? अगर वहाँ बहुत सारे पैडिंग और मार्जिन वाले अन्य तत्व हैं I यह सब ऊपर और एक मूल्य के रूप में जोड़ना चाहते हैं। मुझे कौन सी विधि का उपयोग करना चाहिए? आप outerWidth और बाहरी हाइट कार्यों का उपयोग के बाद कर सकते हैं JQuery और gt; = 1.3। $ (elemenet)। OuterHeight () सीमाओं और paddings के साथ ऊंचाई सहित ऊंचाई वापस करेगा उपयोग $ (एलीमेंट) .उटरहाइट (सच) को भी हाशिए शामिल करने के लिए।

silverlight - Expression Blend 4 and VS 2008 SP1 -

गुड डे सबको !! एक प्रश्न .. या दो .. क्या अभिव्यक्ति ब्लेंड 4 और विजुअल स्टूडियो 2008 का उपयोग करना संभव है ??? अगर यह है ... कैसे ?? मैंने ऐसा किया: स्थापित VS2008 स्थापित अभिव्यक्ति 4 स्थापित करें VS2008 SP1 Silverlight 3 उपकरण को स्थापित करें Silverlight 4 रजिस्ट्री कुंजी को स्थापित करें Silverlight 3 डेवलपर स्थापित करें (Silverlight_Developer.exe, VS2008 में Silverlight debugging को सक्षम करने के लिए) तब ... जब मैं एक खोलने का प्रयास करता हूं अभिव्यक्ति ब्लेंड 4 वीएस 2008 में समाधान यह कहता है कि इस्तेमाल किया संस्करण अधिक हालिया है ... तो मैं एसएलएन फाइल खोलूंगा और संस्करण 11.0-10.0 बदलूँगा VS2008 अब ब्लेंड 4 से स्लर्न खोलता है, और जब से मैंने बनाया संस्करण 3 का उपयोग करके समाधान, मैं ख़ुदपसंद था कि कोई समस्या नहीं होगी, लेकिन वीएस -2008 कोई भी एस्सेन प्रदान नहीं करता है ... अगर मैं एफ 5 को दबाता हूं तो प्रोजेक्ट संकलित और एक्सप्लोरर में लॉन्च करता है ... लेकिन मैं VS2008 के साथ कुछ भी नहीं कर सकता ... बस कोड में संपादित करें, लेकिन डिजाइन में नहीं ... या क्य...