Posts

Showing posts from May, 2012

PHP include w/o echo -

I am coding a web site and I have a php function called site_nav.fpp which is the first $ list array Defines it present in a Jason form. In this way, I can get my web site map with Ajax. My problem is that, I want to get $ list object Php, without echoing the Jason object. My question: Is there a way to include my PHP file without activating an echo call in it? Thanks a lot! Yes, just use the output buffering and see the documentation. ob_start (); ("File.php"); Ob_end_clean ();

winforms - I need to implement a window application and validate users against a SQL DB -

Is there a way that I can use a custom subscription provider without having to create an ASP service for it? I like to validate users within the application exe against DB. Ottoh, I still want a login form which is system. Web. Client Services the provider. Client formatting credentials and systems. threading. Thread Current Principal , Interact with the system. Web.Security.MembershipProvider or any of these .NET built-in stuff. Any good approach? I believe I am not the first person who wants to do it, anybody? As you want to talk to your direct database, you better by writing your own logon logic Can be

c# - FxCop - CA1034 error - WHY? -

After I am running static code analysis with FxCop 1.36 and I keep getting: NestedTypesShouldNotBeVisible I will assume that the original class was declared internal or private, but it is public Am I missing something or is there anything that can be ignored? is? Thanks for any input! Here is a part of the code due to this warning: name space Company.App.Thing {Public Partial Category Page: XtraPage {Public Representative Zero TimerResetDelegate (Object Sender, EventArgs e); Private TimerSet Widget _timerReset; Public page () {InitializeComponent (); } Public TimerResetDelegate TimerReset {set {if (! Null = (_timerReset = value)) {checkBox.Click + = new eventhandler (_timerReset); TextField.Click + = new event here (_timerReset); TextField.KeyDown + = New KeyEventHandler (_timerReset); TimeField.Click + = new event handler (_timerReset); Timefield.Kaidown + = New Keyword Handler (_timerReset); Generally speaking, nested types are difficult to 'find' I e.g. To ...

Is there a pretty print for PHP? -

I am correcting some PHP scripts and I'm missing Ruby's beautiful printer. I.e. Required 'pp' arr = {: one = & gt; 1} PP AR Output {: one => 1}. It also works with quite complex objects and makes digging in an unknown script very easy. What is a way to duplicate this functionality in PHP? Visual representation of objects within both and PHP. $ arr = array ('one' => 1); Print_r ($ arrivals); Var_dump ($ Arrival);

datetime - Adding java time objects -

How do you say, can you add 1 hour to the given result from the calendar gettime? tl; Dr Instant. Now (). PlusHours (1) ... or ... ZonedDateTime.now (Jonid. ("America / Montreal") .plusHours (1) Time to use Java The accepted answer is correct but is out of date. The problem is to go to the old heritage date-time classes. Time classes have been provided. Instead, use Calendar , ZonedDateTime . ZoneId Z = ZoneId.of ("America / Montreal"); ZonedDateTime zdt = ZonedDateTime.now (Z); ZonedDateTime zdtOneHourLater = zdt.plusHours (1); Do not let that one hour later may not happen, as if one hour later, it may be that two hours later from 1 a.m. to DST switch-over Endar to see the modern Java time types. Most of your work should be in UTC. For this, use instant class. Instant Battery = Instant.Now (). PlusHours (1); About java.time The framework is built in Java 8 and later. These classes trouble the old date-time classes...

html - Should we sort country list? -

I have just written a list of countries My goal is to use it to choose You have to do XHtml, but this is a huge list of how many are you from Aruba? But how much are you from the United Kingdom, France or even the United States? Occasionally, I can see that the most common countries are listed at the top of the list. Is this a good practice? Why and why not? This is a web application, I'm not sure any site does this, but you can use alphabetical form You can sort the list from, and use the IP geolocation to calculate the country as the default. It will not be 100% correct at the time, but it can be easier to fill the form for those people you do right ...

javascript regex for whitespace or   -

I'm looking for JavaScript regex for white space. I'm checking several different strings in a loop and I There is a need to find the stars in which they have big white space. The string of the white space is created in a loop, like this ... Please enter this code as var whitespace = "& amp; nbsp;" Read as , then the loop only processes more non-breaking spaces on it. var white space = "& amp;" {Var place = "& amp; nbsp;" for Var (x = 0; x & lt; 20; x ++) } Then it is used later in the string connector. some time ago + white space + some data; I need to identify the straps that contain whitespace (20 spaces). Should I just do a (white location) Any help is appreciated. Cheers, CK in San Diego if you have 20 locations White space is defined, you can var input = whitespace + some Data; If there is no need to use regex (input.indexOf (white space)! = -1) {// input is white space} when you can do w...

web services - Web reference behavior in an ASP.NET web site project -

On my local workstation, I have a Visual Studio Studio that includes .NET 3.5 C # Class Library Project and a .NET 3.5 ASP.NET Web Site Project I have created a web reference (example) in the C # class library using the "Add Web Reference" module. This created an app.config with the following section: & lt; Application settings & gt; & Lt; MyCompany.MyApp.Data.Properties.Settings & gt; & Lt; Setting name = "MyCompany_MyApp_Data_MyWebService" serializeAs = "string" & gt; & Lt; Price & gt; Http: //prod.webservices/myservice/default.asmx< / Pricing & gt; & Lt; / Settings & gt; & Lt; /MyCompany.MyApp.Data.Properties.Settings> & Lt; / ApplicationSettings & gt; In my asp.net web launch, I have also created a reference to the same web service using the "Add Web Reference" feature. This added the following items to the app settings of my web .config file: I have also made ...

Stop Monitoring SQL Services for Registered Servers in SMSS -

Q: Is it possible to prevent SSMS from monitoring the service status of registered servers? Description: SSMS 2008 monitors the service status of each registered server. In every minute I see every registered server to reach, so to check this situation, there are more than 100 servers in my case. This process has raised issues with our security and network departments. The network was initially identified due to the fact that due to the suspicious traffic it appeals as an unknown utility that was scanning the network for SQL Server. Security was concerned because security event logs on each server are being filled with the events of my logon. I have looked completely for a setting but do not think that one or the other? TIA, Brian I finally got an answer !! Checking the service status of registered servers is not possible to prevent SSMMS (at least I have come to know) It is possible to change the interval on which it checks. (SQL Server 2008) HKLM \ Software \ Micro...

svn - Google Code or SourceForge for smaller XCode, Objective-C project? -

What is the more appropriate repository to host a small, XCode, Objective-C project? Both offer SVN, which prefer XCode. Documentation and issue tracking systems will definitely accommodate a small project. A Google search tracks many ideas that Google likes the code, but the motivations are somewhat limited to 2006-it seems. Are you hosting or participating in a hosted project on any forum? Whom will you recommend and why? Thanks! I am using SF for a few years and now I am switching to Google code . I like Google's bug tracker (which is now the API!), I have code review facility, server side cloning of Mercurial projects and Google code is just fast I do not like that the SF gets slower and slower and its UI Becomes more and more weird. Search on SF trackers and forums is also useless.

postgresql - Postgres Tuning -

What are the effective ways of writing fast questions in postgres especially? Please do not usually include good database practices (such as using indexed or generalization) I am looking for signals such as derived tables have to work faster than subcategories or using Python string functions pgsql string functions Seems faster than Ideally, this list will include examples and advice from the real world. Thank you. Ensuring vacuum from time to time The current auto-out system works very well in most cases, But from time to time, full manual vaccum can still be useful to run (in our case this happens almost once per year). Only indexes are used reliably if the data is available for the table, make sure that a vacuum-analysis table is run after any major change (several tons of inverse / deletion) , To ensure that the index is selected properly. The default postgrace configuration is relatively flexible for the system. Minor processing and slow discs If your system has a f...

java me - Update midlet wirelessly -

I am currently developing a j2me application for i290 and be able to update new midlet modifications in my application Would like code. The problem I have is that one method I know is that it can do this, platform rescue () is locked by Motorola and I am not interested in signing my code. I have a way to update the midlet through a network connection in my code without using the lock API or pay to do so. Any help would be appreciated. When you say this is "locked by Motorola" then what do you really mean? platformRequest () Definitely a common way to upgrade midlet on the device; Are you sure that this does not work? What happens when you call it? In my very detailed J2ME experience, I've seen many things inexplicably disabled for unsigned applications, but never platformRequest () no. Try checking the return value of the method; If it returns true , then you have to close yourself before platformRequest () (assuming it does not return SecurityExcepti...

visual studio 2005 - Auto Build using VSS -

How do I create my own Auto VSS? It should get the latest files from the VSS and at the scheduled time, get the code using Visual Studio 2005 (VSS does not offer any build facility) (like in the middle of the night). Use it to do your own automated builds, your unit can run tests, collect statistics And it's open source, so you do not have to buy a license!

c# - capture Second mouse movment -

I have 2 rats. My goal is to use one another to point to someone else (Launch the app or Etc.) I do not want to take my first mouse movements to my second mouse. So far I can capture the incidents of both rats, but not different from them. Not sure about this, but check it if it is helpful. The Microsoft Multipoint Software Development Kit (SDK) is a development framework that allows developers to create applications that enable up to 250 individual mouse devices to work simultaneously on a computer. is.

jQuery - Supersleight & filter through background-image properties -

I want to apply SuperSlight for my transparent PNG pictures on my site, so far I have only images with a PNG image I apply it to src in the attribute. I now want to filter through all elements of a background-image property that contains '.png'. Can someone please suggest a question? Thank you in advance. Never used superllight but it should keep you on the right track. $ ("*"). Each (function () {if ($ (this) .Css ("background") .indexOf (".png")! = -1) {$ (this). SuperSlight ();}});

objective c - Mapping obj-c object to sqlite database -

Mapping tools for Oziz-C, if there are Maps objects and their relationships, then I'm looking for a simple (if I can call it) I post-text for HTML "itemprop =" text "> For a sqlite database, is there any such thing that works like a DB4O for Java? I have found something on Google, and I feel because it is not completely sure where I want to see and what to watch. Hope someone can help, because I am No mapping tool is not written in the squid. Edit It seems that entropy DB works. But I am not sure yet I I can not quite understand this line: "No one can directly collect examples of coca orbits. The collection (NSER, NSSET, NSXTY) can be stored if they are an example variable of custom objects. "I read it as if I can not set an ARA store and if it is the instance of custom object." You are watching, which is part of the iPhone SDK.

c# - How to get the data value of an enum in a generic method? -

Thanks to the question, I have succeeded in how to disrupt my generic method to accept enums only. Now I am trying to create a generic method so that I can tie a drop down to any anonym, by displaying details in the drop-down, value equal to numerical value Enum value. Public static object EnumToDataSource & lt; T & gt; () Where T: struct, IConvertible {if type! (Typh (T.IsEnum) / / just throw a new exception (String.Format ("type {0} is not an enumeration.", Typef (t)); VAR q = Enum.GetValues ​​(typeof (T)). Cast & lt; T & gt; (). Selecting (x = & gt; new {ID = DataUtil.ToByte (x), Description = x.ToString ()}) / ToByte () is my own way to safely convert a value without throwing an exception. Orderbie (x => x.Description); Return q; } looks good, but ToByte () always returns 0, even though my calculations are clearly set values, such as: Public enum TStatus: Outside the byte generic method, if I enter a type of value from TStatus to ...

cgi - Web application in Delphi -

I am evaluating the possibility of writing web applications using Delphi (ISAPI / CGI / ...). I still can not see enough reason to use Delphi instead of "classic" web development framework. If you have experience in this particular area, please share your comment. Would you recommend Delphi instead of PHP / Rails / ASP / ... Do you know any web applications written in Delphi? (Web service not) If you use Delphi for web applications, Will get: Working in the great IDE. Use your favorite language (Delphi). If you use intraab, you can create Ajax support and productive without the need of deep knowledge in web or javascript. But Disadvange: Deployment is not easy, you need to work with ISAPI & amp; IIS, and you rarely meet hosting coppanies who provide ISAPI for you. Only the Windows platform, (if you use free Pascal you may find other). No framework, no library for this help you on this side Very poor document on this side, and most articles are...

metadata - What is the length limit of the HTML META tags? -

और विभिन्न ब्राउज़रों पर कैसे बाधाएं भिन्न होती हैं? मेटा विवरण टैग की लंबाई: यह गिनती की संख्या की संख्या नहीं है। यह वास्तव में वर्ण लंबाई की संख्या है क्योंकि, Google 155 से अधिक (मोटे तौर पर) वर्णों को काट देगा वर्णन के लिए अनुकूलन और इसकी लंबाई को 25-30 शब्दों तक सीमित करने का प्रयास करें। इसके अलावा दो वाक्यों से अधिक का उपयोग करने का प्रयास करें। से लिया गया

java - Can a client access the Corba IMR to get server information? -

Is it possible for the client to use the IMR to get the server's host name? Even the delivery suggestions (host address) is not necessarily a server where First of all, the server can not actually run but can still be registered with the IMR. Second, the host name can map many IP addresses; An IP address can solve many types of machines which have any additional fault-tolerance network layer. In the end, if the corbie's fault is mixed with the IMR, then the tolarant speck is indicated at another level. The questions raised by the regiser are most appropriate, and advice to add location-based services is sage. As a footnote, it is also bad to trust any IMR behavior, because the IMR Corbay is one of the most unspecified aspects of Speck. In fact, it says that "a seller can provide one, and here nothing can be done". that's about it. Therefore, if you rely on specific behavior or specific APIs, then you are immediately tied to a specific implementation o...

asp.net - How do disable .net framework 3.5 on IIS 6 -

Is there any qualification for the asp.net site to disable .NET 3.5 on IIS 6? I have only one application (pure 2.0) which is not working with .NET 3.5 on the server, has been dropped: Attempted to read or write secure storage It is often an indication that other memory is contaminated. Description: An uncontrolled exception occurred during the execution of existing web requests. For more information about the error, review the stack trace and where the code originated. Exception description: System.AccessViolationException: Attempted to read or write protected memory is often an indication that other memory is corrupted. Thanks in advance. Please post the full exception. In addition, unsuccessful application one. Is Net 3.5 Application? There is no "idle" in IIS because .NET 3.5 uses .NET 2.0 CLR, such as .NET 2.0 and 3.0. The .NET 3.5 service pack installs.

javascript - Log in/out of Gmail chat programmatically, clicking Gmail's span "links" -

At work, I use Gmail's chat because it is encrypted and installed on a hard drive or Chat without saving. At home, I use Pidgin when I log in to Gmail at home, I have to log out of chat, or the message will end in the wrong place. When I login to Gmail at work, I have to log back into chat. In other words, when I start Firefox at home, I want Gmail chat to be automatically disabled. When I start Firefox at work, I want to make Gmail chat automatically enabled. Is there a way to use a Grazambi skip or similar to logging and logging on specific machines? It seems quite simple; Just follow a URL or click on a link. Unfortunately, Gmail does not use the actual link. While logging out: & lt; Span tabindex = "0" role = "link" action = "c" square = "Az9OKd"> Sign in to Chat & lt; / Span & gt; While logged in to the drop-down menu: & lt; Div tabindex = "- 1" id = ": 1mj" role = "menu...

methods - "Overloads" keyword in VB.NET -

Do you really need this keyword for overload methods? What is the difference in the use of overloaded keywords, just what is there to sign in different ways? In the same class, the overload keyword is optional, but if one method If it is announced then it is necessary to use it for all the surcharges of that code, overloads or override . / P> 'This is fine subf1 (in string form) subf1 (n as integer)' It is also fine overloads sub f2 (as string) overloads all f 2 (as an integer) 'error overloads sub f3 (as string) subf3 (as integer) When you overload the base class methods in a derived class So it becomes more complicated then it becomes more complex. If there are several overloaded methods in a base class and you want to add overloaded method to the derived category, then you should mark the method in the derived class with the keyword overloads Otherwise all the overloaded methods are unavailable in the base class derived class. See for more inf...

Is there a way to get the variables that were used in a RegEx.Replace to use in .NET? -

For example, I have a pattern that I'm looking for to use the \ G option so that it's his last Remember the search. I want to be able to reuse them. For example: string pattern = @ "\ g & lt; test: something \" * for example: net c # (i.e.: save matches in archives) ;; String id = regEx.match (original, pattern). value; // The boy above has 3 matches and I want to save all of them in a general list I hope it is clear, if I can not expand. Thank you: -) You must use the RegEx.Matches function and It has to be repeated through the collection.

oop - How to determine if an object is an object literal in Javascript? -

क्या जावास्क्रिप्ट में किसी ऑब्जेक्ट को नोटेशन का उपयोग करके या कन्स्ट्रक्टर विधि का उपयोग कर बनाया गया है? मुझे लगता है कि आप अपनी अभिभावक वस्तु का सिर्फ उपयोग करते हैं, लेकिन अगर जिस ऑब्जेक्ट में आप गुजर रहे हैं उसके पास उसके माता-पिता का कोई संदर्भ नहीं है, मुझे नहीं लगता कि आप यह बता सकते हैं, क्या आप कर सकते हैं? वैसे भी, मुझे थिंक IObjectLiteral () फ़ंक्शन के बीच यहां समानता प्राप्त करने के लिए और मेरे स्वयं के ओबज लिटरल () फ़ंक्शन के लिए लिखा था जो मैंने लिखा था पराग। जेएस परियोजना मेरा मानना ​​है कि यह समाधान मेरे परागण से पहले पोस्ट किया गया था। जे एस प्रतिबद्ध, इसलिए - आपके लिए टोपी! मेरा उल्टा लंबाई है ... कम तब तक आधा (जब आपका सेट अप नियत किया गया), लेकिन दोनों एक ही परिणाम उत्पन्न करते हैं। एक नज़र रखना: फ़ंक्शन isObjLiteral ( _obj) {var _test = _obj; वापसी (टाइपफ _obj! == 'ऑब्जेक्ट' || _obj === रिक्त? झूठा: ((फ़ंक्शन () {जबकि (! गलत) {यदि (ऑब्जेक्ट .get प्रोटोटाइपऑफ़ (_test = Object.getPrototypeOf (_test)) === नल) {ब्रेक;}} रिटर्न ऑब्जेक्ट .get प्रो...

cakephp - passing argument to ajax call from view -

In my application, I have to give an argument to the controller via AJAX call on the text box key. By accumulating your vocal, but I need to have a funnel through and need AJAX. You can do something like this, if you are using prototype: & lt; Input type = "text" id = "element_to_observe" & gt; & Lt; Script type = "text / javascript" & gt; Event.boserv ($ ('element_to_source'), 'key', function (event) {var element = Event.element (new) Ajax request ('/ control name / verb' 'element.value, / Your logic Asynchronous: True, success on: doSomething, // execution after executing your work evalScripts: true});}); Function doSomething (feedback) {} & lt; / Script & gt;

Splitting a Server Hosted Access Database -

I am looking at creating an access database that will replace the very fierce coincidence of the associated Excel spreadsheets. The files for the current spreadsheet system are located on our Windows Storage Server, in which they are the mapped drive to the directory used by them. More than one user uses this system as this because they create an inventory, pricing for the materials and prices used for each product. I believe that using a database is a great idea. As I see it, if I divide the database it will give me a front and back end. Allow multiple users to enter and make changes at the same time, with out corruption! Woo-hoo !!! Is that correct? And has anyone applied it? Did the end users easily access the database? There is no problem with this which I had not seen. I have read that users can have a front end locally on computers, is this true / good? Access works very well for small offices, if it The database should be divided properly, each user has a copy of th...

html - left edge of table border is cut off in firefox, but not in IE 6/7, and Safari -

It looks fine in Safari, but not in Firefox 3.0.11 Firefox: Safari: HTML for table: & lt; Table class = "placement-test-schedule" & gt; & Lt; TR & gt; & Lt; Th & gt; Day & lt; / Th & gt; & Lt; Th & gt; Date & lt; / Th & gt; & Lt; Th & gt; Check-In Begins (Admission to College Center) & lt; / Th & gt; & Lt; Th & gt; Test Beans & lt; / Th & gt; & Lt; Th & gt; Registration begins & lt; / Th & gt; & Lt; Th & gt; Seating availability & lt; / Th & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Mars & lt; / TD & gt; & Lt; TD & gt; 8/18/09 & lt; / TD & gt; & Lt; Td> 10: 45am & lt; / Td> & Lt; Td> 10: 00am & lt; / Td> & Lt; Td> 12: 30 PM & lt; / Td> & Lt; Td> & Lt; Span class = "open" & gt; Open & lt; / Span & gt; & Lt; / Td> ...

How can I search in vim for a line that has 2 specific words? -

I want to find a line near both 'foo' and 'bar' in this line, but not necessarily Besides . I tried the following and it does not work: /foo.enbar Use: : set magic /foo.*bar 'magic 'Setting determines how VIM behaves in special characters in regular expressions when it stops, VIM literally recognizes all the characters, which means that the code you wrote is foo. * Bar will actually search for that string. However, when 'magic' occurs, special reggae characters have special meaning and expect it as much as you expect. In fact to deal with old V scripts, it is always advisable to use : Set magic , so add it to your vimrc and you will be set.

java - JPA: Reverse cascading delete -

@ एंटीटी सार्वजनिक वर्ग के माता पिता {@Id @ generatedValue (strategy = GenerationType.TABLE) int id; @OneToMany (कैस्केड = कैस्केड टाइप.रमोव) सूची & lt; आइटम & gt; बच्चों = नए अर्रेलिस्ट & lt; बाल & gt; (); } @ एंटीटी पब्लिक क्लास चाइल्ड {@Id @GeneratedValue (strategy = GenerationType.TABLE) int आईडी; } जैसा कि आप ऊपर देख सकते हैं, मेरे माता-पिता और बच्चे के बीच वन-टू-मैनेजमेंट संबंध हैं I अगर मैं माता-पिता की एक घटना को हटा देता हूं, तो सभी बच्चों को हटा दिया जाता है। क्या इस तरह से दूसरे तरीके से काम करने का एक तरीका है? माता-पिता = नए माता-पिता (); बाल सी = नया बच्चा (); p.children.add (ग); EntityManager.persist (पी); EntityManager.persist (ग); EntityManager.remove (c); यह कोड बिना किसी अपवाद के चलता है, लेकिन जब मैं अगली बार लोड करता हूं, तो एक नया बच्चा संलग्न होता है।

Working jQuery auto-height textfield plugin? -

Detects a real, working jQuery plugin that can increase the height of the software properly Is it added to the text? I have tried both etogro and grooved plug in and do not work very well. Both problems are where they do not grow properly and / or sometimes ignore their maximum height I am using FF 3.5 on OSX 3.5 for the FWIW test. There was a third number in GoogleGrouping, but a demo page was not working too, so I was not trying to exclude it. Not fully JQuery, but the code is small enough to implement itself for you.

events - How to automate a keystroke using Win32 and Ruby? -

I know how anyone using Win32 to automate a keystroke using Ruby? I recommend checking Ian Ds' this example of sending keystrokes in the Windows program Comes from the second chapter. Supported script. # Start: Typing "This is some text" .upcase.each_byte do | B # & Lt; Callout id = "co. Upcases" /> Keybd_event.call b, 0, KEYEVENTF_KEYDOWN, 0 sleep 0.05 keybd_event.call b, 0, KEYEVENTF_KEYUP, 0 sleep 0.05 end # END: typing Recommend - specific, or cross-platform GUI automation and testing.

how do you set the jquery tabs to form a 100% height? -

How do you set the jquery tab to create a 100% height? I also need to resize UI tabs (latest 1.7.2 To change the size of the version, at least), it works with the following code: $ (document) .ready (function () {function resizeUi () {var $ ( "Height", H-95); $ (".ui-tabs- $"); $ (window). Hight (); var w = $ (window) .Width (); $ ("# tab") ResizeTimer = setT (resize timer); resizeTimer = setT (resize timer); CSS ('height', H-140);} resize timer = zero; $ (window) .bind ('resize', function) Imeout resize UI, 100);}); resizeUi ();} Plus FlowLINING CSS: #tabs {display: inline-block; width: 325px;} You have to edit some numbers according to your own.

project management - What is Critical Path? -

As a developer, I have sometimes come across the word 'Critical Path' in terms of development execution. I know what to do with identifying the tasks required for it that should be required in a project. Is my understanding correct? What is the best definition of the important path you faced? How will the critical path be identified when planning a project? I'm not sure that it's the best definition, but it's definitely Is one of the shortest: The sequence of dependent steps that determines the minimum time required to complete an operation Second, a while ago, and in terms of project management (Wikipedia article as you link): through a series of activities Keeping in mind the path, account built-in, in which the completion of the activities may have an effect on the expiration date of the project or there may be a significant milestone (there may be more than one important path). Your understanding is correct, and the first step to ...

.net - Duplicate LINQ to SQL entity / record - with associated records? -

I am using linux from ANP.net (C #); And I'm trying to add a 'clone record' function - allows copying a record from a single table; How do I raise this to include the associated records in the tables connected through the foreign key? In the end I went with the CopyDataMembers, suggested elsewhere on this site, and then each of the links Looped through each entry in the line and made them copy them individually. Not yet ideal, but it meets requirements and deadlines.

php crawler detection -

I'm trying to write sitemap.php which works differently, depending on what's being viewed. I crawler my sitemap I want to redirect to XML because it should be the most updated page and should contain all the necessary information, but I want my regular readers to show an html sitemap on the php page. All this will be controlled from within the php header, and I have found on the web which should look like this, but it is not. Can someone crack this for me? function getIsCrawler ($ userAgent) {$ crawlers = 'firefox | Google | Msnbot | Rambler | Yahoo | Abacobot | Abhaya | ' | . 'AcioRobot | ASPSeek | CocoCrawler | Dumbot | Fast-web crawler | ' . 'GeonaBot | Gigabot | Lycos | MSRBOT | Scooter | AltaVista | IDBot | EStyle | Condition '; $ Ike crawler = (preg_match ("/ $ crawlers / eye", $ user agent) & gt; 0); The return is $ crawler; } $ Iskrailer = IIS crawler ($ _ server ['HTTP_USER_AGENT']); If ($ isCrawler) {Header (...

C# Multiple generic constraints -

I was wondering if it is possible to add more than one common obstacle? I have an add method that takes an object (either email, phone or address), so I was thinking something like this: add public zeros ; T & gt; (T obj) where t: know where t: email where t: call {if (Obj know) m_Address.Add (Obj as address); Else if (obj is email) m_Email.Add (obj as email); Other m_Phone.Add (Obj as phone); } I continue: "A restriction section has already been specified for the parameter 'T'. You can not do this because there are not only three ways and the compilers work hard for you?

windows - Do I need to write my own host side USB driver for a CDC device -

It can not be directly related to programming, but I know where there is a loss to say and to say. I have tried to look at many types of websites, but till now Google is not my friend. I am having trouble finding out that I need to write my device driver for my Windows / Linux / Mac platforms that can be connected to the device I am developing, Or whether functionality is provided by the standard driver. My device is a USB CDC (communication device) that appears as COM: port. It also includes a battery charger, which requires a current full supply of 5 unit load (500 MA) for the calculation of the device, which can be pulled from the USB connector. My problem is that if the USB driver in the host decides that he can not turn on full supply then the device must fail to enumerate. If, as a fallback, I provide a second configuration set which allows the device to attract 1 unit load only from the interface connector, the standard driver uses the device Will enumerate them. ...

c# Clean a registry file .reg to remove duplicate entries -

I have a company that I work sometimes uses super mandatory profiles for their users unfortunately it too Problems can arise that user settings are not logged on and saved at all. Running on a .reg file startup to work around this. Some of these settings were used to change the settings and record making a reg file created from this. The problem with this is that they are doing a lot of duplicate entries, so that it has grown bigger and bigger every time. The way I have not implemented this process, just stay with it. I'm going to try to minimize it down, but I am surprised that there is this what I think before, I read the lines in a 2d array: [/ *] > "OTTFrmW" = "420" "OTTFrmH" = "321" becomes : [HKEY_CURRENT_USER \ software \ CELCAT \ CT \ sat \ Settings], "Otititivis" = "0" [HKEY_CURRENT_USER \ software \ CELCAT \ CT \ sat \ Settings], "OTTFrmW" = "420" [HKEY_CURRENT_USER \ software \...

.net - What is the fastest way to create a checksum for large files in C# -

I have to sync large files in some machines. Files can be up to 6 GB size, the sync will be done manually for every few weeks. I can not take into account the filename because they can change at any time. My plan is to create a checksum on the destination PC and on the source PC and copy all the files with a checksum, which are not already in the destination, for the destination. My first attempt was something like this: using System.IO; Using System.Security.Cryptography; Private Static String GetChecksum (string file) {(file stream stream = file. Opener (file)} {SHA256 managed shah = new SHA256 managed (); Byte [] checksum = sha.ComputeHash (stream); Return BitConverter.ToString (checksum). Change ("-", String.Empty); }} The problem was runtime: - with SHA256 with 1.6 GB file -> for 20 minutes - with MD5 with a 1,6 GB file -> 6.15 min What better way to get the checksum (can also be a better hash function)? The problem here is that SHA256 managed ...

java - Store and retrieve Image by Hibernate -

Can anyone tell me what is the best way to store and how to mimic the image in Hibernate (MySQL)? Is doing @Entity @Table (name = "picture") The Public Category Picture Variation Serializable {@Id @Column (name = "id") applies the @ generatedValue private int id; @ Column (name = "format", length = 8) private string format; // @ Basic (fetch = FetchType.LAZY) @ lb@column (name = "context", tapable = true, column definition = "middlebum") personal java.sql.blob myBlobAttribute; // or byte [] Any diff @ManyToOne (fetch = FetchType.EAGER) @JoinColumn (name = "branch_fk", referenced column name = "id", nullable = false) Private branchTT branch; And even Piccadio is also I want to know how I implement My PictureDAO to save and retrieve the image. The version with the byte array is simple. Public Category Picture Serial Serializable {Private Byte imageBytes; Public BufferedImage getImage () {InputStream =...

.net - How should I document an existing system -

I started with a sole responsibility for a large job (ISH) financial application. It has approximately 800 stored procedures, 120 SQL server tables and 18 net projects about 1200 code files. And no document except in line comments in the code. As I am improving the bug and adapting to the data, I want to document the document I am looking for. The main thing I'm interested in is what happens after the user does (for example, presses a button to upload) how the data changes and how to make that change. The methods / procedures are called in such a way that if a bug is seen by users later, then I can quickly see the path taken through the codes / tables, what should I use this document? Is this a UML use case or sequence diagram? Or something else? Any ideas are welcome Richard "Let me record it What is the use of a UML for a case or sequence diagram? " Both. User experience is a use case. Let's character and text to describe the user's interactio...

iphone - How to stop UITextView from scrolling up when entering it -

मेरे पास UITextView एक UITableViewCell में शामिल है। लेआउट सही है जब विचारों को शुरू में प्रदर्शित किया जाता है, लेकिन एक बार जब मैं UITextView पर क्लिक करता हूँ तो यह स्वचालित रूप से थोड़ा ऊपर स्क्रॉल करता है और पहली पंक्ति पर वर्णों का शीर्ष आधा अदृश्य हो जाता है यह छवि तब होती है जब UITextView सक्रिय नहीं है: और यह तब होता है जब मैंने UITextView इसे सक्रिय करने के लिए: मैं यूआईटीक्स्टव्यू को स्क्रॉल करने के लिए बिल्कुल भी नहीं करता, यह सरल रहना चाहिए। इसे कैसे प्राप्त किया जा सकता है? मैंने पहले से ही इंटरफ़ेस बिल्डर में कई सेटिंग्स की कोशिश की है, लेकिन अब तक कोई किस्मत नहीं है। किसी भी सुझाव की सराहना की जाती है। Gero इस तरह से यूआईटीक्स्टव्यू एप्पल के इंजीनियर के अनुसार व्यवहार करता है, इसका उद्देश्य है और UITextView पाठ के लिए होता है जो ऊंचाई में कम से कम कुछ लाइनें हैं इसके आसपास कोई काम नहीं है, इसके बजाय एक UITextField का उपयोग करें या अपनी UITextView को ऊंचाई में कम से कम 3 लाइनों में बढ़ाएं।

grails - Searching the Owned Members of a Many-to-Many Relationship -

पुस्तक और लेखक डोमेन वर्गों के साथ निम्नानुसार है: class Book {static belongsTo = Author Static hasMany = [लेखक: लेखक] स्ट्रिंग शीर्षक} वर्ग {लेखक: static hasMany = [किताबें: पुस्तक] स्ट्रिंग का नाम} मैं एक लेखक द्वारा किताब कैसे खोजूँगा जिसकी शीर्षक " Grails "? मैंने इसे करने की कोशिश की लेकिन यह काम नहीं करती (विधि का कोई हस्ताक्षर: org.hibernate.collection.PersistentSet.findByTitle () arguemnt प्रकारों के लिए लागू है: (java.lang.String) मान : [Grails]। लेखक लेखक = लेखक। गेट (1) def किताब = लेखक। किताबें। फिंडबाइटटेल ("Grails") आप उदाहरण के रूप में निम्न प्रकार से खोज सकते हैं। लेखक लेखक = लेखक .get (1) def b = Book.find (नई किताब (शीर्षक: 'गाइल्स', लेखक: लेखक)) क्वेरीज़ कैसे करें पर जानकारी के लिए देखें।

python - How can I create bound methods with type()? -

I am dynamically building a function and specifying it in a class. This is a simple / minimal example of what I am trying to achieve: def echo (obj): print obj.hello class Foo (object): Hello = "Hello World" Spam = type ("spam", (foo), {"echo": echo}} spam.echo () results in this error Traceback (most recent call final): File "& lt; Input>", line 1, & lt; Module & gt; TypeError: The unbound method should go with the echo () spam instance as the first argument (instead of nothing) I know whether I @staticmethod Decorator I can pass spam as a parameter for echo, but in my case for use it is not possible for me. How do I get the echo function to be bound to spam and go to self ? Is this possible? So far, you have created only one category Spam = Type ("Spam", (Foo,) , {"Echo": echo}} Spam = Spam () For spam, you need to create an object, for example: .echo () If you really want to ...

c# - Why won't this XPath query work on an .edmx file? -

I am trying to get the list of EntityTypes in an EDMX file, and the following query does not return any results: XmlDocument edmxFile = new XmlDocument (); EdmxFile.Load (args [0]); XmlNamespaceManager nsMan = New XmlNamespaceManager (edmxFile.NameTable); NsMan.AddNamespace ("edmx", "http://schemas.microsoft.com/ado/2007/06/edmx"); NsMan.AddNamespace ("s", "http://schemas.microsoft.com/ado/2007/06/edm/ssdl"); NsMan.AddNamespace ("e", "http://schemas.microsoft.com/ado/2007/06/edm"); NsMan.AddNamespace ("u", "Kalash: schema-microsoft-com: windows: storage: mapping: sc"); XMLNodeList entity type = edmxFile.DocumentElement.SelectNodes ("// EntityType", nsMan); // Returns 0 nodes XmlNodeList entityTypes = edmxFile.SelectNodes ("// EntityType"); // Return 0 node too Why does XPath work here? It's been a while, but I think that in your call for those methods, Code> "/...

c# - Paired ToggleButtons in WPF -

I'm sure someone would have done something like that before, but killed my head for a few days Has been with little speed I have a WPF form which is being used to compare the trades Trade is different in some "brake" fields using the form to select a "lead" business And one of the remaining trades is chosen as an active brake business. On different fields between those regions, the toggle button displays the form value instead of the user, allowing the user to select the field on which the trade is used as a valid value. This? I have tried to tie the lead and active trades in my ViewModel and the property is linked to the event but by changing the stack overflow it has to suppress every asset. Any help appreciated, preferably in MVVM style I may have a complete misunderstanding, but it is not what you are looking for a radio button is? If you want you can look like a normal button.

sql - Data Type Mapping -

I need to store XML data in the database (MS SQL Server). I have to know the exact datatype for the text. I have tried with an adolver but it does not work. Also I tried with adLongVarWChar (nText) but both are not working. Need help Thank you. If you are using SQL Server 2005 or higher then you can go to the XML data type . Read more about this In addition to this, avoid using ntext and text data types, as they will be removed from future versions of SQL Server. Instead, go to nvarchar (max) or varchar (max) Read on this Cheers

sql - Setting the minimum column width in SSRS -

Greetings. For my life, I do not remember how to set the minimum width in an SSRS column when I present the report in 'preview' mode, it looks okay, but when I email it To set out as a subscription to go out through the medium, it becomes shoulder together. Any help please thank you! Update ReportingServices.css file. By default, it has been found in: C: \ program files \ Microsoft SQL Server \ MSSQL.3 \ Reporting Services \ ReportManager \ Styles Here's CSS: TD, th (min-width: 50px;}

Tutorials/References/HowTos to learn Glade GTK+ with Ruby? -

I'm trying to design some simple GUIs to use with Ruby. I do not have much luck in tutorials / references on how to actually interface the glade with Ruby. I have probably got 1 or 2 Hello world tutorials which show how the buttons are used to change the title of a window, But there is a reference that tells me what each signal / handler does and how to use functionality such as combobox, listboxes, pad Structures etc ..? If you give me some information to help me learn Glade with Ruby, then I would be most grateful! Take a look This is a small glade app, so you actually get a brief overview. Yet it is bigger than HelloWorld and you should show the most concepts.

python - What does keyword CONSTRAINT do in this CREATE TABLE statement -

I'm learning how to use sqlite3 with Python. Example of the text book I am following is a database Where there is a region, country and population in each country's records. The book says: The CONSTRAINT keyword has been used to specify the following snippet that any two entries created in the table should never be field and country Do not have the same values ​​for: & gt; & Gt; & Gt; Cur.execute ('' Make Table PopupCountry '' (field text is not faucet, country text is not faucet, population is not inconclusive, country country's primary key (region, country)) '' ') Please explain to you that CONSTRAINT Country_Key is here if I delete it, the primary key statement only seems to make sure that every country The area has unique name. Country is just giving the name of the barrier if you do not do that, the name will be generated for you . This is useful when there are many obstacles on the table and you have to le...

c# - Why base parameters to custom EventHandlers from EventArg -

to Although you have defined the events of defined classes on any valid representative type Even the representatives also return the values, it is generally recommended that you base your event on the net framework pattern using EventHindler, as shown in the following example. Why? How about: Public representative Zero GenericEventHandler & lt; Ttype, TArgs & gt; (TType sender, TArgs args); Public event Generic Event Handler & lt; Some senders, fewer & gt; SomeEvent; Mainly so that anyone with the signature (Object Sender, EventArgs E) Method can control your event Keep in mind that reps are different (type of communal withdrawal and contravariant logic type).

c# - How to make sense of WCF traces -

I know how to enable WCF tracing and see them in the trace viewer tool, but I do not know if it's all the means What does it mean? Is there such a document somewhere that it tells you what each of those levels means and how it can create a view of all the information being logged. What is a good source of information about the WCF request / reaction life cycle, all the steps that a message goes through in WCF internals.

iis 6 - HTTP 401.3 when PUT, DELETE to ADO.NET Data Service (.svc) -

I have an ADO.NET data service (we call it service.svc). When I run it integrated with Integrated Windows Authentication on the IIS 6 site, all requests (Receive, Post, Put, and Deletes) work fine for me, because I'm an administrator on the box. However, when a non-administrator hits the user service, then only GET and POST requests work. When they try the PUT or DELETE request, they receive an HTTP 401.3 "Access denied" error: "Error message 401.3: using the credentials you provided You do not have permission to view this directory or page (Access restricted due to access control lists) Ask the administrator of the web server to grant you access to '... ... service.svc'. " if i am "authentic users Returns received permission to write to the local group "I .svc file, as everything should work, but I really do not want to do (and do not think I have to make it work). In fact, I'm confused about how the change of file permissions will...

javascript - Please help me understand a few things found in the SO page source -

I was just looking at the stackoverflow page source and I have some simple questions; 1) What is its purpose? Is this search engine or something else? & lt; Link rel = "search" type = "application / opensearchdescription + xml" title = "stack overflow" href = "/ opensearch.xml" & gt; 2) ? V = 3731 Why is this added to the end of some javascript and stylesheet files, is it a browser to prevent these items from caching? And if I am right, why would you not want it, I would think that they will not change often 3) This type of file is this rel = "canonical" 4) What it is, my guess is that if you put page URLs in some Google Reader, then perhaps this file will rarely be found? & lt; Link rel = "alternate" type = "application / atom + xml" title = "feed for question" php array and `foreach? Li> This site is capable of using as a built-in search within a brow...

c# - Displaying MessageBox when disabled menu item is clicked -

I when anyone menu items which have not been able I display a message box on the tried following coding Want to do this, but this message box is not showing coding :. private void updateFineDetailsToolStripMenuItem_Click (object sender, EventArgs e) {if (updateFineDetailsToolStripMenuItem.Enabled == true) {frmUpdateFineDetails objUpdateFineDetails = new frmUpdateFineDetails (); ObjUpdateFineDetails.MdiParent = This; ObjUpdateFineDetails.Show (); } And if (updateFineDetailsToolStripMenuItem.Enabled == incorrect) {message box. Show ("unauthorized person"); }} is set to enable status by default I'm wrong and when the form loads I user administrator whether, if the user administrator check will enable this menu item For all other user who logs in the application above the menu item is disabled. Please note that the above coding does not cause any errors, but it also does not display messagebox as unauthorized person. Can anyone help me out before doing this ta...

Disappearing head in git repo -

I have encountered a strange problem with my GIT repo, leaving the master in the cloning process, leaving all the heads Is not the reference ID only to file the head? Or should it be registered to clone elsewhere? It looks as though William Purcell described: cd a $ git branch master * $ cd .. $ git clone ab / pvt / tmp / b / guit Initial vacant guit repository = "text"> All branches are not pushed into your remote repository Remote repository cloning should include all remote branches automatically. Note that the remote branch is not automatically created by local branches. You can use the git branch -a command to view all those branches. Example: $ git branch -a * Master Remotes / Original / Next Remote / Original / Head - & gt; With this, we can change the "next" remote branch with the git checkout -b in the local code and specify. Remote branch as the starting point: $ git co-b next original / next branch to further track the remo...

shell - osx change file encoding (iconv) recursive -

I know that I can change a file encoding under OSX: Iconv -f ISO-8859-1-T UTF-8 Mayfilenam xxx & gt; Myfilename-utf8.xxx I have to change a set of files with specific extensions, so I want to convert file encoding from ISO-8859-1 to UTF-8 for everyone *. Ext files in the folder / mydisk / myfolder Perhaps someobe syntax knows how to do this thanks ekke The comment 'Adam' showed me how to solve this, but this syntax only I did it: find / mydisk / myfolder -name \ *. Xxx-type f | \ (While the file was read; iconv -f ISO-8859-1 -t UTF-8 "$ file" & gt; "$ {file% .xxx} -utf8.xxx" done); -i ... -o ... does not work, but> thx again ekke

sql - Store data(strings) in database -

I have a vector and lieutenant; String> Now I want to store those stars in the database. But I have a "but"! The program user should not install anything other than J2RE, he will copy and run the program on his computer only. Is there such a database in Java? P.S. First, I think the object is a serialization or just a simple text \ xml file but according to the function it should be a database ... then the user will just copy my program and run it, without installing additional software, J2RE I think that is the right choice for your problem. You just need HSQLDB Jar in your classpath and then use file-based database configuration

Firefox extension: native code execution? -

Is it possible to write an extension that runs the original, platform-based code? I am an extension-beginner (what a phrase!) :), can you please point me to good content on this topic? (Good keywords are enough to feed Google) () Edit: I started checking Geo SDK, and this is a big topic, and I Not sure what I want I'm happy with a friendly manual (which is not a raw reference, but there is some kind of tutorial for making extensions using EXCOM (if so) Good keywords are still Check it out. You can use it to create portable C ++ native code firefox extensions which I believe are .xpm zip files with XPCOM objects are javascript wrappers . I have not tried to do this, but you can go to the normal route and write the plugin, I mean the extension javascript too.

java - Deploy definition confusion -

In the case of tomack, what exactly does the word "deployment" mean? Is it just any servlet or JSP file in the web app folder Or is I forgetting something important here? I think you want to remount the tomcat to the directory again or refresh the webpage or something. Required You can do this from the Tomcat Manager page. / html>

.net - How to convert single dimensional arrays to multi dimensional ones? (C#) -

I have to use a method that accepts double [,], but I only have one double [] . How do I convert it? The solution so far: var array = new double [1, x. Lang]; Foreground (Energetable. Ranges in Diverse I (0, X.Long)) {array, [0, I] = X; } There is no direct way to double the contents double [,] Assume that you want it in one line: double [,] arr = new double [1, original]. Length]; For (int i = 0; i & lt; root; height; ++ i) arr [0, i] = root [i];

python - How to get the distinct value of one of my models in Google App Engine -

I have a model, below, and I would like to get all the specific field values ​​ class tutorial SQL equals select from different areas tutorial (db.Model): path = db.StringProperty () area = db.StringProperty () sub_area = db .StringProperty () title = db.StringProperty () content = db.BlobProperty () Rating = db.RatingProperty () publishedDate = db.DateTimeProperty () published = db.BooleanProperty () I know that I can do Python a = ['google.com', 'la Vjornl dot com ',' Laivjornl dot com ',' google.com ',' Stakvovrflo. Com '] B = set (A) B & gt; & Gt; & Gt; Set (['livejournal.com', 'google.com', 'stackoverflow.com']) But I need to take the objects in the field out of query to another list And it is going against the list (it seems very inefficient) and if I have a separate item which is in the 1001 position in the datasheet, then I will not see it due to the fetch limit of 1000. I will fin...

php - Is it possible to use the Drupal api to get a list of users? -

I would like to get a list of all users who have appointed a certain role. I can write my own SQL but I would like to use the API as much as possible. Generally there is a Drupal API function for this type of work (institutions matching certain criteria Pulling) This focuses on single-unit CRUD tasks in the API; Everything else depends on developer's SQL skills. The View module allows you to create a list of users filtered by roles, permissions, and so on - but this can easily overkill.

templates - How to replace words on blogger theme with image? -

I created a 960x100 image to replace the word header on this Blogger topic. Does anyone know how this can be accomplished? Need an expert! : -) A new style blogger layout with a header element Instead, use the image instead of the title and description option. Or if you want to make your hands dirty, then CSS image replacement on h1 # title element those techniques None of the additional markup is required.

apache - Mod_Rewrite Force HTTP On All Files Except One -

Sorry if asked before, but I could not find it. I have a folder, when I load it in both HTTPS and HTTP. I want to leave all the files in that folder one file and load it in HTTP. I have the file to be used in HTTPS: login.php and this folder is called "forum" Also if it helps: all the files in the folder * .php I was trying something on the lines of this: #RewriteCond% {SERVER_PORT}! ^ $ 443 $ #RoyalRoyal ^ / login.fp $ - [L] #Revent Conduct% {SERVER_PORT} ^ 443 $ #Revate Rule ^ (/ login.php) $ https: //% {HTTP_HOST} / $ 1 [QSA , NC, R, L] #RewriteCond% {SERVER_PORT}! ^ 443 $ #RewriteRule ^ (. *) $ Http: //% {HTTP_HOST} / $ 1 [QSA, NC, R, L] I'm a little of an amateur when If it comes to mod_rewrite then forgive me if the above is completely closed if you post a solution, then I would appreciate it if you post it with clarification, how can I really learn this I know how it works. Thanks in advance thanks! David Try this one: option + follow link r...

c# - Function call could not be evaluated timed out -

I wrote some basic code in C. such as: // connection credentials remote Computer - If access to connection options in the log in account does not require oConn = new ConnectionOptions (); OConn.Username = ""; OConn.Password = ""; System.Management.ManagementScope Om = New System.Management. Management Interview ("\\ MachineX", oConn); // Organize fixed disk statistics. Management. Object highlight = new system Management. Object ("Choose the name from the FreeSpace, size, Win32_LogicalDisk, where DriveType = 3"); // Execute the query management object explorers oSearcher = new management object finder (om, oclair); // Get Results Management Object Collection oReturnCollection = oSearcher.Get (); // found the loop and information foreach (ManagementObject oReturn in oReturnCollection) through the drive found {// disc name console. WriteLine ("name:" + OReturn ["name"]. ToString ()); // Free space in the bytes console Vee...

regex - Windows advanced file matching -

I am trying to use a batch file in the list of files in the directory, such as file name only (zero extension ) Matches only numerical patterns, such as 125646543 something like PDF, which is a regex [\ d] + \. It would be easy to express as a PDF, but of course I have no such details with the Windows-only mechanism ... I'm trying to do it with Windows-only the target since the system Can not install anything else on the server, and it must be supported at least on Windows Server 2000 and 2003. I have some more advanced than this typical example or something more common than just old * and? I have already tried to add numbers in the file name to set / A, but since it defines the strings as the environment variable 0 is if they are defined It does not work well, I also tried to use %% ~ no GTR 0, but this report corresponds to file like report.pdf, because it is comparing the string in this case is. findstr can regexes just under Windows. I will try: dir / b Finds...

Example usage of AX in PHP OpenID -

I am using Jennren's PHP OpenID library. This example comes with a script which is using the SRAGP extension. But I want to work with Google (and it actually works for the author), but Google uses AX (specialty exchange) instead of SRAG for additional data, for some reason, in JanRain's Library Ax support is not in the example script, and code comments in Ax Script are out of my mind, though the comments in the SReg script are as clear 1-2-3. Do anyone know how to execute AX without pain? A few excavations in AX.php participated in the same problem I got a job start. Not tested for any bugs, nor testing beyond basic, nor tested with anyone other than Google. It is not beautiful: error management is required, but it should start you. If I have something strong I can post updates ... Throw first ... // oid_request.php // just with this For testing / Google, others need to try ... $ oid_identifier = 'https://www.google.com/accounts/o8/id'; // Required file...

command line - What are the best-practices for implementing a CLI tool in Perl? -

I am implementing a CLI tool using Perl. What are the best practices we can do here? As a prelude, I spent 3 years in engineering and a major financial company in Pearl for a lot Applying Complex Command Line ToolsSet The following ideas are basically part of our team's design guidelines. User interface Command line options: Provide default value as much as possible. Any scalable parameter for any command with more than 2 options The readable option names are if the command line Length is a concern for non-interactive calling (for example, some unnoted heritage sphere has fewer limitations on command lines), provide less aliases - GetOpt :: Long allows easily. At the very least, print all the options - the default value in "Help". Better yet, print all the options "present" value (for example if a parameter and value are given with "help", the support message will print the value of the parameter from the command line In this...

javascript - How to incoparate or implement a DOM API to v8? -

I am writing a server application that is able to manipulate the dome before serving the client. I using Javascript engine as C ++ and Google V8, but I do not see any DOM API in V8. Is there an open source implementation of manipulation of domains on HTML? If you do not apply it then D8 is built in chrome and connected to the V8 engine . The V8 source browser does not know anything about the DOM. The fastest way to do this work for you is to try to remove chrome chrome (chromium, in fact) which loads the HTML in the structure, and the parts that add the DOM and the DOM methods to the V8 may not be so bad As you might think, Google produces very clean C ++, as far as I can say by viewing the V8 source code. Maybe it's not as bad as you think.

ms access - How do continuously update data to an asp page? -

I have an asp page based on a very simple database. It probably refers to a table of 30 records and 12 data fields, and everything works great because I'm either uploading a new database every week. I have a special situation where I want to upload new data automatically and display the user on every 20 to 30 seconds page without refreshing my screen. I expect 1000 concurrent users accessing data. I'm manually uploading the database via FTP, which will not obviously work on this timeline and it will also cause the error pages to run the risk because the database Can anyone tell me the right direction for setting up this scenario? Other details that may be helpful: the database is an access database (but I can change it if another format is needed) is running on the hosted Windows platform by ISP, not my own server Do you know what to do with JavaScript? You will use the timeout () method in javascript so that the update can send the request to the server from...

c# - Get Types Collection from EntityFramework ObjectContext -

मैं प्रकार से ObjectContext की सूची कैसे निकाल सकता हूं? उदाहरण के लिए, मेरे पास "प्रबन्धक" नामक इकाई वाला एक वस्तु है और "कंपनी" नामक संस्था है। मैं उन्हें EntityObject प्रकार प्राप्त करना चाहता हूं। मैं यह कैसे कर सकता हूं? मैं आपको समय-समय पर मान देता हूं कि EntityObject वर्गों की सूची प्राप्त करने के लिए उत्पन्न ObjectContext वर्ग की क्वेरी करना चाहता हूं। यह तब प्रतिबिंब में एक व्यायाम बन जाता है: PropertyInfo [] propertyInfos = objectContext.GetType ()। GetProperties (); IEnumerable & LT; प्रकार & gt; EntityObjectTypes = propertyInfo से propertyInfos संपत्ति गुण टाइप करें = propertyInfo.PropertyType जहां propertyType.IsGenericType & amp; amp; PropertyType.Namespace == "System.Data.Objects" & amp; amp; PropertyType.Name == "ऑब्जेक्टसिटी 1` & amp; amp; PropertyType.GetGenericArguments () [0] .IsSubclassOf (प्रकार का (EntityObject)) propertyType.GetGenericArguments का चयन करें () [0]; इस कोड को ऑब्जेक्...