Posts

Showing posts from September, 2013

java - Tools to automatically generate Daos -

I have no interest in Spring / JPA etc. I like JDBC / ODBC directly. I was wondering if the database schema and generating objects / deos which are capable of bringing / updating them (what exactly are the production tools) are they? I am intersted in Java and C ++. I am interested in doing more ramping on C ++ to stay away from all this Spring / Maven / Hibernate madness and stop abolishing the abstract essence. I want to get into the code. I like how I can check Z Bbc Dao and understand what is happening with my special transaction isolation level. I'm really capable of debugging difficult Deadbox because I can understand the simple JDBC code. On the one hand, I'm just looking for some good code generator tools for Java / C ++ which makes production quality daos. This is a great tool, but it only works with Java. Anyway, why is it that D + / Pazo / Poko model prevailing in the C ++ world makes this code so easy to understand! You use the teloscope code generato...

flex - sql query validator -

Before validating query syntax before executing in database, a SQL query validator in frontend side or in any language is?. My existing project has to validate the SQL query in Flex, before it goes backwards, the cause has to pass several layers before killing the database and killing DB and returning with an exception is very expensive The process is. For the need for SQL query validator, at least it is a valid question at the front end. Use to validate more input. I'm sure you have to do more to standard grammar and it's not trivial. Besides, I'm sure you can find something better, but I hope you get somewhere over.

java - How do I depend on hibernate annotated mappings from a separate project? -

I am trying to figure out how to mapping the two separate projects that share some organizations . Since they only share a limited subset of mapping, so my first thought was to separate these mappings into a separate jar. I am using hibernate annotations to mapping (so they are in class files, not separate XML). Both Project A and Project depend on this mapping project, in which only some hibernate mapping project A does not have any mapping, but the project B does whatever I do always have problems The reason seems to be because I do not configure a fixed unit for the mapping project, the mapping is never taken in the same way for Project B. If I configure a firm unit in the Mappings project, Project A works, but when I run a query in Project B, I ( mapping is the name of the class) gives: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: mapping is not a map I believe this project is due to B due to its persistence The unit, and obviously, ...

tibco - Diff b/w mediation2.2 & mediation3.3 in Business studio ActiveMatrix BPM -

Can be the difference? Regards, This multitudging service units Which refers to the form of atroconference and routing. Talk AMX BPM Active Matrix Service is built on Grid 3.0 basis. The first version of the AMX SG was 2.3 which used a completely different architecture. Both services of 2.3 and 3.0 were manufactured to orchrat AMX BPM. Regards, Glory

java - is it really important to put application and database on different servers (for asp.net and sql-server)? -

I've heard that it's really important for Java (jboss + any DB) because there are so many problems, but this Not too much, is not it? This is everything of scalability if you have an application with very small userbase, only a little bit Small databases with data, and basic application logic (like CRUD functionality), you probably will not be much benefited by separating them. In an enterprise environment, with a large database, a huge database and complex application logic will surely benefit from separating them physically.

javascript - Using jQuery to show/hide list items -

All this is here: I have a "News" section which is the following: & lt; Ul id = "news" & gt; & Lt; Li & gt; & Lt; P & gt; Asfdsadfdsafdsafdsafdsafdsafdsafdsa & lt; / P & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; P & gt; & Lt; A href = "http://google.com" & gt; Google.com link & lt; / A & lt; / P & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div id = "newsNav" & gt; & Lt; Span id = "newsRight" & gt; & Lt; A href = "#" & gt; & Lt; IMG src = "http://engineercreativity.com/samples/einav/images/newsleft.png" alt = "& gt ;," / & gt; & Lt; / A & gt; & Lt; / Span & gt; & Lt; Span id = "newsLeft" & gt; & Lt; A href = "#" & gt; & Lt; Img src = "http://engineercreativity.com/samples/einav/images/newsright.png" alt = ...

objective c - NSDate formatting using locale -

