Posts

Showing posts from July, 2012

php - What is the best way to get the URL of a 404'd file after redirect? -

I am working with a PHP site for which errors must be logged in a database. As such, I have set up an .htaccess file as follows: ErrorDocument 404 / 404.php All logging functions required to log in to 404.php include Database. Here went the content of $ _SERVER Suprglobl array: [HTTP_HOST] => {left} [HTTP_USER_AGENT] => Mozilla / 5.0 (Windows; U; Windows NT 5.1, en-US; RV .: 1.9.1.7) Lizard / 20,091,221 Firefox / 3.5.7 [HTTP_ACCEPT] => text / html, application / xhtml + xml, application / xml; Q = 0.9, * / *; q = 0.8 [HTTP_ACCEPT_LANGUAGE] => en-us, en; q = 0.5 [HTTP_ACCEPT_ENCODING] => gzip, remove air [HTTP_ACCEPT_CHARSET] => ISO-8859-1, utf-8; Q = 0.7, *; q = 0.7 [HTTP_KEEP_ALIVE] => 300 [HTTP_CONNECTION] => keep-alive [path] => / usr / local / bin: / usr / bin: / bin [SERVER_SIGNATURE] => [SERVER_SOFTWARE] => Apache / 2.2. 8 (Ubuntu) omitted [SERVER_NAME] => {} [SERVER_ADDR] => {left} [SERVER_PORT] => 80 [REMOTE_ADDR] => {lef...

login - Whats the best way to do user authentication in php? -

I'm just writing 2 cookies, 1 in which the user ID is, and 1/2 of the SH1 hash is password ( Salty) The way it works, it is self-evident. I realized that I was not doing it the safest way. What is a better way to do this? Preferably using a single authentication cookie. Also, is there any point in using "hard to calculate hash"? That means, using bcrypt, or husing 10,000 items with whirlpool each time, it has to do (relatively) slow hash function (less than 1 mS vs. 1 ms only) SHA1? I mean that someone violates your DB and takes the senses ... what's left there to protect it, because all your data is in one DB (unless you have some type of D- Centralized setup is not what I'm not). / P> Store session IDs in the cookie, and log on to the user's status server side (logs) In, user id, ip). To illustrate what you need to store in the session array: Login: A Boolean variable about which user login Yes or No . You can reuse the same cookie for ...

c# - Is there any way to control where the output file of a T4 is generated to? -

I would like to generate the C # code for Silverlight, but I do not have access to some DLL which will make my T4 code even more powerful. Is there any T4 template in any C # Class Library and does it have to generate a file in the Silverlight class library? You can use the T4 toolbox for this, I remember that a few months ago this topic Was coming; Someone successfully used this approach specifically with a silver lighting project. Oleg

c# - asp - Cannot find method 'IsNullOrEmpty(String)' in 'String' -

A string is not empty, so I'm just trying to print, and I am using the code below , But it is coming along with error ... & Lt; Strong> Details: & lt; / Strong> & Lt; BR & gt; & Lt; HR size = "1" & gt; & Lt; Strong & gt; & Lt;% = o_handler.renderDesc ()%> & Lt; / Strong & gt; & Lt; HR size = "1" & gt; & Lt; BR & gt; & Lt;%} Other {%> & Lt;%}% & gt; Also tried: & lt;% if (o_handler.renderDesc ()! = Null) {%> & Lt; Strong> Details: & lt; / Strong> & Lt; BR & gt; & Lt; HR size = "1" & gt; & Lt; Strong & gt; & Lt;% = o_handler.renderDesc ()%> & Lt; / Strong & gt; & Lt; HR size = "1" & gt; & Lt; BR & gt; & Lt;%} Other {%> & Lt;%}% & gt; Here's the error: Compiler Error Message: VJS1223: Can not find 'IsNullOrEmpty (string)' method in 'strin...

ajax - upgraded to jquery 1.4.1 & now getting parse error -

I have tried to upgrade from jQuery 1.2.6 to 1.4.1. A JSON query is now unsuccessful with the error: "Parser, Invalid Label" I have simplified the minimum code. var jsonUrl = "process_01.php"; $ AZ ({type: "post", url: jsonUrl, data: "var = myVar", datatype: "Jason", preceded: function (msg) {}, success: function (msg) {}, error: function , TextStatus, errorThrown) {Warning ("An error has occurred (" + TextStatus + "" + Error + + ")");}}); return false; } The output of the php program is {"foo": "bar", "istru": "true"} I can see it in firebug Ensure that your content type is set to App / Jason. See also, it looks like your problem.

.net - How do you write a consistent UI Automation for MS? MSAA & UI Automation don't seem to overlap -

Work on a common automation tool, consider moving the Win32 message hook up to NIT UI automation, although the UI automation The feature set does not include all of us in Win32 and still does not support all GUI on Windows. One such example is Windows Live Messenger. Windows Live Messenger 2009 is still using the old DirectUIHwnd to attract the GUI. This means that you can not use windows messages to send in control, because the controls do not have its own HWND. This new The new UI also appears to defeat the automation framework, though the documentation appears to be such that it may include in the document. To indicate which MSAA can communicate with the content on which it has been shown. Is there some trick to get the old MSAA technology that is trying to replace UI automation rather than working with UI automation? Unlike Windows Messenger, there are not many solutions in trying to automate the same Windows for windows, where each of these techniques is legitimate and...

Range of python's random.random() from the standard library -

Does the random of Python (raid) ever return 1.0 or does it return only to 0.9999 ..? docs are here: ... random (), Which generates a random boat, evenly in the semi-open range [0.0, 1.0]. So, the return value will be greater than or equal to 0, and less than 1.0.

c++ - State machine implementation -

