Posts

Showing posts from September, 2013

CSS file-input hide path -

संभव डुप्लिकेट: हाय! क्या ब्राउज बटन को रखने के लिए इनपुट-फाइल पथ छिपाना संभव है? धन्यवाद दुर्भाग्य से फ़ाइल इनपुट शैली-योग्य नहीं है, और यह प्रत्येक ब्राउज़र में अलग तरीके से दिखाता है। तो कम से कम कहने के लिए किसी तरह का कोई समाधान हैक होता है। एक समाधान इनपुट के पीछे एक छवि रखना है, और 0 की अस्पष्टता सेट करना है। मैं ट्यूटोरियल का पालन करना चाहूंगा।

How to change background color of a textarea using JavaScript -

I just want to know how I can change the color of the color of the color of the text in a text box I am able to paint, font and shape text, but the background does not seem to work in the same way. My code for text color and background is: script: function set color (where, color) {if (where == "background color") document .getElementById ('Textarea'). Style.backgroundColor = Color; If (where == "color text") document.getElementById ('textarea'). Style.color = Color; } HTML: & lt; P & gt; Card color: & lt; Input type = "text" name = "backgroundcolour" size = "10" onchange = "setcolor ('backgroundcolour', this.value)" & gt; & Lt; Br> Text color: & lt; Input type = "text" name = "colourtext" size = "10" onchange = "setColor ('colourtext', this.value)" & gt; & Lt; Br> & Lt; / P & gt; & Lt; Texta...

javascript - Animate video scroller -

मेरे पास एक स्कॉलर आइकन वाला एक div है: .ui-slider { शीर्ष: 0; ऊंचाई: 100%; बाएं: 0; सही: 0; चौड़ाई: 100%! महत्वपूर्ण; फ्लोट: कोई नहीं! महत्वपूर्ण; मार्जिन: 0 ऑटो! महत्वपूर्ण; स्थिति: पूर्ण; Z- सूचकांक: 1; प्रदर्शन क्षेत्र; स्थिति: रिश्तेदार; पाठ संरेखित करें: बायां; } .ui-slider-handle {स्थिति: पूर्ण; Z- सूचकांक: 2; चौड़ाई: 16px; ऊंचाई: 16px; कर्सर: डिफ़ॉल्ट; } मैं इसे कोड में इस तरह उपयोग करता हूं: & lt; div class = "ui-slider" & gt; & Lt; a href = "#" वर्ग = "ui-slider-handle" style = "left: 0px;" id = "गिरावट" / & gt; & lt; / div & gt; मैं उपयोगकर्ता के माउस के साथ ui-slider-handle चेतन करना चाहता हूं (जैसे कि वीडियो मूवी में - तो वह उस पर स्क्रॉल कर सकता है)। कर्सर को उपयोगकर्ता के माउस या कुंजीपटल में सही कुंजी के साथ चलाना, div की चौड़ाई और फिल्म के आकार के लिए प्रासंगिक होना चाहिए। मैं यह कैसे कर सकता हूँ? मुझे लगता है कि आप अपने div को स्थानांतरित करना चाहते हैं माउस के संबंध में...

How do I list multiple items in MySQL? -

What is the correct syntax for the following code: SELECT * from WHERE x = 'Y' and ID! = '10, 11, 143 ' This part I'm not sure is listing several IDs. If id is numeric, then you can use it from SELECT * is not in WHERE x = 'Y' and id (10,11,143) or SELECT * from WHERE x = 'y' and id ('10 ',' 11 ',' 143 ') for string.

iphone - How to detect zoom scale of UIWebView -

I want to increase the height of UIWebView , while user zoom in (like the default mail app in the iPhone ). So, to find the scrollview in the webview and to use UIScrollViewDelegate to add the scrollViewDidZoom zoom scale to add the height of the webview on this method Have tried the code below. // MessageAppDelegate.h @interface MessageAppDelegate: NSObject & LT; UIApplicationDelegate, UIWebViewDelegate, UIScrollViewDelegate & gt; {UIWebView * webview; UIScrollView * scrollview; } //MessageAppDelegate.m - (bool) Application: (UIApplication *) application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions {[self.window makeKeyAndVisible]; Webview = [[UIWebView alloc] initWithFrame: CGRectMake (0, 150, 320, 100)]; Webview.delegate = self; Webview.scalesPageToFit = Yes; Webview.userInteractionEnabled = Yes; [Webview Load HTML String: @ "Meta Name = \" Viewport \ "content = \" width = device-width, initial-scale = 1.0, max-scale = 6.0 use...

javascript - Why should I put external resources in the html head? -

I like to know that people say "put external resins on the head of the page", such as: & lt; Head & gt; & Lt; Script type = "text / javascript" src = "settings / myJavascript.js" & gt; & Lt; / Script & gt; & Lt; Title & gt; Title & lt; / Title & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Link type = "text / css" rel = "stylesheet" href = "settings / style.css" title = "style" media = "all" /> & Lt; / Head & gt; Should these resources be added only on the page when it requires those resources? For example, while programming on PHP, if I have a page that requires some CSS instead of the other, then this link type or script src that page Without loading everything on top, right? I get many suggestions on the forum / community which put everyone in the head ... What...

android - Custom Quick Action on click on widget -

मुझे एक समस्या है कन्स्ट्रक्टर का क्विक एक्शन qa = नया त्वरित एक्शन (वी); देखने की आवश्यकता है, लेकिन मैं AppWidgetProvider में मूल दृश्य कैसे प्राप्त कर सकता हूं? यह मैं रजिस्टर क्लिक करने के लिए उपयोग करता हूं लंबित कार्रवाई PendingIntent = PendingIntent.getBroadcast (संदर्भ, 0, सक्रिय, 0); RemoteViews.setOnClickPendingIntent (R.id.imageButton1, एक्शन पेंडिंगटेंट); अगला मैं अपने त्वरित एक्शन से '' बनाने के लिए दृश्य प्राप्त करने का प्रयास करता हूं mView = mView.findViewById (R.layout.main); Qa = नया त्वरित एक्शन (mView); मैं क्या जानता हूं: QuickAction का दृश्य RemoteView के साथ काम नहीं करता है शायद आपको ऐसा करने में सक्षम करने के लिए क्विकएक्शन एक्सएमएल के कोड को मोड़ना होगा। हालांकि, मैं निश्चित रूप से सुझाव देता हूं कि अगर आपको एंड्रॉइड में अनुकूलित दृश्य का पर्याप्त ज्ञान नहीं है, तो आपको इस पर समय बर्बाद नहीं करना चाहिए:)

iphone - how to get the external ip in objective c -

