Posts

Showing posts from March, 2015

java - grails tag library question -

I am using Grails in an application that allows inline editing of data in the data grid. Some key areas can be defined and should not be editable. There is some example code from Tag Lives which I am using case "dropdown": outside & lt; & Lt; "& Lt; Select ID = '" + Prefix + ID + "' name = '" + Field Data Code +' '' & gt; " Outside & lt; & Lt; "& Lt; option value = '' / / & gt;" Def vals = fieldData.value.split (",") vals.each () {outside & lt; & Lt; "& Lt; option" + (value == this? "Selected": "") + "value = '" + + "' & gt;" + This + "& lt; / option & gt;" } Outside & lt; & Lt; "& Lt; / select & gt;" Breaking i Actually I have to add a class to the form element so that when it render, I can disable it using jQuery. Do I need an I statement fo...

sql - Get column names -

I need to get all column names in the table using VBA or Access SQL and repeat them for verification Does anyone have the solution to this, I have not taken any advantage to Google. this will work set db = CurrentDb () set rs1 = DB.OpenRecordset ("Table1") Set DAF field as DAO field for DMA. Next set in Rs1.Fields MsgBox (fld.Name) fld = None

Error: with request Oracle, hibernate -

मेरे पास हाइबरनेट अनुरोध के साथ एक त्रुटि है हाइबरनेट ऑपरेशन: क्वेरी निष्पादित नहीं कर सका; बुरा एसक्यूएल व्याकरण [में FE_TARIF_IDF tarifs0_ जहां tarifs0_.D_ANNE से D1_33_, D2_33_ रूप tarifs0_.D_NZONE, D3_33_ रूप tarifs0_.D_CTYPE_LOCAL, D4_33_ रूप tarifs0_.D_NTARIF_NORMAL, D5_33_ रूप tarifs0_.D_NTARIF_REDUIT, tarifs0_.D_NSURFACEMIN D6_33_ के रूप में के रूप में tarifs0_.D_ANNE चयन (चयन अधिकतम (exercice1_.D_CEXER) FE_EXERCICE_FISCAL exercice1_ से)]; नेस्टेड अपवाद java.sql.SQLException: ORA-00904: "TARIFS0 _"। "D_ANNE": अमान्य पहचानकर्ता [Ljava.lang.StackTraceElement; @ 853e51 मेरी तालिका D_ANNEE NUMBER (4,0) D_NZONE NUMBER (1,0) D_NTARIF_NORMAL FLOAT D_CTYPE_LOCAL VARCHAR2 (1 BYTE) D_NTARIF_REDUIT फ्लोट डी_एनएसयूआरएफ़एसीआई एमिन फ्लोट आपकी तालिका में "D_ANNEE" नामक कॉलम है नहीं कॉलम को "डी_एनएनई" नामक कॉलम है, जो कि आपने yoru क्वेरी में उपयोग किया है।

.net 3.5 - Sys.WebForms.PageRequest error -

I currently have a page that is flawed with the 500 generic code. I see for a step I tried or to talk to me in the direction of a possible solution that I have not yet thought. This error occurs when an AJAX button is clicked. The steps I have taken Check IIS logs, nothing found Event Viewer All security precautions were taken at the IE level, and no one was found. It was expected that this was an issue of issue Ajax Extensions 1.0 Any help would be great, Thank you very much App level tracing Enable me to see the underlying error then debug it from there.

c# - How to bind a WPF control value to a method? -

Imagine that I have a text box that this text should be equal to the number of processes running in the machine. How to update it without using a timer? Is there any way to use dependency assets or bindings? I'm not sure what it's binding with for a method. You have to call the system timer, just the same. You can set DataContext to an object which exposes a property with INotifyPropertyChanged and the data that you want (the recipient, can definitely call a method) Does. Without a timer, you will need an event in which your data object can subscribe, and then you can increase a notification that the interest of the property has changed every time the event is on fire, and that The UI element associated with the property will be updated.

exception - Is Java's EOFException exceptional? -

It seems dirty to use an exception that has reached the end of a file. Every file we read is finished, so it does not seem extraordinary or unpredictable. Apart from this, I do not like to use an exception for the non-efferent flow of my program. I'm talking about signaling the end of a data input stream: Imagine the file that is compiled with the following messages ... ----------------- ------------ ------- 2-byte LENGTH - - N-byte payments -, Where N = LENGTH; ----------------- ------------------ ... and Reading this file with DataInputStream: In DataInputStream = New DataInputStream (...); ... try {while (true) {short length = in.readShort (); Byte [] B = new byte [length]; In.readFully (b); }} Hold (EOFException e) {} ... In this example, an EOFException is thrown out by calling in.readShort () . Should I understand the number of bytes in the file, and in fact it should be read by the number of bytes (by total - = length by zero), and exit the while-loop ...

Using a TableName instead of Named Range in Excel datasource SQL Query -

In Excel VBA, I'm using Excel as a data for some queries. I am using the query sq = "[choose from name 1]" - this works But, instead I have the table I want to use the name Nammalang (Excel 2007 Tables) how do I use it? I tried to select from "[Table 1]" and I also tried to make a nimereng for this table 1 and did not work either .. Any thoughts please? You do not say that you are using the DAO or ADO to connect, but I do not think this is the case. I do not think it is possible to mention a table I have seen that all the documents list three types of categories: an entire sheet [sheet 1 $], the nominated category [nomre1], or an anonymous boundary [sheet 1 $ A1: B10]. I am able to give an Excel 2010 table a named range containing the header and that acts like any other named category, and it changes shape with the addition of lines Do that, if it's named a sheet level, then you do it like [Sheet 1 $ name category 1]. Here is the best ...

sorting - Wordpress: Sort Order by Custom Field Numerically -

How can I sort custom field data numerically that is stored as string I I will not change it in database can. query_posts ($ query_string. 'And orderbay = meta_qua and meta_key = price and order = dex'); This is what I am using but it is classifying it as a string because it is also stored as a string. Can anyone tell me how can I change it numerically without changing the database? Thanks in advance. Majhi You can do this string meta data with a race: $ codestr = "SELECT wposts. $ Wpdb- & amp; posts; posts wposts, $ wpdb-> postmeta Wpostmeta WHERE wposts.ID = wpostmeta.post_id and wpostmeta.meta_key = 'Price' and wposts.post_type = 'post' order by ABS (wpostmeta.meta_value) DESC "; If your meta value includes a dollar sign ($ 123.45), then you can cancel it by ORDER: ORDER BY ABS (SUBSTRING (wpostmeta) .meta_value, 2)) DESC

c - Allocate array from command line parameters -

I am working on a small application and I am capturing a value from the command line. I would like to capture the value and use it to initialize an array. Here's what I'm trying to do. int main (int argc, char * argv []) {int option = atoi (argv [2]); Int value [options]; ......} I am getting a compilation because my option variable is not a const error: error 2 error C2057: continuous expression of hope Is there any way I can do that? Thank you for your help! itemprop = "text"> If compilation is not known at the time, then you need to allocate memory to dynamic, Code> malloc : int main (int argc, char * argv []) {int option = atoi (argv [2]); Int * value = Molok (option * sizeof (int)); / * ...... * / free (value); / * Removing memory when you are done with it * /}

