Vote count: 2 i waa implement this html effect like this: from this website image show from top to bottom with scrolling, pretty cool. but my implement is : http://codepen.io/devbian/pen/dXOvGj * { padding: 0; margin: 0; } body{ min-height:2000px; } .container { overflow: hidden; padding: 10px; position: relative; min-height: 300px; } .container img{ width:100%; height:300px; } /* .container0 { background-color: #e67e22; } .container1 { background-color: #ecf0f1; } .container2 { background-color: #f39c12; } .container3 { background-color: #1abc9c; } */ .fixed { position:fixed; } .moveable { position:absolute; } $(function() { function setLogo() { $('.moveable').each(function() { $(this).css(...
ادامه مطلبVote count: 0 I am trying to use inheritance for sake of re-usability and I have a base class named 'Partner' and two sub classes 'Lawyer' and 'Accountant' as below: abstract class Partner{ } class Lawyer extends Partner{ } class Accountant extends Partner{ } It's all good with the code, but I was wondering more when it comes to database, how do I store these information in db, should I have one table partners for both entities, or I should have separate tables for each entity, based on fact that these two differs from each other based on their attributes. If I keep it in separated tables, and I have another table 'cases' which is related to partner: cases: case_id, subject, description,part...
ادامه مطلبVote count: 0 On my local windows 8 setup I have Ruby on Rails env already set up. I'd like to install Java as well without removing RoR and be able to use either from the terminal depending on what project I'm working on. How do switch from one language environment to another and back again when I'm done working on any specific thing? asked 38 secs agoSiouxsie Asylum Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a web form #form1 and many elements are dynamically created, therefor I can't just use searialize. I want to store the form input in localstorage so that when the user submits the form, they can hit the back button, and I can recreate the form 100% where they left off. This is an inteal company tool, nothing super secure required for a public facing site. I want to store the HTML contents from the form including the form itself, that way all dynamic content can be restored. I've tried $('#form1')[0].outerHTML $('#form1').content() and many other options in jQuery, but that doesn't give me any filled form values. I basically want the evaluated HTML of the form id form1 10...
ادامه مطلبVote count: -1 How with JavaScript to load content from other website into iframe on localhost by keeping dom-structure to get to it with getElementsByTagName? When loaded content in iframe is not to see by getElementsByTagName("*"), how to get to dom-elements of this content? asked 1 min agouser1939029 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am currently leaing Javascript and I am at the most basic level someone could be. I wrote a simple script for generating a referral link for envato market. Its a very simple function which gets the profile url and useame and a onclick is used to combine these variables and put the ?ref= in there. JS function refferalGen() { var userName = document.getElementById("useame").value; var profUrl = document.getElementById("profurl").value; var result = (profUrl) + "?ref=" + (userName); document.getElementById("resulttxt").value = result; } I want it to be so that I dont have to use the button to get the result Instead it is real-time. When i type in the useame textfield it automati...
ادامه مطلبVote count: 0 Where is the documentation for functions, symbols under Core.Std ? Or, is there any conventional way to look up ocaml documentation rather than guessing in utop REPL ? Thanks asked 53 secs agoCodeFarmer Let's block ads! بخوانید...
ادامه مطلبVote count: 0 So I'm using an ArrayMap for the first time. Seemed like a good option to link multiple sets of K & V's together. Now, I'd like to iterate through all the keys in the ArrayMap, to find all that contain a specific bit of text (ArrayMap gets filled with user input, that's why it can't be hardcoded). I've been looking online how to do this, but I haven't really found anything specific to Arraymaps. I found a suggestion for Maps: for (Map.Entry entry : map.entrySet()) { // do stuff } Unfortunately, that doesn't work (nor does ArrayMap.Entry). This gives me a waing telling me it found an Entry (duh), but requires an Object. So, the questions that arise:- Am I using the right method ...
ادامه مطلبVote count: 0 I am using bootstrap for my web client. I would like to add a dropdown with an arrow on the top right coer as shown below: The above picture is from Facebook. How do I implement something similar using Bootstrap and javascript? asked 2 mins agossk Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have asp.net page . I have 2 stored procedure to search city and to search country. I use 2 SqlDataSource. the SqlDataSource1 for search city and the SqlDataSource2 for search country.my problem is that I want use dropdownlist1 for select type of search.when selected index is 0 the SqlDataSource1 be run. and when selected index is 1 the SqlDataSource2 be run.my code on click button event: GridView1.DataSourceID = "SqlDataSource1"; GridView1.DataBind(); asked 1 min agoreza Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to get all the names containing the dot symbol . from a table but it seems to be a wildcard and I am not being able to escape it correctly. I am executing this query in the phpMyAdmin sql editor but it does not filter. SELECT * FROM players WHERE name LIKE '%.%' How can I escape the dot? Is it possible using only SQL? Thank you! asked 1 min agojcarrera Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a large minified css file and a small non-minified file. I'll be changing the non-minified file regularly, but I want them combined. However re-minifying a large minified file takes WAY too long. What I want is something like this ... var cssnano = require('gulp-cssnano'); var cssjoin = require('gulp-cssjoin'); gulp.task('cssjoin', function() { gulp.src( 'changing.css' ) .pipe(cssnano()) .pipe(rename( 'changed.min.css' )) .pipe(gulp.dest( '.' )); gulp.src( ['big.min.css','changed.min.css'] ) .pipe(cssjoin()) .pipe(gulp.dest( 'final.min.css' )) }); Basically, first minify the small file, then join it to the end of the large one. The code above doesn't work of course, task...
ادامه مطلبVote count: 0 I have tick data containing symbols, bid prices, and ask prices. I was able to find the average spread and standard deviation of each symbol. I'd like to create a confidence interval for each symbol and have the final DataFrame output have the columns ticker symbol average spread lower bound 95% confidence upper bound 95% confidence How can I do that? This is how far I've been able to get: df = pd.read_csv('C:\Users\William\Desktop\tickdata.csv', dtype={'ticker': str, 'bidPrice': np.float64, 'askPrice': np.float64, 'afterHours': str}, usecols=['ticker', 'bidPrice', 'askPrice', 'afterHours'], nrows=3000000 ) df = df[df.afterHours == "False"] df = df[df.bidPrice != 0] df = df[df....
ادامه مطلبVote count: 0 The project I have been testing and debugging has been presenting some challenges. Stepping through the code in debug mode, I came across some calls to services. This is something new to me. After some investigation, I found that these classes are in the WCF world. The exception that was thrown gave me a clue to what I am missing: {"There was no endpoint listening at http://localhost:52674/Services/InboundVendorServices.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See IerException, if present, for more details."} Clearly I needed to have localhost ruing locally. I set up the localhost to run locally but I had the same error wh...
ادامه مطلبVote count: 0 I am developing a website with oure PHP and HTML on an Apache server. No CMS. All of my website's pages from the main directory and its subdirectories call one header.php file. I have now run into an issue with all of the page 's, as these are obviously defined in the header, so now I don't know how to set a different title for each page. Can anyone help? asked 1 min agoTristan Let's block ads! بخوانید...
ادامه مطلبVote count: 0 i got countdown script for one months so how i can do when countdown till zero then it should be automatically change to new countdown date for next months? without for me to manually change it every months myself. its javascript jQuery(document).ready( function($){ var newDate = new Date(2016, 4, 21); newDate.setHours(newDate.getHours() + 18); $('#countdown-ex1').countdown({until: newDate}); }); and Html asked 5 mins agoJames Thompson Let's block ads! بخوانید...
ادامه مطلبVote count: 0 So building off my last question, I'm receiving the error message: LINK : fatal error LNK1194: caot delay-load 'libxml2.dll' due to import of data symbol '__imp__xmlFree'; link without /DELAYLOAD:libxml2.dll Which is, to my understanding, happening because libxml2 defines and undefines xmlFree: globals.h XMLPUBVAR xmlFreeFunc xmlFree; #undef xmlFree ... xmlFreeFunc xmlFree; #ifdef LIBXML_THREAD_ENABLED XMLPUBFUN xmlFreeFunc * XMLCALL __xmlFree(void); #define xmlFree (*(__xmlFree())) #else XMLPUBVAR xmlFreeFunc xmlFree; #endif How do I fix my code so that I can delay-load libxml2 while still deallocating memory (if I comment out just the xmlFree line, my code works fine)? asked ...
ادامه مطلبVote count: 0 I'm trying to get the LastLogon from a user in the active directory but I have this code lblUseameDisplay.Text = "LastLogon : " + (DateTime.FromFileTime((long)rs.GetDirectoryEntry().Properties["lastLogon"][0])).ToString(); And I got an error, I also tried without long cast, without ToString() and with .Value.ToString() instead of [0] asked 2 mins agoHoracio Garza Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I know there are a couple of ways to truncate text. I tried the CSS way: .truncate { width: 225px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } But this cuts off the words halfway. Example: Original text: This is a very long text.Result: "This is a very ve..."What I want: "This is a very..." I also found a couple scripts that helps to truncate based on number of characters. (This is the one i'm currently using.) However because my site is a responsive website, I figured the CSS method was better as I can set different widths according to screen size, but as mentioned it cuts off the words. Are there any solution for this? I'm open for css or jquery solution...
ادامه مطلبVote count: 0 I am using these Devicon font icons for various programming languages. They don't have every icon, but they have most. What I want to do is to have a default icon I use for the languages that this font library does not support. These are their instructions: So in my view, I have this: Where question.language is a user-submitted language on their question. Right now, when this generates a non-existent icon it just leaves a blank space there. But I am not quite sure how to check to see if the icon exists, before replacing it with a default. Thoughts? asked 5 mins agomarcamillion Let's block ads! بخوانید...
ادامه مطلب