Posts

Showing posts from May, 2011

angularjs - ngShow on value selected? -

I would like to display only a single divisive number (i.e. special ) when a specific value is selected. I have tried the following but it does not work, how can I fix this? & lt; Select ng-change "timeline.selected note ()" ng-model = "timeline.Opt selected note as" ng-option = "option.not time contact.opt opt ​​in" class = "btn btn- Default dropdown-toggle "type =" button "ID =" dropdown menu 1 "Data-Toggle =" dropdown "& gt; & Lt; Option value = "" & gt; - Choose note - & lt; / Option & gt; & Lt; / Select & gt; & Lt; Div class = "select-element animate-hide" ng-show = "timeline.edited note == 'special'" & gt; Because ngOptions are used as the value of opt Using (due to the as an option ... ), timeline.edicated note is the whole note object object assuming that you have 'special' Is equal, this is notecard , it...

workflow - How to get Test Result in Custom Code Activity in TfvcTemplate.12 -

Image
I want to add a V statement in tfcvtemplate.12 after the "VS test runner run run" in the workflow diagram if There should be a condition if all the tests are successful, but I can not find any variables in the new templates. Anyone who does this If tests fail, then Will throw an exception and catch the catch block, if they pass, then they will go to the next activity:

javascript - Make <div> appear upon scrolling -

I'm new to JavaScript, so I'm sorry if after reading this mess, I started scrolling the user After implementing the code required to show a devil. When I put the code in JSFiddle ( ) it works perfectly. However, it does not work at all on my website. It's in JSFiddle, but this is my code: HTML / JavaScript: & lt; Div class = "backtotop" & gt; & Lt; A href = "#" & gt; Back to top & lt; / A & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .scroll (function () {var y = $ (this) .scrollTop (); if (y & gt; 1) {$ ('. Backcop'). FadeIn ();} else {$ (' Bakopoth '). FadeOut ();}}); & Lt; / Script & gt; CSS: .backtotop {display: none; Width: 200px; Height: heir; Status: fixed; Bottom: 0; Correct: 0; Border: Thin solid black; Background: lightgray; Art color; Z-index: 1; Text-align: center; } .backtotop one {color: black; Font-family: Cali...

python - How to efficiently remove redundant linear constraints for optimization? -

There are thousands of linear obstacles in my optimization problem. I want to reduce the complexity of my problem by finding unnecessary obstacles, eg. 3 * x + 4 * y may be redundant if I already have an obstacle that is 4 * x + 5 * y (and x and y are > which is a matter of my problem). So, I have a narrow array of all the qualities, and it looks like this, for example: [[0.1, 3.0, 4.8, 0.2] , [1.0, 4.7], 5.3, 0.1], [2.2, 4.3, 5.2, 1.1]] Representation of constraints: 0.1 * w + 3.0 * x + 4.8 * Y + 0.2 * z & lt; 10 1.0 * w + 4.7 * x + 5.3 * y + 0.1 * z & lt; 10 2.2 * w + 4.3 * x + 5.2 * y + 1.1 * z & lt; 10 How can I efficiently find out who is unnecessary? My general knowledge give me a loop (pseudo-kodish): for i, enumerate (array) in line 1: for j, enumerate in line 2 ( Array): if j & gt; I: If all (line 1> line 2): Delete row But is it slow for thousands of constraints, any way to speed it up? You can think of every obst...

iOS - Image border or another image as border - performance wise which is better? -

I'm new to iOS development. I'm working on an app that has a lot of images (each with an image Cell with cell). I need to show the limit for each image. Currently it is how I do it - [image.layer setBorderColor: [[UIColor Red] CGColor]]; [Image. Player SetborderView: 2.5F]; This border is fixed for each image in the width and color cell if I want to use an image instead of setting the range instead of the runtime (in Xcode IB )?

combinations for numbers 0 to 40 -