mysql - Delete statement in a same table -

I need to query a statement statement for a single table based on column positions from the same table for a reflected subquery is. I can not run a delivery statement directly and can check a condition for the same table in mysql for a correlated subquery. I know that using the temp table will affect the memory / performance of mysql Thanks. Any help would be appreciated. Your question is not really clear, but I think you have a correlated subkey and you have been locked by DELETE from the same table, which is SELECT one. For example, everyone has to delete the most recent revision of a document: Remove from document_re revisions d1 WHERE edit_date & lt; (Document MAX_revisions d2 WHERE d2.document_id = d1.document_id to maximum MAX (edit_date)); This is a problem for MySQL. Many examples of these types of problems can be solved by using MySQL multi-table removal syntax: Remove from document_reventions D1 Joint Document_Review D2 On d1.document_id = d2...

python - What is the most efficient way to get first and last line of a text file? -

I have a text file that contains a time stamp on each line, my goal is to find time slots all the time in order Therefore, the first line will be the earliest time and the last line will be the latest time. I just need the first and very last line, what would be the most effective way of getting these rows in Python? Note: These files are relatively large in length, each have about 1-2 million lines and I have to do this for several hundred files with fname ('fname', 'rb') in the form of FH: first = next (FH). DCDA (FH.Sec (-1024, 2) final = FH.Redline () [- 1] .decode () Here the variable value is 1024: This represents the average string length Does. I choose 1024 only for example. If you have an average line length estimate, you can use that value time 2. Since you have no information about the upper limit for the length of the line, the obvious solution will be above the loop file: for the line in the file: pass = Line You do not have to both...

vb.net - What is the official name for this syntax feature? -

What is the name of the character at the end of each of these lines? Just as integer = 1I short _ shortcode as shortcode = 1s slow _ long as long = 1 l slow slowness single = 1.0F decimal _double as decimal _double I always like these "type" specifiers. I think this is wrong because I am unable to find the official document using this word. I would like to know what is available to others. But I can not find the right words to use in my search According to VB.Net, they are called "literal types of letters" "forced".

ASP.NET MVC 2.0 Custom Client Validation -

I am trying to create a valid user who will make sure that at least 2 items are selected correctly on verifier server side Works the way but the client side code is never executed. Here is the code: Sys.Mvc.ValidatorRegistry.validators ["country"] = function (rule) {var min = rule.ValidationParameters ["min"] ; Return function (value, context) {If (value> = minute) is back true; Return rule Error message; }; }; And here is the valid code: Descent of the public class: Data Annotation Model Delegator & lt; Custom Validation Country Asset & gt; {Private Ent_minimum; Private string _message; Public Contributor (Model Metadata Metadata, Controller Consultant Context, Custom Validation. Country Attribute Attribute): Base (Metadata, Context, Attribute) {_minimum = attribute.Minimum; _message = attribute.ErrorMessage; } Public override IEnumerable & lt; ModelClientValidationRule & gt; GetClientValidationRules () {var Rule = New ModelClientV...

google app engine - datastore.Cursor - paging in reverse supported? -

I'm looking at the document to use cursors. Are these only forwarded cursors - can not we get behind the page ?: cursor cursor = cursor.frame webstuff (cursor string ); Maps & lt; String, Object & gt; Extensionmap = new hashmop & lt; String, Object & gt; (); ExtensionMap.put (JDOCursorHelper.CURSOR_EXTENSION, cursor); Query.setExtensions (extensionMap); Query.setRange (0, 20); Can we set limits in (-20, 0)? I think the user can go to the previous page of the elements as well as forward. No, there is no way to go back with the cursor with the current release. You can "fake", however, caching the previous cursor. Note: At some point in the future app engine, the reverse cursor is also expected to be supported.

android - add/delete/modify values in "default.properties" -

How do I add / delete values ​​for "default.properties" for Android? Any example: Thank you, Sana. What I have read with your comment is that you want to check that an application is for the first time Whether or not it's being played Use Android preference for this: Check that some value is shared in shared Reference prefs = PreferenceManager.getDefaultSharedPreferences (this); Int value = prefs.getInt ("Fursten"), -1); If this is the first time you run what you want: if (value == -1) {// do sth SharedPreferences.Editor Editor = Edit Prefs (); Editor. InputInt ("Fursten", 1); Editor.commit (); }

vb.net - How to extract image from embedded resource programmatically in VB .NET -

I have a small vb.net app, which has some images in an embedded resource. Is there one way I have one of those pictures in one which is in the resource, to remove a folder from a folder, choose a folder I can choose a folder and remove the image. Resource images can be simply saved from exe file name to get "SaveFileDialog" control Use the. PrivateSet Button 1_Click (System.Object ByVal Sender, ByVal e. System.EventArgs) Handles Button 1. Click SaveFileDialog1.ShowDialog (End End) Private SubSaveFileDialog1_fileAak (System Submitter, Object and System as ComuneModel.CanelAventArgors) handleSaved fileDialog 1 .FileOut My. Resources. Image 2 Save (SavefileDialog 1.Filename, Drawing Imaging.IfFormat.GIF) End Sub

uml - Which tools do you recommend for java round-trip-engineering? -

I have sequence diagrams and vice versa- that is, the sequence diagrams from the code would be fine if it would be free and better that it was an eclipse The plugin was! Altova UModel can generate sequence diagrams from code, but I have no point from the opposite direction Appears. Anyway, UModel has a 30-day free mark and it really is a great tool so you should check it out. here

ipad - Drag an imageview cross boundaries of views -

I have a UIImageView in the top part of my main view. It is a horizontal bottom with many UIImageViews included in UIScrollView. I am trying to drag UIScrollView from one of the UIImageViews to the main UIImageView in the upper part of the screen. However even if I'm pulling UIImageView in Bring VivToFront, does it do two unexpected things? Can I just drag UIImageView vertically, as soon as I wander the UIScrollView creatures to scroll left or right? As I have placed the UIImageView on the main UIImageView to slide it down, even if I have said BringViewToFront? Any thoughts? Thanks

c++ - How to deal with failed constructor when throwing exceptions is not allowed -

I was looking at the Google C ++ style guide and they decided, instead of relying on prices instead of relying. My question is how do you face failure in the consultants in this matter, because you can not return any value to it. Thank you! My first trend would be to take the failure point from the constructor, and create an initialization method. In this way, you can create your own object without fear of failure, then call the init () function This task can return something like success / failure, for example -1 if Failure occurs. Yes this is an extra step, but it has been unable to make you a constructor fail

php - Allow anonymous users to edit their content? Drupal module, ideas -

I have a custom content type that is also allowing anonymous users to create a Duplicate I Since they are "anonymous", I think there is no way for this. I would like to give it the ability to publish it even after coming back and editing its creations. Droepal permission system that originally created it to tie the contents back to the user. Where does it leave me? Am I thinking something with browser lines or those lines? I'm not sure. Is there an existing module that can help with it, or might consider making a new one? In Drupal or in any system, in fact .. best to rely on your key and experience. For this, it is easy to register them in Drupal, if someone is Anon, then they are UID 0 and there is not much left to them about. Another user told in another post that Drupal does not track session ID for unknown user objects, so you have to work with a few sessions. Session_id (). I can see why you should have a little obstacle post but it can be a managem...

javascript - How do I access form element values using ruby without submitting the form? -

OK, I still have a comprehensive Ruby app behind Ruby running Ruby, this app needs input , But when I update the text box, I do not want to refresh the page. What do I mean: I have a form that has two text boxes, one is called "starttime" and one is called "endtime" I pressed a button in some way When the value of these text boxes (which are typed in a user) needs to be found in Ruby. Is there anything equivalent to the JavaScript documentation? Format.starttime.value command but for Ruby? Or is there any way to submit form data, retrieve it, but do not refresh the page like using AJAX? I know that Ajax is used to manipulate DOM dynamically without refreshing the page, but I really need to retrieve the data. Any help would be greatly appreciated, I can not find it anywhere. You can do it very easily. Give the start time and end time form elements a different ID (I use start date and endDate below) and you can easily retrieve them, then You can send da...

mysql - Even the most simple query takes half a second on to any table -

I created an Inodb table with the ID and name columns and started this query Insert test (name) values ​​('test'); takes .5 seconds Even select ID from selection range 1 or select1 takes 5 seconds or so about any suggestion In which I can improve it speed will be useful. I think that these questions should not be taken for .05 seconds or more. The server did not get help from restarting and testing / repair / analysis. Is there anything like checking base query time? Which means that a query can run fast? I wonder if the server is slowing down, the weight average does not say that it comes in use. I am using mysql query browser to check these statuses. How far is the distance from the server (network-wise)? If "select 1" is taking 0.5 seconds, then your round trip database server is about 0.5 s.

iPhone/iPad app using keyboard shortcuts? -

With the availability of keyboards for the iPad and iPhone, it is now possible to add keyboard shortcuts to the app. Is it possible to do this in an app? What are the related APIs? Although this question is quite old, Apple has added support for keyboard-specific shortcuts in iOS 7. See the UIKit framework for special support for hardware keyboard shortcuts. There are high level steps for us: Use the static key Medium Input: Modifier Flex: Action: to make the code a code UIKeyCommand UIKeyCommand for the specified key with the Modifier on the Note that any keyboard shortcut (such as Command-C duplication) that will be handled by the system will not work. You will also pass an action selector which will be called during the use of keyboard shortcuts Associate your newly created UIKeyCommand with Responder Objects by returning from the Responder object KeyCam property When the key is pressed, your selector will be called.

objective c - AVFoundation question - iPhone SDK -

What is the best way to capture the succession of images from the camera using the AV Foundation framework? I am only interested in supporting an iPhone 3G Does anyone have any experience with it? Along with the maximum supported resolution and frame rate as well as in the wrong hardware capabilities (auto focus, torch, front camera etc.) If you are a registered developer, you can see the Session 40 9, they present some slides of WWDC () where they compare the boundaries and limitations of different devices. This presentation also shows all the materials needed to capture the succession of pictures.

haml - Rails: SASS not creating the CSS files -

The SASS is not producing CSS files, but HAML is working just fine. I have the following order: $: sass --wak skes: stylesheet [true, ["scs", "stylesheet"]] My main .scss file contains the following: / * main.scss * / body {background: # 000000; } The main .css file is never generated, so I did the following: $: sass --update nomethodError: the undefined method for zero 'Split': NilClass Use --trace for Balance I created haml and HAL-Edge This is the one. Probably will be disposed of tonight or last night.

c++ - boost doxygen documentation -

I'm trying to generate doxygen documentation, to browse one source tree and to man documentation in the form of. However, IOB Power 5 is going on in the last week or so, and I do not know that right now (I'm on boost_1_43_0 / boost / mpl / ). Is there a pre-liton docsignon documentation, if not, is there any way to speed up documentation without losing code in the browser without losing cross-referencing? I am using old documents located on the Tennessee SDA, but this is very old. Thanks I agree with you. However, the complexity of can not parse C ++ which uses Boost. Finding the source with a powerful IDE is the best bet.

android - When should I close the cursor that I supply to ListView -

I provide a cursor with a ListActivity like this: My question is: When I am doing my cursor should stop? cursor cursor = getContentResolver (). Query (yuri, empty, empty, empty, zero); If (cursor! = Null) {mCursorAdapter = New cursor adapter (this, cursor); SetListAdapter (mCursorAdapter); } Thanks. on desktop () . Soon, if you are leaving the list, call or the start cursor (cursor) , and Android will shut it down for you. , Is safe to do so.

Netbeans installer -

I downloaded Netbeans IDE 6.9 for Windows. But I can not get the installer option where it says that there is one, it also says that "Netbans platform-based applications make installers for the most common operating system." Why do not I have This property page is the 'module suite' project and The 'NetBusiness platform application' is related to the project. module suits' or 'Netbeans module-> Netbeans platform app' After creating the project, you need to manually activate the "NetBusiness Plugin Development" module. trigger plugins items on the Tools menu. Select the installed scene. Tick the Show Details check box. Scroll through NetBusiness plugin development through the list Tick the check box Press the active button I requested that manual activation looks like a usability big. TML

blackberry - how to end a thread when it is in sleep? -

I am creating a project in which I decrease the schedule after some time, I calculate the time that the method of sleep In time if I change time again, then I want to end the last thread and start a new thread. That is why I want to know how it is in the method of sleep, to finish it without executing the method of running it. When I'm programming for Blackberry, do I believe in Java? If yes, then do not wait for thread.leep () , but do not use wait () on a monitor, which you Then can notify all () , ie private object waitObject = new object (); Public Zero doWait () {synch (waitObject) {waitObject.wait (10 * 1000); // Wait for 10 seconds}} Public Zero Outgoing Up () {Synchronize (Waiting Object) {waitObject.notifyAll (); }} Synchronized blocks are important, because you need to be the owner of that monitor that you want to wait or inform on Are there.

java - Hibernate annotations and foreign key relationship -

I have an annotated domain object for hibernate support like this. @Entity @Table (name = "INPUT") Public Classroom AppInput {/ ** * Unique ID * / @ Id @ GeneratedValue @ column for this request (name = "INPUT_ID") Private long request id; / ** * * / @ column (name = "EMAIL_ID") Private string email id; / ** * * / @ column (name = "REQUEST_DATE") Private date request date; / ** * * / @ column (name = "INPUT_STATUS") Private variable status; / ** * * / @ column (name = "EXPECTED_ORDER_DATE") private date expected ORDDt; // Getter and Setters} Property email ID is a foreign key that is to call the email ID in the user table. Let's say I like AppInput.java Personal User userDetails; I add an asset to , how do I annotate it, so whenever I take the input from DB, the related user details will also populate? property emailId is a foreign key that refers to calling the email id in the user table Used to be. T...

javascript to find the caller div. (or any other dom object) -

मेरे पास निम्न HTML पृष्ठ है: & lt; div id = "a" onclick = "javascript: क्लिक करें ();" & gt; & lt; / div & gt; & Lt; div id = "b" onclick = "जावास्क्रिप्ट: क्लिक ();" & gt; बी & lt; / div & gt; & Lt; div id = "c" onclick = "javascript: क्लिक करें ();" & gt; c & lt; / div & gt; अब, जावास्क्रिप्ट फ़ंक्शन: फ़ंक्शन क्लिक करें () {// मुझे कैसे पता चलेगा कि यह 'a', 'b' या ' सी 'कॉल करने के लिए मुझे} क्या किसी को पता है कि (प्रत्येक ब्राउज़र में) कैसे पता चलता है कि' कॉल 'क्लिक समारोह में कॉलर क्या था? बहुत धन्यवाद एरिक इस की तर्ज पर कुछ: js: फ़ंक्शन क्लिक करें (एएमएम) {चेतावनी (elem.id); } html: & lt; div id = "a" onclick = "javascript: क्लिक करें (यह);" & gt; एक & lt; / div & gt; & Lt; div id = "b" onclick = "जावास्क्रिप्ट: क्लिक करें (यह);" & gt; बी &...

wordpress - CSS Dropdown Menu Problem -

मुझे अपने Wordpress डिज़ाइन में समस्या है, ड्रॉपडाउनमेनू के साथ विशेष। इसे देखें, मेन मेन्यू में "वर्सिचुर्गेन" देखेंगे, मैंने सभी तरह के सभी संयोजनों को z-index के साथ ... बिना परिणामों के प्रयास किए। : thx यदि कोई इस मेनू के लिए कोई अच्छा विचार है, पाठ "itemprop =" text "> मुझे इसके लिए कारण समझ में नहीं आ रहा है (हालांकि मैंने इसे शोध नहीं किया है; शायद एक अधिक अनुभवी उपयोगकर्ता मुझे बता सकते हैं), लेकिन z-index गुण केवल तब ही सम्मानित होता है जब तत्व नहीं स्थिति ed स्थिर सहयोगी होता है आपकी समस्या को जोड़कर तय किया गया है #mainmenu {स्थिति: रिश्तेदार; } तो स्थिति: सापेक्ष; के लिए #mainmenu को शामिल करके (your declaration style.css की रेखा 46 पर शुरू होता है)।

javascript - calling remote pages causing problem? -

I am getting this error while loading a remote file in my page while using AJAX. Absent controller Error: CbcController not found. Error: Create class CbcController at the bottom of the file: app / admin / cbc_controller.php Notice: If you want to customize this error message, then create App / Scene / Errors / Wrong_translator. TTP Suggest some solutions. Thank you .. This is a question that has been asked a little later, Which I answered.

php - How to upload photo from given folder path -

I am using PHP 5 and I want to add photo upload from album when I click on this link, a photo browsing window will open & amp; It will only include photos of the specified photo album folder. Like Facebook link to upload photos from your photo album Thank you. I'm not sure what the question is here, because writing will take some serious time, so far That also for advanced developers. You can probably find out about browser windows and in particular. With it, you can create a div in PHP which reads the user's photo library and writes it in. Then, with jQuery, you can dynamically open and close div as a popup. jQuery implements some clean functions with which you can click on a user in a popup and then send it back to that PHP-file, where you want to upload that photo. Nevertheless, with that Wave Notice, you really should consider taking out some solutions from yourself and if you have to face problems that are more specific, a special functionality, ...

iis 7 - Creating nested virtual directories in IIS 7.5 \ C# (.NET v4.0) -

I created a Windows service, with a constant interval that checks some lines in DB, and virtual directories in IIS Makes "IIS: // localhost / W3SVC / 1 / root /" + vdName / P> As written, the virtual directory has been successfully created, but in the root folder of my website in IIS. My goal is to create those virtual directories, my other web-application What should be the correct path? I think it should be like the following: "IIS: // localhost / w3svc / 1 / root / [Other virtualdir] / subdirectory1 / subdir2 /" + vdName But this upset does not work :) (.NET v4.0, IIS 7.5, Windows 2008 R2) Thanks advance! Girl. I think what directory you need is the virtual directories on the tree leaves. If your web files are located on '/ root /' then you can point multiple IIS sites to different folders. Take site 1 as an example. / root / Site1 / This site may have an array of folders. Then you can put virtual directories in...

java - How to run program that sends bills to customers once a month? -

I have a table in the database that is with users and their expenditure for travel. I am using GWT and trying to run a code once a month, which would inquire the database and send the bill to the customers PDF. I know how to create PDFs and send email from servlet. How is a program run in Java (or some other scripts if Java is not possible) which will run once a month? Tnx Unix and derivatives: use cron -> Windows: Use the task scheduler -> If you want to get fancy and do it purely in Java: ->, but consider the first OS scheduler.

java - Android 2.1 & HTC Desire: Is there a bluetooth problem? (CorruptedStreamException) -

I have created an application that is using Android SDK 2.1. This app uses Bluetooth to connect to multiple devices. I have 3 HTC Dreams (Google G1) as a test device. The application is actually running fine on them, they are rooted and Android 2.1 is running on them. If I connect to my HTC Desire (Android 2.1 Update 1), the streams are always closed while studying from the Bluetooth socket, if Conneton over 1 Bluetooth is thrown open exception IOException and a spoiled stream Exception is there. A similar problem is that sometimes I can not connect to other devices with my HTC desire, whereas the other way of connection is fully working. Is there a problem with HTC Desire with Bluetooth and Android 2.1 Update 1? The Bluetooth SPP profile is broken in HTC Desire and there is a buggy implementation in it. Cheers, Madhu

unit testing - Visual Studio Test Project -

I created a new MVC2 project and also created a test project in my solution. I have not done anything for the default tests so far nor have I experienced them. I have seen a webinar on the web test and using the test professional to measure the performance. Are they totally different? Can the test project be used by a test professional within my solution, or is this test good for only Visual Studio / Developer? I have read briefly that you can use Team Foundation Server to collaborate on testing but this is not an option for me at present and then, I am not sure if it will be helpful Because I do not know that test made in VS can be used in Test Pro. Answer your question in the section: to: To use Visual Studio Test Professional 2010 to run an active Visual Studio Team Foundation Server 2010 (TFS) example in order to link if no TFS 2010 server is already available in your group For the purposes of evaluating the Test Professional Trial, we will give you basic installat...

Psake nested build does not fail -

I have a fairly simple sketch build script (default.ps1) that calls to Aage-Skak within one of the calls is. Something like this: (default.ps1) . . \ Utilities.ps1 Properties {... define some properties} Functions default - Step 1 Workstation 1 {Annuity-Sky Script 2.ps1} The second creation is the function of the script And its point (script2.ps1) . . \ Utilities.ps1 Properties {Define} Function Default - Depend Script 2. Create Schema Work Script 2. Crescakma {Invitation-SQLCMD .... (Parameter)} Work Work fine; Invoke-Sqlcmd call works. The problem I am facing is that if for some reason the script2.CreateSchema operation fails, then Psake still reports that the build succeeds in the child's script Failure to work is not bubbling on the parent script, as the creation of Psake fails. Anyone walked into this? Is this possibly a problem with Psake's new Nested Build feature? Psake v4.0 PowerShell v2.0 this obvious form There is a problem in Psak...

hardware - Translating a VHDL monitor into a PSL assertion -

I have an interesting question about the PSL claim. Here is a VHDL monitor process. This is a process which is dedicated to an accused, and thus is a non-synthesisable, this monitor examines the existing FSM state and stores the value of two registers: " Input 1 "And" reg136 ". Finally, it starts the " emphasis " statement to compare the prices of these registers. process (clk) variable var_a: signed (7 down down to 0); Variable var_b: signed (7 down 0); If it is starting (rising_ege (CLK)) then the case happens when s0 = & gt; Var_a: = signed (input 1); When s22 = & gt; Var_t34: = signed (reg136); When s85 = & gt; By emphasis (var_t34 & lt; var_a) report "Apprehension XXX failed: (t34 The question is: Is there a way to translate the monitor into a PSL (Property Specification Language) claim? Important : Registers "Input 1" and "Reg 136" can be read only when FSM State is on SK and S22, respectivel...

Eclipse Warning with Java HashMap -

Eclipse is saying "Hashmap is a raw type" when I use the following code hashmap = new hashmap (); Any thoughts can be wrong? will accept edit: actually, when you go to Java here I will also give an example: Say that I want to map somebody's name to their person object: map & lt ; String, person & gt; Map = new hashmap & lt; String, person & gt; (); // map.get method now comes back to a person // map.put method now requires a string and a person is checked in these compiled time; How Java generates this type of information is lost on run-time.

Compress and decompress XML in Flex and Java -

itemprop = "text"> I want to do XML in Flex, send it to Java, to decompress it in Java and it will be re-compressed in Java Please send it again, flake it, decompose it and use it. How do you Just use an AMF gateway that is a binary format and gives very little transfer sizes for your data. Look at Blazads and / or Live Cakal I believe it is possible to send an XML to AMF Gateway, although most of the time I translate "backed object to oblase object", take advantage of the built-in

c# - Factory Pattern but with object Parameters -

itemprop = "text"> Take the following classic factory patterns: public interface IPizza {decimal value {get; }} Public Square HamAndMushroom Pizza: Ipiza {decimal ipizza.price {get {return 8.5m; }}} Public Intangible Classroom PizzaFactory {Public Abstract IPizza MakePizza (ItalianPizzaFactory.PizzaType pizzaType); } Public class ItalianPizzaFactory: PizzaFactory {public enum PizzaType {HamMushroom, Deluxe, Hawaii} Public Override IPizza MakePizza (PizzaType pizzaType) {Case (PizzaType) {Case: PizzaType.HamMushroom: New HamAndMushroomPizza Return (;); Case pizza type Hawaiian: Return the new Hawaiian Pizza (); Default: New argument throwing exception ("Pizza type" + Pizza type + "Not recognized."); }}} What if there is a specific requirement for concrete implementation on the creation of a parameter (or several) of concrete pizzas. For example, suppose a parameter called the HamAndMushroom factory, requires MushroomType and would require an...

Plotting to a file in R -

I am a complete newbie for R, and I have not seen any introduction how to use R when you All you have got is a command line and no window system. My data is on the server, and I am working with it via ssh. In Gnuplot, you can set your "display" to be a PNG file on the disk. How do I plot some files on disk from R? R-2.9.1 on the Saint-Os, if it matters. Thanks! (Sorry if this is abnormally original, but I have the worst time of googling for quick reply with R. cute name, for which it is impossible to find.) Keep in mind that postscrpt () , pdf () , png () , and jpeg () are specific function parameters that can be used to customize the output. For example: postcript ("Filename.eps", horizontal = F, width = 4, height = 4, paper = "special", a file = F ) Plot (x) dev.off () Check In other words, keep in mind that all the orders you want to include in your saved conspiracy, They should be executed first. dev.off () For example: ...

asp.net - What's the easiest way to test a .NET SAML client? -

I have to add SSO to an ASP.NET app using SAML. Customers will not provide access to their Shibolate identity provider for testing, so I have to verify that the SSO itself works. What would be the simplest way to setup / setup a SAML identity provider for testing? I am planning to use the SAML component

WCF customUserNamePasswordValidatorType -

I have a custom user name password wiatator and I want to set service credentials in the code in an IServiceBehavior ApplyDispatchBehavior () implementation. I am If I set it to code like this then the problem is that the verifier is never executed: serviceHostBase.Credentials.UserNameAuthentication.CustomUserNamePasswordValidator = new BigIPUsername PasswordValidator (); ServiceHostBase.Credentials.UserNameAuthentication.UserNamePasswordValidationMode = Username Password ValidationMode.Custom; If I set it to Config, then it does: & lt; ServiceCredentials & gt; & Lt; UserNameAuthentication userNamePasswordValidationMode = "custom" $ customUserNamePasswordValidatorType = "Quad.WCF.Security.BigIPU Name Name PasswordValidator, Quad.WCF" /> & Lt; / ServiceCredentials & gt; Behavior is set as a feature on the service class and if I set a breakpoint I can see it by executing the code above. In this I understand everything should ...

android - Protecting An App For Market -

I am working on my first Android app, and I'm almost at that point where I think of putting it up I can start the market as a paid app. In the process of researching this step, I came to know that it is basically trivial to break Google's copy security plan. I do not know exactly how big a problem it is, or if we Any other kind of protection is needed. Obviously, an offfuctor is like a good first step like Progee, but how will you go about saving your application from leaving the wild? Second, in addition to encrypting content (which is difficult because the decryption key is also stored in the program) how do you dump any content of a sqlite3 database? Just today Google released a new licensing service description that is to be copied for the copy protection details. Check here:

c# - IIS7 can't find COM Object as registered Cassini can what am I missing? -

I have changed my Visual Studio 2010 to access your local IIS7 instead of Cassini for your WCF service. When I test in debug mode in Cassini, I have no problem in starting Redemption.dll. When I IIS7 is using the virtual directory to view the Project Properties studio switch I start debugging and step in and finally through my code again tried to illustrate Redemption.dll and I get this error ... COM class is an exception not registered 80040154 class (HRESULT :: 0x80040154 (REGDB_E_CLASSNOTREG)) CLSID {741BEEFD-AEC0-4AFF-84AF-4F61D15F5526 factory for component with} failed due to the following error . I sure found that I sign in to make a reference in VS2010 and I is the path that it is actually in registration registration canceled and again. Then I tested it in Cassini and no problems went back to run Visual Studio in IIS7 I got the same error. So I'm sure it's registered. I have run AppPoolIdentity, MyOwnAdminAccount, local system default, and finally NetworkServi...

objective c - Which app has keyboard focus? -

Programs in Cocoa / Objective C is to find out which app or process the keyboard focus is. This is a 'hit-test' 'Can be done, but I'm not sure at all. I also need to get the keyboard ID number of the keyboard focus and the app title of the app. Purpose C or C Only Please! Snippets appreciated! You can use to find front applications. It can be used to look inside the app to get window titles and so on. Another option is to use the CGWWO Leopakwu WindowOnFFO function to get the list of all windows

encryption - How can I store music on an android phone without allowing the user to be able to download it and use it? -

I am working on an app that connects to the site that provides the site and the MP3 files in the user's phone Downloads I want users to be unable to copy these files from the phone, but only listen to them through my app. I am currently trying to encrypt the files and decrypt the files using DES and encryption in the bits in the app though this is not working. Is there a better way to achieve my ultimate goal or is there a solution similar to that of someone else? if you ds (A private key or symmetric-key algorithm), then you need to store the decryption key in your app. Remember that this is a byte code by Android, it is easy to separate to retrieve the key. Think about the other.

what's the default size of hibernate.jdbc.fetch_size? -

By default we know, the size of most jdbc drivers to fetch is 10. Does anyone know the size of the default hibernate, namely hibernate.jdbc.fetch_size? itemprop = "text"> Actually, use all configuration settings for an ohcSettings example goes. This is done by ohcSettingsFactory # buildSettings () method that is included in the following lines: Integer statementFetchSize = PropertiesHelper.getInteger (Environment.STATEMENT_FETCH_SIZE, Properties) ; If (statementFetchSize! = Null) log.info ("JDBC result set fetch size:" + FetchSize statement); Settings.setJdbcFetchSize (statementFetchSize); Then, a zero value is allowed, it will not be translated and will be "publicized". This setting is used in ohjAbstractBatcher.java # setStatementFetchSize : throws private set of setStatementFetchSize (PreparedStatement statement) SQLException {integer statementFetchSize = Factory.getSettings () getJdbcFetchSize (). ; If (statementFetchSiz...

iis 7 - FTP Error 530 User cannot login -

I set up a new FTP site with IIS 7.0 for Windows Server Web (64-bit) version FTP to set up FTP I am trying to But when I try to login to this site, I get an error. But I can log on to my other FTP sites Also, when I select this website from the IIS Manager, the FTP section does not display in the middle section, although it appears in the action panel Does. And I can not successfully enter this FTP site as well. I have checked and I have logged on locally selected. I do not have permission for anonymous connections I have also restarted my IIS and FTP services. One different thing is that in the IIS I have to work differently from the other site about this website, FTP has to do that it has 3 virtual directories below one site. And when I click on any one of these 3, then the FTP strip appears in the center panel. Can understand? How can I debug the cause of this error? Can you use any SW tool? Did you try to log in to the FTP server? If you do this, and "Show ...

c++ - How to deal with different ownership strategies for a pointer member? -

निम्नलिखित वर्ग संरचना पर विचार करें: वर्ग फ़िल्टर {आभासी शून्य फिल्टर () = 0 ; आभासी ~ फ़िल्टर () {}}; वर्ग फ़िल्टरचिह्न: सार्वजनिक फ़िल्टर {फ़िल्टरचिह्न (संग्रह & lt; फ़िल्टर * & gt; फिल्टर) {// प्रतियां "फिल्टर" कुछ आंतरिक सूची // (संकेतों की प्रतिलिपि बनाई जाती हैं, खुद को फिल्टर नहीं)} ~ फ़िल्टरचिह्न () {// क्या करें मैं यहाँ क्या? } शून्य फ़िल्टर () {// अनुक्रम में फ़िल्टर निष्पादित करें}}; मैं एक पुस्तकालय में कक्षा को उजागर कर रहा हूं, इसलिए मेरा नियंत्रण नहीं है कि इसका उपयोग कैसे किया जाएगा। मुझे वर्तमान में कुछ डिज़ाइन समस्याएं हैं फ़िल्टर ऑब्जेक्ट्स फ़िल्टरचिह्न के स्वामित्व के संबंध में पॉइंटर्स धारण कर रहे हैं अधिक विशेष रूप से, यहां FilterChain : परिदृश्य ए के लिए दो संभावित उपयोग परिदृश्य हैं: मेरी लाइब्रेरी में से कुछ फ़ंक्शंस, एक (संभवतः जटिल) फ़िल्टर श्रृंखला का निर्माण कर रहे हैं, आवंटित आवश्यकतानुसार मेमोरी, और एक नए-आबंटित फ़िल्टरचिह्न ऑब्जेक्ट वापस लौटाने के लिए उदाहरण के लिए, इनमें से एक फ़ंक्शंस फ़ाइल से एक फिल्टर श्रृंखल...

html - problem with passing variables with php -

I am trying to exceed the variable using "get" in php but ran into a secretion. Here is my PHP file: & lt ;? Includes Php '../includes/header.php'; ? & Gt; & Lt; Div id = "page" & gt; & Lt; Div id = "content" & gt; & Lt; H3 & gt; & Lt ;? Php $ _GET ['head']; ? & Gt; & Lt; / H3 & gt; & Lt; Div id = "screenshot" & gt; & Lt; Img src = "../pictures/site/"> Php $ _GET ['img1'] ;? & gt; " / & Gt; & Lt; Img src = "../pictures/sites/"> Php $ _GET ['img2'] ;? & gt; " / & Gt; & Lt; / Div & gt; & Lt; Div id = "description" & gt; & Lt; P & gt; & Lt ;? Php $ _GET ['p1']; ? & Gt; & Lt; / P & gt; & Lt; P & gt; & Lt ;? Php $ _GET ['p2']; ? & Gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; & L...

iphone - OCUnit Error Codes -

How can anyone know a list of all possible error codes applied by the ostest utility , And their meaning? I saw this as a common problem for people, where they ask about an OCUnit failure with some code 138 or 139 which is completely opaque for them, and the person facing a particular error number Tells a clear problem, which can be easily asked if they know what to look for. But Google, ADC and man pages are silent about all these error codes. I was hoping someone has a list or header file that underlines them all, not only will it help me solve my special issue now (a mysterious 132 is happening), but I think it is a common interest Will have to. Thank you! In ocuet failures of 138 or 139, just a normal something went wrong in my experience, I We found that these errors occur when there is something wrong in the runtime, so your code is okay, but when it is run in OCUnit, it crashes. Unfortunately, the comfort is not known where it is. I gave detailed information to ...

objective c - Can I use a category to override a method which is itself in category on the superclass? -

@interface माइस्परक्लास: NSObject {} @end @interface MySuperclass (MyCategory) - (शून्य) myMethod; @end @ इंटफेस माइस्ब्स क्लास: मायस्परक्लास {} @एंड @ इंटफेस माइस्ब्बैसलाइज़ (मायऑपरएक्चर) - (शून्य) मेरी मैथ्यू; क्या यह परिभाषित किया गया है कि मेरे-मैथि को कार्यान्वित किया जाएगा? Kochan प्रोग्रामिंग में उद्देश्य सी में बताता है कि: अगर एक से अधिक वर्ग एक ही वर्ग के समान नाम के साथ एक विधि घोषित करता है, तो यह परिभाषित नहीं किया जाता है कि कौन सी पद्धति को लागू किया जाएगा। लेकिन मुझे यकीन नहीं है कि सुपरक्लास पर एक श्रेणी को इस संदर्भ में एक ही कक्षा में एक श्रेणी माना जाता है। हालांकि मैं कोई संदर्भ नहीं मिल सकता है, मुझे लगता है कि यह स्पष्ट है कि MySubclass (MyOtherCategory) में कार्यान्वयन प्राथमिकता लेता है श्रेणी के तरीकों को उस विशेष वर्ग में जोड़ दिया जाता है, इसलिए "मायऑपर कैरेबियन" कार्यान्वयन आपके उप-क्लास से संबंधित होगी, और संदेश प्रेषण के दौरान सुपरक्लास पर जाने से पहले उसे देखा जाएगा। जैसा कि बताया गया है उद्देश्य सी मैनुअल, कोको में कई ...

delphi - how can i install shineOn in Delphiprism? -

How do I install shineOn in DelphiPrint? I download the ShineOn package to use the old Delphi functions like Itotoster and ... but I can use or add to my Delphi area. Please help me. Regards Download zip from here: In this you will fix two Right click on Dlls, your projects 'References' tab, and press 'Add Reference', you want to select DLL (probably RTL, VCL). Then add ShineOn.Rtl or ShineOn.Vcl to your usage list.

How to bind to running android service? -

I hope this is a problem with anything other than code and I'm hoping that there is no help from that Can track the problem. I have another code that starts the service with startService () and I can confirm that the service has started because the debugger hits the oncond () function of the decoder service. However, the bindService is not connected to the running service. Is this an asynchronous call and I have to wait to finish something? The result of the public class increases the activity (Secure Zero Restart ()) {// The Two-Auto Auto-Generated Method Stub Super. Rebirth (); Intent decoderient = new intent (this, decoderseva class); _isBound = Binseva (Decoder Intent, Mconction, Context. BIFATOOCRert); _textView.start (_mBoundService); } Private Boolean _isBound = false; Private decoder service _mBoundService; Private service connection mConnection = New service connection () {Service connected on public wired (Component name class name, IBinder service) {_mBoundSe...

testing - Is there any jquery simulators where I can practice usage of selectors -

I tried searching on the net but I could not find any jquery simulators. By Simulator, I mean a page where I can write jquery code and see what it is executing, what has been selected, how the jquery selector works Is there something similar on the net? Thanx Marco I have an excellent tool for this :) Here is a base Bella I use which is jQuery, jQuery UI and a jQuery UI theme / CSS already included: It has a version with some simple content: You can use Bella to test any HTML and CSS with any major javascript frameworks along with the answers to the questions you have here. Even with personal and commercial use ... well, I have yet to find something better, or really come very close.

Compiling content of directories/wildcard to SWC using Flex compc ant tasks -

Here I usually write compilation functions: & lt; Compc - signals = "true" included -class = "class 1 square 2 com pocket class 3" output = "$ {module.output.dir} /output.swc" fork = "$ {flex.fork}" maximme = "256m" & gt; & Lt; Source-path path-element = "$ {module.basedir} / src" /> & Lt; / Compc & gt; Whatever I see is a way of compiling the whole director of classes without specifying each class. I'm sure there is already an option for him, but I could not find the exact syntax. Thank you in advance!

tsql - how to union this query -

नवीनतम जॉब के साथ (SELECT * FROM (चयन एआईडी, स्थिति, प्रारंभ, समाप्ति, स्पेशलाइजेशन आईडी, ROW_NUMBER) (द्वारा सहायता आदेश PARTITION मामले से जब ENDDATE शून्य है तो 0 वरना 1 अंत एएससी, (कास्ट (के रूप में datetime)) DESC ENDDATE) आर एन के रूप में EmploymentDetails एड से) ई कहां आर एन = 1), EarliestStart के रूप में (सहायता का चयन करें, योग (DateDiff (वर्ष, STARTDATE, isnull (ENDDATE, getdate ()))) EmploymentDetails ग्रुप द्वारा सहायता) से yearsexperience के रूप में चयन नाम के रूप में u.Id, u.FirstName + '' + u.LastName, lj.Position LatestPosition, aps.cId के रूप में , Aps.ApStatusID के रूप में ApplicationStatus, एपीएसएसआईआईडी स्पेशलाइजेशन इ डी, इयर्स एक्सपिरेंस, एड। अनुमानित सैलरी, रीप्लाइस (ISNULL (पता 1, '') + ',' + ISNULL ( पता 2, '' + ',' + ISNULL (शहर, '),',, ',', ') ऐसे पते से उपयोगकर्ता यू जॉइन नवीनतम जॉब एलजे ऑन यू.आईडी.आईजी = एलजे.एड जोन आरम्भ आरम्भ करें। = u.Id पर ad.aId = u.Id ApplicantDetails विज्ञापन शामिल हों प...

css - Floating Menu Variable Width -

I'm trying to explain how the floating navigation bar on the left side of the content is fixed, around which the width is certain There is a container that extends to the edge of the viewport, while keeping the content centered on the page. And even what I'm doing so far and what do I mean? Any help or idea? found a solution. & lt; Html & gt; & Lt; Top & gt; & Lt; Style type = "text / css" & gt; Html, body {height: 100%; Minimum width: 960px;} Container {width: 960px; Height: 100%; Margin: 0 auto; Background: #ddd; } .nav-fix {status: absolute; Left: 0; Width: 50%; Minimum width: 480px; Height: 100%;} .nav {position: absolute; Top: 100px; Correct: 280px; Width: 9999px; Height: 200 pixels; Background: # 333; } .nav-box {status: absolute; Top: 10px; Correct: 10px; Width: 180px; Height: 180 pixels; Background: # aaa; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div class = "nav-fi...

java - Iterate list of Objects in Ibatis -

I have a list of objects where I want to recycle and access a particular area in Ibatis SQL. East. public class student {string id; String name; } I will pass a list of a student object (list (student) in the form of parameters and must be included to reach the ID for each object bean. How do i do this foreign language - looking for the tags that you are Example: & lt; Select ID = "selectPostIn" resultType = "domain.blog.Post" & gt; Choose from * WHERE ID in PO & lt; Foreach items = "item" index = "index" store = "list" open = "(" separator = "," closed = ")" & gt; # {Items} & lt; / Foreach & gt; & Lt; / Select & gt; For more information, read the chapter "Dynamic SQL". By the way, iBatis is no longer developed and is stable, it is now called "MyBatis" and the whole developer team is away from Apache.

how to create crystal report using datagridview values without using database in C#? -

I am working in windows form application c # Instead of using database values, I want to create a crystal report with the datagrid view value. How can I do this, is it possible to do this? How to dynamically add value to crystal reports You can create a dataset and dump it From the view, you can populate with values, after which you can bind the crystal report on the dataset. Something on the lines of this: DataSet ds = new DataSet (); DS = FetchDataFromGrid (); Crystal Report MyRport = New Crystal Report () myReport.SetDataSource (ds); CrystalReportViewer1.ReportSource = myReport To retrieve the rows from a DataGridView, you'll need something like this: DataSet ds = new DataSet ( ); Datatable dt = new datatable (); Forex Currency (DataGridViewRow Item in this.dataGridView1.Rows) {DataRow dr = dt.NewRow (); If (item data bound itam! = Null) {dr = (detoraw) item. Databbound item) .ro; Dt.ImportRow (Dr.); }} Dstables.ed (DT);

I'm learning ASP.NET. Where can I find some (complete) sample website to study/analyse? -

I have learned most of the main skill points in the ASP.NET model, for example how to use a GridView I To explore / analyze some of the complete website with source code, but so far it is working on the internet with the most specialized resources. Is it possible to find something? There are many open source asp.net websites. / P> See section specifically from Microsoft ASP.Net site.

Accessing linux file system in a C# program -

I am programming a C # application that checks the last time that a file is modified on 3 different servers. Had one of these been a different file system, then what could be the possible way to check it when the file was last modified on the system. I have full access to modify the server to an extent but I am looking for many constructive solutions to solve this problem. Thank you in advance The easiest thing is that if your application window box To run it, run it and configure it on Linux box and use it. This allows you to use Linux folders in the same way you use any other Windows network share can do. Other options are to use NFS on the Linux box and use an NFS client (see SO question), or try the mono directly on the Linux box.

php - How to implement search on a gettext driven multi language site? -

I'm setting up a multi-language using gettext. Since compiled all the text in other languages How do I attack the site's search function in Mo files? Any help or direction direction will be appreciated. Note, I have not engineered the search first ... As I understand, you provide search Want to know which information Is stored in MO files; Key-value pairs of text files. The problem will be to map a KV pair specifically to a particular URI. If you can do this, you can run a script that parsed .mo files, and store any kind of data in the store with the corresponding URI (or other resource identifier), such as Apache Solar or a MySQL detabase FULLTEXT-indexed column). Another option is to use the crawler for error and index for all pages on your site. Here's a list of open-source crawlers: All the best.

.net - How to pass optional parameters to a method in C#? -

How to pass the optional parameters for a method in C #? Suppose I have made a command called a command called Sendcommand. ) // List the files from the server {// code} else if (command == "STOR" + Path.GetFileName (uploadfilename)) // upload the file to the server {// code} else if ...} Now I want to call this method in main mode like Sendcommand ("STOR", filename); Sendcommand ("list"); // In this case I do not want to give the second parameter How to get it? Use the paramet attribute: Public Zero SendCommand (string Command, parameter string [strfilename] {} Then you can call it like this: SendCommand ("cmd"); Send Command ("CMD", "A"); Send Command ("CMD", "B"); Or if you use C # 4.0, you can use the new optional logic feature You can use: Public Zero SendCommand (string command, string s Trfilename = null) {if (strfelname! = Null) ..}

c# - WPF DataGrid Parent Child Data -

I'm new to WPF / C # / NET but I'm learning a few short practices through coding. Anyway, I'm stuck. I've sebaked here and on Google and I can not find the answer or I can not find any answer. My problem is ... I have to use the unit framework two tables. One is for employee details and company details. Work for employees 0 or 1 company. I want to define a datagrid for navigating the employee through WPF / XAML. But in every employee line, I would like to show the names of those companies which they work (if there is a relationship) or "unemployed" in those cases where there is no related company record. I do not have the details of tables because it really does not matter - the problem is displaying information consolidated with the parent / child relationship in a single datagread. I do not know what is the best way to deal with such a problem, while considering WPF / DataGrid, I really appreciate helping to do this, binding (assuming WPF) Or a...

iphone - What do we mean by an Object "sending messages" and how do protocols help an object advertise the messages it supports? -

What do we mean by "sending a message" to an object and how the protocol supports a message in a message helps to? Does anyone have an example? It is helpful to think about objects, - For other things), make decisions, and perform actions (together, and on other objects). Within this concept, call "foo" method when calling x, which is a very programming-thing to say, we can talk to each other We can say that "x sends a message to foo y, or, more specifically," the text field x states that its textFieldDidChange: "or" x asks what happens to its framiston calibration level "or any statement about people It can easily be about fictional items. (The reason for the term "message" is not entirely ideological: it is brought from Smaltak, one of the original languages ​​of Objective-C. This is a historical reason.) The protocols are like a job description, just as a person can wear the title of a person, janitor, or eng...

Google Map - English Vs Japanese characters -

I recently visited a site. This helps us in the latitude / underlining of a location based on the address. If we enter a location address in English, then it shows some latitude / latitude values. If we enter only one address in Japanese / Chinese characters, then it shows some other values. What is the reason? Is it because Japanese / Chinese are 2 byte languages? Please tell me

httpwebresponse - Return both a CSV document and a HTML page in the same response -

I am aware of returning a CSV attachment in a postback in some way: Response. Clear Response Content Type = "Text / CSV" Response Append header ("Content-Disposition", "Attachment; File Name = Test CSV") Response Wite (Load Text File (Appetite and "Test CSV")) Response.End () However, is it possible to return an attachment and an HTML page? The requirement is that the user clicks on an export button that saves CSV (like above) when posting back, but then refreshes the HTML page by saying "Thanks for downloading". The title of this post may be completely incorrect ... Cheers, Rob.

flash - unloadMovie is not working -

I have a similar problem for this post, except that I am currently only using AS2. Call a swf file to load this music in a loader like music_mc.loadMovie ("music / song.swf"). When I unload such movie clips: music_mc Why is anyone considering this? Thank you! / div> Managed to resolve it! My music SDF had two frames and the music was not sent to the right frame to start playing! cutting! :)

c# - Different ways to cast an object -

संभव डुप्लिकेट: हाई, एक ऑब्जेक्ट डालना कब और कब "ऐज़" का उपयोग करना है। उदाहरण: class a = (class ) वस्तु और वर्ग ए = वस्तु के रूप में वस्तु का उपयोग करने के लिए के रूप में का उपयोग करना एक सुरक्षित विकल्प है, जैसे कि कास्ट विफल रहता है, आपको कोई अपवाद नहीं मिलता है, लेकिन लौटाया गया मान null है। यदि कोई कलाकार संभव नहीं है, तो आप अपवाद पाने के लिए चाहें () का उपयोग करें।

Excluding Selenium-server URL in JMeter Proxy Server -

I am currently trying to record the stages of my Selenium Test to JMT so that I can test the load with the same test Can do The steps are recorded well, but my problem is that it is recording the steps made in the "selenium-server" window (i.e. extra windows which selenium runs when the popes occur). I believe if I add anything such as * selenium-server * "url pattern to exclude" is on the list, it will ignore all these steps , But they keep recording for every paradigm that I have done. Anyone please tell me the pattern that will motivate them to ignore these steps? An example url is: / selenium-server / driver / try again = true . Thank you. Try adding the following to the 'URL pattern to exclude' ^ / selenium-server /.*

Asking for better strategy implementing Delphi online reports based on firebird database -

In a firebird database based Delphi application, we need to bring some data online, so we have our application in online-reporting capabilities. can add . The current approach is: whenever the data changes or is added, they are sent to the online server (php + mysql), if it fails, then adding it to the queue and re- try. Then the server with the data is capable of making its report. So, to conclude: What is a good way to bring that data online? Event based: Whenever changes are found, For pushing the web server / mysql db, the destination is collected for the message when the message is not received. Snapshot based: Remove the relevant data in the interval (for example every hour) and move it to the web server / ISSLL DB. The snapshot-based strategy allows data to be pre-processed, which fits well in the wb / mysql DB data structure, which will improve the system and send system ( Delphi) in favor of keeping more business logic. It also generates a more consisten...