I have a state machine as described below. We can start in one of the two early states, but we have to kill all four states of handicrafts. From there, we can either transfer the payload of data or get a payload of data. After that, we return to our original starting position. Handshake: -> Initial Step 1 -> LastState 1 -> Initial Step 2 -> LastState 2 -> Initial Step 2 -> FinalText 2 -> Startgate 1 -> Finalist 1 Payload Transfer: -> Send SendPage -> Sendend -> Startup Starts? -> ReceiveLoad -> Received -> StartState? The code below shows my existing architecture. Unfortunately, at the end of each process, I do not have enough information from within the states, to know what hit I should do to the next state . Do anyone have any suggestions on how to improve this architecture? Thanks, Paul H Class MyMachine; Class payload; Class ISTAT {Maimachin * reference_; ISESS (MyMatchin * context): reference_ (context) {}; Virtu...

parsing - How can I parse space separated STDIN hex strings unpacked in Perl? -

I have a Java program that exits from space in hexadecimal format, 16 bytes of raw packets received on the network. Since I do not want to change that code, I'm piping the results on Perl script, which can theoretically, unpack from STDIN in the recognizable variable . The following is a sample of line input in the Perl file: FF FF 09 7D 10 01 07 01 00 02 00 1 00 00 00 00 00 00 06 00 07 00 | -Jerbage ----- | C-- | C-- | Integer --- | Integer --- | Integer --- | Integer --- | Integer --- | Integer --- | Integer --- | (int is for four / byte, 16bit integer variables for C) I initially wanted to use unpack so that each input line I wanted to be separated into the variable I wanted. However, due to the location limit in the string, I'm not sure how to handle it (I can use 'A' as a template, but then I can also use split!) Is there a great way to use unpack () ? I'm not a Pearl Master, but on the other side, as I had suggested earlier, use split and ...

performance - Why should I use Google's CDN for jQuery? -

This may be obvious to some, but I'm wondering: Why should I rely on jquery hosting for my site? should be there? Is it just because it loads like this fast? The reason for this is: This is called equality Offers. (Most browsers will only download 3 or 4 files from any site at one time.) This chance increases That will be cash-hit. (As more sites follow this practice, more users have file ready. This ensures that the payload will be as small as possible. (Google can initially compress files in extended formats (such as GZIP or DEFLATE). This time-to-download is too short Because it is super compressed and it is not compressed on the fly.) This is by your s Ever decreases the amount of bandwidth used. (Google is basically offering free bandwidth.) ensures that the user will get a geographical response. / Strong> (Google has servers all over the world, and latency is now decreasing.) (Optional) They will automatically keep your script t...

ruby on rails - HABTM Relationship and Named Scopes -

I am working on this for a while and I do not know where the error is there. I have a user model (: name, password, email), and event model (: name,: etc.) and interest model (: name) [> all singular & lt;] Then I created two joining tables -> User lists and Events; Each has no primary key and only includes user_id / interest_id and event_id / interest_id. [> Plural and lieutenant;] My model has HABTM relationships such as user.rb = & gt; Has_and_belongs_to_many: Interests event.rb = & gt; Has_and_belongs_to_many: Interest interest.rb = & gt; Has_and_belongs_to_many: User has_and_belongs_to_many: events events_interests.rb = & gt; Has_and_belongs_to_many: Interests have_and_belongs_to_many: events_worlds.rb = & gt; Has_and_belongs_to_many: The user has__and_bangs_to_many: interests Whew..ok So I wanted to create a named_scope, which looks for all the events that share interest with all special events. Here's some code that has helped...

c# - Proper way to handle thousands of calls to external service from asp.net (mvc) -

I have been assigned to create a web application. I am currently using c # & amp; m; Asp.net (MVC - but I doubt about it related to this question) - I'm a cheat developer and purifies something new. In the creation of the application, a part of the argument, smsgateway through killing a particular url with a request - either in the webpage (as part of the action initiated by a user in the message Something may happen) or as a part of the daily scheduling run (and several thousand messages can be sent). Regarding a daily work, I am afraid that looping - says - in a thread 10.000 times (especially if im also to take action based on the response of the request - like write a db ) Is not the best strategy and I can get some performance / repeated benefits from some parallelism. Eventually I am afraid that at the same time thousands of users (very likely) will complete the task that triggers a check. For every request, any type of background thread (whatever is called), I am...

sql server 2005 - Unable to create index because of duplicate that doesn't exist? -

I'm having an error running the following Transact-SQL command: Create unique error : Make message 1505, Level 16, State 1, Line 1 end unique index statement because a duplicate key was found for the object name 'dbo.DimMeasureTopic' and the index name 'IX_TopicShortName'. Duplicate key value () is. When I run SELECT * FROM sys.indexes, name = 'IX_TopicShortName' or SELECT * FROM from SYS. Indexed WHERE object_id = OBJECT_ID (N '[dbo]. [DimMeasureTopic]') The IX_TopicShortName index is not displayed so there is no duplicate. I have the same schema in another database and can create index without problems. Why not make any ideas here? It is not that the index already exists, but in the table there TopicShortName Duplicate values ​​in the field are duplicate value as an error message is an empty string (this may be one aspect of posting I probably do). Such a duplicate prevents a UNIQUE index from halting. You can run a qu...

c# - append a parameter to querystring of existing url asp.net mvc -

I am using asp.net mvc. C # How can I get an existing URL (it can be a bunch of query string parameters) and then just add another parameter to the xstring. And make it a clickable hyperlink. variable to pass a custom RouteValueDictionary HTMLAction link. Try doing something like this: & lt;% var rvd = New RootViewView (ViewContext.RouteData.Values); Forchha (string key in the request.StringString.Keys) {rvd [key] = Request.QueryString [key]; } RVD ["MyParam"] = "Whatever"; Response. White (HTML ActionLink ("Link Text", "Action", RVD)); & Gt%;

Can a Java EE solution architect contribute in a .NET shop? -

The organization I work with is invested in NAT technology, including high traffic ASP.NET websites. . Internal and External Clients We have been able to hire a solution architect to support these applications and work on new initiatives. Many of the upcoming resumed candidates are those who have full working experience of JavaEE. My question is, is it worth it to hire a Java E Architect when the environment we work in is mainly the net? Is skill transferable? Yes. The real question is how much? Regions where they can effectively contribute: Standard Web Technologies : HTTP, CSS, XHTML, XML , XSLT Pattern : MVC, four gangs etc. High-level design areas where they will not be able to contribute effectively: display tuning Security Low-level design

ruby - When to use blocks -

I love Ruby Blocks! The idea behind them is very clean and convenient. I have just seen my code back in the last week or again, which is basically I have ever written in every Ruby function , and I have noticed that among them Nobody gives a price! Instead of returning values, I always use a block to send back the data! I have noticed myself writing a small status class which allows me to write code: some.v_stuffing. Position | Status.success # Successful code end position. The file # puts the failed code in position. End of terrorism end Am I using too many blocks? Is it time to use the blocks and have time to use the return value? Do you have any information? Will the blocks be of great use and will I ever cut off? The whole thing will be more readable as: . Do_stuff #Unforced code is the second #Unffective code end or to use a common rail idiom: If the user.save render: Action = >: User. Errors.Each | ARR, msg | Code blocks are overuse when IOMHO,...

Really weird issue with shelve (python) -

मैं foo_module.py नामक एक फ़ाइल बनाऊँ जिसमें निम्न कोड है: आयात को रोकना, जेडीबी, os से foo_package.g आयात g gshelf = shelve.open ("foo_path") g.shelf.close () मुद्रित करें जेडीबी.वहिदा ("foo_path") # = & gt; Dbhash os.remove ("foo_path") उस फाइल के बगल में मैं एक foo_package नामक एक डायरेक्टरी बना देता हूं जिसमें रिक्त __ init __। Py फाइल और फ़ाइल g.py नामक फ़ाइल में शामिल है: class g: pass अब जब मैं foo_module.py मुझे एक अजीब त्रुटि संदेश मिलता है: अपवाद प्रकार त्रुटि: "'कोई भी प्रकार' ऑब्जेक्ट कॉल करने योग्य नहीं है" अनदेखा किए गए में लेकिन फिर, अगर मैं foo_package से foo की निर्देशिका का नाम बदलता हूं, और foo_module.py में आयात लाइन को बदलता हूं, तो मुझे नहीं मिलता कोई त्रुटि Wtf यहाँ पर जा रहा है? WinXP पर अजगर 2.6.4 चल रहा है। मुझे लगता है कि आपने कार्यक्रम के अंत में क्लीन अप से संबंधित 2.6.4 के कोड में मामूली बग को मारा है। यदि आप python -v को चलाते हैं, तो आप वास्तव में देख सकते ...

javascript - jQuery effect on iframe parent document -

Just wondered if someone else has experienced it or I know why I got the error. Using Javascript from within so that parents dome element can be called, use the jQuery UI effect core by shaking it. Here is an example: $ (document) .ready (function () {if ($ ("form"). Length> 0) {$ ("form"). (Function () {var oParentDoc = $ (parent.document) .find ("div # element"); var action = $ (this) .attr ("action"); var postdata = $ (this) .serialize () ; $ ("Loading"). ("Shake", {"bar": 3, "open" distance ": 10}, 60);}); return false;});}}); It works without effect, but when I use an effect, I get this error: exception exception: [exception. . "Component Back Failure Code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCSSStyleDeclaration.getPropertyValue]" nsr Esult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" Thank you in advance for any insights :) I'm not sure this will w...

html - I need to open a new window in the background with JavaScript, and make sure the original is still focused -

I have a window that I am opening with the javascript function: function newwindow () {Window.open ('link.html', '', 'width =, height =, resizable = no'); } I need that once the new window opens, the focus returns to the original window. How can I do that? And where do I place the new code or code in the old one? Thanks! It is known as 'pop-unders' (and generally it is ... But I want to retract). You should give Google a lot about it You probably want to do something like this: var popup = window.open (...); Popup.blur (); Window.focus (); The focus must be set back in the original window (untested - pinched from Google). Some browsers can block this technique.

PHP: send email cause timeout -

मैंने एक eblast आवेदन विकसित किया है प्रोग्राम कुछ प्राप्तकर्ताओं को एक ईमेल भेजने के लिए उपयोग किया जाता है प्राप्तकर्ता ईमेल एक एक्सएलएस फ़ाइल से प्राप्त होगा और कार्यक्रम ने इसे हर बार 10 ईमेल भेजने और 30 सेकंड सोने के लिए सेट किया है और ob_flush () का उपयोग करें ; और फ्लश (); कल सुबह मेरे ग्राहक 9000 प्राप्तकर्ताओं के साथ परीक्षण करते हैं (इसे लगभग 10 घंटे लगना चाहिए) और उसने मुझे बताया कि कार्यक्रम बंद हो गया है, और मुझे लगता है कि लॉग फ़ाइल का निशान है कि कार्यक्रम 65XX ईमेल पर बंद कर दिया गया है, जिसका अर्थ है कि प्रोग्राम ने पहले ही 6XXX ईमेल (arround 7hour) भेज दिया है और यह समस्या कभी नहीं होगी क्रॉन जॉब में, लेकिन केवल तब होता है जब exec को वेब ब्राउजर मेरे frd ने मुझे बताया क्योंकि यह सब लंबे समय तक नींद के बारे में है? और उन्होंने क्रॉन जॉब का उपयोग करने का सुझाव दिया आवेदन करने के लिए पहले से ही क्रॉन जॉब है, क्लाइंट को तुरंत ईमेल भेजने के लिए एक सुविधा है हल करने के लिए कोई अन्य समाधान? Php कॉल को एक लिनक्स कमांड और excu एक php ईमेल भेजने स्क्...

amazon ec2 - EC2 Instance Cloning -

क्या यह एक EC2 उदाहरण डेटा और सभी को क्लोन करना संभव है? आप एक मौजूदा उदाहरण बना सकते हैं, और उसके बाद अन्य उदाहरणों को लॉन्च कर सकते हैं।

IPhone Developer 'Standard Company' Program Question -

Hi, I'm considering $ 99 for the 'standard person' or 'standard company' program. My question is that to open a business program for me, I need a legally registered business (Corp, LLC, etc.) or I just need a business name i.e. "sweet potato studio" or something else Can I put it down? (Sorry for my ignorance) I do business rather than a business name in comparison to the real name that appears in the app store, but on the other hand I do not want to go to an ALC opening headache or in any way. Not yet anyway. I think you must prove that your company is legal Why not register the company or business number in your country as a person now, then establish a company and register again when you are ready for app store?

ruby on rails - Create a text file on client-side programatically -

We have a Ruby-on-Rail server-side deployment that allows users to auto-remove the pre-compiled Windows XP File We need to dynamically generate a text file (depending on the user ID) and deploy it on the client machine somewhere where EXE can find it. We have 2 options: Generate this text file on a Linux server and SOMEHOW? Embed it in Windows X. It looks far away Obtain the user to download the static EXE and get information about dynamic text stored on the client machine in any way (either an invisible download, cookies, VBSPIT or Javascript on the client side) Note that we now have 2 separate download links (1 due to problems related to that user experience (i.e. ugly) Nemic has left for text information 1 and 1) the UX, download can be downloaded on the different paths etc.). I'm not much of a web developer, but after spending a few minutes on Google, I think both problems are troublesome and unattractive. Does anyone have a smart idea? Some ideas: 1) th...

actionlink - Adding rel and title to ASP.NET MVC Action Links -

I have decided to add "Reliance Energy" mainly to my action link for SEO reasons, but I'm not sure That's the way I have gone about this "best practices." I just created a new extension method as shown below. Is it the best way to go about doing this? Are there any things that should be modified in this approach? VIEW & lt;% = html.ActionLink ("Home", "Index", "Home"). Add (" Me ") .AddTitle (" Russell Solberg ")% & gt; Extension methods public static string AddRel (this string link, string relay) {var tempLink = link.Insert ( Link.IndexOf ("& gt;"), String.Format ("rel = '{0}'", rel)); Return temple link; } Public Static String AddTitle (this string link, string title) {var tempLink = link.Insert (link.IndexOf ("& gt;"), String.Format ("title = '{0}'", title)); Return temple link; } You can add any additional HTM...

actionscript 3 - Flash: combine two BitmapData objects via max( channel ) -

There are two bitmap data objects with my alpha channel. I use the maximum for each channel, using alpha (channel_image_one, channel_image_two) I want to add them to singles. Is there an easy way to get this result? I do not think the direct betamapadata method is to combine the alpha channel in such a way that with the help of RGB draw () Is implementing a mixing mode, but I do not think if you need a link maximum per channel). In addition to this, you can make a shader thanks to this task, it is the perfect tool for such manipulations. Slowly but fast setup in the display If you were not used for PB then you can read / compare the pixels once again with bitmap data .getPixel32 () / setPixel32 (). If you go for this, think about using bitmap data () / unlock () to boost performance.

XAML: Can I refer to a Grid row or column by name? -

If I name each row and column in the grid, can I set the grid of the control .row = "Row_Top"? I have defined StaticResources to refer to this but without the resource there is no converter or any other way to accomplish it? As far as I know there is no built-in method to do this ... nevertheless , You can use the markup extension to retrieve the column from a row or its name: [MarkupExtensionReturnType (typeof (int))] Public Intangible Class GridBandExtensionBase: MarkupExtension {Public Override Object ProvideValue (! IServiceProvider ServiceProvider) {if (ServiceProvider = null) {var Target = serviceProvider.GetService (typeof (IProvideValueTarget)) as IProvideValueTarget; If (target! = Null) {var obj = target.TargetObject as a dependency object; If (obj! = Null) {var grid = VisualTreeHelper.GetParent (obj) as grid; If (grid! = Null) {return GetBandIndex (grid); }}}} Return 0; } Protected summary Ink gateband index (grid grid); } Public Square GridRowExtension: Gr...

Background image size for Android -

I have an image that I want to put on my activity in the background. For G1, I will use the background of 320x480, but the resolution with the Nexus 1 is almost double. Do I just keep a big image and reduce the size of small phones? I am trying to keep my package size as much as possible. If it is a simple color or a gradient, you can share the same painting for all screen resolutions Are there. If it is a more complex graphic, then you have to give them a different screen resolution (or density) "droble-nodpy", "drawable-HDPI" etc.).

security - How does one protect a webapp to be accessed only by localhost? -

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

visual studio 2008 - How to set the path of cl.exe in the .vcproj file -

How can I set up the .vcproj file in cl.exe project? Will Cpp be applied to compile files? I could not find any such property in the documentation. I know that I can set the 'path' environment variable and then start the devenv.exe with the / USEENV switch, but now it is what I really want to do. I like the path of cl.exe set in the .vcproj file. TIA I do not think this can be done, the interesting thing is that I have been in this situation so far I ran, but uses the USEENV switch to handle it.

jar - java.lang.ClassNotFoundException -

I have an applet (jar file) embedded in an html page Now when I'm trying to use the web page, it is giving the following error . & Lt; Read applet code = "ComkxxxktrukReadNFCSerialNumber" name = "read" id = "" MAYSCRIPT alt = "photo ID" collection = "\ test.jar, \ ojdbc14.signed.jar, \ ojdbc14_g.signed.jar "Width =" 100% "height =" 100% "hspace =" 1 "VSPACE =" 1 "& gt; & Lt; / Applet & gt; Load: Class com.xxx.tru.ReadNFCSerialNumber not found. java.lang.ClassNotFoundException: com.xxx.tru.ReadNFCSerialNumber (unknown source sun.plugin2.applet.Applet2ClassLoader.findClass (Unknown Source) at java.lang.ClassLoader.loadClass (Unknown Source) at java.lang.ClassLoader.loadClass ) in Sunkplugin2kappletkPlugin2ClassLoaderkloadCode (unknown source) (unknown source) at sun.plugin2.applet.Plugin2Manager.createApplet on sun.plugin2.applet.Plugin2Manager $ AppletExecutionRunnable...

Programmatically logout from Gmail via Oauth -

I have a website where I use the oyoth to login to Gmail, and after that Get contact and other information. What do I need to do to ensure that when a user logs off my website, it also automatically logs out of Gmail? As far as I know, there is no logout in OAuth, between your application and Gmail Stop sending tokens.

ms access - How to search subform and use data to add record in another subform -

मेरे पास एक सबफ़ोर्म INVOICEDETAIL (ITEMID, InvoiceID, मात्रा, मूल्य) के साथ एक मुख्य प्रपत्र INVOICE है और ALLITEMS (प्राथमिक कुंजी ITID और subforms) INVOICE INVOICEDETAIL से इनवॉइसआईड फ़ील्ड के साथ जुड़ा हुआ है, जबकि INVOICE ALLITEM से लिंक नहीं है, इसलिए सभी आइटम ALLITEM में प्रदर्शित होते हैं। मैं चाहता हूं कि उपयोगकर्ता को डबल क्लिक करने में सक्षम हो ALLITEMS सबफ़ॉर्म पर आइटम और आइटम INVOICEDETAIL सबफ़ॉर्म में जोड़ा गया है शायद एक डायलॉग बॉक्स पॉप अप करने के लिए उपयोगकर्ता को INVOICEDETAIL में मात्रा और मूल्य दर्ज करने के लिए इन्वॉइसिएटल में सेट किया गया है ताकि उपयोगकर्ता को यह जानकारी दर्ज कर सकें। क्या आप मदद कर सकते हैं? शायद ऑलआईटम्स आईडी नियंत्रण की डबल क्लिक इवेंट में इस की तर्ज पर कुछ: Me माता-पिता। [इनवॉइस डैटबेट सबफॉर्म कंट्रोल नेम]। सैटफोकस डूसीएमडी। गोस्टोराकॉर्ड एसीएक्टिवडेटा ऑब्जेक्ट,, एसीएनईआरईसी मी। पेरेंट। [इनवॉइस डैटबेट सबफॉर्म कंट्रोल नेम]। फोर्म.आईडी = आई! आईडी आई.पैंट। [इनवॉइस डैटबेट सबफॉर्म कंट्रोल नेम] .फ़ॉर्म.पीस। सेटफोकस वैकल्पिक रूप स...

Custom enum as application setting type in C#? -

यदि सी # में एक enum है: [serializable] सार्वजनिक enum ऑपरेटिंग सिस्टम {विंडोज़, मैकिन्टोश} मेरे आवेदन के लिए मैं अनुप्रयोग सेटिंग्स का उपयोग करता हूँ, जहां मैं एक प्रकार की सेटिंग का चयन कर सकता हूं। मैंने सोचा कि जब मैं ब्राउज़ करें का चयन करता हूं, तो मैं अपने एंमान का चयन कर सकता हूं या टाइप की तरह उस एनएएम को चुनने के लिए पूरी तरह योग्य पथ टाइप कर सकता हूं। संपादित करें: मैं अपने ऐन्यू में टाइप करता हूं, लेकिन वैल्यू में (जहां विंडोज, मैकिंटोश होना चाहिए) केवल विंडोज दिखाई दे रहा है और मैं प्रवेश कर पा रहा हूं किसी भी स्ट्रिंग। मैं इसे वीसी # एक्सप्रेस 2005 में देखता हूं। ब्राउज .. "एक प्रकार चुनें" संवाद केवल सिस्टम और माइक्रोसॉफ्ट नामस्थान दिखाता है हालांकि यदि आप चयनित प्रकार के टेक्स्टबॉक्स में टाइप का पूरा नाम डालें तो उसे इसे स्वीकार करना चाहिए।

javascript - mouseover on text html -

In my JavaScript file, var htm = '& lt; Div style = "overflow: hidden; height: 24px; width: 150px;" Onmouseover = "tooltip (this)" & gt; '; Function Tooltip (SP) {sp.title = sp.innerHTML; } Then tooltips are displayed to the mouse on a tool. But the tool tip does not last long. Which means that the situation is not decided. What code can be modified, that the mouse and tool tip should be done on the text ........ If you want all the" built-in "tooltips, then there is no need to do it dynamically just the HTML element with the code containing a" title "attribute that you want on the browser mouseover Tooltip will show. If you want some fantasy, then you should probably look at a jQuery add-on (or any other framework).

python - How do I detect a lost client connection in a server that inherits from pb.Root? -

For example, I have a customer who connects to the server with the following: Category MyClientFactory (pb.PBClientFactory): def __init __ (self): pb.PBClientFactory .__ init __ (self) self.ipaddress = created a DIF client connection (auto, broker): log.msg (' Start to connect '. PBClientFactory.clientConnectionMade (self, broker) def build protocol (auto, endorse): log.msg ('% s' connect to% addr) Return pb.PBClientFactory.buildProtocol (self, ADR) DIF client ClientFactory.clientConnectionLost (Self, Connector, Reason) DIF Client Connecting Fail (Self, Connector, Reason): log. ClientFactory ClientConnectionLost (auto, connector, reason) Therefore the client can automatically detect that the connection is lost . How do I get the same behavior from the server, the customer Programming should go down, for example crashing? I currently have a DeadReferenceError, (by recreating via a list of potentially connected customers), but this is a non-incident driven r...

android - Is there way to get private signed keystore file from previous apk release file? -

I created a personalized signed keystore using Eclipse and I have released an APK file in the Android Market website. After a few days we found some problems with users and we have fixed issues but I do not have a private signature keystore file. While creating an APK file, I need to use the private signature keystore file used in the previous version release. Is there a way to get a private signage keystore file from the previous APK release file? "post-text" itemprop = "text"> No You sign your APC using your Private key, which your APK after that contains your public certificate Private key can not be obtained from this file Otherwise, you will be able to remove any key and sign the apps under your name. That's why the Android Dev Guide.

validate input field in jsf datatable -

I have an input field in the jsf dataset which I am validating and adding an error message, but the error message is not displayed it happens. What is the best way to validate the input field and add message in JSF Datable? & lt; H: InputTactress ID = "TextAra1" style = "#Input" "gt; & lt; f: attribute name =" msgRef "value =" valid comment is required. "/ & Gt; & lt; / h: inputTextarea & Lt; h: class = "message" for message style = "textarea1" id = "textarea1 message" & gt; & lt; / h: message & gt; Any help is great. Thanks, Sujit This code looks properly Assuming that they are both placed within & lt; h: Columns & gt; (though similar column is not), so The problem is elsewhere. If you want to be valid after all whether the value is filled or not, then you need to add the component to essential = "true" & lt; h: inputSomething = ...

image - OpenID. How create special link -

I'm trying to authenticate OpenID authentication on the site, but I'm not making it, and link example: but a question. How do I create such links for services like Google, Yahoo, AOL, Twitter, Facebook and others? Sorry for the wrong english. What links are these, present a preset value to the OpenID process, usually for that site OP identifier You should be able to use something like that; If not directly, looking at its source code.

c# - Getting a stable dataset after update -

I have a dataset that has modified, inserted and deleted the rows I send datasets. My intermediary gate changelog, which in turn, sends it to the server, which updates the database. I use GetChanges so I send some rows as possible The server updates, inserts and removes the rows just fine and sends back the updated dataset which I can then return to my local Merge with dataset. The problem is that when the primary key does not match, I get duplicated additions / modified lines, so I think I want to call the rejected call after the merge which will delete all the remaining changes (this will be a duplicate). The problem is that all deleted rows are still left in datasets. The merge does not remove deleted lines, I need to call AcceptChanges to do this. Therefore, I need to accept both acceptance and reject but this is not possible. Is there a good way to do this? Thank you! If you accept on a dataset, take care of yourself before sending changes in the middle class datase...

java - Swing dialog Paint Issue -

I have a swing GUI that displays a dialog when a business is displayed, but sometimes does not color the pop-up There is a reason to move another application to the Dialog Paint Area (the place where the dialog should be displayed). I am not able to reproduce this issue continuously. I know that the "Direct 3D Quick Render Pipeline" version was enabled by default on JDK 6u10, and it is compatible only with some video cards. What is the best way to debug this problem? Is there a way to verify that this is a problem with the new "Direct 3D" setting? How can I get more information for diagnosing the problem? This may be one of the few issues. There is a chance that you are not painting in the event dispatch thread, which can have undefined effects. It is also a good chance that your program is throwing an exception while trying to paint. Can you confirm that an exception is being thrown (or swallowed without being printed on log / console)?

Does a Search engine rate the alt attribute on image tags? -

Is there even alt contribution in the search engine rate image tag? In my opinion, the specialty was for blind people. A quick Google search led me to this blog post: It looks like at least Google Alt attributes are examining but every search engine has its own methods, so [your favorite search engine] can not use it.

sql - Why isn't index used for this query? -

I had a question where an index was not used when I thought it might be, so I asked her Republished: Create a test_table with 1.000.000 rows (10 specific value in col , some_data 500 bytes of data). LAPAD ('X', 500, 'X') from D-connection to ROWNUM from couple of-DTA & lt; = 1000000); Create test_table as create table (select MODE (ROWNUM, 10) Create an index and collect table statistics: Create an index test_index on test_table (col); EXEC dbms_stats.gather_table_stats ('MY_SCHEMA', 'TEST_TABLE'); col and COUNT : call expansion plan for selection, call by COUNT (*) by test_table group; -------- ---------------------------------------------------- ----------------------- | ID | Operation | Name | Lines | Byte | Cost ( % CPU) | Pahr --------------------------------------------- | - | -------------------------------- | 0 | Select Command | 10 | 30 | 15816 (1 ) | 00:03:10 | 1 | by Hash Group | | 10 | 30 | 15816 (1) | 2 | Tab...

algorithm - How can I convert a function of input size defined recursively into a direct function of problem input size? -

Say I have an algorithm which is running on the input of size n and I know that the time it happens to n, it happens twice. It takes time for N -1 I can see in this simple matter (assuming that, for 1 second, n = 0), that algorithm takes 2 n seconds. Is there a general method for conversion to more familiar direct type expression in recursive defined definitions? "recursive work" such as these are called repetition correlation And their "direct type" is known as a close-form solution . While the master theorem listed by Poeta is very helpful, in computing time-complexity, it is not to have any relation with it in realizing the repetition relations. And the list of closed forms of some common sections of repetition ( "see also with" ) relationships. However, complex (non-linear) repetition relations can be very difficult to find solutions of closed-forms, if there is one, then there is no general algorithm to solve them.

java - How do I keep a user logged into my site for months? -

I am using OpenID How do I create it so that the user logs in for a long time after closing the browser window Are you doing How can I store a user's user object? Actually, I think I really can not understand how the sessions work in Java. So do you really like the "Remember me on this computer" option? This is actually unrelated to the OpenID part. Here's a language - you can do it in an unknowable way: First, at least cookie_id and user_id Create a DB table together Add cookie_ttl and ip_lock if necessary. The names of the columns speak for me I think On the first time login (if necessary with the "Remember me" option), Generate a long, unique, hard-guess The key (which is related to the user there is no way ) that shows cookie_id and it should be in code user_id . Store cookie_id as a cookie value with the cookie name known as, e.g. Remember. Give the cookie a long life, e.g. one year. On each request, check wh...

Edit form with default Jquery date values, jquery sets current date for field after page is loaded -

$ (दस्तावेज़) .ready (function () {$ ('# data_nasterii')। Datepicker ($। Datepicker.regional ['ro']); // रोमानी भाषा $ ('# data_nasterii')। तिथिपिकर ('विकल्प', 'परिवर्तनमान', सच); // ड्रॉपडाउन महीने $ ('# data_nasterii') के साथ। 'विकल्प', 'परिवर्तनवायु', सच); // वर्ष के साथ ड्रॉपडाउन ('# data_nasterii')। तिथिपिकर ('विकल्प', 'वर्षीय रेंज', '1 9 00: 2020'); // चयन करने योग्य वर्ष $ ('# data_nasterii ') .डेटाकॉकर (' विकल्प ',' तारीख स्वरूप ',' yy-mm-dd '); // दिनांक प्रारूप (उदा: 1981-07-25)}); ... // पीएचपी गूंज के साथ तारीख फ़ील्ड बनाना "& lt; td & gt; & lt; div align = \" left \ "& gt; & lt; इनपुट नाम = \" data_nasterii \ "प्रकार = \" text \ "id = \" data_nasterii \ "Value = \" "$ पंक्ति ['data_nasterii']।" \ "आकार = \" 10 \ "अधिकतम लंबाई =" 10 \ ...

ruby on rails - validating password format in Authlogic -

Authlogic has a way to validate the password format, for example at least one letter and at least one Number? To use a validates_format_of_password_options method in the works_as_authentic config block, it indicates that Authlogic believes that this should not interfere with anyone's users. / P> I thought I would just put in a normal ActiveRecord validates_format_of: password , but this means that a current_user object is inherently illegal, As I can, plain text can not be recovered (and it will not be stored in that object even though I could!). On finding out that my current_user is invalid, rail or athalogic (not sure that since I am quite new to both of them) for my password on my 'edit user' page Directed with a verification error. / P> No monkey-patching is required, but not tied to any future Authlogic changes. Just add it to your user model: validates_format_of: password ,: with => / ^ (???? =. \ d) (? =. ([az] : [AZ])) ([\ X20- \ x7E]...

android - Implementing a listview inside a sliding drawer with a listview already present -

मेरे पास एक ऐसा ऐप होता है जिसका मुख्य वर्ग ListActivity बढ़ाता है: सार्वजनिक वर्ग GUIPrototype ListActivity { @Create पर सार्वजनिक शून्य को ओवरराइड करें (बंडल सहेजे गए इन्स्टैंसस्टेट) {सुपर.नक्रेट (सहेजे गए इन्स्टेंसस्टेट); setContentView (R.layout.main); अंतिम कर्सर c = प्रबंधित क्वेरी (लोग। CONTENT_URI, नल, रिक्त, रिक्त, रिक्त); स्ट्रिंग [] से = नए स्ट्रिंग [] {People.NAME}; Int [] से = नए int [] {R.id.row_entry}; सरल कर्सर एडाप्टर एडाप्टर = नया सरलकर्त्ता एडाप्टर (यह, आर। लेआउट। ड्रॉवर, सी, से, से); setListAdapter (अनुकूलक); getListView () setTextFilterEnabled (सही)। }} मेरे पास एक्सएमएल में शामिल एक स्लाइडिंग दराज है, और मैं स्लाइडिंग दराज में प्रकट होने के लिए एक अलग सूची दृश्य प्राप्त करने का प्रयास कर रहा हूं। मैं एक inflater का उपयोग करके दूसरे listview को आबाद करने की कोशिश कर रहा हूं: देखें फुलाए गए दृश्य = दृश्य। (यह, आर। लेट। ListView namesLV = (ListView) inflatedView.findViewById (R.id.content); स्ट्रिंग [] नाम 2 = नया स्ट्रिंग [] {"सीएस 345", ...

javascript - JS: Most optimized way to remove a filename from a path in a string? -

मेरे पास स्ट्रिंग्स के रूप में निम्न प्रकार हैं: path / to / a / filename.txt अब मैं कुछ स्ट्रिंग हेरफेर करना चाहता हूं जो मुझे इस कोड से "filename.txt" भाग को बहुत कुशलतापूर्वक निकालने की अनुमति देता है। दूसरे शब्दों में, मैं चाहता हूं कि यह मेरी स्ट्रिंग बनें: path / to / a / ऐसा करने का सबसे प्रभावी तरीका क्या है? वर्तमान में मैं स्ट्रिंग को विभाजित कर रहा हूं और पिछले एक को छोड़कर अलग तत्वों को पुन: कनेक्ट कर रहा हूं, लेकिन मुझे लगता है कि यह वास्तव में, ऐसा करने के लिए बहुत ही अकुशल तरीका है। यहाँ मेरा वर्तमान, अक्षम कोड है: res.getpath = function (फ़ाइल) {var elem = file.split ("/"); Var str = ""; के लिए (var i = 0; i & lt; elem.length-1; i ++) str + = elem [i] + "/"; वापसी str; } आखिरी स्लैश की स्थिति को खोजने के लिए lastIndexOf () का उपयोग करें और भाग लें सेस्ट के साथ स्लैश से पहले ()। str.substring (0, str.lastIndexOf ("/"));

iphone - Copy file to the App Resources directory if debug configuration is selected -

I need to copy some files in the app's resource directory during debug builds. I I'm thinking, but do not know how to build debug build. I have the compiler option of "DEBUG" set. You can use the run script build step Copy All target settings apply when creating target Are available through your environment in your script. You can determine which configuration is being created through configuration environment variable; Where to determine your resource, you can see other environment variables such as BUILT_PRODUCTS_DIR if you correctly specify the output of your run script build phase, it will only be run when output Should be updated, every time you create. More information on run script build steps is available here: Similar work can be done with script build rules, which is useful if you have many resources You want to apply it to: You can create a script build rule that matches your extension (such as * .resource) and create your own copy throu...

Fallback format in rails -

For my CM I want to be able to easily add new topics, I think just a new type for new The theme was to add (hence application.theme1.erb will work). But for 99% of the subjects I do not want to change ideas, not all of them properly. Is there no way that the rail should return to HTML if the themed view is not present? I am very new to rail, so this is not a correct answer: You can try to use the query string parameter as part of the route described here: Then eventually something like this will work map.connect ': Subject /: controller /: action /: id' As I understand, the subject will be available as the ultimate [: subject] in the controller. If no topic has been specified, then you may have to add another route such as map.connect '/: controller /: action /: id' The i18n guide is described for some similar locals: Hope that helps.

java - Why does javac complain about not initialized variable? -

इस जावा कोड के लिए: स्ट्रिंग var; clazz.doSomething (वर); कंपाइलर इस त्रुटि की रिपोर्ट क्यों करता है: वेरिएबल 'var' को आरम्भ नहीं किया गया हो सकता है I सोचा कि सभी चर या संदर्भ को null पर आरंभ किया गया था। आपको करने की आवश्यकता क्यों है: स्ट्रिंग var = null; इंस्टासेंस और क्लास चर को रिक्त करने के लिए आरंभ किया जाता है (या 0), लेकिन स्थानीय वेरिएबल नहीं हैं। बहुत विस्तृत व्याख्या के लिए देखें जो मूल रूप से एक ही बात कहता है: एक प्रोग्राम में प्रत्येक चर होना चाहिए इसके मान के पहले एक मान का उपयोग किया जाता है: प्रत्येक वर्ग चर, इंस्टेंस चर, या सरणी घटक को मूल मान के साथ आरंभ किया जाता है जब इसे बनाया जाता है: [snipped सभी डिफ़ॉल्ट मानों की सूची] प्रत्येक विधि पैरामीटर विधि के इनवॉल्टर द्वारा प्रदान की गई संबंधित तर्क मान के लिए आरंभीकृत है। प्रत्येक कंस्ट्रक्टर पैरामीटर एक क्लास इंस्टेंस सृजन अभिव्यक्ति या स्पष्ट कंस्ट्रक्टर अभिविन्यास द्वारा प्रदान किए जाने वाले संबंधित तर्क मान में आरंभ किया गया है। एक अपवाद-हैंडलर पैरामीटर अपव...

SQL Server Integration Services SSIS 2005 - How to Let Users Run the Package? -

So I created a package in SSIS to read data from a text file and load it into a database table. What is the best way to set non-technical end users when desired? My boss was thinking that he should launch a SP, and then a report has been made in the reporting services, which launches the stored procedure. Definitely a better way! This is not completely straightforward, and comes with several health warnings, but the SSRS report To configure as possible, use an SSIS package as a data source - see. With this enabled, you submit an SSRS report to an additional step (or more) in your SSIS package.

What are pros & cons of Passed Arrays vs Global Arrays in Excel VBA -

OK, there is a second attempt to write a stack overprill question, so forgive me if it sounds familiar I am rewriting an Excel Macro that was created during the period of 2 1/2 years, Frankenstein style (added in laminate). One of the things I need, once loads the data in the array and only once for data accuracy and speed. For the level of my skill I am going to stick with the array method. My two approaches are as follows: Use Global Dimmed Dynamic Array Reduce the dynamic array in my main process and call them So, what are the two types of stack overflow that professionals have to take on the opposition? Thanks, Craig ... First of all, to answer the question that you specifically Do not ask: Set up a custom class and load data in it seriously, you will thank me later. OK, on ​​your question. I am starting to limit as much scope as possible. This means that I am exceeding the variables between the processes when you have the most restrictive scope in all your v...

c++ - Static library inspector for windows? -

I know that there are tools like PE Explorer to export the contents of DLL on windows (exported symbols, etc.). Is there something similar to stable libraries? I am linking against a third party library which generates some linking errors, and I would like to repeat the check that the symbols I expect to be provided are actually being provided. DUMPBIN utility, which is used for Microsoft Visual C ++ Provided with a 32-bit version, LINK, LIB, and EXEHDR combines the utility's capabilities. These tools have the ability to provide information about formats and symbols provided in executables, libraries, and DLL files.

javascript - I would like to interactively detect when an ActiveX component has been installed, and asynchronously refresh a portion of the page -

I am working on a website, and I want to refresh a portion of the page after the ActiveX component is installed . There is a general idea of ​​doing this with voting on me, on which I am working: function detectComponentThenSleep () {try // is available, or // ActiveXComponent.object == Faucet --- Exam for existence document .getElementById ("ActiveXComponent"). Some Method (); } Hold {// Retry, if the method is not available, setTimeout (detectComponentThenSleep, 100); }} However, what I should do is something like this: ActiveXObject.addListener ("onInstall", myfunction); I do not really have the source of ActiveX component, but I have full control of the page on which I am hosting it. I would like to use Javascript, if possible, to complete it, then my question 1.) Will this really work with voting method? And 2.) Is there a hurdle like this? I am sure that I am missing something with adding points here, I can already find out that the component...

date - How do I get GWT DateTimeFormat to display using the server TimeZone, rather than the client's? -

I am trying to display a client-side (java.util.), And this is the time zone As a result, How do I get the format (datetime format) to display the date using the server's timezone instead of the user? Thanks "Easiest" solution (which requires no communication from the server Is not) is forced only to use a specific timezone (in your server), like this: string pseudo-surfertime = datetime format.get fulltime format (). Format (New Date), Timezone.CreateTimeJones (Time Zone Conventions. Europwors ()); You can hardcode the timezone string / object anywhere as public static last so that you can easily change, if you change / change the server (And the GWT compiler will be inline, so there is no performance penalty).

iis - How do I cache at both client & server when VaryByParam != "none"? -

I see a way to cache a customer both and on a server The parameter "version" changes server's output cache. With this tag: & lt;% @ Output cache duration = "10" location = "any" VaryByParam = "none"%> I get these headers: HTTP / 1.1 200 OK cache-control: public content-type: text / html; Charset = UTF-8 End: Wed, 03 Feb 2010 02:29:24 GMT Last modified: Wed, 03 Feb 2010 02:29:14 GMT Server: Microsoft-IIS / 7.5 X-espnet-version: 4.0.21006 By X-Revival: ASP.NET Date: Wednesday, 03 February 2010 02:29:14 GMT Content-Length: 2364 On this client side I want to do that, But the server side does not differ from this "version". Meanwhile, with this tag: & lt;% @ Output cache duration = "10" location = "any" predefined = "version"% & Gt; I get these headers: HTTP / 1.1 200 OK cache-control: public, max-age = 4 content-type: text / html ; Charset = UTF-8 End: Wed, 03 F...

blackberry - How to track the number of application run in a particular time interval? -

I know how many applications run in specific time interval in Blackberry Curve 8900. Please enter me the API ApplicationDescriptor [] Advertising = ApplicationManager.getApplicationManager () .getVisibleApplications (); Int number of applications = ad.length;

osx - Can't copy or paste text in Cocoa after deleted edit menu item -

I can not copy or paste any text on the nstextfield after the deleted menu item item on the interface builder Has reconnected but still can not know how to fix it? Thanks in advance. Please reconnect the menu item with one goal. In this case, selector move the item.

Why is the Zend Framework API documentation that poor? -

Is this my browser that does not work with it? Its structure is very much I am new to the Zend Framework, so I wonder, should it be? I think the API is very good, only once the problem is that they mean the real meaning of the arguments After the API some java is a bit behind the examples, but I feel calm and impressive. You have 90 pages that describe each piece of the framework, which is a short code snippet which is just amazing. Personally, I often use reference guide, then the API documentation.

php - How do you avoid forgetting to increase version number for your project? -

I always forget to change the version number for the bugfix version, when I released 1.0.9, maybe source code Version number is still 1.0.0 So far, this is not a big issue as SVN was logged in every release, I can get a specific release from my SVN at any time. But I know it is not good, and in the near future it can cause problems while upgrading an older version. I have collected the version number as a parameter in my source code, I want to have a better way of controlling this number, especially for php web projects (I know that in some other languages ​​auto version generation But do not think in php?). How do you cover this problem in your project? Any best practice? Use continuous integration software, and use a build script that accepts the version number One parameter is your build script that can only be called a small device that only does: Open the file (versioninfo.php), search for this string (some regex content), and replace it with the given parameter. ...

php - jquery - refresh the page when new data stored in to the table across the browser sessions -

पर्यावरण: PHP / MySQL / Jquery मैं पृष्ठ को रीफ्रेश करना चाहता हूं ( उदा: index.php) जब नया डेटा स्टोर तालिका में होता है (ex: new_entry_table) प्रत्येक एक मिनट के लिए जाँच कर रहा है jquery और डेटाबेस जांच का उपयोग करके मैंने निम्नलिखित की कोशिश की: setInterval (function () {$ .post ("new_data_check.php", फ़ंक्शन (डेटा) {if (डेटा & gt; 0) {$ ("# container")। FadeOut ('fast')। लोड (स्थान .reload ());}}); वापस लौटाएं;}, 60000); new_data_check.php: : test_db में नए डेटा की जांच करता है जहां newdata_field = 0; : यदि कोई नया डेटा ईको "1" उठता है; और newdata_field = 1 अपडेट करें; लगातार पृष्ठ को ताज़ा करने के लिए : else "0" गूंज; : बस एक ट्रिगर के लिए तो ऊपर की jquery code new_data_check.php ट्रिगर के लिए प्रत्येक 1 मिनट की जांच करता है, अगर कोई भी ट्रिगर उत्पन्न होता है तो यह कंटेनर को रीफ़्रेश करेगा.लेकिन इसकी रिफ़्रेश हो रही है केवल एक खोला सत्र अन्य खोला सत्र (अन्य ब्राउज़र या अन्य पीसी में) ताज़ा नहीं हो रहा है। ...

data binding - How to make a WPF ComboBox editable with custom values -

I have to put a combo box which allows selection from the list of values ​​and also the custom value typed in the text Allows Items are a complex type for the reasons shown (CongoBox shows a patch of item template color and shows that it is a custom color). Public Class ColorLevel {Receives {Public Decimal Intensity}; Set; } Public bool isCustom {get; Set; } Public color basalole {get; Set; } Public override toasting () {Return string. Format ("{0}", Intensity * 100); }} example item var items = new [] {new ColorLevel {Intensity = 0.9m, IsCustom = false, BaseColor = Color.Red} , New color level {intensity = 0.7m, icicute = false, basecolor = color Rd}} xml & lt; Combo box selectedItom = "{binding path = selected collar level}" isadetibil = "true" isTextSearchEnabled = "true" & gt; & Lt; / ComboBox & gt; The above markup works when an item item is selected from the list. And as you type with text search, the m...

c - seing a static variable with hexdump -

I am preparing myself for lecture exams on security aspects of software development. I would like to know whether it is possible to always read the value of a fixed four array with a binary with hexdump? If it is not, does it depend on whether I can read its value or not with a hexeter ?? Thank you, If you can detect the variable in memory, you It can be read with hexdump - that's the hexdump program. Find out how easy it is to know how much information you have about binary and what you know about the content it has been hoping for.

facebook/flash security error -

* सुरक्षा सैंडबॉक्स उल्लंघन * सुरक्षाडोमेन '' असंगत संदर्भ का उपयोग करने की कोशिश की '' इस त्रुटि को प्राप्त करना, ध्यान दें कि यह ऐसा नहीं कहता कि एक एसडीएफ यूआरएल तक पहुंचने की कोशिश कर रहा है लेकिन मेरा यूआरएल है मेरे एसडब्ल्यूएफ के अंदर मैंने सभी कोड को अनिवार्य रूप से हटा दिया है, इसलिए फ़्लैश से कोई कॉल नहीं की जा रही है और मुझे अभी भी त्रुटि मिलती है। UPDATE सभी फ्लैश कोड हटाया गया, सभी एजेक्स स्क्रिप्ट को हटाया गया, सभी एफबीजेएस कॉल हटा दिए गए। यहां तक ​​कि एफबीजेएस टैग को अभी भी एक ही त्रुटि मिलती है।

C Programming - Convert an integer to binary -

I hope that after some suggestions for the resolution of the solution, because it is homework and I want to solve it myself I am the first to be new to C. Actually I've never done it before, though I have a previous Java experience from the module in the university. I am trying to write a program that changes an integer in the binary. I do not have permission to use only bitware operation and any library functions Can anyone suggest some suggestions about how I will do this. Obviously I do not want the code or anything, just as some ideas to look for as present I'm a bit confused and there is no plan to attack. Well, it's very confusing: D Thanks a lot Think about What you can do with bitwise operators Example You can check that the bit 1 or 0 is like this: int bit = value & amp; 1; You can also change bits in a bit like this: val = val> & Gt; 1; To test the i'th bit in an int, you can: int bit = (value> gt; & gt; I) ...

How can I achieve java byte code encryption (against reverse engineering) -

संभव डुप्लिकेट: ... आदर्श लाइसेंसिंग के साथ संयुक्त? हमारे उत्पाद को PHP से जावा में रखा गया है PHP के साथ, IONCube Encoder नामक एक महान कोड एन्क्रिप्शन / लाइसेंस उपकरण था यह पीएचपी स्रोत कोड को एन्क्रिप्ट करता है जो निष्पादन की अनुमति देता है यदि कोई उचित लाइसेंस मौजूद है। क्या जावा अनुप्रयोग के लिए कोई समतुल्य है (जो हार्डवेयर डोंगल पर भरोसा नहीं करता है)? पर एक नज़र डालें। हम यही प्रयोग कर रहे हैं और यह हमारे लिए बहुत अच्छा काम कर रहा है।