I was using the following method to create an NSDate object based on the timezone and locale. Description Details Calendar Format: Time Zone: Locale: Calendars with description [[NSDT's date] Description: @ "% Y-% m-% d" timezone: zero location: zero]; But this method has not been found in the documentation. Now you should use any alternative methods in 3 steps: [Date set format: @ "YYYY-mm-dd"]; [Date settimejon: TJ]; [Date: Sitelokel: L];

osx - Platform-native preferences dialog with Qt on Mac, Gnome, KDE, and Windows -

On Mac and genomes, the native applications use an app preference dialog, which is applied immediately to the selected settings More on Windows (I think), preferences are applied when "Apply" or "OK" button is pressed. Is there a QT GUI to do this for you, or what ( Q_WS_WIN , Q_WS_MAC , Q_WS_X11 ) To handle, the code must include many #ifdef in the code If you have done this like before (even #ifdef ), so how can you share the skeleton code as you closed it? It seems that you have to spin your own. Here is an important part of our solution. It may be that if someone appears to be, I can also accept some things due to my professional rules that can break other applications. The toggle is a macro that can be defined at compile-time: YOUR_APP_APPLY_PREFERENCES_IMMEDIATELY preferences_dialog.h Class preferences Delog: Public QDialog {Q_OBJECT Public: Clear Preferences (... Various Logic ..., QWidget * Parents); Private Slots: Zero ModifyMap...

How would you design & implement a Cross Platform synchronization mechanism? -

How would you design, architecture and implement the cross-platform synchronization mechanism? Targeted Platform: Windows, Windows Mobile 6.5 & amp; 7, iPhone, Mac OS X, Android This is a very easy desktop to synchronize the CRUD app. Please note that nothing is running in the cloud, this is the reason why I am thinking that I can not capitalize on an existing trusted open (API) technique such as dropboxes ? See for some problems with synchronization "in general"

html - Extra scroll with IE7 -

I have the following website (and please excuse the site's language, it's in Hebrew), and to post it to me Forgiveness for Link Here as soon as the problem is fixed, I promise to change the link with some general: Edit: The original site has been replaced with: http : //example.com For some reason, there is an additional scroll left on IE 7 is there any way to decide The Africa? You should be able to: html {overflow: Auto; } I also noticed that your horizontal scratch bar is related to IE: In the position: absolute; which is causing additional horizontal scratches.

manually create a Django QuerySet or rather manually add objects to a QuerySet -

असल में मुझे निम्न कार्य करने के लिए एक शानदार तरीका चाहिए: - obj1 = Model1 Get (attribute1 = value1) obj2 = Model1.objects.select_related ('model2')। Get (attribute2 = value2) model2_qs = QuerySet (मॉडल = मॉडल 2, qs_items = [obj1.model2, obj2]। .model2]) मुझे सही नहीं लगता हो सकता है, लेकिन ऐसा कुछ करने से मेरे लिए असीम बेवकूफ लगता है: - obj1 = Model1 ऑब्जेक्ट्स.सेक्ट_संबंधित ('मॉडल 2')। Get (attribute1 = value1) model2_qs = Model2.objects.filter (pk = obj1.model2.pk) हां, मुझे इसके साथ समाप्त करने की आवश्यकता है बाद में उपयोग के लिए Model2 का QuerySet (विशेष रूप से एक Django फॉर्म के पास)। उपरोक्त पहले कोड ब्लॉक में, अगर मैं फ़िल्टर का उपयोग get मुझे स्पष्ट रूप से Model1 का QuerySet होगा रिवर्स लुकअप हमेशा मेरे मामले में संभव नहीं हो सकता है। यदि आप बस एक क्वेरीस बनाने की तलाश कर रहे हैं जो कुछ जटिल प्रक्रिया के माध्यम से आप एसक्यूएल में प्रतिनिधित्व नहीं करते हैं, आप हमेशा __ में ऑपरेटर का उपयोग कर सकते हैं। wanted_items = set () item1...

.htaccess - Custom 404 error issues with Apache -

I'm trying to create a custom 404 error for my website. I'm testing it on Windows using XAMPP . My directory structure is as follows: error \ 404page.html index.php .htaccess my .htaccess file The content of: Error 404 error \ 404page.html This generates the following result: Although this is not working - is it something that causes a slash or how should I reference the error document? Does the site site document make a difference in the live web root in one of the sub folders in how one should reference it? Thanks in advance. When I change the file Error 404 / Terror / 404 Page I get the following error message that I The link that is linked is not inside the html file - but it is different from what is listed above: The instructions, when a local URL path, is expected to be fully qualified by the way in your case, this means that the real path for ErrorDocument is ErrorDocument 404 /JinPortfolio/error/404page.html When you impro...

java - Intent not extracting extra -

मेरे पास यह कोड है: सुरक्षित void onListItemClick (ListView l, View v, int स्थिति, लंबा आईडी) {super.onListItemClick (एल, वी, स्थिति, आईडी); लॉग। I (टैग, "चयनित नोट का आईडी" + आईडी है); आशय editNote = नए आशय (यह, कार्य एडिट गतिविधि। वर्ग); EditNote.putExtra (टास्क DBAdapter.KEY_ID, आईडी); StartActivityForResult (editNote, EDIT_TASK_REQUEST); } और यह कोड जो अतिरिक्त से भिन्न गतिविधि प्राप्त करता है: यदि ( SaveInstanceState! = Null) {आईडी = सहेजा गया इन्स्टेंसस्टेट.गेट लाओंग (टास्क डीबीएडीएटर। KEY_ID); } Log.i (टैग, "नोट का आईडी =" + आईडी); पहले कोड स्निपेट में, Logcat कहता है: चयनित नोट का आईडी 2 है, लेकिन दूसरे कोड स्निपेट में, Logcat कहते हैं: Id नोट = 0 का क्या हुआ यहाँ? यह बहुत ही कष्टप्रद समस्या का कोई भी समाधान। मुझे लगता है कि आप उस स्थिति को भ्रमित कर रहे हैं जिसे सहेजा जाता है जब कोई गतिविधि को रोका गया है और गतिविधि पर एक आशय के माध्यम से वितरित डेटा है। आप ऐसा कुछ करना चाहते हैं: बंडल एक्स्ट्रास = मिलनेंटेंट ()। GetE...

java - Proxy for test automation and eventual regression testing, or other ideas -

I was thinking that anyone can recommend some existing software to work around a common mainframe, which is tested Being added to the development environment Recently I am reapplying some webpages which are dependent on this server, and I'm living with a major delay due to the creation of the same questions. Ideally I want to plug a solution between the server on test mainframe and development system For the record, I have been told that this test is a type of tree tree and has no relation to the performance of production systems. My initial thoughts will use a caching proxy to generate automated feedback for the commonly used paths. Ideally, if done right, then accessing both sets of data could ultimately lead to a regression suit. I think that I am hoping for existing solutions with these lines or may have missed alternative ideas. I personally am going to try as a solution first and because it will be limited to a dev environment, therefore there should be space for flex...

FQL facebook query language: how can i query the list of friends of a specific user that has my application installed? -

When a user enters my Facebook application, I want to show him a list of all my friends, The application has been installed. Can I query for using FQL, who has established my application of my friends? And if so how? Thank you! Actually, you can list the bridges of friends who have installed an app via FQ . Select UID, name, pixel, user from WHERE is_app_user and in UID (select friend where UID1 = me ())

Is there something like a QueryUnload event in WPF page-based apps? -

I am using VS 2008 on my first WPF app. When I worked in VB6, QueryUnload , which could be used to determine how an app was shutting down. I want to do this in a page-based WPF application, if it is possible. (My app is not an XBAP application, but a page-based app.) I know that VB6 did not have anything like a page-based application, so it is not possible. You do this in the window for your handler. Turn off

drupal - What's the point to have hook_mail_alter if I already have hook_mail? -

If I have hook_mail then what does it mean to be hook_mail_alter? For example, I saw that hook_mail_alter is used to add a footer to my mail message but I can use the hook_mail () to add it, Rather than using 2 functions ... what am I missing? Perhaps this footer is done after adding some other functions are implemented? hook_mail () should be used from a module of its own To change the mail message, while hook_mail_alter () should be used from the module to change the message sent by another module. This is evident from the following code: taken from drupal_mail (): // Create an email (get topic and body, additional Allow header) // apply hook_mail () to this module. We can not use module_invoke () // We should have $ message by reference in hook_mail () (function_exists ($ function = $ module 'mail')) {$ function ($ key, $ message, $ Params); } // Invite hook_mail_alter () to change the result as a result of all the modules. Drupal_alter ('mai...

list - python: comparing this row with next row -

C1 is a list of such lists: C1 = [[1,2,3], [1,2,6], [7,8,6] for the row in C1: I want to track What is the for example in the line [0] [ 2, 3] and [1, 2, 6] ] There is no change in line [0] However [1, 2, 6] and [7, 8, 6] line [0] How do I make this change? I also want to know that a line to keep track of the previous one Use prev = none for the line in C1: if no previous is none and the previous! = Line [0]: # a change pre = line [0] ... just make sure you start the price (if anything in your lists, the first item Use an additional flag for) as one exists somewhere. If you want the first line to accept the change, change if : if it is not previous or first! = Line [0]:

Invalidation/Paint problem with Control (WinForm) -

I have created a control in which there is a photo box inside it. In my main form I have a picturebox, with that said change it with control. I have a problem now. To update the image box inside the control I need it I have an overloaded surcharge but due to invalidation on the control the function is not called. How am I working with the user () / Paint? Protected override zero PaintEventArgs pe {pic.Invalidate (); } Try to invalidate the control with Valid (true) , which also invalidates child control.

arrays - Javascript list like data structure? -

It seems, if I'm not mistaken, because the way Javascript handles the objects, unused to link it Or disable lists I will need a data structure in which I can easily do 2 operations (separate from indexing), by adding it at the end and removing the object on an indicator. Is using an array and is "rebuilding" for optimal solution for each removal operation? I do not think so. Any thoughts? It looks like that's exactly what you're looking for. You should be able to use push and pop functions for data structure similar to the heap and for the rest of it the bunts.

query optimization - How to optimize an ORDER BY for a computed column on a MASSIVE MySQL table -

I have a very large (80+ million) D-normalized MySQL table, a simplified schema looks like this: + ----------- + ------------- + -------------- + --- ----------- + | ID | PARAM1 | PARAM2 | PARAM3 | + ----------- + ------------- + -------------- + -------- ------ + | 1 | .04 | .87 | .78 | + ----------- + ------------- + -------------- + -------- ------ + | 2 | .12 | .02 | .76 | + ----------- + ------------- + -------------- + -------- ------ + | 3 | 24.92 | .23 | + ----------- + ------------- + -------------- + -------- ------ + | 4 | .65 | .12 | .01 | + ----------- + ------------- + -------------- + -------- ------ + | 5 | .98. .45 | .65 | + ----------- + ------------- + -------------- + -------- ------ + I am trying to see if there is a way to optimize a query in which I have the weight for each paragraph column (where the weight is between 0 and 1) And then the average them to come with a calculated value SCORE then I want to order from that computed skur column. For example,...

r - HoltWinters on Panel Data -

I'm trying to run Holtvintrs process panel data to come up with sales forecasts for a list of companies I In the data frame, there are "company", "year" and "sale" fields. I'm interested in adding an extra column to this data frame that shows sales received using Holt Winters. For the same company, exercise is trivial because I can still run HoltWinters I by looping Companies in this situation in their position I increase my position, but I am looking for a solution I am saved from the loop. Any thoughts? can HoltWinters to help file, it does not seem to vector So, I do not think you can escape the loop. The best I can do is make your loop beautiful with lapply (this can also be a small speed gain). Let's say you have different time series (or time series union): set.seed (0) a & lt; - ts (rnorm (10), start = c (2001, 5), freq = 12) b & lt; - ts (rnorm (10), start = c (2001, 5), freq = 12) c & lt; - ts (rnorm (10...

c# - Code clarity for converting generic list? -

This code should be changed to the list of listType2s (list) list type1s. I think that although the functionality is difficult to detect. I'm looking for alternative methods that are easy to read, yet brief and concise. list & lt; Type1 & gt; Type1s = new list & lt; Type1 & gt; (); List Type 2 Foryeich (t = & gt; add 1 type ((new type 1 (t)))); I generally agree to use LINQ for this type of thing - but list & lt ; T & gt; has been a ConvertAll method since .NET 2.0, which is actually a bit more efficient (because it already knows the size): List & lt; Type 1 & gt; Type1s = listType2.ConvertAll (t = & gt; new type 1 (t)); I probably do not use LINQ myself, unless I have a specific reason, just because it is in line with the rest of the code Maybe LINQ is also about

ios - Comparing UIImage -

How can I compare an image to someone else? Thank you! If you have two UIImages, you can send quartz representations from your CGImageRef Those items should then get two new bitmap references supported by a memory buffer that you create and pass, for each image to draw images in one again bitmap references CGContextDrawImage Use now images are in bytes buffers for you to transfer again Can loop manually or via memcmp . Apple has its own elaborate interpretation and sample code regarding the creation of bitmap contexts and the drawing is in them: The difference for you is that You are portraying an existing image in context. Use CGContextDrawImage for this.

java - Installing SunJCE on Android? -

The company I work for is wary of Android app development because the default cryptography library, bouncy castle, FIPS- 140 is not certified. I can not do anything to change their minds or policies. I'm wondering what options I have (or at least bundling) to set up SunJCE with my app? For one, I do not know that I will download the latest version of this jar. I tried to grab JS jar from my desktop and install it as an internal jar in my Android project and if it gave an ominous message, then it got entertaining: One Core class (Java. * Or javax. *) Something other than an original library is likely to happen that you have tried to include a core library (or part of it) from a desktop virtual machine. This will not do the most reliable work. At a minimum, it puts your app's compatibility at risk with future versions of the platform. It is also often of suspicious validity. If you really intend to create Core Library - which is only appropriate as part of creating a...

iphone - NSDate dateFromString deprecated? -

I'm trying to use the NSDate dateFromString method, but I'm getting a warning and crashing this app Used to be. Code looks like this: NSString * pickerDate = [NSString stringWithFormat: @ "% @", Time Selector.date]; NSDate * defaultDate = [NSDate dateFromString: pickerDate]; The warning is: 'NSDate' can not answer 'dateFromString' The method seems to have been deprecated (between XCode 2 to 3 in the middle of the upgrade. What alternative method can I use to create a date from a string? NSDateFormatter one nsdit for you NSString . The most basic use is something like this: NSString * dateString = @ "3- Agus NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init] autorelease; dateFormatter.dateFormat = @ "d-MMM-yy"; NSDate * date = [dateFormatter dateFromString: dateString];

iphone - Strange crash on selecting a UITableView cell -

Text after " I'm getting an EXC_BAD_ADDRESS crash when selecting a cell's cell on which a new view Push Navigation Controller I have strongly suspected the new code I have added: Here stack trace ( CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION _ There is always the initial data application needed in a separate thread to load, because partially init and loadView new view are being asked to come back fine. [: @selector (loadData) toTarget: NSThread detachNewThreadSelector itself withObject: zero] I am a ; Load a view in applicationDidFinishLaunching and then showing a progress indicator. loadData does a [self performSelectorOnMainThread: @selector (setupMainUI) withObject: zero waitUntilDone: NO]; When the data is ready. The UI (table and all) is loaded fine, the latest figures show great; This happens when a new view should be pushed that crashes. Switching views through tab controller works fine too. Thoughts? . Thanks Update : This ...

Farseer setup in Visual studio to work with C# and XNA -

I've downloaded the folder with the Farsere Physics Engine. And I have a game that I'm working on using C # and XNA. Impression Impression is that I do not know how to add files to the Forcesier, my project is, so I can refer to the function in code. How can I do this? You can also: Open Go to your project Right-click 'References' in the Solution Explorer and select 'Add Reference'. Persian Fixix. Browse the Dll file and select it Now you have added it as a reference to your project and can use it in your code!

aes - how to generate initial vector for counter mode of encryption -

I am implementing the CTR mode of encryption using AES. I know how to generate the initial vectors (counter blocks) for this mode. You get random IV, and after that increase with each new block, such as 16-byte integer Also, as far as I remember, some specifics use zero IV for CTR mode.

Mapped properties returning string array instead of Integer object in struts2 -

I have assigned to the drop down. Each dropdown lounge will be set in Hashpe when I get these values If I try to do so, I am genetically reducing the values ​​as a string array instead of an object. Therefore, I do not agree that I am not able to reproduce the values ​​again. Below I am using the values ​​to populate. & lt; S: iterator value = "#actComments.lstEntities" & gt; & Lt; TR & gt; & Lt; Td width = "15%" align = "left" & gt; & Lt; S: Text file name = "property type" readonly = "true" value = "% {# attr.propertyTypeName}" cssStyle = "width: 80px; font size: 11px;" / & gt; & Lt; / TD & gt; & Lt; Td width = "85%" align = "left" & gt; & Lt; S: Select name = "hmMapComment [% {attr.propertyTypeId}]" cssStyle = "font-size: 11px; width: 457px; margin-bottom: 3px" headerKey = "0" headerValue = "- select c...

how to change ExpandableListview left icon to others (android ExpandableListView) -

Now I want to use ExpandableListView to display my data and I change the item left icon or it disappears Want to do Someone can give me some suggestions. thx. setGroupIndicator (empty) should go away.

good jquery/javascript date and time picker for this format? -

I can not find a good jquery date and time that displays my selected date and time like this 11-Aug-2010 12:30:38 One of these links helps you

c# - Choice of OR Mapper for a new project -

We are going to start a new project, it will be a group of web applications with a good number of shared components. There will be 50,000 unique user visits per day and it will be some kind of management panel. All the projects are being constructed in ASP.N.M. 2 will be in MV2 and they all will work on a SQL Server database. We have been in NHibernate for a long time until I do not get the website, where performance testing for NHibernate looks very bad compared to other mappers. In this summary I got the library unknown earlier, really promising Looks, but both are - advantages and disadvantages. BLToolkit is a support for weaker communities, very few examples and I have not really heard of any person who uses it in a big project. Apart from this, it is very light, which means it does not support many relationships, lazy loading and caching ... The performance on the other hand is really good, and Linq's very good support is also. / P> In this case I am between choo...

command line - Silent Administrative Install - Specifying an installation directory -

I am currently trying to add some test functionality to our creation, and I should be able to do this To establish an administrative, silently though, I need to be able to specify the location which also establishes it, because the company is the default on the wide network which is of no use. I was wondering if there was any way of specifying the installation directory through parameters for this type of operation, and if so how? Many thanks, Chris msiexec / a foo.msi TARGETDIR = C: \ Extract \ / qn / l * v admin_install.log / a = administrator foo.msi / qn is completely silent (/ qb! Mostly silent) / L * V creates a verbose log- If this fails

.net - Is Repository pattern an overkill -

I have been using repository patterns (DDD and POEA) for a while. Although some members of our team have argued that this is just an additional layer of intangible and unnecessary. I can see some benefits in their arguments. The modern ORM solution (NHibernate or EF) has almost everything I need to find and find some articles on this article. So what's the repository pattern overkill? This depends on the complexity of your problem and the domain model plays a simpler solution in your role resolution , Possibly the repository overkill but for complex domains with a strong language and developed requirements / requirements, the repository is a good, clean abstract that owns the domain object life cycle. Many ORMs will do a lot of these, but, in a complex domain, there is always some domain activity that is understood in a repository and which is not supported outside of the box by any ORM. Bottom line: It depends on context.

crypto++ - Encrypt/Decrypt with AES -

I am writing a small program to encrypt / decrypt using AES. I'm using the crypt library. I need help to understand some things. When I am encrypting the file, should I write IV at the beginning of the file to decrypt it later? / P> I did not want to correct the password given to the decrypt file. I want to: Before encrypting, put some strings at the beginning of the file (e.g., TRUE) check it after decryption. Check the MD5 of the file before encryption. Keep it at the beginning of the encrypted file Read MD5 before decryption, check decrypt file, MD5 of decrypted file and compare them. Writing IV in the beginning of the file is OK. Adding to the end is another option. Do not put a static string in plain text: For very similar reasons, the tape was broken very easily, and for this common mistake a cruel password is made. The MD5 approach looks satisfactory; But HMAC-SHA 256 will provide quite strong integrity claims. (I think you can reuse IV for AES...

JQuery basic selector usage and non unique element ID -

I'am maintaining a GUI created using JQuery In a section of the GUI, several Tabs can be opened. When a new tab is opened, the first tab material is made by cloning the device and updating the input field in the divas. / P> A unique ID based on the new tab tab index, but all other IDs in the clone tab div are similar to the original tab div. Now, it seems that since the problems arose the ID is not very unique. When an input field works on Firefox 3.6.8, the following works: $ ('# tabs-2 #scriptName'). Val (data.name); This selects the tab div with the ID tab, and then selects the input field in that device with the id script name and sets its value. Now it does not work on Chrome or Firefox 3.0.19. DOM Hirari looks like this ... & lt; / Div & gt; ... & lt; Div id = "tab-2" & gt; ... & lt; Input id = "scriptname" /> ... & lt; / Div & gt; & Lt; / Div & gt; A solution all ID will have to mak...

download - Problem downloading the last DirectX SDK -

I can not manage to download the last version of DirectX SDK (June 2010): When I try to install it by double clicking on DXSDK_June10.exe , I get the following message: It seems that the file is corrupted is. Is this another way to download SDKs? Check the file size of the file you downloaded. You may need to download it again. I just ran into this problem, then I saw my file size, and it was only 300 MB instead of 500 + MB, so in some way the download was interrupted.

c# - Error with UserPrincipal.GetAuthorizationGroups() method -

I am having an issue by using the GetAuthorizationGroups method of UserPrincipal class in a web application. (ContextType.Domain, Null, "DC = MyCompany, DC = COM", "Username", "Password"); UserPrincipal p = UserPrincipal.FindByIdentity (reference, identity type, SamAccountName, "joe.blogs"); Var group = p. Gate authority group (); I believe this code works to an extent. When I see the reference object, I can see the server and the user name / password are corrected in the object when I see the p object I can see, the advertisement details pop up like a phone, etc. There is a stack trace by error here. [PrincipalOperationException: Authorization Groups, (5) done while trying to get an error.] System.DirectoryServices.AccountManagement.AuthZSet..ctor (byte [] userSid, NetCred credentials, ContextOptions contextOptions, String Flatuser authorization, Store CTX Usersto CTX, Object UserCustombasebase) +317279 System. Dir...

problem with 2 jquery autocomplete on same page -

I have two jquery auto-complete fields, which are with the same source url, which can be used by 2 different modules Are injected. When I first type something in autocomplete, then I get the result of hanging. Then I second auto But if I type in autocomplete first, then this result does not show this request Etc., but this does not display results. The generated code on the page looks below: $ ('# someid1'). Autocomplete (url, {width: 200, selectFirst: wrong, minChars: 1, matchContains: true, cache lamp: 1}); $ ('# Some AD2') Autocomplete (URL, {width: 200, selection first: false, miners: 1, match canteen: true, cash length: 1}); Any help / suggestions? - Maybe no answer, but did you know that you have only one Like autocomplete () , $ ('# someid1, # ​​someid1'). Autocomplete Url, {width: 200, selectFirst: wrong, minChars: 1, matchContains: true, cache lamp: 1}); Just separate it with a comma ...

Help converting SQL query to JPQL -

I have a SQL query that I have to translate to JPQL, and I wonder if it is the case with which I originally For reference, we have to use SQL, here is the SQL query. select c.title, a.approval_total, r.requested_total code from INNER JOIN (SELECT code_id, year, SUM (request_amount) requested by total request request group code_id, year) C.id = r.code_id INNER (select Code_ID, year, SUM (approved_America) approved by the Total Code Group code_id, year) on one c.id = a.code_id WHERE c.title =? And r.fiscal_year =? And a.fiscal_year =? Does anyone know how to translate the line view into JPQL in these two? Or alternatively, there is a different way of structuring a query that makes translating easier? I rewrite SQL query without first using inline selection Not sure if I write it correctly, but it will be something like this: select c.title, sum (a.approved_amount) _total as the approval, SUM (r) .requested_amount) as request_total code c requests from INNER requests a...

