Posts

Showing posts from July, 2013

javascript - Check space consumed by dynamic web app -

Image
How can I see a location on a disk consumed by dynamic web apps? I want to know the sum of the images of CSS files, script files and images of dynamic web apps. This is an online website, so I do not have access to the root folder size, and there are files in the folder that are not actually sent to the client, because the use of AJAX content The request is sent by. In Chrome, you can find the "Developer Tools" window (Wrench and GT Tools> Developer Tools, or Ctrl + Shift +

Rally App SDK 2.0: how to get tooltip on -

If I have a portfolio of portfolio items and I include PercentDoneByStoryPlanEstimate in the column configuration, I hope that progress times get But when I am tired of the progress bar, I do not see the tooltip with additional information which I see in the rally. How do I get the tooltip to display in an app? Sample code: Rally. On (function () {Ext.define ('CustomApp', {extension: 'Rally.APEP', component classics: 'app', Launch: function () {Rally.data.ModelFactory.getModel ({type: 'PortfolioItem ', Success: function (model) {this.grid = this.add ({xtype:' rallygrid ', model: model, columnCfgs: [' formattedID ',' name ',' daily daily plan estate ']};} Route. Lauchup app ('Custom app', {name: 'grid example'});}); You only need to specify a view config and thus' Rallyparenton The 'add' plugin will add: success: function (model) {this.grid = this.add ({xtype: 'rallygrid...

objective c - Using KNSemiModal or MJPopUpView with storyboard -

I also, when I tries to semi-modal view and rejected, so I left with a crash app . I think I have dismissed the set-up modal scene properly but it does not work. MJDetailViewController * detailViewController =: Here's what it looks like in the demo application using XIB files [[MJDetailViewController alloc] initWithNibName: @ "MJDetailViewController" bundle: nil]; [Own current pop scene controller to Drishykantrolr animation type extension: MJPopupViewAnimationSlideBottomBottom]; Here's what I'm trying to change: [self presentPopupViewController: [self.storyboard instantiateViewCOntrollerWithIdentifier: @ "example"] animationType : MJPopupViewAnimationSlideBottomBottom]; [self.storyboard instantiateViewControllerWithIdentifier: NSString] does not seem to take place instWithNib (or whatever function) OK To Any ideas why? I have done something similar. I just want to delete all the init methods in MJDetailViewController and it...

- Where Developers Learn, Share, & Build Careers

I am currently trying to disable bulk editing on some organizations, one of these is "Campaign Response" unit I did the following to get this: Hide the OOTB editing button globally (as far as I know you can not edit the OTB ribbon button This way) Create a new custom edit button globally (section of the sub-section For each unit on which I need bulk editing: Hide custom editing ribbon button Create a new custom edit button with SelectioncountRule node Create Until now I goto sub-grid activities on any unit. The way I contacted this problem, there are 2 editing buttons present in the form of activity (for a regular edit button and for the edit button of the campaign response). I'm not sure how to fix it, but I have an idea for which I need some help: Click the "bulk edit" button At the global level, add JavaScript to the selection rule of the custom editing button JavaScript will retrieve the logical name of the selected entity (on ...

- Where Developers Learn, Share, & Build Careers

Is there a Python statistical package that supports the calculation of weighted co-operation (i.e., is the weight of each observation)? Uncomfortable does not support numpy.cov weight Working under a narrow / narrow framework (i.e., able to use numpy arrays to speed the calculation). Thanks a lot! The data models are loaded on the sensor count in the statistics . But we can still calculate it directly: # - * - Coding: UTF-8 - * - "" Descriptive statistics writer with case weight : Joseph Perktlod "" Do weightedststreet.watstats import Statsmodels.stats.weight DescrStatsW np.random.seed (987467) x = np.random.multivariate_normal ([0, 1.], [[1., 0.5], [0.5 1]], size = 20) weight = np.random.randint (1, 4, size = 20) xlong = np.repeat (x, weight, axis = 0) DS = DescrStatsW (x, weight = weight) Print To use 'cov statsmodels' print ds.cov copy expression itself = ds # china ds_cov = np.dot (self.weights * self.demeaned.T., Self.demeaned) / sel...

- Where Developers Learn, Share, & Build Careers

I am looking for a way to convert a text of coca into an image. Everything does not describe an image converting text into text into text. Simply put, I want to take a word (such as "Kevin") and convert it into a bitmap image and save it as a JPEG. People who answer are awesome, thanks for doing this to three different and equally valid ways (yes I have tested them) .... very good, I think I You can answer all right. Edit: I forgot the question and assumed you want coco-touch code (I Except it is left) This is one way of using the Cortex in cocoa (as another poster says there are ways): {NSString * string = @ "Kevin"; CGFloat fontSize = 12.0f; // Create a string with string and font information CTFontRef font = CTFontCreateWithName (CFRCR ("Helvetica Lite"), fontSize, Zero); NSDictionary * attributes = [Object Endase with NSDictionary dictionary: (id) font, kCTFontAttributeName, zero]; NSAttributedString * as = [[NSAttributedString alloc] i...

bash - Download a file without wget or curl -

How to download a file from a command line without using Wget or curl? This will be more than HTTP Lynx can also download files links -source Example.com & gt; Index.html

How do I rename a java type? (String to string) -

I'm actually used to use "string" instead of "string" in C #. I was wondering what I can do to do this in Java. I'm using Eclipse's JavaEE IDE if it matters. Do not use just the string you will get used to it.

javascript - using eval to parse the JSON string -

function ajaxFunction () {var ajaxRequest; // Ajax makes that variable possible! Try {// Opera 8.0+, Firefox, Safari Ajax Request = New XMLHttpRequest (); } Hold (e) {// Internet Explorer Browsers {ajaxRequest = new ActiveXObject ("Msxml2.XMLHTTP"); } Hold (e) {try {ajaxRequest = new ActiveX object ("Microsoft.XMLHTTP"); } Hold (E) {// Something went wrong ("Your browser is too old to run me!"); return false; }}} // Create a function that will receive the data sent from the server ajaxRequest.onreadystatechange = function {if (ajaxRequest.readyState == 4) {$ .post ('userfind.php', function (data) { $ ("Parseed JSON: '+ ParsedJSON); var results = predicted JSONRetus; var (" # portal "); wal (data); var response = data; var parsesjesen = EVAL (' ('+ + + + + + + '); Count = parsedJSON.count; Warning (' result: '+ result +' count: 'count =';), 'json');}} AjaxRequest.open ("POST",...

sharepoint - Create SPListItem from SPItemEventDataCollection in ItemUpdating event -

In SharePoint 2010, I want to execute some code when a list item is being updated - when the item removed the updating event goes. What I need is a SPLITItem which includes the old values ​​(before updating) and a new SPILITIT. I can easily obtain SPITITIM from old values: SPItemEventProperties properties; Properties.ListItem; But I can not get SPListItem with new values. The only thing I can get is SPItemEventProperties properties properties. FPropProTy But this gives me a SPListEventDataCollection I would like to convert this SPListEventDataCollection to an SPListItem - is it possible? Thanks Updated SPListItem is not yet present in item updating event . Check. You want to listen to itemUpdat * ed * and you can get new inventory ITM there.

ruby on rails - render :action raises ActionView::MissingTemplate -

मेरे पास दो नियंत्रक हैं, foo और बार । बार # डाबर में संबंधित dobar.js.erb फ़ाइल है, जो सही ढंग से प्रस्तुत करती है जब सीधे प्री> * / *; q = 0.5, टेक्स्ट / जावास्क्रिप्ट, एप्लिकेशन / जावास्क्रिप्ट, एप्लिकेशन / एक्स्क्रिप्ट, एप्लिकेशन / एक्स-लिस्माप्टकैप foo # dofoo कमांड के साथ खत्म होता है रेंडर: एक्शन = & gt; '/ बार / दोबार' । इसका परिणाम निम्न त्रुटि संदेश में होता है: ActionView :: अनुपलब्ध टेम्पलेट (अनुपलब्ध टेम्पलेट foo / bar / action, / application / bar / action with {: locale = & gt; [: en],: प्रारूप = & gt; [: जेएस, "एप्लिकेशन / एक्स्प्लोज़िट", "एप्लीकेशन / एक्स-लिस्मास्क्रिप्ट",: html,: टेक्स्ट, जेएस, सीएसएस, आईआईसीएस, सीएसवी, पीएनजी, जेपीईजी, जीआईएफ,: बीएमपी,: झगड़ा,: एमपीईजी,: एक्सएमएल,: आरएसएस,: परमाणु,: यामएल,: मल्टीपार्ट_फॉर्म,: url_encoded_form,: json,: pdf,: zip],: हैंडलर्स = & gt; [: erb,: builder,: coffee ]}। में खोजें: * "/ डेवलपर / वर्कस्पेस / मायपोरेज / ऐप / विचार" * "/ यूज़र /...

apache - Security problems regarding +FollowSymLinks and -SymLinksIfOwnerMatch? -

I am using it for one of my applications: option + follow-up Script - Simlinks IFOwnerMatch And I worry about security issues that can bring it. With any thought, what measures can I take to make this approach as safe as possible? Let's use those options as safe as possible. The risk in using them is that a process running under a user or user can create a simulation or disclose information or abduct the material. For example, if a non-abusive user (who has been compromised) wants to read a file that they can not normally do, they can increase it by making a symlink from its public_HML directory, and if Apache can read it, then they can only access their webpage and read the file. Note that this hazard is not just from users on your system. If you are running a webpage, then called php, and it has compromised somehow, an attacker is a PHP file browser And your document can create simulations for content outside of the root (like / etc / passwd or like any other fil...

- Where Developers Learn, Share, & Build Careers

With ARM Cortex-M3, such as NXP LPC 1788, why would anyone use the interrupt set-pending register (S) Or interrupt clear-pending registers? Can anyone provide a simple, legal example of using these registers? In case of sole use, I can think that triggering low-priority software expansion is high priority IRQHandler Similar to GPIO interrupt handlers Normally you will use PendSV for this, but when you have more than one work or priority level, then you use any unused circumference exception vector can do. Sleep-on-opt-out can be useful in programs using the facility - where AOCC will run only in exception handlers. For example LPC17xx zero ETHERNET_Handler (zero) {// Toggle LED P0.4 LPC_GPIO0-> FIODIR0 ^ = (1

- Where Developers Learn, Share, & Build Careers

I'm just trying to draw a simple pie chart using flotr (an open to the development of different charts Source javascript) but the code I gave was a small part. The chart was prepared and explosion properties, horizontal and vertical lines all work fine. But mouse trackers and legends are not working. I think I have made a mistake in the code. But I am not able to clean it. Anybody please help me please thank you in advance. & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "prototype -1.6.0.2. Js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "flotr.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container" style = "width: 600px; height: 300px;" & Gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; (Functions Basic...

fusion tables from google script -

I'm using this code in Google Script Fusion Tables in Google Script Function getGAauthenticationToken (email, password) {password = encodeurIC component (password); Var response = UrlFetchApp.fetch ("https://www.google.com/accounts/ClientLogin", {Method: "Post", Payload: "AccountType = GOOGLE & amp; Email =" + Email + "& passwd =" + Password + "& service = fusiontables & source = test"}); Var responseStr = response.getContentText (); ResponseStr = responseStr.slice (responseStr.search ("at =") + 5, responseStr.length); ResponseStr = responseStr.replace (/ \ n / g, ""); Return response STR; } Function getdata (authToken) {query = encodeurIComponent ("Show tab"); Var URL = "http://www.google.com/fusiontables/api/query?sql=" + query; Var response = UrlFetchApp.fetch (URL, {method: "get", header: {"authorization": "GoogleLogin auth =" + authToke...

asp.net - how to add dataset to worksheet using Excellibrary -

I have to add multiple worksheets to a single file. I can not find a way to add dataset to the worksheet but I know Try it out to add a worksheet. using the system; Using System.Data; Using System.IO; Using ExcelLibrary.SpreadSheet; Namespace Excel Library {/// & lt; Summary & gt; /// Excel provides a simple way to convert the workbook to DataSet /// & lt; / Summary & gt; Public Sealed Class Dataset Helper {/// & lt; Summary & gt; /// In all worksheets from a given Excel workbook, /// all data (converted in all strings) /// & lt; / Summary & gt; /// & lt; Param name = "filePath" & gt; File path of excel workbook & lt; / Param & gt; /// & lt; Returns & gt; Datasets populate in Dataset with all worksheets & lt; / Returns & gt; Public statusetetsetetsetset (string filpto) {dataset ds = new dataset (); Workbook workbook = workbook Load (file path); Worksheets (worksheets in workbook) {datatable dt = popul...

- Where Developers Learn, Share, & Build Careers

I want to change the default action of a controller depending on which user is logged in. Ex My site has two users: Publisher and Author and I want to set the publisher's action as a default work in the form of a publisher, and also for the author. What should I do? When can I check my roles and set up my related tasks? Another way to do this is to some extent in its controller like this: & lt ;? Php class extends the MyAwesomeController controller {// or spreads to CController based on your code init () {parent :: init (); // There is no need for this call if your parents do not have anything init (), if (array_key_exists ('RolePublisher', Yii :: app) - & gt; authManager- & gt; getRoles (Yii :: app) - & gt; user- & gt; ID) $ this- & gt; Default action = 'publisher'; // Your action name and name (array_key_exists ('RoleAuthor', Yii :: app) - & gt; authManager- & gt; getRoles (Yii: app () -> User- & gt; ID)...

- Where Developers Learn, Share, & Build Careers

We are using drupal soapservice for webservices while we are trying to call soap service, this result gives, but axis2 throws following error ... org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException: element com text content com.chm.api.login .chm.api.login.client.DrupalSoapStub.fromOM (DrupalSoapStub.java:12249) can not be included START_ELEMENT on org.apache.axis2.AxisFault.makeFault (AxisFault.java:430) java.lang.Exception: .client javax.xml.stream.XMLStreamException due to .DrupalSoapStub.userLogin SocketClient.main (DrupalSoapStub.java:1408) (SocketClient.java:144): Quick text can not contain START_ELEMENT on com .chm.api.login.client.DrupalSoapStub $ UserLoginResponse $ Factory.parse (DrupalSoapStub.java:59804) on com.chm.api.login.client.DrupalSoapStub.fromOM (DrupalSoapStub. java: 11473) ... 2 more due by: javax.xml.stream.XMLStreamException: element not included START_ELEMENT on org.apache.axiom.om.impl.SwitchingWrapper.getElementText (SwitchingWrapper.java:9...

- Where Developers Learn, Share, & Build Careers

I am writing Javascript Unit Test using Jasmine. However, those tests are run inside the browser, not as part of MSTest. I want my TFS to break continuous integration when a Javascript unit test fails. I know that there is a solution for this in Visual Studio 2012, but I'm in 2010 (and possibly even in the future). Is there an easy way to integrate Jasmine based JavaScript into a unit test with TFS build? Test runner enables you to run your queen and Jasmine JavaScript unit tests command line or visual studio. So you should be able to integrate into your TFS build through the invoke process.

python - Combining -= and += modifiers in buildout scripts -

यह काम नहीं करता है: [buildout] extends = buildout.cfg अंडे - = प्येथोन-एलडीएपी अंडे + = psycopg2 व्यवहार हमेशा ऐसा लगता है जैसे कि अंडे + psycopg2 लाइन मौजूद नहीं थी। यह कोई फर्क नहीं पड़ता कि किस क्रम में दो पंक्तियाँ हैं। क्या यह एक बग है? क्या इस परिणाम को प्राप्त करने का कोई तरीका है? दुर्भाग्य से, zc.buildout संस्करण 1.5.2 तक नहीं है इस उपयोग-केस का समर्थन करें प्रत्येक कुंजी के लिए, इनहेरिटिंग सेक्शन में परिभाषित मूल्य युग्म, या तो या कम से कम सफल होगा। : यदि कुंजी + = का उपयोग कर रही है, तो इनहेरिट किया गया मान लें, चीजें जोड़ें, और उसे नया मान के रूप में संग्रहीत करें। यदि कुंजी का उपयोग हो रहा है - = , इनहेरिट किया गया मान ले, चीजें निकालें, और उसे नया मान के रूप में संग्रहित करें। अनुभाग को कॉपी किया गया है, नए मानों के साथ अद्यतन किया जाता है और इसे अंतिम परिणाम के रूप में प्रयोग किया जाता है। आदेश सामान्य अजगर मानचित्रण शब्दों द्वारा परिभाषित किया गया है, इस प्रकार अपरिभाषित; या तो जोड़ या घटाव पिछले चलाता है। क्योंकि दोनों ऑपरेशन उ...

Check All Child Properties For Null in C# -

I have the following code line if (team.DivisionTeam) Is there a way to check which team, division tag, team, coordinator, profile, address and final property state regian, instead of doing it for every property? Team.Coordinator.Profile.Address.StateRegion! = Null) Currently in C #, you can not, you can As for the vacancy, every asset must be examined. Maybe you ".?" Looking for the operator, but its not in C # 4.0, see this post and the response from Eric Lipper:

c# - Assigning text of controls from Resources in VS form desinger -

My strings are present in the manually created resx file. I am creating a new C # windows form in my app I want to make several label controls, I want to point to the text of the controls set up by resources, rather than instead of hard coding in the properties panel. Is there a way for the designer to generate strings from the resources generated by my resources? I have some formations with VS Form Desir, and want strings to go from resources. Please advice, thanks, // using the system Name spaces required. Resources; Using the system. // Create resource manager assembly assembly = this.GetType (). Assembly; //ResFile.Strings-> & Lt; Namespace & gt; & Lt; Resource filename i.e. Strings.xx Resman = New Resource Manager ("String Resources Association", Assembly); // Client strClientName = load the value of string value for resman.GetString ("IDS_MESSAGE");

html - What are best tools for creating web layout? -

मैं Google Translate (http://translate.google.com.vn/) का HTML स्रोत देखने के लिए फायरबग का उपयोग करता हूं चाहे सरल (सामग्री में)। लेकिन इसमें एक बहुत ही जटिल लेआउट है (बहुत से लेआउट डिविज़)। मुझे लगता है कि इन पृष्ठों को कई सॉफ़्टवेयर समर्थन के आधार पर लेआउट डिजाइन किया गया है। मुझे फ़ोटोशॉप पता है, लेकिन सामान्य तौर पर, फ़ोटोशॉप में लेआउट बनाने में बहुत मुश्किल है, मुझे एक आसान उपकरण। मुझे लगता है कि आपको Photoshop Sitegrinder 3.5 साइट ग्राइंडर 3.5 किसी भी। Psd फ़ाइल के HTML और CSS को बनाने के लिए एक अच्छा उपकरण है। लेकिन मेरे अवलोकन में यह छोटा और स्थैतिक स्थल के लिए अच्छा है, यह गतिशील साइट के लिए अच्छा नहीं है। इसमें कोई संदेह नहीं है कि यह एक वेब साइट के विकास के लिए उपयोगी है, लेकिन इसमें एक्टिव फोटोशॉप में साइट ग्राइंडर टूल के साथ काम करने वाले कुशल व्यक्ति की आवश्यकता होती है। मेरा मतलब है कि यह डेवलपर के लिए डिजाइनर के लिए उपयोगी नहीं है I साइट ग्राइंडर 3.5 इन सुविधाओं का समर्थन करता है: 1 गोल कोने 2. छाया 3. सीमाएं 4. क्रॉस-पेजिंग 5. मेनू और उप-मेन्यू 6. ...

PHP encryption method -

I have an encryption method, which has the following behavior: Each letter of the password is placed through a method The ASCII value obtains that the bytes of that character vary one side, and then the second way, and returns the following: $ shifted_left $ Original_char $ Shifted_right An example of a password is divided into pieces before it: a p8à ?? A0à | s9à | s9îw, a ?? O7är9à ?? D2à ?? G3à ?? O7à ?? E2a | s9à ?? H4a ?? E2är9à ?? E2d2 After this, the use of the string formed from going through each character in the original password is mixed using BCrypt. Are the passwords around these junk characters improving the strength of the password or to protect them from breaking through rainbow tables / dictionary attacks? pre-computed rainbow tables, because you have a unique Algorithm is probably someone has not cared to create a rainbow table. However, the same password is still hashes for the same hash, so an attacker who tries to haveh all your passwords ...

Is Scala's `AnyVal`s are stack allocated values? -

I want to know, Scala AnyVal and its subclass may be [c] Or Java primitives]? And can we create an optimized stack allocated variable like Stella on Stella? AnyVal code> allocated stacks to subclasses, where possible. Any and exceptions are exceptions with classes created by a new user, which extends AnyVal at 2.10.0 . AnyVal will be stored on a heap ... unless you have @specialized .

javascript - how to display and image using external jquery in my html file -

I'm new to jquery, someone can tell me how to display and using external jquery in my html file Image. I should clean my HTML and load the image where the image path is mentioned in the outer path. My jquery file will be like this testjquery.js and in my html file. & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" & gt; (Function () {var test = document.createElement ('script'); test.type = 'text / javascript'; test.async = true; test.src = 'testquery.js'; var s = document.getElementsByTagName ( 'Script') [0]; s.parentNode.insertBefore (test, s); test.onload = function () {// function to load external image}}) (); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; / Body & gt; & Lt; / Html & gt; Thank you in advance! You can just use: HTML & lt; Div id = "divWhereYouWantAddImage" & gt; & Lt; ...

Copy contents of Tab Page c# -

I have a tab control in which a tab page is static and the other tab pages are dynamically created through a loop Are there. I want to copy all the data form static tab page, there is a grid view in the static tab. I want to copy that grid view to all dynamically-generated grid views but the problem is that the previous grid view and others are empty. For any help (int i = 1; i & lt; xnl.Count; i ++) {tab page tb = new tab page (); Tb.Controls.Add (datagrid); TabControl1.Controls.Add (TB); } I think you should clone your grid, then add clonic addition

website - Accept credit card payements -

I have a general question about accepting credit card payments this is my position : I have a website that gives positive feedback to our customers for publishing some people. The first time an ed editor has been received and the interlace has been examined. After this, we are asking the customer for payment and when payment is received, the ad is published. My goal is to give our customers the possibility of paying with their credit card. For example, send an invoice via email with a link (or button) on the webpage where they can present their CC number and all the necessary information. This page can be made on our website. I have read some articles about online articles and sowing that there are 2 main possibilities: Use third-party merchant's own merchant account Which of the two solutions is better in your opinion, are these advantages - damages? Is there one more solution except those two? What about the solution to using my own merchant account? Complex...

- Where Developers Learn, Share, & Build Careers

For example, I want to read the Wikipedia page through an analyst, for example, JWPL I am able to do it, But my problem is: I should count the letters between the headings and sections and the number of links. Using JWPL, I could find a list of sections within each link from the list, but I am not able to count the characters. Overall, my purpose is to read a Wikipedia page, convert my data model into my data modell and give it another file that includes my data model. My data model is a file that will include: Section name, number "section and the number of characters between the next link or other section. Thanks for the help. There is a better way of doing this, currently using available services in Wikipedia. You can interact using the set Read Wikipedia's Metadata page In addition to the Media Yaviki tells a bit on this interaction Good luck

- Where Developers Learn, Share, & Build Careers

This works fine in the previous version of eclipse In errors / warnings, I " Unused private sector "- & gt; Warning . But this does not seem to work. For example: Public class main {@Resource Private int a; // I did not get any warning} This is intentional - see this topic on a Also see open bugs -

java - how to set opacity/transparent in DirectionPathOverlay class -

If we make an application to create a route / path using Android and Google Maps, then we will class DirectionPathOverlay To make a line from one point to another, but I can make the line more transparent (not 100% transparent) , this is the name of the road is clearly read. , Anyone can help me? Here are some code from DirectionPathOverlay class Public boolean draw (canvas canvas, map view map, boolean shadow, how long) {projection projection = mapView.getProjection (); If (shadow == wrong) {paint paint = new paint (); Paint.setAntiAlias ​​(right); Paint.setStrokeJoin (Join.ROUND); Point point = new point (); launch. Pixel (gp1, point); Paint.setColor (Color.BLUE); Point point 2 = new point (); launch. Tuck Pixels (GP2, Point 2); Paint.setStrokeWidth (4); Canvas.drawLine (float) point.x, (float) point.y, (float) point2.x, (float point2.y, paint); } Super.draw return (canvas, map view, shadow, when); use paint.setAlpha (200); This function accepts integers from 0 to...

html5 - Drawing SVG in <canvas>: simplest way to do it? -

I am trying to draw a SVG image on a canvas element. Some sources found that I should use a special library to convert the SVG data into and strokes, while others say that I just have to drawImage () can use a SVG image to drag it to a canvas. At first I used the canvg library to attract my SVG to the canvas, but I felt that it is very rich and more specialty for my simple needs. Although heavy, the use of a simple drawImage call does not appear in my application: nothing is displayed. If I change the reseller URL of a PNG image of my SVG, it shows precisely. what is wrong? Am I doing anything wrong or SVG coming on the canvas is no longer supported like this? I have tried to do it in Chrome 21, 22-Canary and Opera. My code (in the coffee script): ctx = @ canvas.getContext '2d' ctx.clear0, 0, @ canvas.width, @canvas.height ctx .drawImg @image, 0, 0, @ Canvas.width, @ canvas.height If indicates a code, if not, then SVG

- Where Developers Learn, Share, & Build Careers

I have three tables, the first is the list of email addresses: Addresses: Id - integer, this is the primary key & lt; Br> Apparently to get into the address desk: - Integer, foreign key reference id: addresses - sent "and" received "tables are the other columns, but they can not Not important for the sent and received tables every time an email is sent or received and if the address is not already in the "Addresses" table, then it is added.T tables can be quite large (100,000 +) . "Sent" and " Entries for the "received" tables are purified on a regular basis and the entries to be removed due to various reasons, leaving the orphaned entries in the "address" table. I clean orphaned entries in the "Addresses" table To find the most effective method in MySQL, I have a query that is yet to be done: Delete from addresses where id is not (choose to get rid of) and no id (Choose the sender sent); This...

How to detect whether the setup runs in very silent mode? -

I know that the setup is running in silent mode, it's a function to look at, but I'm very mute No function can be found for mode (when setup is executed with command line parameter). Is there any way to find out that the setup runs in silent mode? wizardselectant both / silence and / VerySyncent will be correct for installs. The difference between the two parameters is whether a progress bar is shown ( / silent ) or not ( / VerySilent ). Based on your comment, I can suggest that the command line should be checked and look for / many syllables and set global variables. Something like this: [code] var isVerySilent: boolean; Start the function Setup (): Boolean; Var j: integer; Begins Gaga: = Wrong; For Jammu: 1 = To do Paramount if the comparison text (Paramatrat (j), '/ excel') = 0 then starts excessive cittent: = tru; break; End; If there is a lot of logs ('tooillant') and logs ('not too much'); End;

scala - akka actor testing using play -

I want to test my actor Is it possible to check every case to get the function? def receive = {case msg: string => Println ("Success" + Message) Case User: VerifyIfUserExistActor = & gt; Built-in valetime timeout = timeout (30 seconds) val future = platActor? User Val Result = Wait Result (future, timeout. Duration) .asInstanceOf [user] Sender! Case of OTD Description: OTD Description = & gt; Println ("SUCCESS" + ott details)} Yes, if you do test Want to send you a successful message and just want to see that your actor system works you can use case _ = & gt; Println ("sending message success")

internationalization - PO files, swap msgid and msgstr -

Is there a device that swaps me and posts a message in a PO file? I could not find it. Note that I do not really need to keep the message as a result: In essence, I have to get a second PO file as the message of the first file. I found two useful tools for this purpose:

ios - Using GCD or not? -

I have an iPhone app that is a mobile app for a website. Call API methods from our server is the highest everything. The app retrieves user information, and uses the API to update the server. My colleague and I had a discussion about whether to apply GCD on the aspect of downloading on the app. My colleague argues that since the UI has to wait to complete the download before displaying images, text or anything, there is no need for GCD. My argument is that we have to provide UI rendering (Even so That there is no data), the main thread should be busy, and present the GCD in the app to make other threads for download. Which logic is right here? In my case, if UI does not provide any data, will there be some kind of interval? Which cleaner, sleek and fast app will give? If you want one more appropriate question may be to download the asynchronous or main thread for your app. Because there are several different methods for downloading asynchronous on iOS (for example using NT...

multithreading - Xcode stops running without a crash -

I am facing a problem from which the screen is active when my application works fine, however, when the screen lock Beats or sleeps, in fact, a certain part of the code stops indefinitely without crashing. The app uses the adware and runs some music tracks: Promotes Threads When a track ends, lots of setups should be called in order to create new tracks. At the same time, the app has to stop for a few seconds. This parallel activity has been received with boost :: Threads. When the screen is active, it all works well, however, when the screen is inactive, the new track is never played. There is no accident, and, using debugging breakpoints, it seems that the app is hanging only on a fixed line - the line changes from debug session to debug session - and gets stuck. I never expected a EXC_BAD_ACCESS - but nothing. No sign of why the code is not cut. Could it be that my main thread is blocked? I use some display selectoronMineTrade calls, but when I lock the screen using the ap...

ios - genstrings only finding 5 out of about 100 instances of NSLocalizedString -

I have about 100 instances where I use the NSLchronized String to spread through multiple files in multiple directories. I tried to use this command to create a .strings file from a top level directory: find-name \ *. M | Xargs genstrings -o en.lproj but this caused an error: could not connect to the output directory en.lproj So I just took it off: find -name \ *. M | Xargs genstrings This generated a Localizable.strings file, but its content has raised NSLocalizedString events with only 2 files - which may not be coincidentally in the same directory. Why command will work only on one directory and then it will be shut down I'm running a command from the high level directory h and these source files were found in m, so got the command h / m, but h There are peer directories for M / A, such as AH / B, which contain M files containing NSLchronized string instances. Why any issue might be a problem? I think that the folds in the genstrings in which the...

php - How to echo extra column with number in each row? -

I have created the table using html, mysql and php. I want to generate an extra column and put a number in each row of this new column. echo "table" = '1' & gt; & Lt; Tr & gt; & Lt; Th & gt; Rank & lt; / Th & gt; & Lt; Th & gt; Owner ID & lt; / Th & gt; & Lt; Th & gt; Total & lt; / Th & gt; & Lt; / Tr & gt; "; While ($ line = mysql_fetch_array ($ result)) {resonant" & lt; Tr & gt; "; echo" & lt; Td> ". '1'" "& lt; / TD & gt; "; echo" & lt; Td> ". $ Line ['owner_id']" & lt; / TD & gt; "; echo" & lt; Td & gt; ". $ Line ['Total']" & lt; / TD & gt; "; echo" & lt; / Tr> ";} resounds" & lt; / Table> "; Now the rank is an extra column that I have created and where it is 1, I can currently see it in all the row...

- Where Developers Learn, Share, & Build Careers

इस सवाल का पहले से ही एक उत्तर है: 12 जवाब नीचे दिया गया एक स्क्रिप्ट है एक्स आउटपुट की संख्या: #! / Bin / bash instant_client = "/ root / ora_client / instantclient_11_2" आउटपुट = '$ instant_client / sqlplus -s HRUSER / HRUSER @ TOMLWF & lt; & lt; EOF सेट लाइन से सेट फीडबैक सेट करें 10000 सेट पेजेज़ 10000 चयन गिनती (1) ऑनबोर्डिंग कैंडिडेट्स से, उम्मीदवार सी में जहां o.candidateid = c.candidateid और o.JOININGSTATUS = '0091' और to_date (o.joiningdate) = to_date (sysdate) 5); EOF exit` echo $ आउटपुट आउटपुट: cand1 cand2 cand3 cand62 अपेक्षित आउटपुट: cand1, cand2, cand3, cand62 यदि आपको रिक्त स्थान की आवश्यकता नहीं है: ... | पेस्ट-डी, -स - यदि आपको रिक्त स्थान की आवश्यकता है: ... | पेस्ट-डी, -स - | Sed 's /, /, / g'

- Where Developers Learn, Share, & Build Careers

मैं Rcpp.package.skeleton () द्वारा उत्पन्न rcpp_hello_world उदाहरण के साथ प्रयोग कर रहा हूं। मैंने rcpp_hello_world.cpp में एक छोटा परिवर्तन किया, मैं पैकेज को पुनः कंपाइल करना चाहता हूं और फ़ंक्शन को संशोधित कोड के साथ चलाता हूं। हालांकि, इसके बावजूद rm () के साथ नामस्थान को साफ़ करने का, detach () के साथ पुस्तकालय को अलग करना, r emove.packages () के साथ पैकेज को हटा रहा है - library () के साथ पुस्तकालय को फिर से जोड़ने से install.packages (.., repos = NULL, प्रकार = 'स्रोत') के साथ संकुल और पुन: स्थापित करना, अभी भी। सीपीपी कोड का पुराना संस्करण चलाता है। यदि मैं आर छोड़ देता हूं और आर को पुनः आरंभ करता हूं, तो पुस्तकालय () संशोधित। सीपीपी कोड लोड करेगा और इसे इच्छित उद्देश्य को चलाएगा, लेकिन मुझे हर बार आर को पुनरारंभ करना नहीं चाहिए सी ++ कोड में परिवर्तन करें (यदि संभव हो तो)। मैं आर को छोड़कर बिना सी + + कॉल को ठीक से रीफ्रेश करने के लिए R कैसे प्राप्त करूं? सत्र को पुनः आरंभ करने / पैकेज को पुनः लोड करने के लिए आम तौर पर यह सलाह दी जाती ...

haskell - Cabal - sharing datatypes -

I have a top level file called Datatypes.hs . It has come up in my cab file. Library front-module: Application Foundation import settings settings. Development DataType Handler I want to use Datatype Here's what I have tried in my test code Test-suite test type: exitcode- Stdio-1.0 is main: test / testclient.hs HS-source-DIs:. Test, GCC-option: -orite build-dependent: base, datatype, drain = 0.5 .2.7, Aaptors-pulse = 0.5.0.2, Transformer == 0.3.0.0, Resourceset == 0.4.0.2, http-conduit> = 1.5 & amp; nbsp; Amp; & Lt; 1.7, UTF-string == 0.3.7, ashon == 0.6.0.2 I am still not complaining about datatype in testclient.hs. Am i possible For now I will just paste my data types into testclient.hs, but I just want to be able to refer to Datatypes.hs You can not list individual code in the build-depend field - instead use your package name. For example, see: test- strict hardness-attribute HS-source-dyes: test is main: Hardness HS type: exitcode-st...

windows - %M2% not working in system variable Path but in user variable Path only -

I'm setting up Maven and I need to set M2 and M2_Home. I have set them in the user variable in the Environment variable. And I was hoping to be able to run the path variable in the system variable in the ;% M2% I was able to run mvn --version but I could not However, if I resonate % pound% I can see that in the path there is % M2% and if I echo% M2% I So I had this problem. Unless I created a path variable in the user variable and added % M2% to it, then Was the problem is solved and remove it from the path system variable. Now it is working. Does anyone know why this is working only in a specific way? You have to look at the Windows source code to make sure what's going on, Not surprisingly, on the basis of my trial, it appears that system environment variables can only refer to other system environment variables, not user environment variables Note that echo% PATH% should show the extended path you should not see % M2% . This is because sometimes the...

zend framework2 - customizing ZfcUser -

What I would like to do is to add some more properties (fields) to a registered user, for example: by default Is a display name provided and I want to like something else, want to do birth place, birth date and so on .. I have created my own unit class and ZfcUser worked with it Keep doing more specific: I have some protected variables, gates and sets Addres methods.) My problem is that I really do not know what to do next. I know that I must explicitly add some elements to the form and I can do it , But how can I "let's know" zfcuser that I have some other variables in the unit class so that this database can work well. btw I can not understand how this module is working for example where the scripts working with the databases are run properly This is an existing extension for ZfcUser with UserProfile support (and therefore custom properties). Check that code or use the module;)

Regex to check entry -

I'm terrible at regex and how to know how much value 1 or 2 is in a selection, No more There are three options and only 2 are valid. It can be used as validation regex for jQuery validation. If you want to match the literal string "1" and "2", / ^ [12] $ / will suffice.

rails custom rest route with parameter -

I have a question controller and an associated model and the rest of the way is how it has been established in the routes. RB: Resource: Question I want to add a custom route whose format / question / widget is / id (where id question is id of which I want to create a widget for it). I want it to be processed by the "widget" action in my question controller. I have tried many things like: resources: questions become members' widget / id: end end but nothing is working Doing I'm sure I'm missing some easy thoughts? thank you in advanced. You do not have to specify the ID after being in the resources. It should look like this: Resources: The members' questions are 'widget' and end up. You can find more information from See Section 2.9.1. EDIT: I have seen that you are trying to get / query / widget / ID will set a path to get it / question /: ID / widget is more with this rail conferencing If you really want it in another way...

- Where Developers Learn, Share, & Build Careers

This is a common problem, and I'm not sure if here's the problem here: = & Gt; Explanation: A ticket falls under one attendance There is a revenue receipt Get the total revenue by section and need. This double is present in the calculation because 2 tickets can be related to that same presence, thus in double counting I want to get the sum of revenue, but only want to count the attendees once. In my SQLFlash example, I want to see: section | Total_re venue ------------------------ a. 40 & lt; = 40 is correct, but I'm getting 50 ... b. Zero C | 40 I want to solve it without the use of sub-queries. I need a scalable solution that gives me the same query in different columns on different columns Will allow this to happen. So whichever one allows me to accomplish this, I am open to suggestions. Thank you for your help. here row_number () : Select section is a version using zodiac (revenue) t. Section, A.View, Route_Number (), (Di...

Magento SSL links not given out from Magento functions -

I have a problem with SSL link in Magento. I have SSL setup and work ... all normal settings When I look at the source of a page, I can still see the HTTP link ... and it is invalidating the SSL. The url in question (Karknesi, Store Switcher, related to navigation) is given to all by Magento Functions. Such as: getCategoryUrl (); getSwitchCurrencyUrl (); Does anyone know what can be wrong ... I can remember some of his things? Any more information is required, please let me know ... Thanks Sean It's really a good thing that it helps prevent search engines from seeing links to their catalogs and product pages, such as https (due to duplicate content) with my knowledge, if you have resources (images , CSS, JS), it will affect your SSL (due to browser cookies). If you see a source on the page containing SSL Magazine, those resources will be automatically https

- Where Developers Learn, Share, & Build Careers

I have a very easy way of calling on page load, Identify the protected sub (if user.Identity.IsAuthenticated) then Else Response.Redirect ("login.aspx") end if end sub what I want to do is throw a redirect The role is a part of the user on the group, so if they have been certified, but "Admin" is not part of the user group, Redirecting to a different page .... Some such as protected sub-identities () if the user is Identity.IsAuthenticatedIf user. Indentia. Initial Group ("Admin") Response.Redirect ("AdministratorDefault .aspx ") End if other feedback. Redirect ("login.aspx") End & End End Is such a thing possible? I can not find any answer. if (User.IsInRole ("Administrator") ... end if

- Where Developers Learn, Share, & Build Careers

I know that if they use do_shortcode wrapper, then it is possible to nest the shortcodes, however, codex says : "Although the parser will fail if the shortcode macro is used to do another macro of the same name:" Is there a way around this? For example, if I have a shortcode to create a div: some content in [div] div [/ div] I want to be able to use: [div] [div] a nested div [/ div] [/ div] But this standard will fail with the do_shortcode wrapper. I have a duplicate of the shortcode attached to _parent attached to my temporary outline name, but I have not created div_parent1, div_parent2 etc. only from the Nest 1 level depth ... If you are writing a shortcut then there is a simple solution that you can write several shortcodes that call the same function. I have shortcodes to create HTML blocks such as divs, and many such names such as div, block1, block2 add_shortcode ('div', 'devondev_block'); Add_shortcode ('block',...

Ensure correct sql server instance db in script before executing? -

How can I specify in my .sql script that it only executes against my localhost SQL Server DB frequency And not on any other open connection to my integration or test environment? dbsetupscript.sql Use myDB - Wifet Safe Goud I can keep here to make sure that this script can only be executed by VIA DELETING TABLES Before starting my local environment, etc.? Delete Mother Removal - Delete other tables and enter duplicate production data Try code should be something like if (@@ serverName = 'localhost') Delete DEBT MadreTel - Delete other tables and enter simulated production data END ELSE print 'incorrect example'

java - PatternSyntaxException when using String.match() -

It appears that the innocuous pattern is creating a pattern syntax expression: String pattern = "^ (?.: *) \\ * {$" s; // is pattern: ^ (?:. *) \ S * {$ As you can see when you are looking at it, it seems that working properly . For example, that string should match: name { The message I'm bringing back is " Index 9 has illegal repetition "but I do not know what I am doing, which is illegal, the culprit character should match any number of white space between the last section and Is anyone wrong who I am? prevent you from { to \\ is required.

java - Epoch time confusion, clarification needed -

Image
दिया गया: निजी कैलेंडर कैलेंडरInstance = Calendar.getInstance (); सार्वजनिक लंबे समय तक मिलिशिया () {calendarInstance.set (वर्ष, महीने, दिन, घंटे, मिनट); वापसी कैलेंडरInstance.getTimeInMillis (); } जैसा कि मैंने इसे समझ लिया, परिणाम युग के बाद से समय के साथ वापस आता है, मिलीसेकंड में वर्तमान समय से यूटीसी मिलीसेकंड के रूप में। यह देखते हुए कि मेरी परीक्षा हमेशा वस्तुएं सेट करती है, समय के रूप में परिणाम अलग-अलग क्यों होते हैं? विस्तृत मॉटेंट = नए क्षण (2012, 11 , 1, 1 9, 9); अपडेट करें: मैं अपने आप को दूसरा अनुमान लगा रहा हूं क्योंकि Img src = "https://i.stack.imgur.com/Qlxfd.png" alt = "यहां छवि विवरण दर्ज करें"> उसी समय की अवधि के लिए मुझे 1_351_796_940 // http://www.epochconverter.com 1_354_410_540 // मेरा नंबर मुझे लगता है कि आपको उपयोग करना चाहिए यदि आप ऐसा करते हैं तो यह आपको प्रत्येक बार मिलिसेकंड की सटीक संख्या वापस कर देगा। सार्वजनिक लंबे समय तक मिलिशिया () {calendarInstance.clear (); CalendarInstance.set (वर्ष, म...

- Where Developers Learn, Share, & Build Careers

If there is a way to monitor the duration of the request on an iis server, then I am personally keen on a solution I came along, but it is actually a resource and this is the reason I am asking questions, just to gather more opinions. My plan is to take the time period of each request and send it to the graphite so that the real time view of the webserver is realized. The idea I have come up with is to use Pauschell with my web design module. And if you run the get-item IIS: \ AppPools \ DefaultAppPool For example, Get-WebRequest gives you all the requests at that app pool, which contains a lot of information, including time information. This is the thing that I should have a script that every 100 ms get all the requests and that is a little wasteful, a method of telling the Iis to put the request period time (in milliseconds) in the log is? Because then I want as much information as I need. I do not know there is such a feature on IIS, but I have reverse between Intern...

ecmascript 5 - For Javascript, what prevents modern implementation not to treat arguments as a real array? -

I think this is an outdated JavaScript behavior (Crokeford said that this is a design error) Inside, logic is like an array, except that it is not a real array, so array methods can not be applied to it: function foo () {Console.log (arguments.slice (1))} / / Foo (1,2,3) will not work; And I just tried it on the latest Firefox and Chrome, and it will not work on both of them. Therefore we may have to use function fu () {console.log (Array.prototype.slice.call (argument, 1))} foo (1,2,3); But why do not make any real array in the modern code logic ? Probably should not be any program which depends on arguments is not the actual array? Now what can be the reason for not making this a real array? One reason I can think, if the programmers start treating it as an array, the code will not work in the old browsers, but there are other things in ECMA-5 which are also in older browsers. Will not work. In the development of ECMAScript 5 for a very long time, the logi...

What is LLVM Context? -

What is the LLVM context really? Does such a bisexual environment code run? What are the LLVMContext class mavellars? I read . But a lot could not be understood. From your written link: In this one threaded reference There is an important class to use LLVM. Since it says "unnatural", you should not know that this (Opocal) is the owner of the LLWM infrastructure's main "global" data and manages it, what does it include Think about what is used or what is used for it, just think of it as a reference to the LLVM "engine", which you should undergo in various ways needed for the LLVMContext . EDIT: Just to clarify: No, things like bissasses are not included - they are defined in the target data.

- Where Developers Learn, Share, & Build Careers

Open a yaml file to read Search the path stored in that path will always be in the second row of the file Location: !! Python / Unicode '[path here]' The fastest way to do this is to object only: Line [28: -1] But it only works when you are absolutely sure that the line will actually be in that format - there is no difference in white space, etc. And of course you have to make sure that you have found the right line; If line 2 is a comment and line 3 is the real line, and you try to parse the comment on it, you will get the right part of the comment and it seems that this is a way. A more robust and flexible solution might be to use a regexp: re.match (r ". * '(. *)' ', Line) .group (1) or: again match (r "Location: \ s !! Python / Unicode \ s' (. *) '', Q) .group (1) one ?? | e.t.c. What exactly do you want to use depends on the type of variety you want to allow, and what you want to protect from. But in...

- Where Developers Learn, Share, & Build Careers

Is there a way to change ID values ​​in Django ChoiceField forms? For example, I want id = "rating #" for output in my ChoiceField ID format, where there is a # incremental number, I assume that you have the widget attributes for the id Change, but how do I get a incremental number in the id? Example: & lt; Label = "id_rating_0" & gt; & Lt; Input type = "radio" id = "rating 1" value = "1" name = "rating" /> & Lt; / Labels & gt; & Lt; Label = "id_rating_1" & gt; & Lt; Input type = "radio" id = "rating 2" value = "2" name = "rating" /> & Lt; / Labels & gt; & Lt; Label = "id_rating_2" & gt; & Lt; Input type = "radio" id = "rating 3" value = "3" name = "rating" /> & Lt; / Labels & gt; & Lt; Label = "id_rating_3"> gt; & Gt; Input ty...

linux disk usage report inconsistancy after removing file. cpanel inaccurate disk usage report -

संबंधित सॉफ़्टवेयर: Red Hat Enterprise Linux सर्वर रिलीज 6.3 (सैंटियागो) Cpanel स्थापित 11.34.0 (बिल्ड 7) पृष्ठभूमि और समस्या: मुझे एक डिस्क उपयोग चेतावनी (cpanel के माध्यम से) मिल रही थी क्योंकि / var पर भरना लग रहा था मेरा सर्वर धारणा यह होगी कि एक लॉग फ़ाइल बहुत बड़ी हो रही है और विभाजन को भरना है। मैंने हाल ही में एक बड़ी लॉग फ़ाइल निकाल दी और लॉग फाइल को अधिक नियमित रूप से घुमाने के लिए मेरी syslog कॉन्फ़िग को बदल दिया। मैंने / var / log / somefile जैसी कुछ हटाई और संपादित /etc/rsyslog.conf इसका कारण यह है कि मुझे सीपीएनएल द्वारा जारी डिस्क उपयोग रिपोर्ट चेतावनी के बारे में संदेह था जो मुझे मिल रहा था क्योंकि यह सही नहीं था। यह वह है जो डीएफ विभाजनों के लिए रिपोर्ट कर रहा था: $ [/ var] # df -h फाइल सिस्टम आकार प्रयुक्त उपयोग की गई संख्या% / / dev / sda2 9.9G 511 एम 8.9 जी 6% / tmpfs 5.9G 0 5.9G 0% / dev / shm / dev / sda1 पर आरोहित 99 एम 53 एम 42 एम 56% / बूट / डेवि / एसडीए 88 88 जीजी 384 जी 455 जी 46% / होम / डेवि / एसडीबी 1 9 .99 जी 151 एम 9 .3 जी 2% / टीएमपी /...

html - jQuery background-image fadeIn -

I am trying to feed a background image in my list item. I've tried everything but it was not found ... HTML: & Lt; P id = "text1" & gt; Text & lt; / P & gt; & Lt; / Li & gt; ($ ('#Een'). CSS ("background-f" You will need to create a background IMG element that is fully located within a relative parent. Here is an example of what I mean. HTML Notice I add a div to it with the first item in each li Class as li-background . This is done by CSS This will not be edited to be shown on load and will be fully deployed within the parent, which is relatively a situation. I have also set my z-index to -1, this lesson or No other item is displayed in Li, so its background! gt; & lt; li id ​​= "een" & gt; & Lt; div class = "li-background" & gt; & lt; img src = "http://www.freenew.net/upload/pscreen/47/gradient-screensaver-32.jpg" /> Lt; / Div & gt; ...

c# - Dynamically generate URL from Database in ASP.NET MVC? -

Hello to all developers, I try to find some examples of generating URLs dynamically I am doing I have seen a software that generates personalized URLs from MySQL database. The only thing that is to make the URL to the software PHP and the one. I am using NET as a developer. I do not know about php. My question is that there is a way that I can get data from the data base and using that I can generate the URL in the Pretural field which is actually Is not in my web space. eeg ----- database ----- firstname | Last name .... ========================= xyz ABC pqwert qweoiuy alfa beta URL Should be http://something.com/somepersonal/xyz_abc.aspx http://something.com/social/ pqwert_qweoiuy .aspx http://something.com/somepersonal/alfa_beta.aspx This is something like a personal page for users Or the customer has a template to use me as the back page, but I do not know how to generate and dynamically generate URL. You are thinking a bit backward about this, genera...

jquery - Loading PHP Success message in Lightbox/Modal -

I have a basic understanding of PHP, and in the past, I always loaded "Thank you for sending / success message" Information in an external php / html file Currently I am using Zubar. The foundation to build a site and I was wondering how can I load a success message in the page I'm already using? It is not currently active, but it is an example for reference (click 'Submit' to see the model): This is when I have done everything in my PHP file normally, when it is good with all the forms: / * Thanks to the thank you page. * / Header ('location: ../thanks.html'); Go out(); Can I just use something like this ?: header ('location: # link_to_an_id_wiman'); Go out(); Do anyone know how to do something like this or have an example link? Thanks Here's an example, which you can change in your objective : $ (document) .ready (function () {$ ("a .quickLyric"). Click (function () {// id var urlLoad = $ (this) .attr Ca...

- Where Developers Learn, Share, & Build Careers

Is it possible to get a WP8 emulator to access the ASP.NET Development Debug Server running on my PC? WP8 emulator runs inside Hyper-V and the debug server on my PC is therefore not accessible to the emulator, is it possible to do this? The only solution I can come up with is to create and debug an IIS server on my machine, but its very easy development server The problem is not really "how to access the development server from emulator", but "how to access the development server from a remote location" emulator is connected to a 'bus' network. Is the device. And for this, I can recommend some links:

- Where Developers Learn, Share, & Build Careers

Good it's really confusing I have two pages, A and amp; Both use the following code: $ row = mysqli_fetch_array ($ data); $ _SESSION ['user_id'] = $ line ['user_id']; $ _SESSION ['username'] = $ line ['username']; Setkey ('user_id', $ line ['user_id'], time () + (60 * 60 * 24 * 30)); // Setkeykey ('username', $ line ['user name'], time () + (60 * 60 * 24 * 30) ends in 30 days;); // expires in 30 days $ home_url = 'http: //' $ _SERVER ['HTTP_HOST'] Dirname ($ _ SERVER ['PHP_SELF']) '/main.php'; Header ('location:' $ Home_url); A code will execute after the settings of the headers (you have been removed for easy) and then set the header; After setting the header of B. will execute the code and will not set the header. I have checked a lot of answers, and there is no white spot, the main.php file is set to normal, A and A; The B file looks alike, but which is useless wit...