What are the main differences between Unity 2D project and unity 3D project! Does unity render faster 2D projects than 3D? Or does 2D prefabs/textures require less memory than 3D? Is there an option for creating 2D meshes in 2D projects? Thank you for your time!
I am confused with the grid system in the new Bootstrap, particularly these classes: col-lg-* col-md-* col-xs-* (where * represents some number). Can anyone please explain the following: How that number is aligning the grids? How to use these numbers? What they actually represent?
I am having some trouble with using the send mail functionality of pear with wamp. I went through with the steps in this link : (http://pear.php.net/manual/en/installation.checking.php) to check if my pear was installed correctly, and it seems like I have it right. <?php require_once 'System.php'; var_dump(class_exists('System', false)); ?> The code above returns bool(true). So I am assuming that my paths are set right. But for the code below I am getting an error. <?php include 'Mail.php'; include 'Mail/mime.php' ; $text = 'Text version of email'; $html = '<html><body>HTML version of email</b
I have a pull request that is requesting a merge into master from my branch, but the owner wants me to change the request to merge into a different branch from my branch. Is this possible? What are the possible solutions?
I am using wp_trim_words() to trim excerpts on my homepage. It works fine except that it strips HTML tags from the excerpts. I need to keep certain pieces of the excerpt bold (using <strong>). Following the instructions here, I tried replacing the wp_trim_words function with custom code where $text = wp_strip_all_tags( $text ); is changed to $text = strip_tags($text, '<strong>');. However, this breaks the site. What am I doing wrong? // Remove Reverie Trim Words function remove_trim_words() { remove_filter('get_the_excerpt', 'wp_trim_words'); add_filter('get_the_excerpt', 'oakwood_trim_words')
I'm fairly new to Selenium WebDriver. I wrote code to read the login credentials and values from the excel sheet by using Data Provider. It runs through the first set up data(login functionality) perfectly giving me the green status bar. In my application, after login, I want to select values by sending index and Selection(In Administration Method) from the same excel sheet but I failed to read values. For hard coded values its working fine. can anyone please give me the idea how to write it. Used Excel Sheet: Below is my code: import java.io.File; import jxl.Sheet; import jxl.Workbook; import
I'm using this environment: spring 4.0.5 spring security 3.2.4 In my environment I have a SSO system and I need to integrate my web applicationin this system. This system is a private product. The final result of the SSO mechanism is to put a parameter in the request header. So what I should do in my application is: check if a header parameter is present in the request if the header parameter is not present, I have to redirect to the login page of this system if the header parameter is present, I have to authenticate on the Spring security context This scenario is similar to the CAS integratio
I have a table in my database named posts where I’d like to create search engine functionality. Here are the basic fields for this: table: `Posts` `post_id` (pk) `title` `keywords` `visible` // this is the critical point I have created also this method in my post_model: public function search() { $this->db->select('post_id, title, etc etc ...'); // separate the words $words = preg_split('/[\s]+/', htmlentities((trim($this->input->post('search'))))); // set fields that you wish to search $search_fields = array('title', 'keywords'); // build the query foreach ($words as $word) { foreach ($search
I’d like some help please. I have a table iin my database named posts, where I’d like to create a search engine functionality. Here are the basic fields for this: table: Posts post_id (pk) title keywords visible // **** this is the critical point **** I have created also this method in my post_model: public function search() { $this->db->select('post_id, title, etc etc ...'); // separate the words $words = preg_split('/[\s]+/', htmlentities((trim($this->input->post('search')))) ) ; // set fields that you wish to search $search_fields = array('title', 'keywords'); // build the query foreach ($w
I want to know if it is possible to generate automatic touch at regular intervals of time, say 5 seconds in another application. For example..I want to develop an application which will create a touch response just as we touch the screen, at a particular coordinate at regular fixed interval. Please help.
Currently, I am developing two webapps : the core, developed in Java with Vert.x, receives data from a lot of other apps and sends it to client) the client, developed in PHP/JS, display data from the core. The client isn't on the same domain as my core for the production phase. Since my development period, the two webapps are hosted in the same computer. I used "ws:\\localhost:9090" to connect my client to my core and I had no problem to transfer data. But, today, I try to replace localhost with my IP Address and, it didn't work :s I think that it's because the client isn't in the same domain
Why is python trying to calculate the value of p during definition? It takes ages to define this function. def f(): raise Exception('Some error') p = 2322111239**42322222334923492304923 print 'Defined!' Also if the value of p is being calculated during definition, why is it possible to define this function without errors? def f(): return 4 p = 11/0 This one obviously works fine because constants are not involved: def f(): raise Exception('Some error') x=42322222334923492304923 p = 2322111239**x print 'Defined!'
How long does it take for a new Google Maps API key take to become active? I have just added a new key and a new package to an existing key, but neither seem to work. Is it an issue with the key getting activated?
I am using django-encrypted-fields to encrypt the data on my database. But I want to be able to filter them according to user's criteria e.g search a client with specific name (search term). But as I have read here and everywhere, you can't filter if you use EncryptedFields. So I was wondering is it ok to use standard for loops to iter on every db record and see if search term matches the fields of your model? eg clients = Client.objects.all() post_data = form.cleaned_data search_result = [] for client in clients: if (post_data['charfield1'].lower() in client.charfield1.lower() and post_data['
FIDDLE <<<< this has more up to date code than in the question. I am trying to create a real-time (live-updating) time-series chart in d3, that can also be panned (in X) and zoomed. Ideally the functionality that I want is if the the right-most part of the line is visible to the user, then when new data is added to the graph, it will pan sideways automatically to include the new data (without changing axis scales). My d3.json() requests should return JSON arrays that look like this : [{"timestamp":1399325270,"value":-0.0029460209892230222598710528},{"timestamp":1399325271,"value":-0.0029460209
Context: I want to compile and test all modules in a multi-module project but if any fail either compilation or tests I want the overall build to fail. Default configurations either stop on the first failure or skip modules after a test failure Running: mvn clean install stops at the first failing module. If you add: mvn clean install -fae //fail at end then all modules are run, but if tests fail then any dependent modules are skpped: [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] --------------------------------------------------
I'm trying to create a server (a computer with Bluetooth) that listen to Bluetooth messages. I'm using 32 feet library. But I'm getting a exception, and I cannot find what it is. The exception is: No supported Bluetooth protocol stack found. here is the code: using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using InTheHand; using InTheHand.Net.Bluetooth; using InTheHand.Net.Ports; using InTheHand.Net.Sockets; using System.IO; namespace Bluetoot_Tutorial { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private vo
Here is a simple example: <div class="container-fluid"> <div class="row"> <div class="col-lg-12">DUMMY CONTENT</div> </div> </div> Demo in Fiddle When I see the result in browser I get a horizontal scrollbar. Why is this happening?
I'm writing a simple recursive ls program in bash (which I'm very not experienced at, so feel free to be brutal). The program is supposed to print out each file (possibly directory) on a separate line, and each time a new directory is entered, the output is shifted over by 4 spaces, to give it a tree-like output. Currently, it doesn't print out files with spaces correctly, and it doesn't put a forward slash after directories. (More details below.) Code recls () { # store current working directory # issues: seems bad to have cwd defined up here and used down below in getAbsolutePath -- too much
About a month ago, I loaded the Android emulator "Andy" on my windows 8 laptop and it seemed to work fine (except it kept kicking me out of Clash of Clans after a couple minutes, but the emulator kept running). Yesterday, something happened. While in Clash of Clans, the background turned all black and just the small images were visible. This has happened before and I would kill Andy using the X in the upper right corner. I would then restart Andy and things worked OK again. However, yesterday when this happened, I killed Andy in the same way, but when I tried to restart Andy the frame would di
Obb files download in my projects stopped working recently for all my unpublished applications. The error string is in the topic. But it works for published applications (that may be the clue)! My device is Nexus 7 (2012), I upgraded it to 4.4.2 recently (that may be another clue). The error comes from class com.google.android.vending.expansion.downloader.impl public void applicationError(int errorCode) is called with errorCode 3. I wonder if anybody knows what it means. Any suggestions how to make obb files download work are appreciated!
I use Spring - Maven - Eclipse and I'm facing this ugly exception regarding the context initialization. It works fine when I place the configurations files under WEB-INF but I read that it's recommended to place them in the src/main/resources folder. At that moment, the exception is raised. I've spent a few hours trying to solve it on my own but i was unsuccessful. What's wrong with my configuration ? Thank you for your help. Stack traces Severe: Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext re
I am migrating away from XML config for Spring context configuration. Instead when I try to use the functionally equivalent @EnableTransactionManagement on a Spring 4.0.3.RELEASE Java Configuration, my Spring context fails to instantiate with the following exception: java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99) at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:101) at org.springframework.test.context.su
I need to document many CLI commands using Sphinx doc. I have searched everywhere for an extension that could be used to produce an output similar to how github documents CLI commands: https://developer.github.com/v3/#parameters Is there any extension that I missed that could help with that? If not, can anyone point the direction to building one? I need to be able to document for example like this: .. sourcecode:: cli $ curl -i "https://api.github.com/repos/vmg/redcarpet/issues?state=closed" and have that output.
script.php $filename = realpath(sprintf("%s/%s", getcwd(), $argv[1])); var_dump($filename); Let's try some things [/foo/bar/bof] $ php script.php ../foo.txt string(16) "/foo/bar/foo.txt" [/foo/bar/bof] $ php script.php ../nonexistent.txt bool(false) Dammit! realpath is returning false because the file doesn't exist. What I'd like to see for the ../nonexistent.txt is string(24) "/foo/bar/nonexistent.txt" How can I get the canonicalized path for any relative path in PHP? Note: I saw some questions regarding resolving symlink paths. Answers to these questions are not applicable to my question.
I have implemented this jQuery-based modal box: http://leanmodal.finelysliced.com.au/. It works perfect, and it is quite easy to use. However, it is not responsive - contrary to the rest of the website. Here is what I got so far: CSS-part #lean_overlay { position: fixed; z-index:100; top: 0px; left: 0px; height:100%; width:100%; background: #000; display: none; } div.modalbox { background: #FFFFFF; border-radius: 5px; box-shadow: 0 0 4px rgba(0, 0, 0, 0.7); padding : 10px; width: 400px; display : none; position : absolute; } .modalbox-header { background: url("../images/hd-bg.png") repeat scro
I have two question about oracle export and import. First of all,I want to export only user and their roles not tables,trigger and other object Later import user How i can do? Other question is while importing operation, can i get error?Because, which object importing early roles or user? Unless importing roles, user can't assign roles?
I know I can add some if blocks around to avoid this problem, but I am looking for a best practice or good/nice way to handle this kind of programming problem. I am looping through the result of a function, without storing the result first in a separate variable; something like this: for item in mycustimitemgetter.itter(): dosomething() The itter function is returning None instead of an empty list [], and Python throws an exception per None. This is correct python behavior and nothing's wrong with it. But I'm looking for a best practice solution to: a) keep the code clean and simple (not stori
I have to run a batch file without showing the command line but the Command line keeps on popping up. This is my code: @echo off :SAMPLE cd /d C: md %RANDOM% cd /d D: md %RANDOM% cd /d E: md %RANDOM% goto SAMPLE