ruby on rails - MySQL COUNT results getting interpreted in RoR as a string instead of as an integer -

Here's my query for inquisitors: Only the first and last lines should be placed on this question: As the item count as SELECT s.parent_id ID, COUNT (s.parent_id), I add it to the upper part (SELECT item_id, user_id, MAX (Created_at) created from item_views iv WHERE iv .user_id =? Item_id by GROUP) vii But as v.item_id, VITTIIIIIIIIIEIIIII = I.category_id Join INNER, Parent.title as parent_title, parent.id as parent_id from categories AS node, Parents WHERE as node.lft categories parent.lft and parent.rgt) s on s.node_id = I.category_id where (i.updated_at> v .created_at or v.created_at is an IS tap) and i.updated_at & gt; ? S.parent_id by group; When I call it using find_by_sql , the values ​​under the counts column are string like " 1 " instead of integers, of course, I can easily call to_i , but of course this is not the best solution. I suspect that there may be something wrong with my query This is due to mysql returning string. You need to ...

c# - ASP.NET: Custom Control Reloads Whole Page -

I am working with the C # code on an asp.net site. Now when I start creating a custom control program, the problem starts, I display control in a panel, but when I click on one of the control buttons, it does nothing if I click them twice I lose the user control, using the debugger, I found out that it is doing a postback, which is strange because I use the buttons and the user Asked experimenter made to false try to set; It's still sending postbacks. Here is where default.aspx file & asp: UpdatePanel runat = "server" id = "contentholder update panel" update.mode = "Conditional" & gt; & Lt; ContentTemplate & gt; & Lt; ASP: Panel Run = "Server" ID = "ContentPanel" & gt; & Lt; / ASP: Cell & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; Here is the ASPX from ListadoAuditoria of Control & lt; Asp: UpdatePanel runat = "server" id = ...