I've seen to get some code will help me IP to connect with iphone. ; (NSString *) getIPAddress {NSString * n = @ "error" - : I find structure ifaddrs * interfaces A = NULL; Structure ifaddrs * temp_addr = NULL; Completed success = 0; // current interface to retrieve - return 0 Success Success = getifaddrs (& amp; Interface); If (success == 0) {// loop interface temp_addr interface via the linked list =; While (temp_addr = Zero!) {If (temp_addr-> saa_addr-> sa_family == AF_INET) {// Check the interface en0 which is the WiFi connection on the iPhone if ([[NSString stringWithUTF8String: temp_addr- & gt; ifa_name] isEqualToString: @ "en0"]) go NSString from {// C string address = [NSString stringWithUTF8String: inet_ntoa (((struct sockaddr_in *) temp_addr- & gt; ifa_addr) - & gt; sin_addr)]; }} Temp_addr = temp_addr- & gt; Ifa_next; }} // free memory Frifaders (interface); Return address; } But the problem is that he receives the ...

php - selecting value from drop down dropdown -

Hello, I am going to edit the drop down box value, how do I show values ​​from the previous database like V ` So how can I do this code for this & lt; Select name = "employee_id" id = "employee_id" & gt; & Lt; Option value = "" & gt; Select & lt; / Options & gt; & Lt ;? Php $ Task = new task (); $ Task- & gt; Connect (); Echoes $ emp = $ work- & gt; GetEmployee (); $ Task- & gt; Disconnect (); ? & Gt; & Lt; / Select & gt; Function getEmployee () {$ this- & gt; Query = ("select from employee"); $ Rd = $ this- & gt; ExecuteQuery (); While ($ line = mysqli_fetch_assoc ($ rd)) {$ pno = $ row ['pno']; $ Name = $ line ['name']; Echo "& lt; option value = '$ pno' & gt; $ name & lt; / option & gt;"; }}} If I place it here in the value value then it will be considered as one but it will not show in the drop down box. So in a nutshe...

DRY up java (lambda functions?) -

I'm writing a program in Java that essentially tests a bunch of things ... every call, I need to check for NullPointerExceptions , StackOverflow , IndexOutOfBounds , etc. ... This is repeating me now Pattern in each of my ways: try {doSomething (); } Hold (NullPointerExceptions npe) {// Some Impressions} Catch (Stack Overflow Soi) {// Some Impressions} Catch (IndexOutBoond IOB) {// Print something} Since I I can call the throw exception to back to the main (because I'm actually doing the same thing) To run in requires the next test). I want to write a Lambda tester that I can pass the function, but I can not find any way to do this with Java :(. I 'like Want to do something: Private zero testing (method m, e hopeful) {try (if (! M.run (.) Equals (expected value)) system.out.println ( "Failure Test:" + m.name () + ". The value was" + m.run () + "," + expected value ");} hold () {// see above}} all Better than...

Help with C++ linker error -

I am struggling with a linker error which I can not understand, I am implementing the Bell Ford Algorithm I'm part of my homework. Even I have a code written so far, it would be good if someone can explain to me why I am getting this error, I have stuck my code on Mozilla Pastebin, two files Graph is H: and Belman_fird.cpp: All the solutions will be appreciated and thank you for taking the time to help me out for your valuable time. you vertex :: vertex () or edge :: Edge () - They have just been announced. Apply them as: class Vertex {private: char vertex_name; Public: Vertex () {} ... Class Edge {Private: Vertex Source, Destination; Visceral weight; Public: Edge () {} ... If you include graph.h with more than one CPP file, you will also get errors . You should move the bodies of your member works into a graph.cpp file instead of moving them to the header.

c# - Creating an autocomplete textbox that works on both first name, and last name -

मैंने अपने Winforms अनुप्रयोग पर एक स्वत: पूर्ण पाठ बॉक्स बनाया है। निजी शून्य txtClientName_TextChanged ( ऑब्जेक्ट प्रेषक, इवेंटएरग्स e) {if (txtClientName.Text.Length == 1) {पूर्ण। चयन। क्लीयर (); ग्राहक रिपोजिटरी रेपो = नया ग्राहक रेजोजीटरी (); Var ग्राहक = रेपो। खोजें सभी ग्राहक ()। जहां (यू = & gt; u.Name.Starts साथ (txtClientName.Text) || u.LastName.StartsWith (txtClientName.Text)); विदेशी ग्राहक (ग्राहकों में ग्राहक) {पूर्ण संकलन। जोड़ें (ग्राहक। नाम + "+ ग्राहक.लास्तनाम); } TxtClientName.AutoCompleteMode = AutoCompleteMode.Suggest; TxtClientName.AutoCompleteSource = AutoCompleteSource.CustomSource; TxtClientName.AutoCompleteCustomSource = पूर्णकॉल्क्शन; }} जब मैं एक प्रथम नाम टाइप करता हूँ, अर्थात्: सर्जियो - यह काम करता है। लेकिन जब मैं एक अंतिम नाम टाइप करता हूँ, अर्थात्: ग्यूटियरेज़ - यह परिणाम प्राप्त नहीं कर सकते हैं। समस्या I FindableCustomers () विधि में IQueryable के खिलाफ उपयोग क्वेरी में है। मुझे क्या बदलना चाहिए? इसके अलावा, क्या आप स्वत: पूर...

flash - perspective projection formula problem -

I am developing 3D flash games and my question is very simple. How to change the 3D point in 2D point? I got the next formula in the internet (the camera is located in the original) X '= X / zy' = y / z ratio = Focal length / (folkleng + z) x = proportion = y = y * ratio But these formulas give me strange results when z is less than zero (z I need a line of A (100,100,100) to B (100,100; -100) as you can see this when I try to change the B point in 2D amplitude. The equation is actually a The Ib results I can do to solve this problem? Keep in mind what this means when z = 0 means that you are x / 0 That's bad - in this case, it means that the point is in the same place as your camera! And as soon as the zodiac becomes small, it means that the digits are running behind your camera, so they should not be rendered at all. You want a small ground to be your 'nearest plane' at the back of the screen, say, z = 1 to prevent incorrect rendering, y...

c++ - Using boost - put it in the source control or let any developer to install by himself? -

Currently we use Boost in our SVN under third party directory The problem is that lots of updating the entire tree Takes more, and I blame Boost's Ghazil files (among other criminals). Alternatively, I can install it to any developer myself, but then I should force them to set up in the same place (which is quite ugly ...). What's the favorite? How can the issue of installed space be controlled? Are there any other options? I am using VS2008 (soon VS2010) under Windows (as opposed to VS2008 ... :)). Edit : We have migrated to VS 2010 and are using the property sheet to see my answer below. Ralph has a great & amp; Very detailed how it using batch files. Other methods are still welcome ... :) Since your application is promoted Depends, I believe it is dedicated to keeping the internal SVN project. It guarantees that everyone will use the same version of the library and will stop accidents . If you add a INSTALL file / script to the system with the c...

c++ - no match for call when using c++0x Lambda expressions -

यह समस्याग्रस्त कार्य है: शून्य अणु :: init समानता (int गहराई) { Int m = 1; के लिए (एट जे = 0; जे एंड एलटी; गहराई; जे ++) के लिए (इंट I = 0; i & lt; _size; i ++) // किसी भी परमाणु के लिए यदि (! GetSetMask (// सभी परमाणु डालते हैं जो बराबर हैं लेकिन समान नहीं हैं अपने एक ही समीकरण के बराबर // [और] (const एटम और बी) - & gt; bool {रिटर्न (_atoms [i] - & gt; _class == b._class) & amp;! (हैसिमिलर (* _ परमाणु) [I], b));}, [& amp; m] (एटम और बी) {b._class = m;} // 113) .one ()) m ++; // 114} और आउटपुट: फ़ाइल में /usr/include/c++/4.5/memory:82ZE , से /usr/include/boost/dynamic_bitset_fwd.hpp15, /usr/include/boost/dynamic_bitset/dynamic_bitset.hpp36 से, /usr/include/boost/dynamic_bitset.hpp से: डेटा स्ट्रक्चर / मोलेक्यूल। सीपीपी: 8: / usr / include / c ++ / 4.5 / कार्यात्मक से डेटा स्ट्रक्चर / मोलेकुलल एच: 15 से: स्थिर सदस्य फ़ंक्शन में ? स्थिर शून्य std :: _ Fun__handler :: _ M_invoke (const std :: _ any_data और, _ArgTypes ...) [के साथ _Functor = अणु :: i...

osx - TCP client in MAC using C++ -

To send data to server written in node, trying to write C ++ code for client part of TCP socket I am here. I can get it on the Windows platform, though it is difficult to do this on Mac OS, for MAC OS, any help / code in C ++ for client TCP socket is highly appreciated. Since I do not know which area you are experiencing, perhaps the best suggestion is a platform Use an independent C ++ library so that you have only one need for it to compile it to work on Mac and windows. I'm not sure what's there, but I knew this:

inventory of regex anchors -

^ is said to match one The beginning of the line , but it is correct after "\ n" , "\ r" or "\ r \ n" Does not match. It matches the beginning of a string, though. In what sense it matches the beginning of a line, and how it is different from \ A $ It is said that the end of a line , but it is "\ n" , "\ r" or "\ r \ n " . It matches the end of a string, though. In what sense does it match the end of a line, and how is it different from \ z ? Unlike \ z , \ z , "\ n" mail before If the account is at the end of the string, it seems that \ A and \ z are naturally occurring concepts, and \ z Why is it that weird one is that \ z and \ z are defined, and not on the other side? And, you want to use \ z ? Can you illustrate using the examples above? If there is a difference in languages ​​/ standards, then it will be helpful to list them. The difference is that ^ and ...

Jquery to change form action -

I have two buttons in one form and two separate pages should be clicked when they are clicked. When button 1 is clicked, page 1 should load and when button 2 is clicked, Page 2 should be loaded. I know how this is done in javascript but I have no clue about how to do this in jquery. Can anyone help me? try this: $ ('# button1'). Click (function () {$ ('# formId'). Attr ('action', 'page1');}); $ ('# Button2') Click (function () {$ ('# formId'). Attr ('action', 'page2');});

sql server ce - The Ntext And Image Data Types Cannot Be Used In WHERE, HAVING, GROUP BY, ON, Or IN Clauses -

I am getting an error: not used in ntext and image data types Whereas, having, by group, by, on, or in the segment, except when trying to save the changes in the table SQLCE are when these data types are used with like or zero predicate. Please note this is an update operation. I have version 3.5.1.0 of SQL. Below is a stack trace with error message and code: System.Data.SqlServerCe.SqlCeException could not be performed without message = ntext and image data type Except, where, having, used by the group, at, or in the segment, when these data types are used with or in addition to zero predictions. Source = SQL Server Compact ADO.NET Data Provider HRESULT = -2147217900 NativeError = 25,923 StackTrace: System.Data.SqlServerCe.SqlCeCommand.CompileQueryPlan (low) on System.Data .SqlServerCe.SqlCeCommand.ExecuteCommand (CommandBehavior behavior, string method, ResultSetOptions option) System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery (at ) System.Data.Linq.SqlClien...

php - Iterating through amazon shopping API (big multi-dimensional array) through print_r -

I always had trouble retrieving prices in the API-returned array, usually because they are very complex I I am not posting the entire array here. But this is a summary below. Just to let you know, I have tried to hunt nests of many forward lapses, but I am getting many errors and I can not imagine that there is no easy way to do this. Thanks for your help in advance. > Sample of output: Array ([HTTPHeaders] => Array ([header] => Hey ([name] = & gt; User agent [value] => PHP-SOAP / 5.2 .17)) [RequestId] => a2d742d5-64b7-4de7-9c3d-a4c1cd525e7e [logic] => array ([argument] => array ([name] => service [value] = & Gt; AWSECommerceService) [RequestProcessingTime] = & gt; [0.382574] [item] => Aare ([request] => array ([IsValid] => True [Modish spacing] => Hey ([condition] => New [DeliveryMethod] = & gt; Ship [keyword] = & gt; TV [Merchant ID] => Amazon [Response group] => Small [Review Notification] = & gt; - s...

2d - Love2D Lua framework - Converting an unorganised rendering table into a map structure -

I am changing a 2D render map which is unrelated in the string table, for example: "render = {{image, 50,60,2}}"> Where is the image (I am using the Love 2D Lead Framework) 50 x Axis 60 is Y axis 2 image ID (it In the actual table.) But 100 of them are all unorganized and stuff, and I need to incorporate them into a structured map. Here's a bit strange: when I put it in an organized string .. this .. the key is a 90 * angle rotates the table on anticlockwise. is saying that I want the result of {{7,6,5}, {6,5,4},} I'll get: {{5,4}, {6,5}, {7,6},} obviously There is no error because it works technically, just rotates in the wrong way. Here is the relevant code: Function OrganizeRenderIntoMap () MapString = "" Map2 = {MaxSoFarX = 0 MaxSoFarY = 0 to add to _, v if v [2] & Gt; MaxSoFerX then MaxSOFERX = V [2] otherwise V [3] & gt; MaxSoFarY then has the end end for MaxSoFarY = V [3] currx = 0, MaxSoFarX, 32 Map2 [currx] = {}...

c++ - Functions that do nothing and compiling with Level 4 warnings -

Sometimes you have a class that is designed to be inherited, but all the tasks at all times Therefore, in order to make derivative classes more readable and easy to maintain, energetic functions are defined, but empty (rather than pure virtual) are an example from Rancenet Virtual Zero Underscore Switch Ev (Const char * data, Const Bitsjh_ti bits system, Sistmadder remote system Adecr) {(void) data; (Zero) bits used; (Zero) Remote System Adapter;} In most cases, there are some arguments and level 4 warnings of the function, it warns that the function arguments were not used. I am currently in the above example of Rocket and I am not doing anything with the data. Is the standard / normal way to get rid of the warning? Can this design be completely avoided? Any general ideas / insights / suggestions? Another method is not the name of the parameters, it shows that any intention of using them in the function Virtual Zero On-DirectSocket Receive (Constite * / * Data * /, Cons...

winsock - Missed connections using select() on many non-blocking connecting TCP sockets on windows XP -

I have a small portable device that connects around 150 servers at various locations so that they can be checked immediately. It is important to retrieve the position of all servers relatively quickly to the user so that the device connects to the server in parallel to connect non-intercept, and select to select when each socket is ready () Uses Selection () Is quite straightforward, and the device has failed now and works well on Linux. It runs on Windows XP, but the connections of most of the servers present there are not complete. The device revolves around the call to connect to avoid making the CN feel like a flood. It connects approximately 100 messages to a server. I also have a check to make sure that FD_SETSIZE has not been violated. I have evidence from someone else that behavior is better in Windows versions later, but is not able to verify. I have used WinDump to verify that the sync packet is being sent, and I can see that one packet is returning, but selection () re...

Java Multi-Client Instant Messenger concept help -

I am trying to implement a Java chat program. In this program, many customers will talk to each other from one server. The server will relay another message from the client. It will also provide updates to a friend's list. The best way to implement this IM chat is to estimate the part with which I'm having trouble, sending the server from one client to another. Each customer should be able to choose whom they want to talk to. Once again, the only purpose of the server is to get a message from a customer and send it to another customer. If a client is connected to the server, it does not happen unless another customer is connected. Then both customers start communicating with each other. You will need to implement a protocol; check out . A part of this issue is determining which message you will send a message to. XMPP helps solve the problem I would recommend that each user joins the server, there will be a thread to handle the connection. You can then store all the th...

active relation - why is message_id_equals method missing in Rails 3? -

I have this error, and I'm not doing anything special: NameError ( Undefined method for 'message_id_equals' class 'ActiveRecord :: Relationship') Why? Here is the reference: @user_has_message = UserHasMessages.user_id_is (current_user.id) .message_id_is (@ message.id) irb (main): 012: 0> UserHasMessages = & gt; UserHasMessages (id: integer, user_id: integer, message_id: integer, is_seender: boolean, created_at: datetime, updated_at: datetime) You can not add those things together in that way. You are called User_id_is on UserHasMessages, which gives an ActiveRecord response that does not have any method for message_id_is. I do not really know what these methods are, but my guess is that they are not scopes or you Can allow series. You can not do this: @user_has_message = UserHasMessages.where (: user_id = & gt; current_user.id ,: message_id = & gt; @ message Id) to get the same effect?

iphone - How to implement the traditional imageView-inside-a-scrollView pan gesture with two fingers instead of one? -

"postprint" itemprop = "text"> I have a scroll view image that allows me to see an image that is nested inside, pinch to zoom, and if I'm zooming in enough to pan around using a custom GestureRecognizer, I override the default behavior of a finger pan so that it does something other than the pan (according to the person's request I create this app for I am). It works perfectly. The problem now is that I still need the ability to pan around the image I could do with a finger pan, I just need to have it with two fingers now. Is there a solution to use the already available features of nested image views? Or do I need to go through and get recognized after two finger gestures, write my own custom all argument? Any ideas here are greatly appreciated! Thank you "itemprop =" text "> Newer versions if you have only the 'default' parameters of UIPanGenstureRecognizer Adjust that the scrollview is already associated with ...

Python integer testing -

def isinteger (x): जबकि x & gt; 0.0: x = x - 1.0 अगर एक्स & lt; 0.0: वापसी 0.0 elif x == 0: रिटर्न 1.0 डी = इनपुट ('') प्रिंट आईएसआईटीईजर (डी) कोड कुछ स्व-व्याख्यात्मक है। मैं इसे फ्र्रेट्रान दुभाषिया के लिए उपयोग कर रहा हूं यहां मेरी समस्या है: मैं एक अंश को इनपुट करता हूं, जैसे कि 22/7, और मुझे अपना आउटपुट 1 मिलता है। क्या अजगर के आईओ के साथ कुछ करना है? इनपुट फ़ंक्शन का मूल्यांकन करता है आपके 22/7 बिल्कुल उसी तरह जैसे कि यह अजगर दुभाषिया में दर्ज किया गया था। चूंकि दोनों 22 और 7 पूर्णांक हैं, आप 3 के परिणाम के साथ एक पूर्णांक विभाजन प्राप्त करते हैं। यदि आप फ्लोट प्रभाग चाहते हैं, तो 22.0 / 7 या 22 / 7.0 दोनों में प्रवेश करें परिणाम 3.146 ... ।

How do I identify orders with the Google Checkout Notification API (using PHP)? -

I am using the Google Checkout API for a simple store code. Where did I find the user to select the item, edit the cart, and make a checkout / payment with Google Checkout? After receiving the order, the notification API (with XML) is being used to read the information sent by Google. How can I connect order information with order information in my SQL database? Can I send "order id" or something like this to Google with the initial order? I have coded that part (ordering) with the HTML API. Thank you in advance! Use the merchant-private data field to pass any custom data about your order . When you withdraw the notification, read the custom information from the merchant-private-data field. Look at this problem to solve this problem.

servlets - response sendRedirect giving 404 error -

I'm trying to redirect to an error page on some of the terms in your servlet code. But nothing is working so far. So I am using Weblogic 10.x as my app server. I'm directly applying applications directly to managed servers using the console. So basically I issue them as .war files and deploy them as webapp. public void doGet (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {try {throw new Exception ( "503_Exception"); } Hold (exception e) {response.sendRedirect (response.encodeRedirectURL (HandleError.handle (e, request))); }} Public class handles error {public static string handles (Throabl T, javax.servlet.http.HttpServletRequest request) {string sErrorMsg = t.getMessage (); If (sErrorMsg.equals ("503_Exception")) {request.setAttribute ("msg", "INVALID session"); Return "/jsp/error/custom.html"; } Return "/default_error.html"; }} War File Structure - ...

asp.net mvc 3 - Allow Html Attribute Not Found [AllowHtml] -

Can anyone tell me that to allow [AllowHtml] system.CommentName.Including data annotations, need to? When I add attribute to a property, it tells me the following compiler error: "type or name space name 'AllowHtml' could not be found (whether you are using Director or unavailable An assembly reference?) " I need to allow html in my area and I can not continue till I do this. As far as I can tell, [AllowHtml] system. Web.Mvc is related to namespace.

how to call a page on a jsf button click -

I am using JSF, using the code given below trying to click on a button within the data table. I'm & lt; H: column & gt; & Lt; H: Output text value = "" /> & lt; H: commandbutton id = "btn" value = "history" action = "# {show.}}" & Gt; & Lt; / H: CommandButton & gt; & Lt; / H: column & gt; My Bean class gives a method "showHistory" that takes the break back and I have included the navigation rule in face-config.xml but still did not call the page can go. My navigation rule looks & lt; Managed-Bean & gt; & Lt; Managed-name names & gt; Bean & lt; / Managed-name names & gt; & Lt; Successful bean category & gt; Com.bean.HistoryBean & lt; / Managed-van-class & gt; & Lt; Realm of managed-beams & gt; Request & lt; / Managed-beans scope & gt; & Lt; / Successful bean> & Lt; Navigation rules & gt; & Lt; Display-name ...

.net - How can tlbimp be used to specify different File and Assembly versions? -

We are using tlbimp to generate interop assemblies. We want to print the interop assembly with both a file version and assembly version. However, both the / asmversion option on tlbimp is being set as the same value. Does anyone know how to set up separate file and assembly versions on an interop assembly using tlbimp? Finally we found some links on a code named tlbimp2 at codeplex, and our own revised version Tlbimp2 compiled: I took the code from the tlbimp project of 2. And it modified on the lines of 1. There were some problems that we had to work around: In TlbImp.cs, I was clearly to collect file version number from the result of FileVersionInfo.GetVersionInfo, because the FileVersion property was empty: if (options.m_strFileVersion == faucet) {// Get File Version Version Version INFO = FileVersionInfo.GetVersionInfo (options.m_strTypeLibName); the option. M_strFileVersion = versionInfo.FileMajorPart + "." + Version INFO.FileMinorPart + "." + ...

How to separate different parts of an iPhone views? -

Image
I have a normal header and common footwork in all view controllers of an iPhone application. What I want to do is, And I want to separate the footer into different essays, .h and .m files and integrate them into one view. How to do this Thanks all UIViewController can create: HeaderViewController with .m (.h and .xib) FooterViewController.m (with .h and .xib) Then you add them to the code by looking at: (or, if you want, via the interface builder) header view controller * header = [[headerviewer controller] Init]; [Header setframe: CGRactam (0,0, 320, 100)]; // for example [self.view addSubview: header.view]; In IB: Add a new UIViewController to IB, replace Classe UIVIEController by HeaderViewController, link it to a IBOutlet (header), then you just have to do [self.view addSubview: header. View]; .

ipad - iPhone IBOutlet -

आईबीओ में एक नौसिखिया दृष्टिकोण से आईबीओटलेट क्या है? आप यहां अपने संदेह का समाधान पा सकते हैं

facebook shares/likes over a time period -

How do I obtain FB share / number of likes for some FB objects from time to time? link_stat table: But I do not think there is a timestamp, or anywhere in the Facebook database. How can you ask this table and save the statistics in your DB at the beginning and end of this period, and compare the values.

java - Get the file list in the WebServer from the appserver -

Hi all - is there any way to bring the file list into a web server using the Java server? I have something that is related to getting the resources of the web server new file ("/ webserver_context_root / folder /") method The path is using the ap server ... PS: The reverse proxy has been set between the Web and the Opera server. Any thoughts? HTTP protocol does not provide a standard way to list "folder". Indeed, HTTP and URI / URL specs do not even recognize the "folder" as a concept. If the perception of the folder is meaningful for your website, there are two approaches that can work: Many webservers have a folder in the webserver content space The URL associated with can be configured to create a listing (such as in HTML) (this has usually been discontinued for security reasons.) You can remove the list of things in the folder to remove this HTML To "scrape" Can Su. You can apply an undoubtedly service to "fol...

android - listView.setSelection(n); m=listView.getSelectedItemPosition(); //m != n. why? -

Calling the Setting Calling () of ListView is a problem. A lot of people ask about it. There are answers but no one is working. Here's an original scenario that results in unexpected results: listView.setSelection (5); // listView is a ListView & gt; = 6 items in the list int sel = listView.getSelectedItemPosition (); You would expect SL == 5 but in fact it is -1 (which method does not work?) This is a bug and if not, what are the rules Settings and recovery of selected items? If you look in the setSelection document, you know: If the currently selected item sets, in Touch mode, the item will not be selected but it will still be deployed appropriately. If the position of the specified selection is less than 0, then the item will be selected at position 0. In this way, it is fully understood that it gives 1 item is not selected even if you run this method when you are in touch mode, As you are most likely.

plugins - Can I create recurring jobs in Dynamics CRM 2011 online? -

Is it possible to create a plug-in in Dynamics CRM 2011 online that calls a web server every 30 seconds, and Does it do all day? In the normal application, I will create an infinite loop with a thread. Sleep (30000) inside, but Dynamics CRM Online does not allow this. CRM kills my plug-in after 2 minutes online. Is there a way to achieve my goal? Maybe some types of timers, system jobs or workflows? The person who is found on the Internet works from time to time to call himself, if there is a break of about 70 minutes between the calls; Otherwise, the CRM will consider this an infinite loop and will kill it after 6-7 calls. No, the limitations you have received are true. If you need to run every 30 seconds, then you have to find it anywhere else to run it.

android - Convert Bitmap to String -

Can I change bitmap to string? And then change the string to bitmap? Thank you in advance. The code appears that you want to convert to a string: It shows how to do both: And this one. Changing to BMP: Google is your friend ... you should always ask your friends, if they know the first answer :) Steve

"WPF" creating storyboard from blend (xaml) and change target name from c# -

I should know how to change the goal name dynamically with the same animation Please enter your code below Find XML and C # code for WPF xaml code & lt; Storyboard x: key = "lampoon" & gt; & Lt; Double AnimationUsingFrame x: Name = "Gupta" Storyboard Targetproperty = "(UIElement.RenderTransform). (TransformGroup.Children) [0]. (ScaleTransform.ScaleX)" Storyboard.TargetName = "image1" & gt; & Lt; EasingDoubleKeyFrame keytime = "0: 0: 0.3" value = "0.641" /> & Lt; EasingDoubleKeyFrame keytime = "0: 0: 0.5" value = "1" /> & Lt; / DoubleAnimationUsingKeyFrames & gt; & Lt; Double animation tool's frame storyboard. TargetProperty = "(UIElement.RenderTransform). (TransformGroup.Children) [0]. (ScaleTransform.ScaleY)" Storyboard.TargetName = "image1" & gt; & Lt; EasingDoubleKeyFrame KeyTime = "0: 0: 0.3" value = "0.6...

internationalization - Culture-independent stemmer/analyzer for Lucene.NET -

We are currently developing a full-text search-enabled app and we are our weapons of the Lucene.NET option. What is expected is that any app will be used by people from different countries, so it should be able to search equally well in Russian, English and other texts. Are both universal and culture independent, stomers and analysts meet our needs? I think we will eventually have to use culture-specific people, but we want to get up from this potentially quick and dirty view. Given that spelling, grammar and character sets of English and Russian are quite different, any punishments The one who tries to do both, is either large or poor performance (most likely both of them) on a large scale. This would be better for using a stammer for each language, and to use any UI clues (which are being used for query queries) or on the basis of clear selection Will be chosen. After saying this, it is not possible that in any Russian text the English search term will match the word t...

wpf - How to move my cursor to the left in in my ComboBox? -

Image
I want to move my cursor to the beginning of the text in my combo box It looks like this time: I made the following attempts at closed events : cboSomeCombo.Select (cboSomeCombo.Text.Length, 0); The cursor still remains on the right side all the way. It starts to be related:

wcf - See entire POST request from Android app -

I'm trying to debug a small problem with a web service. I can not post for the webservice, but I can get just fine. When I try to post the data to the webservice, I get an HTTP 1/100 bad request. Is there any way that I can see more details? .. I do not have access to the server on which webservice is hosted HTTP post code default HttpClient httpclient = new DefaultHttpClient (); HttpPost httppost = New HttpPost ("http://lino.herter.dk/Service.svc/Data/"); Stringbilder sb = new stringbiller (); = New String Entity ("Test") from StringType; Se.setContentType ("text / xml"); Httppost.setHeader ("content type", "text / xml"); Httppost.setEntity (se); HTTPRPS Page response 2 = httpclient.execute (httppost); Sb = inputStreamToString (response2.getEntity (). GetContent ()); Setting up the virushars on your development machine can be easy, and capture traffic Between your Android and the server you have to run the VirusH...

reading index value of a table row with many cells and reading the value from it using Jquery -

postproperty postpay = "text"> // PHP array $ Cashups = array (array ('cashup_id' => 146 ,456, 'DISPLAY_TIME' = & Gt; 'Mercury March 16th, 9:55 PM', 'terminal_name' => 'Bar 1', 'calculated_cash' => 389.20, 'actual_cash' => 374.6, 'calculated_tenders_total' = & Gt; 1,551.01, 'actual_tenders_total' => 1,551.01), array ('cashup_id' => 146,457, 'DISPLAY_TIME' => 'Mercury March 16th, 9:56 PM', 'terminal_name' = & Gt; 'Bar 2', 'calculated_cash' => 493.3, 'ActualCap' => 493.3, 'calculation_abhi =' gt 150 9.84, 'real_action' => 1509.84)); HTML & lt ;? Php foreach ($ cash as $ cash) {? & Gt; & Lt; TR & gt; & Lt; Td square = "left" & gt; & Lt ;? Php echo $ cash ['display_time']; ? & Gt; & Lt; / TD & gt; & Lt; Td> & Lt ;?...

.net - MSBuild : how to suppress the warning summary at the end of the build -

On an MSBuild script, all the errors and warnings are written twice: - Once they occur - as one Summary at the end of the construction I have heard that at the end of the construction it is possible to avoid the summary, but I did not find the option in documentation. thanks you / consoleloggerparameters : NoSummary can use or / fileloggerparameters: NoSummary option. For more information, msbuild /? View / Details.

C++ pimpl idiom and static method and fields -

I would like to understand how to use a static field in the presence of PIMPL phrases in a method. Consider the following code. MyClass.h file: #ifndef MYCLASS # MacCalls class MyClass {public: zero method (); Static zero static_moth (); Private: type field; Fixed type * static_field; } MyClass :: method () {/ * OK method definition * / field = # New Type (); / * OK field creation * Zero MyClass :: static_method () {/ * Not working declarion * / static_field = new Type (); I have these two errors: Members can not declare static_method to work on a static task / Li> Static_field was not declared in this area I am not very familiar with the Pimple idiom. So my question is how do I respect the stable methods and fields to respect the PIMPL idiom and compile it successfully? What am I doing in this code? How do I change my code? Show us the actual code that you have verified verifies the error Do not put in front of the static function definition in the .c...

JQUery Validate not executed on Click Event -

Greetings, Can anyone tell me what I do wrong in the code below Am I It is not executed on click applied to submit jQuery: $ (document)). (Function: {Name: "Required", // Simple Rule, {Required: True} Converting to Email: {// Combined Rules Required: Truth, Email: Correct}, URL: {url: true}, Comment: {Required} : Truth}}, Message: {Comment: "Please enter a comment."}});});}); HTNML: gt; & Lt; / Div & gt; & Lt; Div class = "form-line" & gt; & Lt; Span class = "label" & gt; E-mail * & lt; / Span & gt; & Lt; Input type = "text" name = "email" /> gt; & Lt; / Div & gt; & Lt; Div class = "form-line" & gt; & Lt; Span class = "label" & gt; Url & lt; / Span & gt; & Lt; Input type = "text" name = "url" /> gt; & Lt; / Div & gt; & Lt; Div class = "form-row" & gt; & Lt; Span c...

matlab - How to overlay a pcolor plot with a contour plot that uses a different colormap? -

Image
न्यूनतम उदाहरण जो इसे प्राप्त नहीं करता है: [X, Y, Z] = चोटियों; आंकड़ा; pcolor (एक्स, वाई, जेड); छायांकन फ्लैट; सभी को पकड़ो; कुल्हाड़ियों; समोच्च (एक्स, वाई, जेड); Colormap ग्रे; % यह केवल समोच्च भूरा अक्ष पर लागू होना चाहिए ... अक्ष बंद; % ... लेकिन यह नहीं करता है यह समरूप रंग और छद्म रंग की साजिश को ग्रेस्केल रंगमंच में दिखाता है। हालांकि, जो मैं हासिल करना चाहता हूं वह केवल समरूपता को बदल रहा है। यह सिर्फ एक सरल उदाहरण है, वास्तव में, समोच्च साजिश में अलग-अलग आंकड़ों का एक अलग रेंज है, इसलिए दो स्वतंत्र caxis सेटिंग्स भी आवश्यक हैं। आप दो colormaps catenating द्वारा समस्या को ठीक कर सकते हैं, और यह सुनिश्चित करना कि फ़ंक्शंस के मान ऐसे हैं जैसे वे रंग-संकेतन के सही हिस्से तक पहुंचते हैं: सेमी = [जेट (64), ग्रे (64)]; आकार, पिक्चर (एक्स, वाई, जेड) समतल में% # जेड पर छिपी हुई फ्लैट धारण, अधिकतम% # के बाद, जेनरेटर में पिक्सेल समोच्च (एक्स, वाई, जेड-मिन (जेड (:)) + अधिकतम (जेड (जेड (Z) :)) + 2, 'लाइनविड्थ', 2)% # रंगमंच रंगमंच (सेमी) को लागू करें अ...

eclipse - How to run Selenium Java tests with TestNG programmatically? -

I am using Selenium RC with Java using TestNG as a test framework. I am using Eclipse as IDE. I want to open TestNG with my own program very easily. How can I go about doing this? Stabilizer gives some good instructions, although TestMethodWorker () is internal so that you should not use it. Based on the question, I am also not sure whether the original poster is trying to launch GN testing in a separate process, so the API documentation can be what you want:

using SQL Server 2008 instead of SQLite in iPhone -

I have created an application that uses the database. Can I use SQL Server 2008 to store data instead of iOS SQLite Apple does not supply MS SQL Server 2008 with the ISO and you can not supply an ARM based version running on iOS as it can not be installed on the iPhone you can use the form of database engine I have been associated with SQLite. You can use SOAP or a stable intefuse C are running on external websites can connect to SQL Server.

php - MySQL SELECT: Returning multiple columns based on a column value in the same table -

I am reading from the same table in the rows containing the file meta information. One of the columns, in ACL, is a flag (0,1 or 2) mapping (unrestricted, restricted or personalized). I want to create a SELECT query that will return the file data on the basis of two PHP variables, $ userId and $additional argument is as follows: Despite the liability of $ infoId or $ if acl = 0 Return file information line Admin value Return file information line if acl = 1 and $ is true admin If ALL = 2 if $ userId = return fileownerid file entry (where fileownerid table Has a column, which has uploaded the file owner ID is stored) So basically I am doing a query on the table and returning only to the user who is allowed to view I have tried to use all types of case and IF statements but it can not be solved without SQL processing in PSP, it is not possible to do without processing. Any guru sees in a way? then admin = "text"> select * and user id for variables of ...

image processing - can anyone please elaborate on cvWatershed() function -

cvWatershed () takes two logic Iplimage * src_image and CVArr * markers. Does anyone need to break my image on the basis of my touch since the reasoning of the markers, so on the basis of my touch the marker array can be made in real time and then cvWatershed Should be called ..? I've used the watershed.cpp demo. I want to roughly portray some parts of the image and I want to get that selected part along with that black part. But I am not getting the desired output, please check the code and tell me where I have a mistake ... #include "stdafx.h" #include "cv.h" #include "Highgui.h" # included and lieutenant; Stdio.h & gt; # Include & lt; Stdlib.h & gt; IplImage * Marker_mask = 0; IplImage * Marker = 0; IplImage * img0 = 0, * img = 0, * img_gray = 0, * wshed = 0; CvPoint prev_pt = {-1, -1}; Zero on_mouse (int event, int x, int y, int flags, zero * absolute) {if (! Img) return; If (incident == CV_AVCLLUUTUP ||! (Flags and CV_AVC...

testing - perl-selenium: like() or $sel->like()? -

Pearl-Selenium also provides standard methods of testing: more like (), like (), is (), Etc., also as object methods, such as $ sel- & gt; E.g. () . ($ sel is Selenium Pearl Object) Should these object methods be used at all? Which is the favorite? I'm wondering because such as () and $ sel- & gt; It seems that behaves differently on the place here but I think the text is actually found on the page. Like ($ found, qr / $ text /, "found '$ text' on page"); # FINE # does not work, error: "I do not like much like a Reggae." $ Sel- & gt; ($ Found, qr / $ text /, "found 'on $ text' page") " so it looks like () method is better for $ SL-> gt ; Like ()? It seems that it does not offer itself as Method gives us a variety of methods like title_like or text_like like (like $ found, qr / $ text / , '$' Text '' on the page "); or $ sel- & gt; Edit: in the text_l...

url - Adding PDF reader to Blackberry Playbook app -

I have to add a PDF reader who reads a PDF document from my BlackBerry PlayBook app. Is this possible? Playbook will come with Adobe Reader, so you should not add anything else otherwise. In principle, that file should be enough to open in the reader. None of these has been documented by RIM so that you can wait until at least until the release of 1.0 SDK (expected before tablet shipping, but probably not more) to learn more Have to do. / P>

MySQL search in comma list -

I have a MySQL field with reference to another table where the ids are saved as a comma separated list, Such as: 12,13,14,16 which stand for value in any other table. I know this is very bad and wrong, but it comes from above and I can not do anything about it Now the problem is that I want to search with this type of query in this area: SELECT ... '% 1%' as the WHERE field The problem is now clearly that almost all entries can be found with this example because the query Most common ID ranges are in 10-20, instead of searching for% i, 1,%, but this is In Setr first and does not work for the last ID. Is there something like an inner space or how do I fix it? You need the function: SELECT ... WHERE FIND_IN_SET ('1', field)

Rails: capture model id in the create form for another model -

I currently have three models and I want to bring in a model from one of the models (webpage.id) Trying (microprost) - Here's the situation: Class members & lt; ActiveRecord :: Base is_my: micropost and class webpage & lt; ActiveRecord :: Base_Mena: Microprost, Dependent = & gt; : And Class Microprost and Lt; ActiveRecord :: Base is_to: Member is_to: Webpage and What I'm trying to do is create a microprost with the webpage 'show' method. Microprost Controller: Class Microprost Controller & lt; ApplicationController def @micropost = current_member.microposts.build (params [: micropost]) @webpage = webpage.find (params ['webpage_id']) @ micropost.webpage = @ webpage if @ microfost. Save flash [: success] = " Microfost created! " Redirect_to root_path else @feed_items = [] Render 'Page / Home' and End End and from the webpage 'Show' view: & lt; Table class = "front" summary = "sign-in...

javascript - Why is jQuery returning each character of the contents of my span element when I loop it? -

OK, I have a bunch with an end time class. I want to freely collect each content from others. & lt; Span class = 'endtime' & gt; 2011-03-29 00:01:03 & lt; / Span & gt; & Lt; Span class = 'endtime' & gt; 2011-03-31 19:20:11 & lt; / Span & gt; & Lt; Span class = 'endtime' & gt; 2011-03-28 19:00:12 & lt; / Span & gt; But the problem is, when I do this: var text = $ ('. Endtime'). Text (); (Var i = 0; i & lt; text.length; i ++) {$ ('counter'). Countdown ({:: text [i], format: 'hms'})} Is there only 1 character in the content of the text? How to return the whole characters to it? calling .text () to execute on each item in the archive Alternatively, you can pass in the function. $ ("span.endtime"). Text (function (i, text) {$ ('. Counter') .downdown ({: text: format: 'hms'})}); Simple examples on

c# LINQ creating anonymous type from run-time information -

Say I have a list of column names that are populated in run-time. I mean average values ​​for each column names How to use LINQ Expression to create, as if the query is grouped by: var result = from the data in the view Group data by ANI number () {group = data.Field & lt; String & gt; ("Group_no")} new {group = grp.Key.Group in GRP, // add anonymous value for each column average}; As far as I can tell you that you can not tell within the anonymous scope? Is there any way to do this? Thank you. / P> You can not Instead, you can create a dictionary: average = table. Columns Cast & lt; DataColumn & gt; (). ToDictionary (c = & gt; c.ColumnName, c => grp.Average (dr = & gt; Convert.ToDouble (dr [c]])) Convert. Coded is required because I do not know what Kalman is, and the average needs a specific numerical type. If all the columns are the same numerical type, then you can change it with an artist.

java - how can i generate a unique int from a unique string? -

I have an object with a string that has a unique ID (like "OSX 7 GF" or "67 HFS 8 ") I need an implementation of the INSI code (which is clearly unique). The easiest / fastest way I can? 10x Edit - OK I already know that String.hashcode is possible but it is not recommended in any place. In fact, 'if any other method is not recommended - should I use it or not, if my object is in the archive and I need to have a shake, do I include it in another string to make it more successful? needed? No, you need to implement not the unique value, " Clearly ", as most implementations will break. What would you like to do, especially if the general values ​​(if a value is more common than others), except for the special knowledge of its form, then it would be best to use the string of the string. With special knowledge of the boundaries of your ID format, optimizing it and performing better, though the misconceptions are more likely to improve ...

c# - .NET Client supporting multiple versions of an unmanaged DLL -

I am developing a .NET 4.0 client which will use the C library for data processing. The user will be able to specify the DLL file you want to load for processing. I am loading late bond / assembly as described here. For each DLL, the same method call sequence in my client will be similar, but the method signing will change or the data strings will be changed. Based on version of DLL and other factors, the population data with structures will be different. For example, the definition of MyStruct will change based on the version of DLL. Public Representative int INTF_my_method (Ref: MyStruct pDataStruct); What design patterns or design approaches are recommended for this approach? I need to load proper system representatives and data definitions based on the version of the DLL that the user has specified, and have properly populated the structures. Has anyone done something like this before? There is no clear view in it, neither in managed code nor in native code. Best...

nhibernate - Visual Studio - Can't remove binary reference from website project -

I plan to check for renewal from NHibernate 2 to 3. The first port of the call seems to be removing the reference from NHibernate.dll to the website project. If I simply delete the file from the bin folder, then when I create the website, it shows it again, then the website knows that it should be there. If I open the property for the website and look at the list of references, NHibernate.dll is not there, in fact, none of my binary references, only the project and .net reference Is anyone trapped by this? Can anyone help? Could it be that you have another library that refers to NHibernate (eg BusinessLogic Or DAL)? If so, then you need to change the context there. If it is not, try to convert it directly into bin folder. Do not forget to replace other DLL (Iesi.Collections.dll 3.1 and Iesi.Collections.dll, Remotion.Data.Linq.dll , For Antlr3.Runtime.dll 3.0 and DLLs for proxy (loading lazy). By the way, it is useful for all external DLLs found in such situations, from...

java - How can I hash composite classes? -

चलो सार एक अमूर्त वर्ग हो, और A1, A2, ..., एक कंक्रीट वर्ग जो कि अस्थिरता से प्राप्त होते हैं। ऐ में से प्रत्येक में सार की एक सूची है और एक पूर्व-परिभाषित है, जो समय के संकलन में ज्ञात है, आदिम प्रकारों का सेट है, मान लें कि हमारे पास उनके लिए एक शांत समारोह है, और प्रत्येक कंक्रीट तत्व की संरचना में कोई 'लूप' नहीं हैं। दो तत्व ई 1 और ई 2 समान हैं यदि उनके पूर्वनिर्धारित प्राचीनों के लिए समान मूल्य हैं, और यदि प्रत्येक सार ई 1 में, ई 2 में एक सार मौजूद है, जैसे कि ई 1 और ई 2 समान हैं। (दूसरे शब्दों में, आदेश महत्वपूर्ण नहीं है)। मैं इस तरह की समस्या के लिए एक अच्छा हैश अनुमानी की तलाश कर रहा हूं। यह (और जहां तक ​​मुझे पता है, नहीं किया जा सकता है) एक पूर्ण हैश फंक्शन नहीं है, लेकिन इसे रनवे पर गणना करना अच्छा और आसान होना चाहिए। मुझे खुशी होगी अगर कोई मुझे कुछ दिशानिर्देश दें कि इस तरह के कार्य को कैसे कार्यान्वित करें, या इस आलेख के पते पर मुझे निर्देशित करें। पीएस मैं जावा में लिख रहा हूं, और मुझे लगता है कि अगर मैं गलत हूं तो मुझे सही बनाएं हैश ()...

ip geolocation - getting the location of the browser -

Is it possible to detect the location of the place from where I browse through the net or any other way I mean it? You will need a database from this site (http://ipinfodb.com/ip_database php) or ... well from any other site that maintains a date database about it, and then a long time to write some code long ... ... (at least for the IPv4) Type to search

php - URL rewriting redirecting to a single file -

Assume that I have the project folder: folder / model folder / view folder / Control folder / public folder / library We now say that the site folder is folder / public / and inside that folder index.php . For example, this file is GET parameter index.php? Page = user handles all site page requests via user.php file will apply to any other folder. The issue is that I like the URL like: www.site.com/index.php?page=user&id=1 www.site.com/user/id/1 How can I do this? It is derived from .htacess rewrite rule: Lt; IfModule mod_rewrite.c & gt; % {REQUEST_FILENAME} on RewriteEngine RewriteCond! -d Recovery code% {REQUEST_FILENAME}! -f Rewrite rules ^ (. *) $ Index.php? Url = $ 1 [QSA, L] & lt; / IfModule & gt; This will render everything under your host - - & gt; * From here your index.php $ _GET ['url'] // can parse browser requests for example www.site.com/user / Id / 1 $ Url = $ _GET ['url']; // user / id / 1 $ ...