I would like to know all possible combinations from 0-40 in sets of 2. For example: 1/1 - 1/2 - 1/3 - 1/4 - 1/5 - 1/6 - 1/7 - 1/8 - 1/9 - 1/10 Cheers from all 40 and all possible combinations in Hascale: [(x, y) | X and LT; - [1..40], Y & LT; - [1..40]] In other languages, you should probably see the loops: (this is C #) Tupal and lieutenant; Int, int & gt; [,] Things = New Tuple & lt; Int, int & gt; [40,40]; For (int i = 0; i & lt; 40; i ++) {for (int j = 0; j & lt; 40; j ++) {Things [i, j] = tuple Composition (i + 1, j + 1); }}

php - Warning: in_array() [function.in-array]: Wrong datatype for second argument issue -

If someone can help, it will be appreciated. There is an error for the wrong datatype on your code's code, but it can not see what the problem is: This is especially telling me the error of code 686 (with Asterix). .. no mistake help would be appreciated: personal function breakdown ($ data, $ fields, $ all_horses) {$ criteria = array (); Forex currency ($ data as horse $) {array_push ($ criterion, $ horses [$ field]); } $ Max = Max ($ criteria); $ Horses = array (); Forex currency ($ data $ horse => horseback data) {if ($ horsedata [$ field] == $ max) {$ horses = array (); ** If (in_array ($ horses, $ all_horses)) ** {array_push ($ horses, $ horses); }}} $ Returns to horses; }

Add hours in PHP -

I have a few hours in the following format from the database and try to know how to add a loop. ID hours 1 2:23:40 2 4:20:30 3 1:10:20 while ($ stmt-> fet ()) {$ totalhours + = $ work_hours; } Copying $ totalhouses; Any ideas how can I add them, so that I get hours with minutes and seconds? Thanks, Raj Convert everything in seconds, Add together, then convert that time to hours. One easy way to note is, it will not work well with the total> 24 hours. while ($ stmt-> fetch ()) {$ totalhours + = strtotime ($ working group); } $ Totalhours = date ('H: i: s', $ totalhors);

encryption - AES decrypt for j2me -

I have read on this link how to encrypt the string using AUS, as it is by Buny Castle has given. Encryption method code works fine but decryption does not work. Can anyone suggest how can I decrypt the encrypted string? I have used the following code for testing: import com.codename1.util.Base64; Import org.bouncycastle.crypto.CipherParameters; Import org.bouncycastle.crypto.engines.AESEngine; Import org.bouncycastle.crypto.modes.CBCBlockCipher; Import org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher; Import org.bouncycastle.crypto.params.KeyParameter; Import org.bouncycastle.crypto.params.ParametersWithIV; / ** * * @ @ Author SAMUEL * / Public Class Checker {Fixed String strEnc = "Hi This Is My String"; Last fixed string strPassword = "password12345678"; Private stationary byte [] cefdata (paddfblock seafar, byte [] data throws exceptions {int minSize = cipher.getOutputSize (data.length); Byte [] outBuf = New Byte [Min Sissy]; Int length 1 = ci...

gstreamer - How to open an rtp jpeg stream in opencv? -

I'm trying to open a video stream in opencv but I'm having some problems I started a stream on it I can: GST-Launch-V v4l2src device = / dev / video0! 'Video / X-Raw-UUV, width = 640, height = 480'! Jpegenc quality = 30! Rtpjpegpay! Udpsink host = 127.0.0.1 port = 1234 ` and I can open it with: gst-launch udpsrc Port = 1234! "App / X-RTP, Payload = 127"! Rtpjpegdepay! Jpegdec! Xvimagesink sync = false But when I tried to open it in my code with VideoCapture cv_cap; Cv_cap.open ("RTP: 127.0.0.1: 1234 /"); I get an error about missing SSP files. I know what a sdp file is and I should get information from gystream output for this, but I do not understand how to parse the output.

php - Is It Possible To Store Background Colour Hex Then Display Using That Colour? -

Image
I have a form that allows users to design a design behind a card User Title, enter their name Do and upload a small image. It then appears back and looks like a large gaming card with a small image and top and bottom text. The background color of the card is set in CSS and it can not be changed by the user. I want users to enter their background color in hex, then show it back with the image and the text. How will this be done? Which process do I need to see? When the user selects the color, And when you want to show the card, do something like this: & lt; Div style = "background: & lt; php echo $ bgcolor & gt;" & gt; & Lt ;! - Here is the BGCOLOR selected by the user - & gt; & Lt; Div & gt; Business Card Text & lt; / Div & gt; & Lt; Div & gt; & Lt; Img src = "/ img / the_image.jpg" & gt; & Lt; / Div & gt; & Lt; / Div & gt; It is

How do I get the datetime object of today's 5pm in Python? -

I want to create a countdown app that will count up to 5 o'clock today. How do I do this with data-object? In short, I just want to get Unix time at 5 o'clock. I saw the doctor, but I feel a bit lost. Thanks in advance for any help! You can combine one with: Five minutes = Datetime.datetime.combine (datetime.date.today (), datetime.time (17, 0)) Creates a new date time example and Time from the example given Demo: & gt; & Gt; & Gt; Import Date Time & gt; & Gt; & Gt; Datetime.datetime.combine (... datetime.date.today (), ... datetime.time (17, 0)) datetime.datetime (2014, 7, 27, 17, 0)

powershell add objects via -outvariable +variable in a function -

I'm not sure if the imported session window is running in case I have a function in one Trying to add some variable values ​​to the array $ session = new-PSSession - ConfigurationName Microsoft.Exchange -ConnectionUri "http: // emailserver / powershell /" -Authentication Kerberos Import-PSSession $ session -allowclobber Add-PsSnapin Microsoft.SharePoint.PowerShell $ GROUP1 = "Accounting" $ Group2 = "Human Resources" function AddUsersToGroups {Write Output $ Group1 -outvariable + Ad Group Rights Group $ 2 -outvariable + Ad Group} When I highlighted and run lines from a Powershell ISE they work properly For more variables you can create $ AdGroups and the combined data exists there. But when I run the function, I see there is output and no variables are created. psc: \ windows \ system32 & gt; AddUserToGroups Group 1 Group 2 A little stumped I tried to create a variable $ AdGroups = @ () as the first line, but also Fails No...

c++ - What does it mean to resolve a symbol? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब ld- Linux.so प्रतीक प्रतीकों को संदर्भित करता है लेकिन इस अवधारणा को स्पष्ट नहीं करता है। मुझे लगता है कि सवाल में वाक्यांश भी एलडी और लिनक्स के बाहर प्रयोग किया जाता है। प्रतीक को हल करने का क्या मतलब है? मैंने इस वाक्यांश को बहुत कुछ देखा है, लेकिन मैंने एक परिभाषा कभी नहीं देखी है। इस सवाल का कारण यह है कि मुझे यकीन है कि यदि एक चर के प्रतीक को हल करने से चर का निर्माण होगा या यदि एक प्रतीक को हल करने से केवल एक चर के अस्तित्व को नोट किया जाता है। प्रश्न यह एक से संबंधित है: इसका मतलब है कि कोई उपयोग वास्तविक प्रतीक के स्थान (उदाहरण के लिए एक साझा लाइब्रेरी फ़ाइल में एक वास्तविक फ़ंक्शन का कोड) के साथ "अपरिभाषित" प्रतीक का (उदाहरण के लिए एक बिंदु जहां कोड का एक भाग साझा लाइब्रेरी में फ़ंक्शन कॉल करता है), आवश्यकतानुसार पुस्तकालय लोड कर रहा है। शब्दावली का उपयोग दोनों समय समय और गतिशील पुस्तकालयों को चलाने के समय में स्थिर पुस्तकालयों के साथ जोड़ने के लिए किया जाता है। सी ++ में, साझा लाइब्रेरी में ए...

oracle - Joining two case statements -

I would like to check that it is possible to combine the two statements together? I have tried to do something like this, but I am getting the 'Consumption bill illegal identifier' error. I know I get this error as I do not have a ConsumptionBill feature. So it is still possible to get involved in two case statements? Select CustName, preRead, newRead, new read-prearride at content consensus, case when prompt - sent date & gt; 30 THEN Consumption + FP when SYSDATE - Sent & gt; 45 THEN Consumption + AP ELSE ExpenditureBill + 0 from the BIll as Selection (Select C.firstName || '' .lastname as CostName, R.Newering PURED, Lead (RNU) Readings) over (R. electrascimetide ord by part arbitrage) as new read, BFS, FR as BSXRAT SR, TR as BHDRCTR, P. FastPanMT as FP, P As a SCPANAM SP, Blow .tent date, case new read-premiere = 20 then (newRead-preRead) * FR when newRead-preRead & lt; = 30 then 20 * FR (newRead-preRead -100) * SR when newRead-preRead & Gt; 4...

wifi - Wi-Fi works on iPhone but not on my laptop -

I am at a hotel in Budapest, Hungary. I get the hotel's Wi-Fi on my phone using my password But when I try to connect with my laptop (both chrome and IE) the hotel's login page does not go away, even if I agree with their rules, clearing cookies and restarting has not solved the problem. If you are on an iPhone, go to settings, personalized hotspot, and then click on the button You may be able to stream WiFi from your phone to your laptop. If you're on Android, look up "Tethering" on your phone, and do a simple Google search for your specific phone type / model (e.g.,).

json - nodejs and gith doesn't work -

I am trying to create an autodetship with github, to execute this JS "server" Github to get the hook, this work is amazing, but I need to download a repository to run a script again, but this code does not execute my hook. Sh. I do not have a node experience before, so, I'm lost here. // Listen ports 9001 var gith = require ('gith'). Create (9001); // import execfile, run our bash script var execFile = ('child_process'). ExecFile; Gith ({repo: 'username / autodeploy'}). ('All', function (payload) {if (payload.branch === 'master') {// exec shell script execFile ('/ root / nodeapp /hook.sh', function (error, stdout, stderr) { // log success in some ways. Console ('exec completion');});}}); OK, I was testing it manually and it seems that the problem is with gith ({.... which is inside it does not work, Anyone have any ideas? OK, problem P> On ('File: All', Function (Payload) {.... ...

c++ - How to remove element from vector by value but only single instance of that value? -

Here's the problem, I have a vector and I need to remove 2 elements from the vector Is one after the other. I know the value of those two elements and the indicator of those elements. At first I tried to use the index of those two elements v.erase (v.begin () + index1); V.erase (v.begin () + index2); But in the problem array changes the first element of the second element is after the index is erased. Therefore, I tried to remove them from the value v.erase (delete (v.begin (), v.end (), value), v End ()); but it removes all instances of that value (for example, if 2 is "1" then both will remove it), while I only want to remove one element. How to solve this? You can use: v.erase (v .begin () + std :: max (index1, index2)); V.erase (v.begin () + std :: min (index1, index2)); or even auto index = std :: minmax (index1, index2); V.erase (v.begin (+ + index.second); V.erase (v.begin (+) + indexed first);

class - Java 2D Game - I Don't Understand Some Code -

बफर्ड छवि छवि; छवि = इमेजआईओड (स्प्राइटशेट.क्लैश.गेटरससोर्सएस्टस्ट्रीम (पथ)); मैं वर्तमान में एक 2 डी जावा गेम बना रहा हूं, एक अभ्यास के अनुसार मैं ले रहा हूं; हालांकि, वहाँ कुछ चीजें हैं जो मुझे यहां नहीं समझती हैं। पहली बात यह है कि मैं इसके बारे में भी निश्चित नहीं है: स्प्राइट शीट। क्लास मैंने कभी नहीं देखा है। यह वास्तव में क्या है? इसके अलावा, क्यों getResourceAsStream विधि काम में सिर्फ पथ में डाल दिया है? ऐसा इसलिए है क्योंकि मेरे पास एक रिज़र्व फ़ोल्डर में स्प्राइट शीट है, जो कार्यक्रम के निर्माण पथ में है। मदद के लिए धन्यवाद! वर्ग किसी दिए गए वर्ग के लिए कक्षा ऑब्जेक्ट को संदर्भित करता है। उदाहरण के लिए, Integer.class को class java.lang.Integer के लिए ऑब्जेक्ट। getResourceAsStream () वर्तमान में एक फ़ाइल की ओर इशारा करते हुए एक InputStream वापस करेगा वर्गपथ।

AngularJS : Access ng-repeat $index inside directive link function to access item in collection -

I have participated in a wall and no document thus far is not helping. I am trying to create an instruction that replaces an element with an iframe pointing to an external resource and every item in my array has a link to its resources My data looks like this: [["title": "launch", "name": "barbells", "resource": $ sce.trustAsResourceUrl (" Http: //external.domain: 14168 / bar / falcon ")}, {" title ":" launch "," name ":" fubar "," resource ": $ Sce.trustAsResourceUrl (" http: // external. Domain: 14168 / Foo / bar ")}]; My html looks like this: & lt; Content element = "talk in things" & gt; & Lt; Iframe ng- src = "{{thing.resource}}" /> & Lt; / Luggage & gt; My Director looks like this: stuffsModule.directive ('stuffs', function ($ parse) {return {Limited: 'AE', transclue: 'eleme...

android - Changing the certificate fingerprint for an existing application -

I have an existing application that I have published in Google Play. All were fine, as long as I changed a computer and my shadow fingerprint changed. Is it possible to replace sha1 for existing apps in the Google Play Developer Console? If not, how can I deal with it? Thanks! If you remember, when you publish the app on your old computer for the first time, you can Generate a key. To publish on Castor and Google Play. You must be the same file. When you want to sign the APK, it asks if you want to generate a new key or want to use the existing key because you have already generated the key, so you should select the current key.

javascript - interact between two different graphs in two different browser windows in dc.js crossfilter -

I have created dc.js visualization with four different bar graphs, apart from opening a new graphic window in each article There is a button for For that purpose I have created a separate HTML file for each article. I want to interact between the graphs opened in two different windows. Is this possible? how? Thank you! window.opener will return a reference to the window object window It's opened. In the first window, you can skip a global context (Let var graphThing or window.graphThing ) need to manipulate whatever objection is Then, the window that is launched from the original window, you can call window.opener.graphThing to access the first window's graphing. To use a property, the child's window (assuming that global var childGraphThing or window.childGraphThing ) opens it to parents, You can put a reference to the hair window by opening it like this: var childWindow = window.open ('childGraph.html', 'blank_'); Then, you ...

what is the difference between app-deployments and app-root on openshift? -

I have an app with 300 M when I press it for gear that opens with git-1 GB, So used quata is 900m. This is why git-repo is 300m and folders are app-deployment and app-route, which also takes a complete copy of the repo. It does not make sense to me. Two times ok, but three times? Why? That's right, the code is in three places. You can use app deployments to store more frequencies You can also configure, among which you can switch if you need it, you can double check what you are storing in your GIT repo? Some of it may be in OPENSHIFT_DATA_DIR instead, such as images & amp; Video?

javascript - Uncaught ReferenceError: {var} is not defined. Files are created separately -

इस सवाल का पहले से ही एक उत्तर है: 20 उत्तरों मुझे क्यों अनक्यूट रिफरेंसरॉल: मुझे मेरी जावास्क्रिप्ट फ़ाइल में परिभाषित नहीं किया गया है? तो यहां बताया गया है कि मैंने इसे कैसे किया। app.js $ (फ़ंक्शन () {var i = 1;}); कुछ.जेएस $ (फ़ंक्शन () {अलर्ट (i);}); और यहां बताया गया है कि मैं अपनी फाइल कैसे अनुक्रमित करता हूं। // यहां jquery शामिल है & lt; script src = "/ app.js" type = "javascript / पाठ "& gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "/ some.js" प्रकार = "javascript / text" & gt; & lt; / स्क्रिप्ट & gt; मैं कैसे app.js से या अन्य जावास्क्रिप्ट फ़ाइलों से चर को निष्पादित या एक्सेस कर सकता हूं? मैंने सोचा था कि उन्हें क्रम में सूचीबद्ध होना चाहिए। मुझसे कहां गलती हो गई? कोई भी सहायताकाफी प्रशंसनीय होगी। धन्यवाद समस्या है कि आप एक स्थानीय क्षेत्र में i परिभाषित कर रहे हैं। आपको इस तरह की कोशिश करनी चाहिए & lt; script type = "text / javascript...

sendmail - How to find out why Python send_message() isn't working -

I am calling send_message () in a Python script, but it does not work for it Does some reason I currently have the following: Try: print "send message" s.send_message (msg) print except "Message Sent" (SMTPRecipientRefused, SMTPHeloError, SMTPSenderRefused, SMTPDataError) e: Print E Now running it, sending a message is printed, but nothing else. There is no exception description, and sent messages are never printed. I know how the problem is with the send_message () function? What would a common exception handler help? I have tried returning the return code or the boolean to send_message () , but I have not got anything, any suggestions as a way to track the problem will be greatly appreciated! "print message" is not displayed because s.send_message () is a blocked call. In other words, "Message sent" will not print unless sent_message () func does not end. Try to time out while making the SMTP object (I'm assuming usi...

html - How to make generated code from creative commons licence pass validation -

Image
I am trying to pass on my site with a few different assumptions I have written that all the HTML is passing, But emit errors for generated code. I found, but the whole page needs to set things up. Is there a way to say that a special device uses XML or some of those methods? For some references, here is the public code: & lt; A rel = "license" href = "http://creativecommons.org/licenses/by-sa/4.0/" & gt; & Lt; Img alt = "Creative Commons License" style = "border width: 0; float: left;" Src = "https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /> & Lt; / A & gt; & Lt; Span xmlns: dct = "http://purl.org/dc/terms/" href = "http://purl.org/dc/dcmitype/InteractiveResource" property = "dct: title" rel = "dct: type" & Gt; Post Notes & lt; / Span & gt; By & lt; Span xmlns: cc = "http://creativecommons.org/ns#" property = "cc: attribu...

c# - Linq query syntax difference using SingleorDefault -

This question can not be very relevant, it is more of curiosity than anything else option 1 var avariable = session.Query & lt; Someclass & gt; () .SingleOrDefault (x = & gt) Is there any real advantage that in case of option 1 speed is on option 2? ; X.something == someotherThing); Option 2 var avariable = session.Query & lt; Someclass & gt; (). Where (x => x.something == someotherThing) SingleOrDefault (); Thanks in advance Option 1 to type fast (They should make the same SQL, so the result in the same display, option 1 is only more compressed)

objective c - iOS app view choice -

I want to develop an iOS app that takes all the articles in my WordPress blog and keeps them out properly. The title of the article, a picture and some content, for the first screen I want to make something like a customized UITT footage, but I'm not sure it's the right way to implement it. Here's something I want to do without the search bar. But in each article, this image will be placed in such a way and under the image, its title (content preview is not required) should be. If I use a UITableView, then I will have an "isolation" between all the images which are not quite right. Do you know how can I achieve something like this? Should I make my graphical object program or is it possible with storyboard / interface builder tools? You should use customized UITableViewCell here resources: You can create a custom class with XIB that is inherited from UITWebUvs. We will just add the category to the menu class class .m file in the following way....

c# 4.0 - How to create two pair of page header and details in crystal report -

I am new to crystal reports and I know its basic information. I just create a report with a page header section and an extension section. My concern is now to create a pair of page headers and expansions. When I add a new extension section it is going to be the nested details section. I want an output like this: - Page header 1 - Datat 1-PEGE header 2 - Databable 2 please help Thanks in advance Use the sub report. Take 2 sub reports in a main report ... In a sub report, a pair and another pair in the second sub report

php - cakePHP security: can others view/tamper variables i set for my views? -

I have a CakePHP application with User Authentication via 'Eth' component. On the role of the user to customize based ideas, I added rows in my code below: Public function before filter () {.... $ this - & gt; Set ('Login', $ this-> Auth-> User ('ID')); $ This- & gt; Set ('role', $ this-> Auth-> users ('role')); ....} Then inside my .cp view files, I will check the user role (Admin, User, Moderator, ...) and then if using View / Ales Change will fit with the user role. I want to know that the end users of the application can tamper with '$ roll' so that they can change the application unmatched or all aspects of the application will be handled on the server side and on such view. Is optimization safe enough? A short answer: No should not be possible. But it really depends on how your application has been protected. By default, KPHHP is a very solid and secure framework, in the last 5 years there are ...

ios - Flow with storyboards -

I have used mostly different and I need some input on how to make proper use of segues in a particular case is. I have a login controller after logging in to one of two conditions: A tab bar presented to the user in order to exaggerate the controller A set-up controller is presented for new users. All this works my problem is that the set up of new users After using "finished" on the controller, I Tab'd like to present time controller (for existing users). What is the most correct way to do this: Just set up the tab bar in the controller in the bar bar How to set some "undo" modal Up controller, and then present the tab bar controller politely (if it is also possible). Any information on this?

c++ - Extending allocation of another new expression -

N3797 की धारा 5.3.4 / 10 ने कहा: एक कार्यान्वयन को रद्द करने की अनुमति है एक बदली वैश्विक आवंटन समारोह (18.6.1.1, 18.6.1.2) के लिए एक कॉल जब ऐसा होता है, तो भंडारण इसके बजाय कार्यान्वयन द्वारा प्रदान किया जाता है या किसी अन्य नई अभिव्यक्ति के आवंटन को बढ़ाकर प्रदान किया जाता है। विस्तार के द्वारा क्या मतलब है? अर्थात्, हमारे पास नई अभिव्यक्ति e1 द्वारा आबंटित भंडारण की मात्रा है (मान लें कि यह 4 बाइट्स है)। आज्ञा देना एक आवंटन समारोह को नए-अभिव्यक्ति e2 में कॉल करने के लिए छोड़ देता है और भंडारण e1 के आवंटन को बढ़ाकर प्रदान करता है। यह ई 1 द्वारा प्रदान किए गए भंडारण को कैसे प्रभावित करता है? o1 और ऑब्जेक्ट o2 द्वारा बनाई गई e2 intersects वस्तु द्वारा प्रदान किए गए पते को प्रदान किए गए पते क्या

php - how to add register form code in existing upload image -

यह मेरा कोड है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; title & gt; डेटाबेस को छवियों को अपलोड करें & lt; / title & gt; & Lt; link rel = "स्टाइलशीट" प्रकार = "टेक्स्ट / सीएसएस" href = "css / style.css" & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; h1 & gt; रजिस्टर फॉर्म & lt; / h1 & gt; & Lt; form class = "form" action = "backup.php" method = "POST" एन्क्टीप = "मल्टीपार्ट / फॉर्म-डेटा" & gt; फ़ोटो अपलोड करें: & lt; इनपुट प्रकार = "फ़ाइल" नाम = "चित्र" & gt; & lt; br / & gt; प्रथम नाम: & lt; इनपुट प्रकार = "टेक्स्ट" नाम = "fname" & gt; & lt; br / & gt; अंतिम नाम: & lt; input type = "text" name = "lname" & gt; & lt; br / & gt; पासवर्ड: & lt; इनपुट प्रकार = "टेक्स्ट" नाम = "पासवर्ड" & gt; & lt;...

c - set_cursor_position(...); doesn't scroll the console -

I created a function that takes the cursor to the Y axis when set_cursor_position (axisX, axisY) in the down arrow console; But this will not go down from the unselected portion of the console currently. I have to scroll down manually for this and it crashes the whole function oddly. Function: int scanArrow (integer range, int x, int y, char fgr, char bgr) {int place = 0, axisX = X, axisY = y; Unsigned four f; If (range> gt; 0) {printColor (axisX, axisY, "*", fgr, bgr); Set_cursor_position (axisX, axisY); Do {ch = meet (); If (f == 0 || f == 0xE0) {ch = getch (); Switch (f) {case KEY_UP: if (place> 0) {printf ("\ b"); AxisY--; PrintColor (Axix, XX, "*", FGR, BGR); Set_cursor_position (axisX, axisY); place--; } break; Case KEY_DOWN: If (location + 1 & lt; boundary) {printf ("\ b"); AxisY ++; Printcollar (axisax, ++ axis, "*", FGR, BRGR); Set_cursor_position (axisX, axisY); Place ++; } ...

rx java - Is there any difference between Observable and Future.get -

दो के बीच कोई फर्क? स्ट्रिंग r1 = नया Google कॉमांड ()। कतार ( )।प्राप्त(); और निरीक्षण योग्य & lt; स्ट्रिंग & gt; GResp = नया GoogleCommand ()। निरीक्षण (); स्ट्रिंग r1 = gResp.toBlockingObservable ()। एकल (); ट्विटर से प्रतिक्रिया मिली: पालन करें () उत्सुकता से निष्पादित और कैश करते हैं जबकि toObservable () सदस्यता लेने तक आलसी है और कैशिंग नहीं जोड़ता।

arrays - PHP get rid of all Aces after shuffled -

After altering 52 cards on the deck, what is the algorithm to get rid of all the aces? Where aces are not allowed in output results. & lt ;? Php function pc_array_shuffle ($ array) {$ i = count ($ array); While (- $ i) {$ j = mt_rand (0, $ i); If ($ i! = $ J) {// swap element $ tmp = $ array [$ j]; $ Array [$ j] = $ array [$ i]; $ Array [$ i] = $ tmp; }} Returned the $ array; } $ Suit = array ('club', 'diamond', 'heart', 'hook'); $ Card = array ('ace', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'jack', 'queen', 'king'); $ Deck = PC_array_shuffle (category (1, 52)); $ N = 1; While (($ draw = array_pop ($ deck)) = null) {echo $ n. ')'. $ Cards [$ draw / 4] 'of' $ Suit [$ draw $ 4] '& lt; Br / & gt; '; $ N ++; }? & Gt; Give it a try: $ suit = array ('club', 'diamond', 'heart', 'hook'); $ Card = array ('ace', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'jac...

javascript - D3 Force Layout / 2 magnets? -

I have a central circle (C1) and on the left is a bunch of nodes, marked with 'L' And the bunch of them on the right, marked with 'R' I am trying to implement the following behavior in an unsuccessful way (this code for start (); ): I force 'L' marked circles to be forced / forced by a magnet / left and 'R' marked circle on the right. Can some please help / advise or modify my given example with a better idea, of course if there is a better way of doing this, your suggestion is welcome.

php multi language session -

I am trying for several hours but I can not understand it. I am trying to create a multi language site, and I have a form of changing language. Every time I change language, I need to reload the page twice to see results. Site structure is similar: 1: General. Php checks that the user is logged in, and store the language in a session variable if ($ count = = 1) {while receiving ($ line = $ result-> gt; (PDO :: FETCH_ASSOC)) {$ _SESSION ['language'] = $ line ['language']; }} 2: Includes every page header.fp which will run the Set Language function setLanguage ($ _ session ['language']) In general it is. Php function set language ($ LAN) {if ($ lan == "english") {included ("languages ​​/ napp"); } Otherwise ($ lane == "tra_chinese") {included ("languages ​​/ tra_chinese.php"); } Other (Include ("Languages ​​/ NAPP"); 3}: change.php is a page that includes a form to change language. if (! ($...

Android alert dialog shortlist text too small -

Image
"itemprop =" text "> My problem is that the spinner where I can choose between 5 Linie 1 from Linie is very small. Both the text and the columns of spinner are very few and I have not yet found any way to fix it. But usually the spinner's column outside of a warning dialog (the first "Linie 1" in the image below) is as large as the selection column Java code: AlertDialog.builder builder = new AlertDialog Builder (this); Builder.setView (promptsView); Builder. Settital ("Lynie Auswahlen:"); Builder.Scent Negative Button ("abbrenn", blank); Builder.setPositiveButton ("OK", New Dialog.OnClickListener () {@Override Public Zero onClick (DialogInterface dialog, integer which) {}}); // Alert Dialog Ultimate Alert DLOG Warning Dialog = Builder. Create (); // show it alert dialogue.show (); AlertDialog.setCanceledOnTouchOutside (wrong); The layout of promptsView? & lt; XML version = "1.0" encoding = ...

javascript - Get contents of external file and define as variable -

Is it possible to define a varible as the contents of the external text file? Example: function getfile () {var textfromfile = (content http://example.com/plain.txt); } Plain.txt is a line and does not have long particlaly. Because I'm using it for Chrome Extensions, I do not have permission to use PHP - is it an easy way in Javascript? You Using JQuery can call Ajax and assign variable response, $ .ajax ({url: "plain.txt", cache: incorrect}) .Done (function (html) {useIt (html);}); // useful for using variables after using callback function (variable) {warning (variable); }

javascript - Properties of object returned by service not available -

I have a web page where a user can register for the account. I have given a simple directive that checks that the username has already been taken, and if so, then it should invalidate the form field. My command calls a PHP webservice that checks the database and status of a JSON object that username My command just looks like this: link: function (scope, elm, etters, c) {alm.bind ('blur', function) {var Results = accountService.uniqueUser (elm.val ()); Console.log (results); Console.log ('A:' + result.usernameIsTaken);}}}; As you can see I do two console.logs . The first one gives it: resources {$ promise: object, $ solution: wrong, $ get: function, $ save: function, $ query: function ...} $ promise: Object $ solution: True username: Ticken: wrong __proto__: resource So as you can see that the "property" contains userNameIsTaken but when the second console.log triggers when it is triggered: A: undefined Why can not I use U Proper...

asp.net - Breeze and the EdmBuilder for OData v4 -

मैं एक ओरडाटा (v3) सेवा को वेबएपीआईडाटा और एंटिटीफ़्रेमवर्क के साथ सर्वर साइड पर बना और क्लाइंट साइड पर ब्रीज़ को धन्यवाद करने में सक्षम था । अब मैं ओडीटा के संस्करण 4 के साथ ऐसा ही करना चाहूंगा। लेकिन एक दिक्कत है। ब्रीज़ द्वारा प्रदान किए गए EdmBuilder वर्ग 'Microsoft.Data.Edm' पर निर्भर करता है जो संस्करण 3 से संबंधित है। इन EdmBuilder इन 2 में लाइन बिल्डिंग से परियोजना को रोकती है: Microsoft.Data.Edm.Csdl का उपयोग कर; Microsoft.Data.Edm.Validation का उपयोग कर; यह सामान्य है, क्योंकि मेरा प्रोजेक्ट 'माइक्रोसॉफ्ट। डेटा। एडम' (v4 के लिए) के बजाय 'माइक्रोसॉफ्ट .डेटा। एडम' (v3 के लिए) के संदर्भ में है। इसलिए मैंने 2 का प्रयोग करके स्टेटमेंट्स को बदल दिया, इसके द्वारा: Microsoft.OData.Edm का उपयोग कर; Microsoft.OData.Edm.Csdl का उपयोग कर; Microsoft.OData.Edm.Validation का उपयोग कर; अब परियोजना का निर्माण हो सकता है, लेकिन रनटाइम पर यह अपवाद छेड़ता है "एडीएमएक्स दस्तावेज़ पार्स करते समय निम्नलिखित त्रुटियों का सामना किया: अप्रत्य...

Extend rails new generator for a new application -

I would like to use custom versions instead of default 'Gemfile' and some standard assets (SCS, JS) Rail New Myappname Is this a great way to get? Use the Rail app and specify a template using the -M option. Railway new myapp -m https://raw.github.com/RailApps/rails - composer / master / composer.rb This generates you Will take through a series of questions and prepare a project with the starter pack! One such question: question template engine? 1) ERB 2) HAMIL 3) Slim You can select slim insights, you want to use slim for all new ideas that are generated for the project.

How to fix this html to be able to assign to php variable? -

I have this 30 line long HTML code. I do not want to change all this from "to", I used to call fax A php square has been created and saved the .inc file in it. I have to assign this HTML code to $ home-> content, can I copy and paste it anyway? The page is displayed in this way: Public function displays ({echo " "; \ n & lt; top & gt; \ N "; $ this -> DisplayTitle (); $ this - & gt; DisplayKeywords (); echo" gtk; body & gt; \ n "; echo" & lt ; Div class = \ "container \" & gt; \ n "; $ this -> DisplayHeader (); Sampling $ this -> content; $ this -> DisplayFooter (); echo" & lt; / Div> \ n & lt; / body & gt; \ n & lt; / html & gt; \ n ";} Thank you in advance If you have HTML code all "in it then you at the beginning and end of the resonance statement You can use a single bid and you do not have to change anything. Public function displ...

templates - PrimeFaces Cannot find component with expression -

I used the template in XHTML page. I want to update the form when I click on the command button. But I'm getting an error with "expression not found" error here is my code. & lt ;! DOCTYPE html public "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" xmlns: ui = "http://java.sun.com/jsf/" "xmlns: h =" http: // Java Sun.com / Jsf / html "xmlns: p =" http://primefaces.org/ui "xmlns: f =" http://java.sun.com/jsf/core "& gt; & Lt; Body style = "background-color: azure" & gt; & Lt; H: Output StyleSet Library = "CSS" name = "FormAustral CSS" /> & Lt; H: Output Stylesheet Library = "CSS" name = "Renx CSS" /> & Lt; Ui: composition template = "/ template / main title. Xhtml" & gt; & Lt; U...

Format Text output in JavaFX -

Image
I want to print several lines in front of the user using this code: Data () () (Dataobies .getOne ()) ++ database.getscand () + + "++ databases. GETH + +" (Datobebase) - & gt; {TilePaneGetBal () "+ Databases .getLs () +" "+ DatabasesGetLast ());}); But as you can see, the end result Not very formatted output: Is there a way to format columns? There are several options: The simplest is to use a monospace font where the width of each symbol, including the space Is similar, the most popular courier is new: text.setFont (font.font ("courier new", 14)); As you are providing data in a table format, you can choose to use TableView instead of text > Finally, if you are actually like this font and do not want to use TableView , you can split your line in 4 lines Text in Examples Adjust each text so that the same lines are related to the other lines. E.g. text t1 = new text (database.eten ()); T1.setMinWidth...

php - Show a specific MySQL row based on dropdown selection -

I have created a form that includes a dropdown field & lt; Select Name = "Location Selection" Id = "Location Selection" tabindex = "7" & gt; & Lt; Option value = "location1" & gt; Location 1 & lt; / Options & gt; & Lt; Option value = "position 2" & gt; Location 2 & lt; / Options & gt; & Lt; Option value = "position 3" & gt; Location 3 & lt; / Options & gt; & Lt; Option value = "position 4" & gt; Location 4 & lt; / Options & gt; & Lt; / Select & gt; On submissions I want to draw the selected location from the dropdown and want to print a specific line from my MySQL database which will show them the address. So if they select the location 1, then it will be shown: Company name 1234 ABC Street New York, NY 12345 But if they are in place 2 If you select: Other Company 5678 XYZ Street San Francisco, CA 12345 And so on for...

SQL Server conditional join with differing results columns -

I have a new app for which I am trying to find out the data. And for my recreational vehicle ads, I think: Ads - Includes AdID more general items like value R.V. Travel trailer - Includes travel trailer information If an ad is in my "secondary" "If the tables are found in one of the ( traveltrailer or then one or the other condition is tied to AdID ). ) I have seen online questions like the following: e Choose the name of the employee, organize (S.Store, O.Office) Leave the exit of the employee's place on the outer store S ... Left Outdoor Offices at o ... The problem is a travel trailer and RV The tables will contain some special items that are not present in the other RV Using the code> approach, I can retrieve the motor column (if it is RV) and sometimes I can not (if it is a Trail Trailer) I can not understand how to do this. I can pass in a type ( RV or TravelTrailer ) and can run one of two separate ques...

jquery - highcharts drill down set data -

I am trying to change the drill data in the Hyperch Drilldown component. I can change the first screen data like this: chart10.series [0] .setdata ([9]); but I can not change the data in the second screen - drill down data (1,2,3) is there any suggestions? Thanks a lot ! Peacock!

Read specific lines from HTML in R -

आर HTMLInternalDocument "निम्नलिखित कोड के परिणामस्वरूप वस्तु: url & lt; -myURL html & lt; -htmlTreeParse (url, useInternalNodes = T) अब मुझे मिलना चाहिए उदाहरण के लिए प्रत्येक पंक्ति में वर्णों की संख्या की गणना करने के लिए पाठ स्वरूप में इस html ऑब्जेक्ट से एक विशिष्ट पंक्ति। मैं आर में ऐसा कैसे कर सकता हूं? यह देखते हुए कि आप XML पुस्तकालय का उपयोग कर रहे हैं, आपको पुस्तकालय के getNodeSet फ़ंक्शंस जैसे xpathApply । इसको xPaths पर कुछ ज्ञान की आवश्यकता है, जो फ़ंक्शन HTMLInternalDocument को पार्स करने के लिए उपयोग करता है आप ? XpathApply का उपयोग करके अधिक जान सकते हैं

javascript - how to slide element using bootstrap 3 grid system -

I am trying to apply the sliding menu I'm using the Bootstrap 3 Grid system. How can I move elements aside from one side of the bootstrap's grid system? Without the grid system, I will just fulfill the status of my element and then the left property will be shown as shown, but I think that this solution will be wrong, any help? HTML: & lt; Button id = "click" & gt; Click me & lt; / Button & gt; & Lt; Div & gt; Hello Plunker! & Lt; / Div & gt; CSS: div {width: 200px; Height: 100 pixels; Background color: green; Status: Completed; Left: 0; Correct: auto; Infection: all 0.5 linear; } Div.left {left: 0; } Div.left {left: 200px; } JS: var el = document.getElementById ('clickMe') el.addEventListener ('click', function (e) {Var element = document.query Selector ('div'); if (element.classList.contains ('left') {element.classList.remove ('left'); element.classList.add ('right...

javascript - How to pass client values from browser side to node.js controller -

I am creating a simple node app and using dust on the client side. I am trying to get latitude, LNG from users' location and call the API using the node JS Express framework. So I get latitude, LNG in the customer side from the Geolocation API. I now want to pass the latitude, LNG to the controller so that I can check the API to show user content. Sorry, if it's really original I'm new to both nodes and dust. What have I tried so far? 1. I tried to submit the form using jquery 2. Setting some domain values ​​etc. $ (document) .ready (function () {var option = {enableHighAccuracy: true, Timeout: 5000, maximum advance: function success (pause) {var crd = pos.coords; document.query selector ("[name = 'latitude']"). Value = crd.latitude; document.query "[Name = 'longitude']"). Value = crd.longitude; console.log ('latitude:' + crd.latitude); console.log ('longitude:' + crd.longitude);}; function error ( Error) {console.w...

Moving text field position on keyboard show in Lua for Android -

I am using SDK "Corona" to develop an Android application in Leah. I was thinking that all of you can experience me in the following problems which I have experienced. I am in the process of designing an app with a text field at the bottom of the screen, but I would like to change the position of touching the text field once, so that the keyboard does not overlap when it pops up. In this way, I created a listener to execute the code, which changes the Y position of 2 field, either one is touched, but for some strange reason, code is not working Has been doing. If I put the code in a button event listener, then it works fine. Please see my code: ---------------- Email text box ------------- Local TextField = Native.newTextField (display.contentCenterX, display.contentCenterY + 60, 200, 40) textField.placeholder = "email" textField.isEditable = True --Function events to handle events in the local function touchListener (event) textField.y = display. Content...

Dynamically add radiobuttons in submenu in C# WPF -

I would like to implement a dynamic menu in my application, which is written in C # and using WPF . MenuSubSerialPortSelect.Items.Clear (); Fresh (string element in GlobalWars. ActualSialial ports) {menu item = new menu item (); Item.Header = element; MenuSubSerialPortSelect.Items.Add (item); } Adding a sub menu is functional, but how can I add some radio buttons to this style? I have read some websites that describe that another "template" can be used there, but I can not find a matching solution for me. attribute item.IsCheckable = true; I do not have a solution - try it & lt; Window x: class = "stackworflow.main window" xmlns = "http://schemas.microsoft.com/winfx/ 2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "xmlns: local =" clr-namespace: stack overflow "title =" main window "height =" 350 "width =" 525 "& gt; & Lt; Window.Resour...

r - Dependence between conditionalPanels shiny -

I am trying to select a value inside a list in the app below, in the panel, I can see when I select a list, but the output of the double selection does not work ui.R Library (luminous) sampList & lt; - List (1: 3, 1: 4), 1: 6) Xaienuai (Select the methods to compare the diagram (HeadPanel), SidebarPaneel (Velpainel (Selection Input ("Method 1", "Method 1", C (Method 1 = "method 1", method 2 = "method 2", method 3 = "method 3")), conditional panel (condition = "input method 1 == 'method 1'", selection input ("member" 1 "," member ", insert [[1]], conditional panel (condition =" input method 1 == 'method2' ", select input (" member1 "," member ", samplist [2] ]), Conditional panel (condition = "input. Method 1 == 'method 3'", select input ("Member1", "Member", Written [[3]])), MainPanel (Text Input ('Tabl...

hadoop - Decompressing LZ4 compressed data in Spark -

I have LJ 4 compressed data in HDFS and I'm trying to decompress it in Rdd in Apache Spark. As far as I can tell, the only way to read data from HDFS is to textFile , which reads data only in HDFS. I have come to the articles on CompressionCodec but explains to all how HDFS has to output the output, while I already need to uncompressed on HDFS. I am new to SPARC so I apologize in advance if I became clear or if it is wrong to understand my concept but it would be good that somebody told me in the right direction. reading SPARK 1.1.0 through LZ4 compressed files sc.textFile . I have to work using SPARC, which is built with a hoodopop which supports LJ4 (2.4.1 in my case) After that, I have used the original libraries for my platform Have been created and told that they have been linked to them to spark through the - driver-library-path option without link native lz4 Library was not loaded Exceptions. Depending on the Hadoop distribution, the steps you are ...

browser - Python's webbrowser opens data URI in IE -

I am trying to open a data ury in the default browser and instead opens it in IE I have this line : webbrowser.open_new_tab (url) that opens the URL correctly such as http://google.com For example firefox . But when I use data like data URI: image / jpeg; Bse64, / 9j / 4AAQSkZJRgABAQAAAQABAAD // G7QlJFQVRPUjogZ2QtanBlZyB2MS4wIChlc2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gNzAK / 9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4 + Piureldapeg3PT47 / 9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 / 8AAEQgAAQABAwEiAAIRAQMRAf / Eab8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC // Aalukaibwmkbmfbkrkeaabfkeswaikusitfbbrnriksikrkigzgkknkskevutvjadnikoijchyksgbkgsyrnkkrkkndu2Nzg5OkNERUZHSElKUlRVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7Sltre4ubrCw8TFxsfIycrS09TVltfY2drh4uPk5ebn6Onq8fLz9PX29 / J5 + V / Eab8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC // Aelluraibagkeavkhbkrkeaekdwabganrbuhmkikvhykseti...

How to better track Indices in java (vs. Python) -

In Python you can store different types of different items in a list, however to reach them, The index should be done through a list or method. With Python dictionaries, you can map the key for items so that you can always remember which index does not contain that item. Python Dictionary is very easy to write: even easier acces: Similarly, I tried to do this in Java The same thing though I have found it more complicated: // This program assumes that the build of class and method // hashmap & lt; String, Boolean & gt; Mydic = new Hashmap & lt; String, Boolean & gt; (); Mydic.put ("item1", incorrect); Mydic.put ("item2", incorrect); Mydic.put ("item3", incorrect); And especially difficult to use: boolean localvar = mydic.get ("item1"); If (localvar) {mydic.remove ("item1"); Mydic.put ("item1", incorrect); } Else {localvar = null; } Now I am not trying to compare languages ​​and if I di...

Laravel Authentication with "Remember me" strange behavior -

OK, I have a random login page, with the Remember check box. The problem is this happens if I: - check, - uncheck, - even AUTH :: attempt (array (' E-mail '= & gt; $ usr,' password '= & gt; I miss every time! And the odd thing is this: former> if (via Arth ::: rayemne ()) {resonant "remembered!";} And {resonant "do not miss".; // Every time he says that he is not remembering me, but it works in a different way. If I make a difference then I am a local host. Edit When I check "I remember", then a cookie laravel_session Called remember_xxxxxxxxxxxx ... , but the script echos do not remember as I said, and I remember whether this cookie is set or not. And it forgets me, if I manually delete laravel_session .

c - Memory leak when freeing linked list -

I am learning, and I am using time for memory management in C. I have written this program after learning about related links: #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; Structure node {int x; Structure node * next; }; Zero free_node (Structure node * n) {struct node * p, * Next; For (p = n, p! = Null; p = next) {next = p-> next; Free (P); }} Int main (int argc, char const * argv []) {int i; Structure node * n, * p, * root = malloc (sizeof (structure node)); Root- & gt; X = 0; N = root; For (i = 1; i & lt; = 5; ++ i) {struct node * Next = Molec (formation (structure node)); Next-> x = i; N- & gt; Next = next; N = n- & gt; next; } N-> Next = null; // Price for print (p = root; p! = Null; p = p-> next) {printf ("% i \ n", p-> x); } Free_Node (N); Return 0; } I have read that most of the tutorials have done a bad job while explaining memory management in C, if it is to be mentioned at all. I would point th...

objective c - Hiding The TopBar -

I have tried different ways to hide the top navigation bar, but do not hide I have tried in viewDidAppear [self.navigationController setToolbarHidden: yes]; For UINavigationControllerDelegate confirm with this code, (zero) navigationController: (UINavigationController *) navigationController willShowViewController: ( UIViewController *) Animated ViewController: (BOOL) animated {BOOL shouldhide = [count count count] [= count = count = 0]; [Navigation Controller Settlerbar: Animated Hearing: Animated]; } Is pre>> code> UINavigationController * NAV_instructions = [[UINavigationController alloc] initWithRootViewController: instructions]; [Nav instructions set toolbarhead: yes]; [Nav instructions setmodeltransistor style: eumodal transcription styleparticial]; Do I have to hide the top bar? Try this: self.navigationController.navigationBarHidden = yes ;

Saving attributes fields in devise User model in Rails 4 -

I just follow the guide to add column 'first name' and 'second name' to command in the user's user model I am / P> Rail Migration add_firstname_to_user generates the first name: String Rail Migration add_secondname_to_user generates another name: string and I tell the changes with: / P> rake db: migrate This has worked fine, because I can see those fields in the console with User.all, but the problem is now I do not see the attr_accessible field in App / Modal / UserRbb. So I've just added lines: & Lt; / Div & gt; In the app / view / devise / registrations in new.html.erb, but this is not working, because I have found that my name is the first name and second name on the registered user What are the features I What can I do? I think there is something about attr_accessible step, but I could not find it. Any help would be appreciated. I can be confused with your post, but I believe (as you have been linked to The docu...

R Cut Function and Indicator Variable -

I am learning R and reading a book which is the code below, which is the indicator variable for 0 or 1 I don't understand the first part of the code, but the c (-1,0.5,10000000), labels = FALSE) -1 how to read and how to make it 0 or 1 value It does not understand. In fact if Don $ Tgiving is more than 0 then it returns 1 otherwise it is a new value in the dollar $ TGIIIndand. don $ TGIIN = cut (don $ T living, C (-1), 0.5,10000000), labels = FALSE -1, How do you actually read this code? What is a more intuitive way to achieve similar results? Thank you.

ruby - No route matches {:controller=>"stocks", :action=>"create"} RSpec Rails 3 -

I do not understand why I get this error message when I run RSPC: Failure / Error: Post: Action Controller :: Create a routing error: no root matches {: controller = & gt; "Stock",: Action => "Build"} Controller stock is present, action type is present, and the path that should be used is: match / stock / : User_id '= & gt; 'Make stock #' ,:: Through & gt; : Post, as: = & gt; : Query Root file: Freeshunter :: App.Rounds.Remove Draw: to = & gt; 'Stock # index' # user_id match 'stock / user_id' = & gt; Add 'Make Stock #' ,:: Through & gt; : Post, as: = & gt; : Query match 'stock /: user_id' = & gt; 'Stock #desk',: = through & gt; : Delete, as: = & gt; : Reset match 'stock /: user_id / update' = & gt; "Stock # update_index" ,: by = & gt; : Post Stock Controller: (Yes, it will be dry) Class Stock Controller & lt; Appli...