iis 7 - Best practices for copying file(s) from web app to another server -

मेरे पास एक आंतरिक एएसपी.NET MVC 2.0 वेब अनुप्रयोग है जो कर्मचारियों को दस्तावेज़ अपलोड कर सकते हैं। तब मैं इन फाइलों को प्रसंस्करण के लिए किसी अन्य सर्वर पर कॉपी कर रहा हूं। वर्तमान में वेब अनुप्रयोग (आईआईएस 7। नेट 4.0) हम स्थापित किए गए एप्लिकेशन खाते के अंतर्गत चल रहे हैं (यानी, WebApp => बेसिक सेटिंग्स => इस रूप में कनेक्ट करें ..)। इस एप्लिकेशन खाते ने इस अन्य सर्वर पर साझा / लिखने की क्षमता (दोनों साझा और फ़ाइल सुरक्षा) को एक स्थानीय व्यवस्थापक के रूप में भी सेट किया था), लेकिन जब मैं एक फ़ाइल को दूसरे सर्वर पर कॉपी करने की कोशिश करता / करती हूं (मैं कॉपी / बना सकता हूं स्थानीय सर्वर पर फाइलें सिर्फ ठीक है) मुझे मिलती है: सिस्टम। अनधिकृत प्रवेश एक्सेस: पथ पर पहुंच '\\ NotTheWebServer \ BlahBlah \ Blah.pdf' से इनकार किया गया है। अगर मैं "प्रत्येक व्यक्ति" को इस फ़ोल्डर के अधिकार साझा करता हूं तो यह काम करता है। मैं हर किसी को फाइल सिस्टम के माध्यम से लिखने की अनुमति नहीं देना चाहता। मेरा प्रश्न: क्या यह करने के लिए सिर्फ खराब अभ्यास है जो मैं यहाँ...

