Renaming an obscure file Java
Vote count: -1 Ok, so I have a folder with about 2000 pictures, all with weird names, I would like to loop through the whole thing, and rename them to "something" + the number(i in the for loop). Is there anyway to rename a file when you only know the place in the directory and not the name. I guess...
Sketch 3 Glass effect
Vote count: 0 I am a begi er in using Sketch and I am trying to make a glass vase.How do I give it that glass reflection effect? I tried using multiple fill layers but couldn't get anything that looks realistic. Any help/suggestions would be appreciated. asked 50 secs agotechGirl Let's block ads! (W...
problems with form and innerHTML on javascript
Vote count: 0 Yesterday i was making a code that shows in a text content what you write in the form input. I wrote this: <p id="demo"> Show code </p> <form> <input type="text" id="clo" /> <button onclick="myFunctio ()">Try it</button> <script type="text/javascript"> //<![CDATA[ function myFunctio ()...
c# evaluate code inline (or using reflection)
Vote count: 0 I've simplified this a lot to get to the core of the issue: I have a control that needs properties populated. Unfortunately the values are all sitting in CodeDom.CodeStatements. So I literally have to fish for the values by using code like this : static string GenerateCode(CodeStatemen...
Javascript/CSS: Change button to a text field on click?
Vote count: 0 I have a button that I need to change into a text field (Ideally expand into it using an animation) when clicked. Right now I have my button and text field beside each other on the page: echo '<form id= "changePassForm" action="" method="post" enctype="multipart/form-data">'; echo '<di...
Where Should I Start to make my own Swift Library? [on hold]
Vote count: 0 Iv been developing Swift for 1 Year now and I feel like I have fairly good knowledge of the language. Now I am wondering where do people start when creating a large open source project like AlamoFire or a small custom button/animation library for others to use? Iv tried looking for som...
Is Replacing Quotes Enough to Prevent SQL Injection?
Vote count: 0 I'm reviewing some old code written by other devs and I stumbled upon the following code on login page: ... var sql = String.Format("SELECT * FROM Users WHERE Use ame = '{0}'", txtUse ame.Text.Replace("'", "''")); var command = new SqlCommand(co ection, sql); ... At first I thought it ...
How to make boostrap grid systems masonry style?
Vote count: 0 I'm looking to use bootstrap in this way: <div class="col-md-4"> Content.. </div> <div class="col-md-4"> Content.. </div> <div class="col-md-4"> Content.. </div> <div class="col-md-4"> Content.. </div> //And so on.. These div's are being added dynamically. I don't know if there's an ex...
Retrieve text from a file in ps script
Vote count: 0 I have a text file containing some data as follows: test|wdthe$muce check|muce6um#% How can I check for a particular string like "test" and retrieve the text after the "|" symbol to a variable in powershell script? asked 3 mins agoCooluser Let's block ads! (Why?)
Why jQuery find().length returns undefined?
Vote count: -1 $(document).ready(function ($) { var err = $('.velkoobchod-category').find('.error').length; // this retu s valid number alert(err); if(err>0) { $('.velkoobchod-category .product-container > div').each(function() { var prod_count = $(this).find('.product-wrapper').lenght; alert(prod_c...
filter using ajax in mvc
Vote count: 0 I have a HTML code <div> <h2>Books</h2> <div class="pull-right"> <div class="dropdown"> <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> Filter By: </button> <ul class="dropdown-menu"> <li><a href="#">All Books</a></li> <li><a href="#">Computer Scie...
ranking data using vba
Vote count: 0 i come to ask your help i need to rank data using vba i have a block of results in column D and i want to rank them in column E without skiping any value so i tried this vba code but it gives me only zeros in all the column then my computer becom slow untill i close the excel file this...
Debugging data structure errors in BigQuery
Vote count: 1 BigQuery often ends bq load with ambiguous Waiting on <jobid> ... (68s) Current status: DONE BigQuery error in load operation: Error processing job '<jobid>': Too many errors encountered. Limit is: {1}. When I do bq --format=prettyjson show -j <jobid> to find out what's wrong, I get: "...
Canvas section between two areas with clip
Vote count: 0 So I have pretty a oying problem which I find hard to understand and fix. I want to have section between two areas in HTML5 canvas - one is a rectangle the other one is complex figure made with lines (pictures below): The red figure is the complex area and the below light blue is recta...
Refresh Listview simpleCursorAdapter always null
Vote count: 0 I have a program with fills a listview from a SQLLiteDB. The initialload works, but when I edit a entry the program crashes and the simplecursorAdapter = null. The Fragment: public class TaskListFragment extends ListFragment { DBHelper dbHelper; SimpleCursorAdapter simpleCursorAdapter;...
ParseInt of toLocaleTimeString() in Internet Explorer
Vote count: 0 I have problem with parse string after toLocaleTimeString() var b = new Date(); var c = b.toLocaleTimeString(); var d = c.split(":"); var e = parseInt(d[0]); After this: Inte et Explorer: e is NaN, d is "15" Chrome: e is 15, d is "15" asked 1 min agoEmerceen Let's block ads! (Why?)
TestUtils.Simulate.change doesn't update value of input
Vote count: 0 I make a very easy component to test the TestUtils.Simulate reactJS method. But I don't know why this method doesn't update the value of my component. I guess I wrote my code on the wrong way. This is my little component : 'use strict'; var React = require('react'); var MyComponent = R...
Master and sub projects in asp.net 4.0 2010
Vote count: 0 I have ERP solution with multi modules. I want to break the it into sub projects that is shares base class, enums, scripts, styles, master page and so on. Im looking for an example that explain how to break the projects and how publish them into IIS and how to share resources(script, s...