Posts

Showing posts from February, 2010

c# - change span only when sql server table changed-ajax asp.net 3.5 jquery sql server -

I have a flap label called a number label. It has changed by computing the numbers from codebahind (asp.net/c#) rows in a SQL Server table named "MyTable". Every time a user opens this page, the same code / stored procedure is implemented to bring the number. Is there any way to bring the same number for all users and only change it when there is an update in "MyTable"? This will greatly customize the time, execution, (SQL Server Side and webserver side). Is aciccure C # present? Ajax Best Regards, You can use application-level asp.net Are caching

ruby on rails 3 - Js.erb renders only once -

I have a vote button in the hidden device that loads using the pyroxbox. The trigger link is: & lt; Div class = "inliner" & gt; & Lt; A href = "# vid_ & gt; Rel = "inline-1000-500" class = "pirobox_gall1" & gt; & Lt; H5 & gt; & Lt;% = c.title% & gt; & Lt; / H5> & Lt; / A & gt; & Lt; / Div & gt; And in my Hidden Div, I have the following for my vote button: , button_to 'vote', vote_path (: format = & Gt ;: js ,: id = & gt; c.id),: remote = & gt; True% & gt; And in the controller I have: DF vote @ video = video.fund (param [: id]) @ video. In crit! (: Vote) response_to do | Format | Format.js {Render: Layout = & gt; In the end, in my JSRB, I have: $ ('p # success_ & lt;% = @ video (% slower); and end Code> When the trigger link is clicked, the peroxox is loaded as hidden content. When I click on the vote button, the vote increases...

c# - create bitmap with filestream -

I need to create a bitmap with Fillstream so far I have this code: use (filestream BMP = file.creative (@ "c: \ test.bmp")) {binarywitter writer = new binarywriter (BMP); Int i = 0; // Author. Prakash ((* four *) and file title, size (fileheader)); // Author. White ((* four *) and information, size (for information)); (Int closeos = 0; rows & lt; 160; rows ++) {for (coles colon = 0; cols & lt; 112; cols ++) {writer.Write (CamData [i]); I ++; }} Bmp.Close (); } But I still need the header information for bitmap. My problem is, I do not know how to implement them in C #. I know that resolution (320 x 240) and my pixelite 16-bit grayscale values ​​are given in the USA chart. Thanks One byte array with a bitmap There is a constructor to make. Then, to stream it into BMP format, save using member functions of bitmap . See and.

php - Click on row to edit/delete? -

मैं तालिका बनाने के लिए सीआई का उपयोग कर रहा हूं $ query = $ this- & gt; expenses_model- & gt; expenses_table (); // गैरी का कोड यहां $-- gt; लोड- & gt; पुस्तकालय ('तालिका') गया था; $ Tmpl = सरणी ('table_open' = & gt; '& lt; तालिका वर्ग = "तालिका" & gt;'); $ इस- & gt; टेबल & gt; set_template ($ Tmpl); // गैरी ने सरणी के अंत में 'संपादित करें' को जोड़ दिया- $ ---> टेबल- & gt; सेट_हेडिंग ('तिथि', 'प्लांट', 'व्यय', 'श्रेणी', 'नोट्स'); // गैरी के कोड का उपयोग करते समय, $ $ $ डेटा $ तालिका ['टैब'] = $ this- & gt; तालिका- & gt; उत्पन्न ($ क्वेरी); $ This- & gt; लोड- & gt; देखें ('vw / exp / expans_vw', $ तालिका, TRUE); जो jQuery डेटाटैबल्स के माध्यम से ग्राहक पक्ष पर $ (document) का उपयोग करता है .ready (function () {/ * Init DataTables * / var oTable = ("।"): "[", "आभासी"): "" "...

php - retrieve values from an array -

Hello Coder I have There is a database in the CCV format. To recover data, I use the csv parser from where I got the results in the array ([fieldset_name] => personal details [field_name] = & gt; applicant_name [field_label] = & gt; your name [field_type] = & Gt; Text [css_classes] = & gt; [middleline] => 4 [maximal] => 10 [default_value] = & gt; [help_text] = & Gt;) Array ([field = 1]] = & gt; personal details [field_name] = & gt; applicant_pad [field_label] = & gt; [[field_type] = & gt; text I [css_classes] = & gt; Required [minlength] => 4 [maxlength] => 10 [default_value] => [help_text] = & gt;) I now have an html form of this array & lt ;? To create a php foreach ($ form_field $ key = & gt; $ v1) {$ fieldset_name = $ v1} ['fieldset_name']; $ Field_name = $ v1 ['field_name']; $ Field_labil = $ v1 ['field_label']; $ Field_type = $ v1 ['field_type']; $ Css_classes = ...

python - what's the difference between matplotlib.pyplot and matplotlib.figure? -

I'm just getting into matplotlib. Used me to see some examples of matplotlib.pyplot , but when integrating matplotlib with wxpython, I often import matplotlib.figure from the import matplotlib.figure such as import image ... vboxFigure = wx.boxSizer (wx.VERTICAL) self.figure = Picture (self). Self.axes = self.figure.add_subplot (111) T = [1,2,3,4,5] s = [0,0,0,0,0,0] Self.axes.plot (t, s, 'b-') self.canvas = Paintings (panel, - 1, self.) What's the difference between plotting VboxFigure.Add (self.canvas, 1, wx.LEFT | wx.TOP | wx matplotlib.figure, and matplotlib? Vboxfigure (1, flag = wx.EXPAND) pyplot ? Can I use matplotlib.pyplot in creating a wx app? PAPLOT is a state-machine API such as Matlab, part of the matplotlib.figure.Figure object-oriented API. For example, if you want to create a wx app to begin with an object-oriented API, so.

.net - Get a country's continent in C# -

To use a country's continent in the # code, field info class or any other Using the way? For example, you name the country "Denmark" and it gives "Europe". You can store one of the entries in the country's name and the value of the continent's name Will happen. Just create this table from some public database and once you have it you can just query it. It's too fast too. You can get a database from there (option to download / export)

Django: pre-deployment -

Question 1: I'm about to deploy my first Django website and I was thinking that Which tools are recommended to collect all your dengue files? For example, I do not need my sauce and coffeefile files, I just want compiled CSS and JS files. I also want to use the correct output settings file. Question 2: Do I prepare these files for deployment in my own version control store? I think the advantage is that you can easily roll back the changes? Question 3: Do I run my tests before collecting files or before deployment? Shell script may be a solution but maybe a better way? I looked at Jenkins / Hudson but it seems like I'm looking at the device sitting on top of the device. For one and two questions, I recommend using a version control system for this I am sure that you are already using any type of version control, so you can say which branch of your repository you want to deploy. And yes, this rollback makes incredibly easy. Perhaps the most popular method ...

perl - mailserver log filtering -

I have a list of multi-GB messenger log files and ~ 350k message IDs. I want to pull out large log file lines with IDs from a long list ... and I want to sharpen it now ... I currently do it in Perl: #! Use / usr / bin / perl warnings; Opening file with #list - Unique ID open id more than 350k; MyLog_ID; @lista_id = & lt; ID & gt; Closed id; Chomp @lista_id; Open log, malog; # While - External currency is out of memory (& lt; LOG & gt;) {$ wiersz = $ _; My @virus_split = partition ('', $ wiersz); # Foreach (@lista_id) {$ id = $ _; If #Id is the 6th column in Merral ($ wiersz_split [5] eq $ id) {# Print on Completion Match - STDOUT or File or Anything Could Print "@VirusSpplit \ n"; }}} Closed log; It works but it is slow ... compared with the list of each line ID from the log. Should I use databases and join in a way? Or compare substrings? There are a number of tools for log analysis - e.g. Pflogsumm ... but it summarizes just as it will b...

asp.net mvc 3 - Required attribute for complex objects -

मेरे पास ऐसा वर्ग है सार्वजनिक वर्ग पेजरिप्रेंस {{ScaffoldColumn (गलत)] सार्वजनिक स्ट्रिंग आईडी {get; सेट; } सार्वजनिक स्ट्रिंग नाम {get; सेट; }} और मेरे मॉडल में मैं इसका उपयोग इस तरह करता हूं [आवश्यक] सार्वजनिक पृष्ठ संदर्भ पृष्ठ लिंक {get; सेट; } अगर मैं pagelink प्रॉपर्टी में जोड़ता हूं, तो यह कैसे जरूरी हो सकता है, इसका हल कैसे हो सकता है? वैल्यूएंड प्रदाता (अक्सर पोस्ट फार्म फ़ील्ड) द्वारा प्रदान किए गए डेटा के विरूद्ध मॉडल बाइंडर के द्वारा सत्यापन विशेषता का मूल्यांकन किया गया है। यदि आप उस फार्म को पोस्ट कर रहे हैं जिसमें उस फ़ील्ड को शामिल नहीं किया जाता है, तो बाइंडर मॉडल की उस संपत्ति को नहीं छुएगा और इसलिए सत्यापन विशेषताओं का मूल्यांकन नहीं किया जाएगा।

How to find the center of the browser window using JQuery -

How can I find the coordinates of the browser center using jquery? Why use jQuery? This can be done with simple plain javascript: var horizontalcenter = Math.floor (window.innerWidth / 2); Var vertical senere = mathematics. Floor (window winsight / 2); To use these, you may have to add the unit, px to the variable. Edit to apply an integer value to return coordinates

windows - Determine thread wait time in WinDbg with user-mode dump -

Is there any way to WinDbg, after determining that a date / time is a Windows thread for WaitForSingleObjects or waitformultipleObjects ? I know how to do this in kernel debugging (using ! Thread ), but I do not know how to do this in user-mode debugging. In WinDbg, you ! Runaway can use to get thread time: ! Runaway! Runaway 1 (user time) ! Runaway 2 (kernel time) runaway 4 (elapsed time) (You will find these documents as some places of 0, 1 and 2, but they do not work in my experience, maybe it depends on WinDbg version or some things ...) You can calculate the time, the suspended spending by reducing the kernel time from the user of a thread and its time, but unfortunately I do not know in any way write WinDbg plugin In the area of ​​garden) get WinDbg to your advantage. If you are not set to WinDbg, you can use it to get the same information. When you right-click a process and select the Thread tab in the Properties dialog, you get a list of all...

c - Problem with strtok only saving the first token -

I had a problem with my work yesterday, which was a simple fix, and now I have a different problem It is bothering me with this function a token effect: zero tokenizer (file * file, straight set * set) {int nbytes = 100; Int bits; Four * buffer; Four * tokens; Buffer = (four *) młok (nbytes + 1); While ((bytesread = gateline (& amp; buffer, & amp; nbytes, file)) = -1) {token = strtok (buffer, ""); While (token! = Null) {add (set, token); Token = strotok (NULL, ""); }}} I know that input (a text file) is correctly broken in the token because in the second loop I can display the printf ("% s", token) For each token, however, with the problem adding, it is only adding the first token to my list, but at the same time still every token is broken correctly. For example, if my input text was "Blow Herp Deckup", then I would like to Token = Blah Token = Hep Token = derp will get but only the first token in the list, will be blah...

c - Get value from LDR -

I am using picdem 18F4550 with microchip v8.63 and c compiler. The components I am using: - 3 LEDs (red, green, blue); - One LDR (327700 NOPS-12 Fernell). I added 3 Leeds (red, green and blue) as output to RB4, RB5 and RB6. I also connect LD on RB1. My question is, when another LED lights are green, how can I get value in my code that the LDR solution? I included my code: #include "p18cxxx.h" #pragma config WDT = closed key (zero) {// close all LED lathes LATDbits.LATD0 = 0; LATDbits.LATD1 = 0; LATDbits.LATD2 = 0; // create port d bits which makes the LID drive TRISDbits.TRISD0 = 0; TRISDbits.TRISD1 = 0; TRISDbits.TRISD2 = 0; TRISB = 0; // RB port output PORTB = 0; PORTB = 0b10001111; // 001011010 if (Portbits RB4 == 0) {LATDbits.LATD0 = 1; } If (PORTBbits.RB5 == 0) {LATDbits.LATD1 = 1; } If (portbit.rb6 == 0) {LATDbits.LATD2 = 1; } If (PORTBbits.RB1 == 1) {} while (1) {; Assume that you are connecting the PIN configured as a GPIO with an LDR. The voltage thresho...

java arrays with objects and refernce -

Hello I have a basic doubt, when I was doing the analysis of the object and reference. int a; // Here we are making an object an integer integer integer b = new integer (); // Here we are creating a reference variable b, in the object type opener in heap. What is the benefit of each one? Where in the case of Array "int a" and second one ?? , int [] a = new int [5]; If "int a" is possible, then "int a [5]" is not possible because the code faucet indicator throws the exception, Int one [5]; A [0] = 10; Println (a [0]); // zero indicator gives exception The code works fine int [] a = new int [5]; A [0] = 5; Println (a [0]); If there is a case in which "int a" works in the case before leaving it, then what should be made? int one is declaring a primitive variable, which is A , that type is not int are not objects, but arrays are primitives objects. There are tabular objects, but they are a special type of obj...

Is is possible to get information of .class file(in java) without use of reflection -

Can someone guide me? Is it possible to get information about the .class file (in Java) without the use of reflection? Information like classroom methods, constructor field etc, and can we call them even without reflection in Java? Thanks in advance. You can analyze .class as a bytecode. Manually or using a library such as

How to post photo to album in facebook graph api Asp.NET -

I wrote an application for Facebook but I could not upload an image to the album I created, the code is below Thanks, your help Facebook.FacebookAPI api = New Facebook.FacebookAPI (GetAccessToken ()); Dictionary & lt; String, string & gt; Album = New Dictionary & lt; String, string & gt; (); Album. Add ("name", "test album"); Album. Add ("message", "message is here!"); JSONObject Results = api.Post ("me / album", album); String AlbumId = result.Dictionary ["id"]. String; Dictionary & lt; String, string & gt; Photo = New Dictionary & lt; String, string & gt; (); Photo. Add ("Message", "Test Message"); Photo.Add ("source", "tgw.jpg"); JSONObject photoResult = api.Post ("/" + album id + "/ photo", photo); Does this work for you? String Photospath = @ ".. \ .. \ .. \ Facebook.Tests \ bin \ release \ monkey.jpg"; St...

Using the Ivy plugin together with the Artifactory plugin in Jenkins/Hudson -

I'm trying to use the Ivy plugin () and the prosthetic plugin (). I gettign the following exception: java.lang.NoClassDefFoundError: org / Apache / Ivy Cadence / Core / IvyContext org.jfrog.build.extractor.listener.ArtifactoryBuildListener. At buildStarted (ArtifactoryBuildListener.java:48) org.apache.tools.ant.Project.fireBuildStarted (Project.java2077) org.apache.tools.ant.Main.runBuild at (main.java:746) org.apache. On at tools.ant.Main StartAnt org.apache.tools.ant.launch.Launcher.run (Launcher.javaajor80) org.apache.tools.ant.launch.Launcher.main at (Main.java:217) (Launcher.java:109) Java.lang.ClassNotFoundException: because of java at org.apache.ivy.core.IvyContext java.net.URLClassLoader $ 1.run (URLClassLoader.java:202) java.security.AccessController.doPrivileged (Native Method) on According to this bug report on java.lang.ClassLoader.loadCl (URLClassLoader.java:190) at .URLClassLoader.findClass java.lang.ClassLoader.loadClass (ClassLoader.javaER7) on net, The ...

make limitation for random class in c# -

Do I want to create random ranges to generate random variables from 2 categories without replacing C # in the random class? Example: exponents [i] = random Next (0, 25); Ypoints [i] = Random Next (0, 12); Where there are 25 to 12 image dimensions, I want all the pixels in this picture, but random? Any suggestions if I use this code then I did not find some pixels and repeated a few pixels. update Not required [1] Update Generalized General Extensions in Extensions Method Generalized Public Fixed IEnumerable & lt; T & gt; Simple Shuffle & lt; T & gt; (This IEnumerable & lt; T & gt; Sequence) {var rand = new Random (); Return sequence Selection (i = & gt; new {i, k = rand.Next ()}). OrderBe (P = & gt; PK) Selection (P = & gt; Pi); } However, in addition to downwitting (shouting? Sorry :)) answering the anx I thought it would be good to show how my code looks: using the system; Using System.Linq; Using System.Collection...

PHP - Push Notifications -

What methods can be used to enable PHP to become a push notification server? You may like it: In a few words: Push Notification This means that the client becomes the server and vice versa; In fact, you only have one client who listens, and a server which lists some of those servers, some servers are present, this is the one for real-time notifications used with statetet I just can not remember his name, maybe it can help, whenever I get the name back, I'll meet again again. In the meantime, read the tutorial above, this can give you some sleeping ideas. Not. Edit The real time server is called meteor. There are a lot of them:

c# - javascript unterminated string constant -

I have the following functions that I pass in the value, but this value is coming from the database. However, I get the following javascript while doing the following: Shorekutzed description ('ShowOutlook', true, '& quot;% # eval ("cause analysis of root"). ToString % & Gt;) I know that I have to avoid characters, but how can I do that in the actual string? Thanks, Jacob Call.

python - error using pywinauto -

I'm new to python and just install pywinauto by using easy_install. I follow as a simple code: pywinauto import application app = application from. Application.start ('notepad.exe') traceback (most recent call final): File "& lt; stdin & gt;", in line 1, & lt; Module & gt; AttributeError: Type object 'app' has no attribute 'Start' As you are seeing I am getting an error I tried to find an answer for the web on this But I did not know why this is happening. Please help in advance thanks. VG Pywinauto is very confused about the naming conventions (me I know - I had written it!). There are two options: a) Make an example of the first application class and then start the call (). & gt; & Gt; & Gt; Application from Pywinauto Import & gt; & Gt; & Gt; App = app ()> gt; & Gt; & Gt; App.start ('notepad.exe') & lt; Pywinauto.application.Application object at 0x022991B0 ...

ruby on rails - Accessing devise helper 'user_signed_in?' -

Am I unable to use 'user_signed_in'? In my application controller, and wonder if anyone knew how to fix it. This works fine in my thoughts, but in my application controller, I NoMethodError # index undefined method in PostsController `user_signed_in? For ApplicationController: Class Many people had this problem at Rail 3.0.3, but I am using Rail 2.3.8. The suggested fix was to use devise_for: The user in his routes. RB but this results in internal server error inadequate method `devise_for 'for main: object help will be highly appreciated Thanks How do I use a victure with 2.38 == & gt; Application_controller.rb & lt; == Protect protected def unless user.find_by_id (session [: user_id]) session [: original_uri] = request.request_uri flash [: notice] = "please log in!" Redirect_to: Controller = & gt; 'Administrator' ,: verb = & gt; 'Login' End End End Then each Controller, e.g. Food_items: Class Food...

wif - When trying to deserialize SAML tokens, can I read an SSL Cert from file instead of Certificate store -

मैं इस तरह से कुछ करना चाहूंगा: & lt; microsoft.identityModel & gt; & LT; सेवा & gt; & LT; serviceCertificate & gt; & Lt; प्रमाणपत्र के संदर्भ फ़ाइल नाम = "App_Data / my.domain.com.crt" / & gt; & Lt; / serviceCertificate & gt; & Lt; / सेवा & gt; & LT; /microsoft.identityModel> के अनुसार, नहीं SAML टोकन डिक्रिप्ट करने के लिए, WIF को एक प्रमाण पत्र के निजी कुंजी तक पहुंच की आवश्यकता है प्रमाण पत्र रखकर और फाइल सिस्टम पर निजी कुंजी (विशेष रूप से आईआईएस द्वारा प्रबंधित फ़ोल्डर के तहत - जो भी सुरक्षा प्रदान की जाती है) आम तौर पर एक बुरी आइडिया (टीएम) है। सर्टिफिकेट स्टोर में प्रमाणपत्र रखने से, आप प्रमाण पत्र तक पहुँच और अधिक कसकर नियंत्रण और प्रबंधन कर सकते हैं।

c# - Why do only files with my file extension show up in the Windows 7 jump list? -

I'm trying to integrate my app properly with Windows 7 Jump Lists. We allow the files to open within the application and I add items to the jump list before a while ago: on List = JumpList.CreateJumpList () list.AddToRecent (file); List.Refresh (); Where is the JumpList There were two issues with this approach Sometimes those calls (will get a ComException on the refresh) (Will be changed unable to extract file (Exception from HRESULT: 0x80070497)). Only files in the JumpList can have files with file extensions. We allow the import of other files in our application through the Open method and I want to show these files in the Jump List but they ' T I have searched through the questions about the JumpLists here and found a different way to add recently used files to this: Zero AddFileToRecentFilesList (string fileName) {SHAddToRecentDocs ((UIT) ShelladRentDOCS SH ARD_PATHW, filename); } /// & lt; Summary & gt; /// The original call to connect the...

iphone - Added Core Data To Existing App, Now Can't Resolve Errors -

Image
I added the core data to my existing app in app delegates, I've added methods and properties and I have #import & Lt; CoreData / CoreData.h & gt; is added to the prefix file. But I'm still getting the following errors: Here is the link to the bigger picture: If you use xcode 4 , You can add frameworks by clicking on your project on the left (by all the way above your files), going to 'build steps' and then opening 'link binary with libraries'. There, click on Plus, and choose which frame to add. I do not know how it went in Exode 3, but you can find it everywhere on the web;)

Shorten string without cutting words in JavaScript -

I'm not very good with jargon string manipulation, and I was wondering how you would like to have a string without cutting I can go about minimizing a word. I know how to use substrings, but there is no index or nothing really is good. Say I have the following string: text = "This is a long string that I can not display" I have to trim it by 10 characters, but if it does not end with any space, terminate the term. I do not want the string variable to look like this: "This is a long string that I can not do" I want to end it The word happens until there is no place. If I understand correctly, then you want to shorten the string for a certain length If this is the case, then you can try. Something like the following: Quick brown jumps on "; // Replace with your string Var maxLength = 6 // Trim the string for the maximum number of characters / maximum length to extract var trimmedString = yourString.substr (0, maxLength); // Trim ...

silverlight - Trouble With Control Sizing - Why Do I Get Different Behavior in IE VS. FireFox/Chrome -

My Silverlight 'window' appears big in Firefox or Chrome in Internet Explorer .... and I can not know Why do I feel like putting my The HTML file is essentially empty (VSNet generated code). Below you can see that I have set width to 800px and height to 600px. & lt; Object Data = "Data: App / X -Rillilt-2," Type = "App / X-Relilite-2" width = "800px" height = "600px" & gt; & Lt; Param name = "source" value = "ClientBin / myTest.xap" /> & Lt; Param name = "onError" value = "onSilverlight error" /> & Lt; Param name = "background" value = "white" /> & Lt; Param name = "minRuntimeVersion" value = "3.0.40818.0" /> & Lt; Param name = "auto upgrade" value = "true" /> & Lt; A href = "http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style = "text-decoration: none...

twitter - How can I obtain a sampling of all tweets from a specific time period? -

I want to collect samples of all the tweets for the past year. Being able to request tweets from a specific date will be great, but whatever I can get will be taken. I do not want to find tweets from a specific user or have a specific word, just one sample all the Tweets claim that a query is optional, but if I try to query empty http://search.twitter.com/search.atom Contrary to giving a search term, http://search.twitter.com/search.atom?q=twitter is the response If the API does not actually provide any functionality for this type of query, how can I hack around it? May be almost sequential from the tweet ID to date and can I use this information in some way to catch the tilt centered around the tweet ID, whose date I know? You are referring to obsolete documents. If you read, you will know that a query is required. You should also know that the Search API provides results back only about two weeks. You may be able to find historical data from sites as ...

mobile - How to use Service provider Notifications in android? -

I'm new to Android development. I want to develop an application that wants to store all the information provided by a service provider. I mean, when we complete the call / message for any of that service, our service provider sends us an information type topic for our mobile phone. > I want to capture the data and store in the phone and give information about the cost and validity of the services the user is using. We can also inform the user that he is going to fulfill his validity period Please note that there are no such methods / classes in the Android API. Kindly thank you in advance. Do you need notifications in real time on the phone? If not, consider voting on your server. Simple Solution for Notification You can use Buzzbox SDK to schedule recurring tasks easily and when a server has new things If so, you can create information. Read more: If your service already has RSS feeds then integrated into the buzzbox API with RSS reader is also easy .. ...

Executing shell command from ruby console returning Permission Denied Error? -

रूबी कंसोल से शेल कमांड निष्पादित करते समय अनुमति अस्वीकृत त्रुटि प्राप्त करना। और शेल से एक ही शेल कमांड काम कर रहा है। शेल से .. test-workstation: ~ $ "grep '^ datadir =' / etc / Mysql / my.cnf | cut -f 2 -d '=' `/ db_backups" bash: / db_backups: एक डायरेक्ट्री परीक्षण है @ test-workstation: ~ $ रूबी कंसोल से । & gt; & gt; % X ["grep '^ datadir =' /etc/mysql/my.cnf | कट -f 2 -d '='` / db_backups]] sh: / db_backups: अनुमति अस्वीकृत = & gt; "" कोई आइडिया! आप कोशिश कर रहे हैं एक निर्देशिका निष्पादित और गोले नहीं कह रहे हैं; बाश कहते हैं, "/ db_backups: कोई निर्देशिका नहीं है" जबकि sh कहते हैं "/ db_backups: अनुमति अस्वीकृत" यदि आप बैकडेटेड भाग को निष्पादित करते हैं: grep '^ datadir =' /etc/mysql/my.cnf | कट -फ 2-डी '=' आप लगभग निश्चित रूप से कोई आउटपुट नहीं देख पाएंगे और शायद यही कारण है कि आपका नियमित अभिव्यक्ति बहुत तंग है, ऐसा कुछ: grep '^ [] ...

asp.net - how to provide button style to an html actionlink -

How to provide the button style to link an HTML action . RoundedButton {font-family: Verdana, Helvetica, Arial, update sans serif; Font-size: 12px; color: # 181818; color: RGBA (0,0,0,0.4.4); width: 65px; padding: 8px 12px; border: none; outline: none; outline: 0; - Mosaic-radius: 2px; -Widbit-border-radius: 2px; boundary-radius: 2px; -move-box-shadow: 0 pixel 1px3p X RGBA (0,0,0,0.4.4); WebKit Box-Shadow: 0 Pix 1 Px 3 Px RGBA (0,0,0,0.4.4); Box-Shadow: 0 Pixels 1 Px 3 Px RGBA (0,0,0,0.8.8);} I believe it can be what happens after you. HTML.ActionLink ("ActionLink Text", blank, new {@ class = " In addition, I found this page: The code given in the question Looks like they've styled it.

php - Getting started with 'No SQL' Cloud DB , Which one is better to learn??? -

I am currently working on Codeigniter-MySQL. Now I want to learn some 'SQL' cloud database which is good for starting with one should be easy to use with my PHP, codeigniter projects. You can not use regular active record classes In CI, the structure is completely different. However, this is definitely the evidence that people are working in Code Igniter. There is a library.

java - Find the longest word in a string recursively -

How to find the longest string in the string? EDIT Finished, thanks to everyone, here is the modified code Public Static String The Longest Term (String Sentence) {The Longest String; Int i = sentence. Index (''); If (i == -1) {return statement; } String first = sentence. Substring (0, i); First = first.trim (); String left = sentence. Substring (i); Rest = rest.trim (); Longest = string compaire (first, longest) (left)); Oldest return; } First of all, we believe that there is no major word string argument Or the following spaces you are calling it trim () for a recurring case that is sensible. Then we need to define two cases, base case and recursive case. There is a case of grounds where no place is found, i.e. this sentence is the same word. In this case only return the sentence. In the recursive case, you have given us the first word and the rest as you did. Make the longest call on the remaining sentence. Then return to the longest of the first word a...

Expose WCF service and use it on the existing ASP application using only one Web Role on Azure platform -

I'm new to the Ezur platform and I'm trying to create an esur application that has ASP application and WCF service . It is possible to expose the WCF service to other applications and use it only on the existing ASP application using a web roll? If this is possible, how can I do this? If not, what are the options? Thanks a lot! Yes it is possible, just WCF service (* .svc + service dll) in the ASP.NET project Add. IIS will be able to request both for sure that you have your web Put the necessary configuration in the config. This is not the only solution, but the implementation should be easy.

user interface - Good documentation for Gtk-perl -

Did anyone find a good place to find documents for Gtk-perl? I thought that the GUI would be cooling up on my script, oddly I was feeling how much work it takes ... Anyhow I want to settle on GTK-Pearl I like the way they flutter it (at least). I think the problem is that there is no good document on this developer sourceforos page. So I have been left with a scraps for Google which I can get. I got a good slideshow that showed the basics and I started picking it up quickly. But then I am unable to find out how some things work. For example, when I expand the window my buttons grow larger. My buttons are divided into a table and I think that with it There is something to do but I can not know how to actually anchor the things to the windows. I was thinking VBOX and HBOX objects but it is difficult to get the documentation once. Anyone? anything? please. There is no Pearl-specific document for most of the GTK + APIs; You are expected to read and translate Pearl for C ...

xml - IPhone-XPath query wont retrieve my node -

This summary is not available. Please click here to view the post.

Facebook graph API & PHP SDK questions -

Is there a limit on reaching php sdk in graph api or facebook (like the number of hits per day / hour allowed XXX) See the five policies, characteristics and functionality point: "If you want to plan to do more or more, then any of the following limitations please make a confidential bug report with the" threshold policy "tag As you can be subject to additional conditions: (& gt; 5M MAU) or (& gt; 100M API calls per day) or (& gt; 50m impressions per day). " 100 million API calls a day to hit hard? :)

sql server - optimize query that compares two tables with similar schema in different databases -

Hi I have two different tables with the same schema in different databases. I record between these two tables What is the best way to compare me? I should find out the records in the first table whose closing record is not present in the second table, recording with some records from the first table, where there is nothing but so far This SQL Numerology Came up with the training I table, select the 1 t1_col1, t1_ col2 where t1_col1 = & lt; Condition & gt; And t1_col2 = & lt; & Gt; P> This question above seems fine but I suspect that it is queuing the line by comparing the row without evaluating the conditions in the first part of the query because the result of the first part of the query will be very low. Just use keywords except !!! Select table 1 to t1_col1, t1_ col2 where t1_col1 = & lt; Condition & gt; And t1_col2 = & lt; Condition & gt; Except SELECT T2_col1, t2_ col2, the table 2 query returns any specific valu...

C++ int float casting -

Why am I always = 0? Some class X and Y members are integers Float mill slope (some class A, some class B) {float M = (AA-BI) / (A. X-bx); Cout & lt; & Lt; "M =" & lt; & Lt; M & LT; & Lt; "\ N"; Refund M; } is an integer division, then the result, which is an integer , is assigned as a float. If the result is less than 1, then it ends in 0. You want to float before splitting the expression, e.g. float m = (float) (AI - by) / (float) (f - bx);

sql server 2008 - SQL INTO clause in Views -

Is it possible to use a section in the ideas? I tried to get it out of the way as below, SELECT [applicant ID], [KASID], [exact] + [speed] as 'scores', [timecompiled] Tumble 1 to temp 2 where time is not taped but it throws me an error, wrong syntax near the keyword 'in' not one view is only SELECT There will be no scope outside the view of temp2 This is a stored procedure ...

c# - Code contracts warnings when implementing ICollection with backing collection -

मुझे यह कोड मिल गया है: सार्वजनिक वर्ग MyCollection: आइकलिंग & lt; स्ट्रिंग & gt; {निजी रीडोनली आइकलेंक्शन & lt; स्ट्रिंग & gt; _inner = नया संग्रह & lt; स्ट्रिंग & gt; (); सार्वजनिक शून्य जोड़ें (स्ट्रिंग आइटम) {_inner.Add (आइटम); } // & lt; - CodeContracts: unproven सुनिश्चित करता है: यह। खाते & gt; = अनुबंध। पुराने मूल्य (यह.काउंट) सार्वजनिक शून्य स्पष्ट () {_inner.Clear (); } // & lt; - CodeContracts: unproven सुनिश्चित करता है: this.Count == 0 सार्वजनिक बाल में शामिल है (स्ट्रिंग आइटम) {वापसी _inner.Contains (आइटम); // & lt; - CodeContracts: अनिश्चित सुनिश्चित करता है:! अनुबंध। परिणाम & lt; bool & gt; () || यह। खाता & gt; 0} सार्वजनिक शून्य copyTo (स्ट्रिंग [] सरणी, int arrayIndex) {_inner.CopyTo (सरणी, arrayIndex); // & lt; - CodeContracts: अनप्रोड की आवश्यकता है: सरणीइंडएक्स + यह.काउंट & lt; = array.Length} सार्वजनिक आईएनएनामेटर & lt; स्ट्रिंग & gt; GetEnumerator () {वापसी _inner.GetEnumerator (); } IEnum...

objective c - In App Purchase Problem - Where Am I Going Wrong ? iPhone -

I'm trying to test my app purchase (in the sandbox) and have the following problem: The app retrieves the available products and displays them in a table. The user clicks on "Buy" The user is asked to enter a username and password (this is my test user). A confirmation comes back on the screen saying that transsection is successful. The problem is that the content has not been downloaded and the following method can not be called: - (zero) Payment queue ( SKPMantQueue *) Queued updated transaction: (NSARRA *) Transactions {for transactions in transaction transactions transactions} {Switch (Transaction.transactionState) {Case escapement transaction: Buying: [self-full transaction: transactions]; break; Case SkpMent Transaction: Static File: [Self-Failed Transaction: Transaction]; break; Case SCCMant Transaction Status Reinstated: [Self Restored Transactions: Transactions]; Default: Break; }}} Can anyone help? Check whether you added transaction s...

android - error in my code -

मुझे टिप्पणी कोड में मेरे कोड में समस्या है: bouton.setOnClickListener (नया OnClickListener () {सार्वजनिक void onClick (देखें v) {url = edit.getText ()। ToString (); System.out.println (url); // यह पंक्ति और आंत सक्रिय = नए आशय (यह, Main1.class) ; एक्टिवेट। इनपुटएक्टारा ("परम", यूआरएल); /// यह लाइन इस। स्टार्टएक्टिविटीफ़ोररिसल्ट (सक्रियित, 1000);}}); क्या आप मुझे अपना कोड सही करने में सहायता कर सकते हैं या तो हटाएं यह उस पंक्ति से जहां आप अगली गतिविधि शुरू कर रहे हैं या उपयोग करें: क्लासनाम.इस। प्रारंभिकताफ़ोल्डर (सक्रिय, 1000); मूलतः जब आप यह कह रहे हैं: this.startActivityForResult (सक्रिय, 1000); "यह" OnClickListener के संदर्भ से संबंधित है और न कि गतिविधि का अंदर हैं। जैसा कि आप पहले से जानते हैं कि startActivityForResult एक गतिविधि वर्ग पर एक विधि है और android.view.View.OnClickListener वर्ग के नहीं है। आशा है कि यह मदद करता है !!

multithreading - Need help with AsyncTasks - Android Application -

Hey, I have an application that logs on some sites using defaulthttpclient and I've found that I need it Use asyncTask as the request catches the UI threads. In my code, I make an example of a state class i.e. State State = New O2State (); With different states for different sites. Then I call State .logon (string username, string password); Returns the string with the result's result: string result = state.logon (username, password); I am trying to apply asynctasks to run this code in another thread and I am returning the string back to the UI thread. The idea is that I will display a progress dialog, run the thread, and when completed, will display a dialogue with the result. I'm looking at this example: Click on Public Zero (see V) {New Download Images (). Execute ("http://example.com/ image.png"); } Private class DownloadImageTask asyncTask protected {protected bitmap doInBackground (string ... url) {return loadImageFromNetwork (URL [0]); } Po...

A good Java ORM library on Android -

संभव डुप्लिकेट: एंड्रॉइड के साथ काम करने वाली एक अच्छी ORM लाइब्रेरी पर कोई भी सुझाव मैं सुझा सकता हूँ

python - ImportError on only one of my two identical sites -

I have two websites that are "almost" clones of each other, in fact, they should be completely clone ( Both the same source code and config, point to the same database). I am able to work with a site without any problems, even though I am reaching each other, there should be some configuration difference between the cause of this problem, but as far as I I can tell their configuration is similar (to folder / app name and path). They ~ / sites / meta-d3c and ~ / sites / beta-meta-d3c For example, here are some configurations: Meta ( Beta If there are more relevant configurations, please let me know and I will attach. As an experiment, I will pay 2 for anyone who posts a good solution. It seems that you are missing a settings_local.py that your Should be imported by settings.

How do I increase Groovy's JVM Heap Size? -

On web claims I should be able to give xx max to groovy but it just gives me java .io FileNotFoundException When that -Xxx file can not be found, tell me to designate some variables JAVA_OPTS but how do I do this? And how do I know that it works? $ export JAVA_OPTS = "$ JAVA_OPTS -Xmx64M" $ Groovy

What continuous integration tool suits for php? -

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

Run a PowerShell script with Administrator privileges through NAnt -

I am currently building an automated script which will deploy the SharePoint Web Parts. The counting code for this process is: - & lt; Email echo = "deployment solution" /> & Lt; Exec failonerror = "true" program = "$ {powershell.exe}" & gt; & Lt; Arg value = "- noprofile" /> & Lt; Arg value = "- nologo" /> & Lt; Arg value = "- non-active" /> & Lt; Arg value = "- command" /> & Lt; Arg value = "& amp; quot; and amp; apos; $ {deploysolutions.ps1} & apos; apos; $ {solutionconfiguration.xml} & amp; apo; & quot;" /> & Lt; / Executive & gt; Where $ {deploysolutions.ps1} is the script to run and $ {solutionconfiguration.xml} is an argument to pass a script. This works fine when running on my local machine when I try to run it on my SharePoint Development Server through cruise control, then I go into the permissions errors. I have...

preg match all - Regular expressions PHP preg_match_all -

Hi, I am trying to use preg_match_all () to extract the number in bold in an image URL. . _8277870_t.jpg Can someone help me with the regular expression as stumped? I have used it far: preg_match_all ("(http://profile.ak.fbcdn.net/hprofile-ak-snc4/.*_t. Jpg) si ", $ - is-> html, $ matching_data); Return $ match_data [0]; } I'm just giving an array of full links. Hope someone can help, thank you! This will give you all the events: $ matches = preg_match_all ('! / Hprofile-ak-snc4 / [0- 9] + _ ([0- 9] +) [^ /] + ?. .Jpg! I', $ txt); Print_r ($ matches);

php - comparing random number? -

How do I compare a random number or is it possible? In the scenario I have a function using the $ _GET method and it is visible at the URL so any user can store this link to use it later. This is a PHP game so that anyone can easily cheat on the game. So what would be the best job to stop one? I was thinking of a random number that every time the user calls the link and compares it, the user can not use the same link later to access the game. Text "itemprop =" text "> Do you have access to a database for the site? If so, you can log the user's IP address and random number and every time The page can be accessed. If not, you can cache the numbers in the $ _SESSION variable and check whether it was already used: $ String {'code'] = array (if;! ($ _ Session ['code'])); if (in_array ($ _GET ['code'], $ _SESSION [' Code ']) {// code to To display if this code was previously used by the user} and {$ _SESSION ['code'] ...

javascript - Ajax call is breaking Jquery toggle function -

I have a basic toggle function, when the item is initially clicked, it sends an AJAX post, and The second time it sends a second separate AJAX post. Once it calls AJAX, the second toggle function no longer fires. When I removed the Ajax function from toggle and changed them Below is my code: You will see that I have a basic show for the first / Hide function is for testing purposes, click Use this code for the first time, the second click works and AJAX calls, but after doing nothing, nobody clicks. // Sort Tool ACS or DESC $ ("th # seeking") () (function) (//) First click update sorting order $ ("a.add_listing") (200); $ ("a.add_listing") Show (200);}, function () Click on second order in sequence of order $ .ajax ({type: "POST", url: "ajax_calls .php ", data:" order = instrument_asc and sort_item = true ", success: function (r) {$ (" # listing () ". Html (r);}, error: function () {warning (2); $ (...

asp.net - How to design a WCF service which can support 10,000 simultaneous hits -

I am starting at WCF and want some help in making WCF for my project. I have to create a WCF service that can support 10,000 users simultaneously hit. The WCF service is meant to bring a cached up XML object (we are using Enterprise Lib caching) and caller it back. This WCF service will be exposed publicly. So I was thinking that we might have to use basic HTTP binding ... I do not know, I can be wrong. Can anyone recommend the best way to move forward with it? This article may be useful -

function - Jquery - can not use plugin? -

I am trying to use a scrollbar plugin written with jquery: tinyscrollbar You can find it here : I use jquery 5 with this command: & lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery min.js" & gt; & Lt; / Script & gt; And I learned it after the bus: And finally here is the html code: & lt; Div id = "scrollbar1" & gt; & Lt; Div class = "scrollbar" & gt; Div class = "track" & gt; & Lt; Div class = "thumb" & gt; & Lt; Div class = "end" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "viewport" & gt; & Lt; Div class = "overview" & gt; & Lt ;? Php $ content ;; & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; I have a bug while loading the plugin (or second, I have made several atte...

asp.net - context.Request.Files collection empty on remote server only -

I am using a custom asics handler to upload a file app. When run locally, the file upload is OK. When I use the same setup on the web server, I get an "out of the index category" error in firebug I see the binary content of the file in the post data and the filename query string Also passed in Anyone seen this before? I'm sure it's a minor, but it's driving me on the wall. Update: I found out some progress that I am getting two different errors. I'm focusing on FF from another IE with FF / Chrome, I'm just focusing on FF That's why Firebug makes debugging easy. Now I get an error "No part of the path could be found" C: \ inetpub \ wwwroot \ "" Update 2: This work has been found in FF / Chrome. IE and FF / Chrome change the data differently. Update 3: Here is the output of the Network Profiler in the IE Dev Tool: Request Header: Post a Key Value Request / Secure / Upload Handler. ASX? Accept HTTP / 1.1 Text / HTM...

events - Javascript closures problem -

I have some legacy JS code that uses this format: function Main (the best) {var myVar; Function doSomething () {...} .... doSomething (); ....} This works, but now I have to control some click events. Something like this: Function Main (Ultimate) {var myVar; Function manageEvent (item) {... myVar = item.value; ...} .... item.onclick = function () {manageEvent (this)}}} The problem is that there is no access to manageEvent () / Strong> myVar and I do not know how to rewrite all code to solve the problem (really hard). myVar ? How can I manage events to give access to "manageEvent" for ? This works: Your problem is elsewhere, it is definitely not in this code; Try it perfectly fine and see what exactly the click is the same value; Try and play with its value and see the results but anyway, your post code works, and without any further information, we can not really find what is wrong in your situation.

javascript - animated 'show' without jQuery -

I want to do some animation on this latest website I'm working on Ii. In fact, I need one or two devices / paragraphs, on which show / hide the radio button on the set or checkbox (then, if the radio / check value is A, show div / p on the basis of onClick event, if it is b Then hide it) The thing is, if I want JavaScript-ify on all that particular website, then jQuery looks like a slight downgrade (even minified version) Is anyone simple [I can not do enough] This van The is the way to do this with javascript or some other minimal library [I usually do something else for events and little animation & lt; Looking for 2kB Any ideas? Thank you! Edit : Thanks to everyone, I realized, though some things can be accomplished through smart HTML + JS, show / hide the right divisions The rules are so complex that it has a value of 30kb in which jQuery's (and even if it is already cached with the CDN), then I would have to be with JQuery 'Cheers for everyone :)...

Range Check Error and Delphi 7.0 -

After checking and fixing a week for memory leaks via FastMM4, I finally ran my program on a separate PC. Now, I'm getting a "range check error". I have spent hours exploring this online, but none of them tells me what I see. My program was comply with runtime error option range check. So, I know why I am making a mistake, but I have to know why the error has increased. The program was compiled in Delphi 7.0 on XP. The test PC is a Windows 7. As soon as it starts, my program starts to communicate through the serial port and then the "Range check error" is followed by the message box. When I stop serial communication, there are no "Range check error" boxes. What does it mean and how do I resolve it? I'm looking for a simple strategy. I know that I can check line line. "Range check error" due to improper assignment of values ​​or access to an inaccessible index of an array. Am I right? Your understanding of border check errors is c...

browse from music folder into assets folder android -

I am creating a small app to play music, I want to select a song from the music folder and move it Want to do my app's property folder? Is there any way to do this? I do not even know where to look where it needs some help. Thank you. "post-text" itemprop = "text"> Unfortunately, it is not possible to copy data to an app's property folder (your own app or otherwise.)

android - FileNotFoundException while getting the InputStream during downloading file to SD card using URLConnection -

I am working on an application that has a workflow like this: 1. Pursing Home Page HTTL connections, connect (), do stuff, disconnect (), use data), 2. Then click on the link written on the link, parsing the article or link Download the file based. The first step works right & amp; The second in the case of paragraph, but when I am trying to download the file from a specific url and save it to an SD card, I got a file not found in this line: InputStream InputStream = urlConnection.getInputStream (); To do this, my guide (downloading the file) was a code explained here and I allow it in the required manifest for this action, plus any MEDIA_MOUNTED before the download operation & Amp; MEDIA_MOUNTED_READ_ONLY status and it looks like it fits well. So .. I read a lot about this problem about stack overflow and other places and I tried various suggestions like adding them: UrlConnection.setRequestProperty ( "User-agent", "Mozilla / 5.0 (compatible...

Dynamic Youtube Video With jQuery & jSON -

Then a Jason object has returned to me and I want to draw a thumbnail from the object, add click event, click once Based on the Json object, SWF Player creates a difficult time. Basically the thumbnail of the SDF is "binding". Therefore, when you click on this thumbnail, you create this SWF. Here are JSFDials to drag the thumbnails. I'm not sure I'm saying this right. Not sure the click event should be in the loop to set up. Any help would be greatly appreciated. It should be in the loop not , because you use the Live method ( correctly ). It should be $ ('.logoon'). ('Click', {swf: $ swf} live, function (e) { Now you can call it e.data.swf with the way to ignore the last live click handlers ( if your code goes more than once ), then $ ('. Thumbnail'). (') .live (' click ', {swf: $ swf}, function (e) { I Also, to add an identifier on each thumbnail, your code has changed so that you can easily arr...

osx - Writing TextMate bundle -

I want to write a bundle for TextMate, where to start? While getting me, I find a lot of help, besides, take a look at one of the simplest existing bundles. How do you tell about writing your bundle if it is for language that is not bundled yet (so you need to define language syntax) or if you want to add functionality to TextMate, then that situation You can probably write command and snippet commands simple enough, because they are just scripts, and you can use whatever language (ruby, php, perl, etc.).

groovy - grails access controller from taglib -

Is it possible to access the current controller example from within the tag lib? For example: class FooTagLib {static namespace = 'foo' def msg = {attrs, body - & gt; // Can I get a reference for the current controller? }} I want to do this because I store some data in the property of the controller and want to access it within TagLib. I know it may sound weird, but just laugh me inside your msg tag: / p> grailsApplication.getArtefactByLogicalPropertyName (' Like the scenes, you have the controller name and actionName via the current controller and verb. / P>

dns - SQL Server 2008 express R2 logon problem after switch from workgroup to domain -

My network went to the domain only from the workgroup and my SQL Express 2008 R2 refused to say that the logon was correct is not. / P> Thanks for your help The account that you started Try to go into the services that were using SQL Express is no longer valid and change the logon using the MSSQL $ SQLEXPRESS service. Right-click and manage my computer (using elevated privileges) Expand services and click in the service and click on services Find the SQL Server (MSSQL $ SQLEXPRESS) in the list and double-click on it Click on the logon tab, give it your username and password For this change, you will need local administrator Will Ona.

jquery - PHP Proxy that handles both GET and POST without use of cURL -

I have looked everywhere but I do not have to know why I am posting this question. PHP may can not I'm looking for code for a PHP proxy, so that I can get help in cross-domain jquery requests effectively. Use the curl - my server config does not support it, possibly leaving this address (), but I'm open to the option. Both GET and POST requests should support Support support for both XML and JSON I have a solution for high And searched the following, but always find solutions that use curl or do not support POST. I am currently using this which does not work for POST: header ('content-type: application / jason'); $ Daurl = $ _GET ['url']; $ Handle = FOPN ($ daurl, "r"); {$ Handle handle} {$ buffer = $ (handle $ 40); $ buffer;} Fclose ($ handle);} See Example # 4 on Linked Pages (PHP Online Docs) on how to 'custom' requests using currents for / p>