Compile MOF using C# -

How can I compile the MOF for C # class (via the C # code)? What Mofcomp.exe can do (if yes, then?) does not generate mofcomp code From moffs it parses a file that contains a MOF statement and defines word and class instances in the WMI repository in the file, and there are several other options. Here you can see: API is not a ready-to-use tool that does this, you have to write it yourself. H.H.

.net - Strongly typed datasets and schema changes -

I have a project that uses strongly dataset typed. Suppose I have a database schema database used by this application in my country and I want to add a new column called "ISADemocracy" (which is the example) SQL Server Datetime BIT. Now, how can I update the dataset properly typed, so that I can use this new area in the application? I have tried to add columns to the country table on the dataset, gave it the type of boolean and mapped its "source" property to "icamacscari". I can use the field in the application, I can provide a value, but the built-in questions created by the table adapters have not been updated to reflect this change. They are as follows because before I wrote this column in the dataset I wrote firmly. I expected that what I did would be enough, but it does not seem like that. Should I re-create a strong dataset class in some way? If so, then what is the effect of this? I can probably remove the country table in the datas...

Display more Text in fullcalendar -

I like fullcalendar JQuery-Plugin. Right now I am looking for a solution to show more information in the event. For example, in day view, you see an event from 06:00 to 10:00. Now I want to display an additional detail in this event (not only time and title). I use a tooltip individually to display additional information, If they have emphasized this phenomenon, they can see that long descriptions use this example, but any tooltip implementation will work. $ (document) .ready (function () {var date = new date (); var d = date.getDate (); var m = Date.getMonth (); var y = date.getFullYear (); $ ('# calendar') .FullCalendar ({Header: {LEFT: 'Previous, Next Today', Center: 'Title', Correct: 'Month, Basic Options, Basic ''}, // Events: "Calendar.Amx / Event List", // Default View: 'Day View', Event: [Title: 'All Day Event', Start New Date (y, m , Description: 'long description', id: 1}, {title: 'long even...

winapi - Spying while dragging the windows title bar -

After a one click on the title bar of a normal WS_OVERLAPPEDWINDOW window, pulls only after a few mouse and feels a button release Are there. Summary of messages received from Spies: WM_SYSCOMMAND (SC_MOVE) WM_MOUSEMOVE (*) WM_CAPTURECHANGED WM_ENTERSIZEMOVE WM_MOUSEMOVE (*) . . WM_MOUSEMOVE (*) WM_LBUTTONUP (*) WM_CAPTURECHANGED WM_EXITSIZEMOVE WM_SYSCOMMAND (return) I'm trying to understand the messages (*) I do not understand: 1) Mouse movements and buttons release windows are not in the client area. Therefore, instead of WM_MOUSEMOVE and WM_LBUTTONUP, I should have WM_NCMOUSEMOVE and WM_NCLBUTTONUP. 2) If I put a break on those messages (WM_MOUSEMOVE and WM_LBUTTONUP), in my window process, I do not have to stop the message by dragging the title bar of the search window! 1) Mouse movements and buttons are not in the release window client area, therefore, instead WM_MOUSEMOVE And WM_LBUTTONUP, I should be WM_NCMOUSEMOVE and WM_NCLBUTTONUP ...

django-orm case-insensitive order by -

मुझे पता है, मैं DJango ORM से केस असंवेदनशील खोज चला सकता हूं। User.objects.filter (first_name__contains = "jake") User.objects.filter (first_name__contains = "sulley") User.objects.filter (first_name__icontains = "Jake") उपयोगकर्ता Objects.philter (first_name__icontains = "Sulley") और भी, मैं उन्हें user_list = User.objects.all () के रूप में प्राप्त कर सकता हूँ। ("पहले_नाम") # अनुक्रम: (जेक, सुले, जेक, सैली) user_list = User.objects.all ()। क्रम- द्वारा ("- प्रथम_नाम") # रिवर्स # अनुक्रम के लिए: (सली, जेक, सुले, जेक) क्या केस-असंवेदनशील फ़ेच के लिए कोई सीधा रास्ता है ?? जैसा कि मैं एक अनुक्रम चाहता हूँ # वांछित अनुक्रम: जेक, जेक, सैली, सुली यदि नहीं, तो यह करने का सबसे अच्छा तरीका सुझाएं । अग्रिम धन्यवाद। मुझे समाधान का उपयोग करते हुए .extra वर्ग MyModelName (models.Model): is_mine = models.BooleanField (default = False) name = models.CharField (max_length = 100) MyModelName.objects.filter (is_mine...

A problem with java Object Streams via sockets -

I want to send double objects as objects in the form of an object OutputStream that socket for the output stream uses it. In the receiving party, I read repetitive objects. It may be that the read process does not execute the assignment of the object. I am trying to update dobArray and write in the socket output stream. DobArray has been updated by another thread This work is good because I tested it. Here is my code: Sending to: objectStream = New ObjectOutputStream (dataflow.accountputstream ()); While (busy) {try {// dobArray has been updated to another object objectStream.writeObject (dobArray); } Hold (IOException e) {e.printStackTrace (); }} Received party: objectInputStream = New ObjectInputStream (mainServer.dataFlow.getInputStream ()); While (busy) {try {DobArray dobarray = (DobArray) Object InputStream.readObject () writeToFile (dobarray); } Hold (IOException e) {e.printStackTrace (); } Grip (Klassnotfound Expression E) {e.printStackTrace (); }} In relatio...

java - Returning a JTextField to editing after a warning dialog -

In my application I have a JTextField, which will allow the user to fill it with input in a certain way. I have a method that checks that the input in the field is valid and if it does not display a dialog, after this I want to focus on returning to the text field so that the user can fix the mistake and make the right formatted Could type in input I tried to do this by having the JTextField call request Focus () on myself, but it seems only half job JTextField displays cursing cursor, but as long as I do not click on the text field again, Can not type in text also Do I have another method of calling? I could not find anything else in the documentation This is not exactly the solution you asked, but you You may want to consider javax.swing. InputWirefire This object allows you to verify the input in a field and remove the focus if the format is not correct. I do not think it will allow you to set up a dialogue to explain the error (although it may be - try it out) but this wil...

delphi - How to return an error code with Halt(n) from an Exception block with D2007? -

Update : D is typical for 2007. It works in D-2010 as it works in the older version. I would like to return an Except code, depending on the type of exception being caught in the handler block, in the exception of: Program testing; {$ APPTYPE console} uses SysUtils; Var Exitcode: integer; Start Writing ('Enter the error code:'); Readln (Exitcode); Try increasing EExternal.Create ('sdsdkfjh'); Except E: Start EExternal Writeln (E.Classname, ':', E.Message); Halt (Exitcode); End; End; End. Unfortunately in D200, the Calling Halt (N) always gives exit code 1 from the exception block, whatever Process ExceptHandler ( ExceptObject: TObject; ExceptAddr: Pointer); away; Start ShowException (ExceptObject, ExceptAddr); Halt (1); // & lt; = @ # $ ## @ # $! End; And no matter what the exhaust code I wanted, I get the code that is halts (1) So the question This is that: / Strong> How can I return only the desired exit code based on th...

vb6 migration - How to replace Sheridan 3D controls in VB6? -

I have won the first value of maintaining a large VB6 application which uses a large number of external controls (big meaning : It is too big to rewrite it is not an option currently from scratch). I am looking for vb.net to have a smooth upgrade path, which changes 3rd party control by more standard ones. Is there an easy replacement for Sheridian 3D control? (I do not care about visual effects, the functionality points.) Commercial automated migration tools and They have Threed32.ocx SS Controls I think they both. Provide the option of replacing with the net counterparts. Artisans are currently offering their product which can change up to 10,000 line codes.

converting schema in XML to XSD for visual studio -

Note, I am trying to generate schema for XML file from the not file. There is a lot about this on the web. Type of a garbage - How can a file be valid if validity fails to validate the file? Anyway, I want to test an SSIS component for which XML (not XSD) requires a configuration file, tell it how to parse any other input file (this input Also does not have XML). The provider of this component says that we have to create our own config xml files. I would like to use Intellisense to help in doing this, there is a schema for these config files, but it is in XML is. Is there a way to create a schema from the XML file representing content of that file, no structure The example is in the second paragraph anyway, it has been found that there is a way, and it is very simple.

python - What is the difference between StringIO and io.StringIO in Python2.7? -

In addition to the obvious (one type, another class)? What should be liked? No significant difference in the use cases, perhaps? I see it. An in-memory stream for Unicode text refers to TextIowrapper. This module implements a file-like range, StringIO, that reads and writes a string buffer (also known as memory files). Io.StringIO is a class. This handles Unicode, it reflects the preferred Python 3 library structure. StringIO.StringIO is a class. This string handles This legacy Python 2 library shows the structure. Should be given priority? Always proceed to the new library organization should use io.open to replace the built-in Unicode-unknown open . Next. Go ahead.

gis - Mapnik ignoring my lat long bounding box -

Can anything look wrong with the following commands? Every time I run these images, there is an image of the UK and I did not export the Josm map. I'm guessing there is something wrong with the DB import, but in production it mentions that it is processing my corrections and data. Step: 1 - One from JOSM or Merkaator. . 2 - using the following command has been imported into psql: osm2pgsql -m -d gis -s ~ / mapnik / default.style -b 103,1.3 , 104 1.4 ion.osm -v -c seems to produce this: Marshall @ ubuntu: ~ / mapnik $ osm2pgsql -m - d GIS S ~ / mapnik / default.style B 103,1.3,104,1.4 ion.osm -v -c osm2pgsql implementing SVN version supports the use of 0.66- projection SRS 900913 (spherical Mercator) bounding box: 103.000000, 1.300000 to 104.000000.1400000 file in RAM, Scale = 100 Reading: Setting Table: Setting Table et_osm_line: installation established planet_osm_point table table planet_osm_polygon: planet_osm_roads mid ion.osm processing node (25k) they (3k) ...

c# - LINQ to SQL Finding objects not listed in another list -

I am programming a data entry application for a vet and I have followed several different principles which MVC Nerd Dinner Application I'm 90% complete with my app, but I'm trying to clean up an annoying problem: Currently when the user adds a pet for an invoice, I have a dropdown that is all Lists existing customers - whether they are not already on invoices, I want to include it only to include the customer's pet already on the invoice so that they are more than once Can not add pets. After the idiot dinner tutorial application, I have a customer registrar CS file. The following questions: // Finds a customer's pet list IQueryable & lt; Pet & gt; FindCustomerPets (int id) {Return from pets in DB Patt, where pet. Select Customer ID == ID Pet; } If a pet is already on a journey, then it will record a travel details for it. So ... what I am trying to write is a query that can only be taken if there is no visit details for it. Here I am working with:...

Android AsyncTask Pub Sub to Context? -

One of the best ways to inform activity that I have started an AsyncTask is that the AsyncTask has been activated Can pass as a reference, but I do not want to know about the type of activity asynchronous. In the .NET land, I subscribe to an event on "Async Task". I did not find any way to do this in Android Once someone has to send AsyncTask is finished, and if you have different types of activities So whoever is active will get it. To send the broadcast you have to pass the reference on the asynchronous, but your asynchronous does not need to decide which reference is.

javascript - Trigger a jQuery keyup event only when an <input> element is not focused -

मैं jQuery का उपयोग किसी & lt; इनपुट & gt; तत्व जैसे कि & lt; इनपुट & gt; तत्व केंद्रित है: केवल घटना $ ('# my-input')। कुंजीप (समारोह ( ई) {// केवल जब & lt; इनपुट & gt; तत्व पर फ़ोकस होता है) मैं कुंजीपटल घटना बाहर इनपुट तत्व का संदर्भ मैं एक कुंजीपटल ईवेंट ट्रिगर करने में सक्षम होना चाहता हूं, जब & lt; इनपुट & gt; तत्व केंद्रित नहीं होता है: $ (': not (# my-input)')। Keyup (function (e) {// इस कोड को चाहे चाहे इनपुट तत्व केंद्रित है} दुर्भाग्यवश, उपर्युक्त कार्य चल रहा है चाहे & lt; इनपुट & gt; बॉक्स फ़ोकस किया गया है। $ ('# my-input')। फ़ोकस (फ़ंक्शन () {$ ('body')। Unbi nd ( 'KeyUp'); })। ब्लर (फ़ंक्शन () {$ ('body')। कुंजी (फ़ंक्शन (e) {// do stuff});});

php - Why not start from the beginning? -

संभव डुप्लिकेट: हाय, आम तौर पर मैं जो सभी परियोजनाओं को काम करता हूं या अपने स्वयं के ढांचे के साथ या मैं उन्हें शून्य से शुरू करता हूं मुझे ऐसा क्यों नहीं करना चाहिए? या यह इस तरह से करते रहना बेहतर है? मैं ज्यादातर PHP पर काम करता हूं, आपको इसे बदलने के लिए क्या सुझाव देना है? केक, जूमला या कोई दूसरा? या बस इसे इस तरह से रखें? मैं दूसरों के लिए थोड़ा असत्यस्त हूं कोड: एस अंग्रेजी के लिए धन्यवाद और खेद है: डी यदि आप चौखटे के साथ जाते हैं, तो यह आसान, बेहतर, तेज, मजबूत है! नहीं, वास्तव में एक अच्छी तरह से स्थापित ढांचे के साथ आप अपने विकास के समय में कटौती करते हैं, आप जानते हैं कि कठिन चीजें पहले से ही सोचा जा चुकी हैं, और आप ऐसा कर सकते हैं जो आपके ऐप को करने की ज़रूरत है, बिना चीजें जो हर ऐप को करने की ज़रूरत है। मैं रूबी वाला हूँ, इसलिए मैं रेल (बड़ा) या सिनात्रा (छोटे) के लिए वोट करूँगा। मैंने PHP में काम किया था और यह सिर्फ था ... ick यदि आप पायथन मार्ग स्विंग करते हैं, तो Django (बड़ा) या चेरीपी (छोटे) संभवत: प्रयास करने के लिए सुझाव होंगे। नुकसान...

iphone - Changing UINavigationController from UItabBarController -

I have tab tab 4 controller. In the hand, I need to show a UI navigation controller in which it has a UIUI when the user presses a button inside that view, then I need to display another UIAV controller in tab 1. Is this possible? I tried to use this code with any luck UINavigationController * tableNavController = [[UINavigationController alloc] initWithNibName: @ "nav2" bundle: zero]; [[Self-tab tab controller selected ViewController] Setview: tableNavController.view]; It changes the view but not the controller. Please help. thank you in advanced. Why not just push on the navigation controller of a recent view controller tab 1?

coldfusion - IIS is serving a Javascript file 146KB of 297KB and then stopping. Never Finishing -

This is happening with a file, there is no other file, of course this is not another file. Why is the IIS blocking half way? I've checked on the server that there are no IIS errors and the server's performance is fine, the CPU memory looks good at all. Server IIS and ColdFusion The file may be damaged. Have you tried removing it and using a different copy?

javascript - Ajax Google Visualization API Gauge with jquery -

I am looking to create a dashboard gauge that updates through Ajax. I have code below. I have Ajax code but I am unsure about updating gauges. Any suggestions? google.load ('visualization', '1', {package: ['gauge']}); Google.setOnLoadCallback (drawChart); Function drawChart () {var data = new google.visualization.DataTable (); Data.addColumn ('string', 'label'); Data.addColumn ('number', 'value'); Data.addRows (1); Data.setValue (0, 0, 'Tempature'); Data.setValue (0, 1, 76); Var chart = new google.visualization.Gauge (document.getElementById ('liveTempChart')); Var option = {width: 340, height: 130, redfrom: 90, redTo: 100, yellow to: 75, pelato: 90, minor ticks: 5}; Chart.draw (data, options); } Ajax code ... (sensor as $ obj-> $ unit) {if ($ unit-> label == "Temp" ) {Reverse $ unit-> tempf "F"; }} You can also use the same type of code for updates You need to create...

android -Menu function -

I'm new to Android. I have tested android.view.menu by the following code..It works. Import android.app.activity; Importroid.os.Bundle; Import android.view.Menu; Public class increases menu activity {/ ** is called when activity first created. * / @ Override Crate on Public Zero (Bundle Saved Instantstate) {Super. Contents (Saved Instantstate); SetContentView (R.layout.main); } Public Boolean onCreateOptionsMenu (menu menu) {menu.add (Menu.NONE, 1, Menu.NONE, "1 pixel"); Menu.add (Menu.NONE, 2, Menu.NONE, "2 pixels"); Menu.add (Menu.NONE, 3, Menu.NONE, "8 pixels"); Menu.add (Menu.NONE, 4, Menu.NONE, "16 pixels"); Menu.add (Menu.NONE, 5, Menu.NONE, "24 pixels"); Menu.add (Menu.NONE, 6, Menu.NONE, "32 pixels"); Menu.add (Menu.NONE, 7, Menu.NONE, "40 pixels"); Return (super.onCreateOptionsMenu (menu)); }} I know how to perform actions in each menu what I have to do. Can we add intent to each menu button? I...

gtk - Simple "Hello-World" program for python-evince -

I try to write a simple "hello-world" type program using the Python-Avance package for intuitive links I am doing Gnome, which embeds avance in a python-gtk window, the samples I get on the web come in this way: import import imports gtk w = gtk.Window () .show () e = evince.View () w.add (e) e Show () document = evince.document_factory_get_document ('my pdf file') e.set_document (document) gtk.main () The problem is that "evince.set_document" no longer exists : The forums indicate that the recent changes are due, but I am unable to understand the necessary (possibly very simple) amendments to do this work. Can anyone help? The API has changed, has been added with additional steps. These instructions should help: & gt; & Gt; & Gt; E = evince.View ()> & gt; & Gt; & Gt; Docmodel = evince.DocumentModel () & gt; & Gt; & Gt; Doc = evince.document_factory_get_document ('file: ///path/to/file/example.pdf...

php - map based on users ip -

How to create a user location map based on IP address. I gather the IP address of the users coming to the site and want to show the map based on my location which I had collected. Is there a map service that is available to use, I am better if we have to give anything to ask more questions. Thank you. see here: & lt; - This link is outdated and has been moved to this location: There really is no map question because you can only map the plot in other ways Use.

c++ - How do you verify a public key was issued by your private CA? -

I created a CA certificate, and anyone on it is used to issue public key in the future, I Verify that the loaded certificate was issued by my CA. How can I do this with the OpenSSL API (c ++)? I verification required minimum functions. C is lowered (openssl / apps /). Concepts: Certificates and CA certificates are both PEM format files, no CRLS or reliable list checks are required. Verify the call () with the path to your certificate and CA PEM files. Verify fixed int (const char * certfile, const four * cafile); Static X509 * LoadCart (const char * file); Fixed int check (X509_STORE * CTX, Const four * file); Int Verify (Const char * certfile, const char * CAfile) {int ret = 0; X509_STORE * cert_ctx = NULL; X509_LOOKUP * Lookup = Faucet; Cert_ctx = x509_STORE_new (); If (cert_ctx == faucet) goto end; OpenSSL_add_all_algorithms (); View = X509_STORE_add_lookup (cert_ctx, X509_LOOKUP_file ()); If (lookup == tap) goto end; If (! X509_LOOKUP_load_file (Lookup, CAfile, X509...