Does anybody knwo what this error means? How can I avoid it. Im using non-jailbroken iPhone 3.1.3 and have made an app using Titanium. Any help is welcome.
I want to add a Custom rule for avoiding the '==' operator inside a method in a class.
For example in the below method i need to avoid 'str1==str2' with string.Compare(str1, str2,StringComparison.Ordinal);.So I need to check this types of code are appear in any of the method
public void StringTest2()
{
string str1 = "Hello";
string str2 = "HELLO";
if (str1 == str2)
{
}
}
Hey,
I am building a email service based on templates. I thought of using the spark view engine but it seems that It doesn't get much updates anymore.
Support on .NET4.0 is not even yet complete and it fails at runtime when used in a console app.
The little Intellisense support that was there in VS2008 doesn't seem to work on VS2010 (from the information I have found)
Should I avoid it?
What do you think?
We are using a PropertyPlaceholderConfigurer to use java properties in our Spring configuration (details here)
eg:
<foo name="port">
<value>${my.server.port}</value>
</foo>
We would like to add an additional property, but have a distributed system where existing instances could all use a default value. Is there a way to avoid updating all of our properties files, by indicating a default value in the Spring config for when there isn't an overriding property value defined?
I'm trying to establish a serial connection to a peripheral from my PC's RS-232 port. Pretty simple stuff, and I've had not trouble doing it with countless peripherals before. And yet when I configure PuTTY to the right baud rate, stop bits, etc. I'll type in "*IDN?", press enter, and the unit won't reply. After going over my settings over and over again, I decided to try another terminal program, Termite. This time it worked like a charm. What puzzles me, and what I'm trying to figure out by posting this question, is why Termite would work when PuTTY did not despite the fact that they both have the same settings.
PuTTY:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Termite:
http://www.compuphase.com/software_termite.htm
EDIT: I now tried Tera Term as well, and it works. So PuTTY is the odd one out.
I have a client that uses a SonicWALL NSA 2400 as their firewall. I need to setup a second LAN subnet for a handful of PC. Management has decided that there should be a second subnet even though intend to allow access across the two subnets - I know...
I'm having trouble getting communication across the 2 subnets. I can ping each gateway, but I cannot ping or seem to route traffic fron subnet A to subnet B.
Here is my current setup:
X0 Interface: LAN zone with IP addres 192.168.1.1
X1 Interface: WAN zone with WAN IP address
X2 Interface: LAN zone with IP address 192.168.75.1
I have configured ARP and routes for the secondar subnet (X2) according to this SonicWALL KB article: http://www.sonicwall.com/downloads/supporting_multiple_firewalled_subnets_on_sonicos_enhanced.pdf using "Example 1".
At this point I don't minding if I have to throw the SonicWALL GVC software VPN client into the mix to make it work. It feel like I have an Access Rule issue, but for testing I made LAN LAN, WAN LAN and VPN LAN rules wide open with the same results.
Suppose I have the following structure:
app/
__init__.py
foo/
a.py
b.py
c.py
__init__.py
a.py, b.py and c.py share some common imports (logging, os, re, etc). Is it possible to import these three or four common modules from the __init__.py file so I don't have to import them in every one of the files?
Edit: My goal is to avoid having to import 5-6 modules in each file and it's not related to performance reasons.
I'm having trouble wading through Microsoft's marketing information. Does anyone know if Windows 7 x86 to Windows 7 x64 is a valid upgrade path? I know you can't actually use the built-in "upgrade" installation path; this is more of a licensing question.
Although that may have answered my own question: is this idea even possible? Or do "upgrade" versions of Windows function only when executed from inside the OS, and not when doing fresh installs?
Thanks!
I'm looking into setting up a few small VMs. The trouble is the software I intend to install on them (Cisco VPN Client) blocks out networking (other than to the target VPN destination...) with no workaround.
This means that Remote Desktop or other methods of connecting to VMs that go via the Internet (e.g. GoToMyPC, LogMeIn) are a non-starter. What I'm really looking for is an EC2-like platform but which gives direct access to the VM through (for example) Hyper-V Manager. Sadly the only way they all seem to offer to remote control the VMs is direct access via Remote Desktop, whereas I need to be one layer above that (if that makes sense).
A viable alternative would be to run virtualisation software within a Windows EC2 instance; obviously hardware virtualisation is impossible but I wonder if there are any software virtualisation platforms that could be run and that would work.
Does anyone know if something like this exists/is possible?
Thanks!
C
I accidentally formatted my Drive D that contained all my Backups and Documents. I separated my files to my Drive D hoping I will not harm my files.
Since I use Acronis Recovery to Install a new OS with some pre-installed application to my HDD I didn't realize I also formated/erase my Drive D. Now my drive D is unpartitioned. I am really in really in deep trouble and would need some urgent help, Please recommend a Software that at least can restore my Old Drive that contained my files. I'm assuming most of you think this is a duplicate of some old questions here, But I'm not looking for data recovery, I need to recover the whole partition with the files.
I used to use "Recuva" but It only recovers files not the whole folders with the files in it.
Please advice.
Thank You!
I want to have one party (or more) sends a stream of data via HTTP request(s). Other parties will be able to receive the same stream of data in almost real-time.
The data stream should be accessible across sessions (according to access control list).
How can I do this in Django? If possible I would like to avoid database access and use in memory buffer (along with some synchronization mechanism)
I'm not interested in a flame war of Ubuntu vs Fedora vs whatever. What I am interested in is whether or not I should move my current Ubuntu server to Fedora. I have been able to get Subversion setup and hosted via Apache over https and it works quite well (I'm a .NET guy so this was all new to me). I'm having trouble though with installing Bugszilla - have run into some issues getting all the perl scripts to run successfully so my questions are:
1) Will Bugszilla will install easier on Fedora? Can I just install a package instead of having to download the tar.gz file and untar it, run perl scripts, etc.
2) Is Fedora considered to be a better production server system? I have no desire for a GUI, just need it to host Subversion, Bugzilla over Apache2, and act as a file and print server for my home network.
I want to parse a text message and store in into an object of type System.Net.Mime.Attachment. The problem comes when I want to serialize this object.
Error: Type "System.Net.Mime.ContentType" is not marked as serializable.
How can I avoid this?
Thanks.
I'm using the .startsWith() filter in a JDOQL query but it's case sensitive.
So startsWith("ab") doesn't return "Abc" result and so on.
Will I need to use a SQL query to avoid this ?
Using PHP/PDO is it possible to use a wildcard for the columns when a select is done on multiple tables and the returned array keys are fully qualified to avoid column name clash?
example:
SELECT * from table1, table2;
gives:
Array keys are 'table1.id', 'table2.id', 'table1.name' etc.
I tried "SELECT table1.*,table2.* ..." but the returned array keys were not fully qualified so columns with the same name clashed and were overwritten.
I'm having trouble finding PECL on a Mac OS X 10.6 machine. I'm using the default install of Apache and PHP for development and have installed MongoDB, however I can't work with Mongo/PHP without the mongo PECL extension.
Is there a copy of PECL on a Mac or will I have to install it? If so, where is it? If not, do you know of a good tutorial for getting it up-and-running?
I've tried the obvious stuff: sudo find / -name "pecl" -print returns nothing
Thanks very much
Let's say I have two strings like this:
XABY
XBAY
A simple regex that matches both would go like this:
X(AB|BA)Y
However, I have a case where A and B are complicated strings, and I'm looking for a way to avoid having to specify each of them twice (on each side of the |). Is there a way to do this (that presumably is simpler than having to specify them twice)?
Thanks
Ever since Google implemented their new look at the beginning of May, I have been having trouble with their search engine changing all of the spaces in my query to plus signs. This behavior occurs when I use the search box in both Firefox and Internet Explorer.
For example, if I search for google search plus signs I am taken to the following URL, where google+search+plus+signs is in the search box.
http://www.google.com/search?q=google+search+plus+signs&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
However if I perform the search from google.com, I get taken to a different URL with google search plus signs as I'd expect:
http://www.google.com/#hl=en&source=hp&q=google+search+plus+signs&aq=f&aqi=g1&aql=&oq=&gs_rfai=&fp=d2a3ca21987adb1
Do I need to update my browsers or something?
I'm hashing a large number of files, and to avoid hash collisions, I'm also storing a file's original size - that way, even if there's a hash collision, it's extrememly unlikely that the file sizes will also be identical. Is this sound (a hash collision is equally likely to be of any size), or do I need another piece of information (if a collision is more likely to also be the same length as the original).
Or, more generally: Is every file just as likely to produce a particular hash, regardless of original file size?
I'm having a trouble here because of my PC infected today and I tried everything to get it back and the only option left for me now is to do a clean install.
Now what happen is I have Macbook Pro with 8GB USB which I emptied the USB stick now.
I've download Windows 7 from my college website [With license not pirate] and wanted to make a bootable USB so I can format my PC to get it run again.
Now I know that disk utilities can be done with DVD/CD but what I can make a bootable USB to run it on my PC?
Hi,
In one of our databases, there is a table with dozens of columns, one of which is a geometry column.
I want to SELECT rows from the table, with the geometry transformed to another SRID. I want to use something like:
`SELECT *`
in order to avoid:
SELECT col_a, col_b, col_c, col_d, col_e, col_f,
col_g, col_h, transform(the_geom, NEW_SRID), ..., col_z
Any ideas?
Adam
It seems likely that this is an obvious question, but I'm having trouble tracking down any useful information. Normally when accessing files in a particular directory on a server, I'm able to create a virtual host, assign a domain, root directory location, etc -- however am in a situation where I have server space and need to access files with only a hostname. Is this possible?
For example, let's say the hostname is 123hostname.com, and the file I want access to is in /home/sub-directory/filename.php. How do I get at it via a browser?
I've tried:
http://123hostname.com/home/sub-directory/filename.php
...and some other variations on that theme (that I can't post because new users are restricted to one link in messages). But generally stuck. Any help -- even if it's just to let me know that this isn't possible without some additional configuration -- would be great. Thank you!
I have a byte array of some binary data that i need to send over the network using WCF and NetTcpBinding. My problem is that i need to send only the part of the array. Is there any way to do this, other than copying that part to a separate array, and sending that one. This extra copying degrades performance, and i would like to avoid it, if possible.
For example:
$ ifconfig dummy0 up
$ ifconfig dummy0 "192.168.1.190 netmask 255.255.255.0"
Calling ifconfig with no parameters shows the interface
dummy0 Link encap:Ethernet HWaddr b6:1f:f3:92:6d:20
inet addr:192.168.1.190 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::b41f:f3ff:fe92:6d20/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:1050 (1.0 KiB)
How can I bring the interface down so that it doesn't show up in
ifconfig
ifconfig -a
ifconfig dummy0
without
rmmod dummy
because dummy is used just for example purposes.
If there is no way to do that, what "throw-away" IP could I set to it and be safe from any trouble?
like
$ ifconfig dummy0 down
$ ifconfig dummy0 0.0.0.0