text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
I understand that by simply adding a script to the end of the body tag of a html document one makes it processable by Google analytics. My question is, is this likely to have much effect on performance (download time and server load)? Let's assume a static page of say 100k served by IIS. Thanks.
[Will my website's appe... | [
0.5377568006515503,
0.032133519649505615,
0.3566408157348633,
0.13367819786071777,
-0.21553052961826324,
0.004015177488327026,
0.5650313496589661,
-0.24791327118873596,
-0.05122871324419975,
-0.653831422328949,
-0.053036198019981384,
0.382842093706131,
-0.09835469722747803,
-0.261904478073... | |
pages won't be impacted, with the
> possible exception of the very first
> page-load after you have added the
> tracking code. This first pageview
> calls the JavaScript on Google's
> servers, which may take slightly
> longer than a regular page load.
> **Subsequent pageviews will use cached data and will not be... | [
0.3413023352622986,
0.0012809495674446225,
0.7117822170257568,
0.14949066936969757,
-0.1924392282962799,
-0.4235207736492157,
0.3533015549182892,
0.04360029473900795,
-0.1970106065273285,
-0.9945308566093445,
-0.27003809809684753,
0.3693166673183441,
-0.26086267828941345,
-0.13876716792583... | |
I've got HTML code that roughly looks like this:
```
<li id="someid-11">
<img src="..." alt="alt" />
<h2><a href="somelink"> sometext </a>
<span><a class="editcontent" href="?action=editme">Edit</a></span>
</h2>
<div id="11" class="content">
<!-- // content goes here -->
<div class="bottom_of_entry"> </div>
</... | [
0.14382071793079376,
0.06205675005912781,
0.5875180959701538,
-0.25667309761047363,
0.185768723487854,
0.08495864272117615,
0.2548125088214874,
-0.2767571806907654,
0.05716758966445923,
-0.8662899732589722,
-0.0945555791258812,
0.3030512034893036,
-0.1992412507534027,
0.047146763652563095,... | |
Aloha
I received a nice wsdl with xs: documentation tags like:
```
<xs:complexType name="Supplier">
<xs:annotation>
<xs:documentation>
The supplier of the product
</xs:documentation>
</xs:annotation>
```
Is there any way to generate `///<summary>` tags from this? I'm using visual studio 2008
I rec... | [
0.1386738419532776,
0.204161137342453,
0.5753519535064697,
-0.2420354187488556,
-0.27041319012641907,
0.1873171031475067,
-0.12063844501972198,
-0.5697287917137146,
0.3482676148414612,
-0.1814868003129959,
0.07431505620479584,
0.4450594484806061,
-0.3630889356136322,
0.09230057150125504,
... | |
Does anyone know why there are question marks (with a number) after the images and css files (when looking at the html code)? And how can I turn them off?
From [Rails API documentation](http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html):
> By default, Rails will append all
> asset paths with t... | [
0.403123140335083,
-0.11982513219118118,
0.22453105449676514,
-0.040596507489681244,
0.1580219268798828,
-0.23687517642974854,
0.6090136170387268,
-0.15139001607894897,
-0.4822569191455841,
-0.4556310772895813,
0.0846036970615387,
0.3449946939945221,
-0.053501877933740616,
0.15150913596153... | |
in turn busts the cache).
Hope it helps. | [
0.1426975429058075,
0.27987101674079895,
0.30593833327293396,
0.2064788043498993,
0.5268659591674805,
0.12474418431520462,
0.8713423609733582,
0.053154632449150085,
0.052212342619895935,
-0.23026224970817566,
-0.14159388840198517,
0.30740949511528015,
-0.04440551996231079,
-0.1700441986322... | |
Does there exist any way in .Net to check before opening if a file (on a local network drive) is already in use?
You should try to access it and if it failed, you either don't have required permissions (which you can check with GetAccessControl) or it's locked by another process.
But I don't think there is any reliabl... | [
0.28872397541999817,
0.020335428416728973,
0.1857280433177948,
0.39285022020339966,
0.2922613024711609,
-0.5408681035041809,
0.3783063590526581,
0.1055203229188919,
-0.44224485754966736,
-0.4713446795940399,
-0.15654349327087402,
0.5770376324653625,
-0.025396667420864105,
0.247776746749877... | |
use WMI `CIM_DataFile` class to query `InUseCount` for a specified data file.
If you're looking for a programmatical equivalent to `lsof` utility in Linux, to find out all open files by a given **local** process, you could try using `Win32_Process` WMI class through `System.Management` namespace. You could issue a WMI... | [
0.3288247883319855,
-0.43683409690856934,
-0.12639844417572021,
0.2649900019168854,
0.1498001515865326,
-0.5240470767021179,
-0.30831849575042725,
-0.1449822634458542,
-0.3721083104610443,
-0.7174564003944397,
-0.22590112686157227,
0.5354170203208923,
-0.35932934284210205,
0.27743396162986... | |
I have a C++ header that contains #define statements, Enums and Structures. I have tried using the h2py.py script that is included with Python to no avail (except giving me the #defines converted). Any help would be greatly appreciated.
I don't know h2py, but you may want to look at 'ctypes' and 'ctypeslib'. ctypes is ... | [
0.5584800839424133,
0.0705609917640686,
0.3354625105857849,
0.09392852336168289,
-0.3202505111694336,
-0.10768689215183258,
-0.04196951165795326,
-0.09289677441120148,
0.029742920771241188,
-0.8874545097351074,
-0.04365929588675499,
0.6437550783157349,
-0.5814563632011414,
-0.1734987944364... | |
require another tool called gccxml: <http://www.gccxml.org/HTML/Index.html>
it's best to check out (via CVS) the latest version of gccxml and build it yourself (actually easier done than said). The pre-packaged version is old. | [
0.35242193937301636,
0.25182855129241943,
0.7944430708885193,
-0.080445297062397,
0.1451960653066635,
-0.6757590174674988,
-0.23384258151054382,
0.00893124844878912,
-0.1545354723930359,
-0.4629959166049957,
-0.0000748165330151096,
0.5281930565834045,
-0.040476057678461075,
0.2156887352466... | |
I have a field in my report that needs to have a length of 40. If the string is not of that length I need to append some space.
Thanks.
try something along the lines of
if length({yourfieldname here}) < 40
then
{yourfieldnamehere} + space(40 - length({yourfieldnamehere}))
else
{yourfieldnamehere} | [
0.003466182854026556,
-0.01241205632686615,
0.38002777099609375,
-0.06434411555528641,
0.19498664140701294,
0.11648014932870865,
-0.01617446355521679,
-0.08531103283166885,
-0.08233321458101273,
-0.6948873400688171,
0.2507859170436859,
0.7388575077056885,
-0.025997154414653778,
-0.00419730... | |
I am involved in writing a little internal SharePoint portal for our company. I thought it would be a 'quick win' to get create a web part that would display the user's unread mail count, and possibly a list of today's calendar tasks. However, I have had a hunt around for information to do with OWA web services stuff a... | [
0.6228080987930298,
0.22439901530742645,
0.23539124429225922,
0.21638143062591553,
-0.024697719141840935,
-0.037424128502607346,
0.3006126880645752,
0.14157871901988983,
-0.07876262813806534,
-0.22647710144519806,
0.4954528510570526,
0.35774531960487366,
0.16038860380649567,
-0.01912403665... | |
can use Exchange web services to query the inbox.
Here's the reference in MSDN. The FindFolder operation will return the unread count of a folder.
<http://msdn.microsoft.com/en-us/library/bb204119.aspx>
Visual Studio can generate the proxy classes for you to help you get started:
<http://msdn.microsoft.com/en-us/lib... | [
0.16568933427333832,
-0.0363624170422554,
0.09346901625394821,
0.23875747621059418,
-0.11565102636814117,
0.0940985158085823,
-0.09592440724372864,
0.08218823373317719,
-0.11374233663082123,
-0.6570828557014465,
0.09703368693590164,
0.12562671303749084,
-0.24196478724479675,
0.043016176670... | |
If I have a double (234.004223), etc., I would like to round this to x significant digits in C#.
So far I can only find ways to round to x decimal places, but this simply removes the precision if there are any 0s in the number.
For example, 0.086 to one decimal place becomes 0.1, but I would like it to stay at 0.08.
... | [
0.41689515113830566,
0.23978643119335175,
0.23374879360198975,
-0.010609022341668606,
-0.41215968132019043,
0.020641619339585304,
0.11677002906799316,
-0.18082384765148163,
-0.37457871437072754,
-0.27760079503059387,
0.21235406398773193,
0.06680314242839813,
-0.08330167084932327,
0.2310356... | |
is right after the decimal point, round (or truncate), then scale back. The following code should do the trick:
```
static double RoundToSignificantDigits(this double d, int digits){
if(d == 0)
return 0;
double scale = Math.Pow(10, Math.Floor(Math.Log10(Math.Abs(d))) + 1);
return scale * Math.Roun... | [
-0.34452101588249207,
-0.1937989443540573,
0.6792532205581665,
-0.31132668256759644,
-0.06656021624803543,
0.39027339220046997,
0.3105924129486084,
-0.3563116788864136,
-0.49467965960502625,
-0.38554608821868896,
-0.3456048369407654,
0.5764958262443542,
0.029562117531895638,
0.049173217266... | |
Math.Floor(Math.Log10(Math.Abs(d))) + 1 - digits);
return scale * Math.Truncate(d / scale);
}
``` | [
-0.13138267397880554,
0.16003622114658356,
0.5564306378364563,
0.01677687279880047,
-0.03127017617225647,
0.21821430325508118,
0.42990079522132874,
-0.19246262311935425,
-0.4614540934562683,
-0.8479640483856201,
-0.30199024081230164,
0.4289848506450653,
0.08313274383544922,
0.2506075203418... | |
How can I get the filename from a file path in Ruby?
For example if I have a path of `"C:\projects\blah.dll"` and I just want the "blah".
Is there a `LastIndexOf` method in Ruby?
```
require 'pathname'
Pathname.new('/opt/local/bin/ruby').basename
# => #<Pathname:ruby>
```
I haven't been a Windows user in a long ti... | [
0.3137143850326538,
0.22204524278640747,
0.36798352003097534,
-0.27722567319869995,
0.006629536394029856,
-0.35323816537857056,
0.47568368911743164,
-0.1676931083202362,
-0.20520837604999542,
-0.951149046421051,
-0.06897271424531937,
0.6029343008995056,
0.035635218024253845,
0.276990324258... | |
Is it safe to assume that event subscribers are called in order of subscription?
Example:
```
void One(object sender, EventArgs e) {}
void Two(object sender, EventArgs e) {}
event EventHandler foo;
foo += One;
foo += Two;
```
Is One() always called before Two() when the event is fired?
Edit:
You should ofc... | [
0.12902666628360748,
-0.4096101224422455,
0.1501958817243576,
0.03406420350074768,
-0.0768280029296875,
-0.2186739295721054,
-0.22923408448696136,
0.05333973839879036,
-0.6385226249694824,
-0.35843709111213684,
-0.25608840584754944,
0.759634256362915,
-0.47919800877571106,
0.14120323956012... | |
the event actually uses some weird and wonderful way of handling subscriptions, it could do different things - but "normal" implementations will do the right thing.
To be clear, subscribing to an event handler just means invoking the appropriate "add" part of an event. If the event handles this by doing something like... | [
0.281508207321167,
-0.36985644698143005,
0.15344610810279846,
-0.023269828408956528,
-0.016341043636202812,
-0.12258882820606232,
-0.006631555967032909,
-0.3365456163883209,
-0.25968921184539795,
-0.43833398818969727,
-0.35897254943847656,
0.458530068397522,
-0.45072123408317566,
0.0133972... | |
remove
{
// do stuff here too
}
}
```
and then fired the event by doing something like:
```
foreach (EventHandler handler in eventHandlers)
{
handler(this, EventArgs.Empty);
}
```
then the handlers would be called in the reverse order.
**Summary**: For all sane events, you can rely on the orde... | [
0.08162354677915573,
-0.18542642891407013,
-0.11347430944442749,
-0.08518525213003159,
-0.09737341850996017,
-0.17501546442508698,
0.25197330117225647,
-0.04473079741001129,
-0.2585943043231964,
-0.25304117798805237,
-0.33106350898742676,
0.4288243353366852,
-0.5124739408493042,
0.04320511... | |
In C++, I can't think of a case in which I would like to inherit private/protected from a
base class:
```
class Base;
class Derived1 : private Base;
class Derived2 : protected Base;
```
Is it really useful?
It is useful when you want to have access to some members of the base class, but without exposing them in you... | [
0.162369504570961,
-0.11596780270338058,
-0.018069805577397346,
-0.18481871485710144,
-0.29062581062316895,
-0.26683223247528076,
0.0161532461643219,
-0.49410441517829895,
-0.050613321363925934,
-0.1686394065618515,
-0.14777572453022003,
0.8245002031326294,
-0.33742520213127136,
0.02003823... | |
// Starts this Engine
};
class Car {
public:
Car() : e_(8) { } // Initializes this Car with 8 cylinders
void start() { e_.start(); } // Start this Car by starting its Engine
private:
Engine e_; // Car has-a Engine
};
```
To obtain the same semantic, you could also writ... | [
0.10425610095262527,
0.21895907819271088,
0.26240402460098267,
0.04540193825960159,
0.13043835759162903,
0.5018923878669739,
-0.10478296875953674,
-0.31842461228370667,
-0.09762538969516754,
-0.2819187045097351,
-0.04687879979610443,
0.6845752596855164,
-0.07592985033988953,
0.258035063743... | |
: private Engine { // Car has-a Engine
public:
Car() : Engine(8) { } // Initializes this Car with 8 cylinders
using Engine::start; // Start this Car by starting its Engine
};
```
However, this way of doing has several disadvantages:
* your intent is much less clear
* it can lead to abusiv... | [
0.11917532980442047,
0.2742825150489807,
0.16483530402183533,
-0.02077515423297882,
0.008080201223492622,
0.2703871428966522,
0.2506037652492523,
-0.5218799114227295,
0.11974889785051346,
-0.260038286447525,
-0.0002830084995366633,
0.8980850577354431,
-0.3502558767795563,
0.149034440517425... | |
something you don't want if your aim is a simple composition | [
0.24966342747211456,
0.08781760931015015,
-0.04406144842505455,
0.16089411079883575,
0.2847903370857239,
-0.13480134308338165,
0.2768629789352417,
0.12605690956115723,
-0.3097646236419678,
-0.611016035079956,
-0.3870053291320801,
0.2855919897556305,
-0.2831481099128723,
0.08294980227947235... | |
we are maintaing a database of image media in a large scale webapplication. The high resolution jpgs are big (> 15MB) and must not be made available for download in any way. Now we need to provide access to the details (crops) of the images to the clients (like a zoom-in function). The client should see a downskaled ve... | [
0.39534592628479004,
-0.03272847831249237,
0.4282110035419464,
0.2800571620464325,
0.05144594982266426,
-0.05773323401808739,
0.1947641223669052,
-0.09831347316503525,
-0.20526210963726044,
-0.6385409832000732,
-0.0616864450275898,
0.36372900009155273,
-0.023560138419270515,
0.026122694835... | |
long as the high resolution image file remains protected. The application is developed in c# and .net framework 3.5.
Any ideas? Thanks in advance!
First thing you will need to do is compress and watermark the images before uploading them to the server. Then present those to the user. This will take the least CPU resou... | [
0.5145930647850037,
0.07398822903633118,
0.5568476915359497,
0.09423105418682098,
-0.046491336077451706,
-0.1986510008573532,
0.01732494868338108,
0.10853523761034012,
-0.09110715985298157,
-0.8653976917266846,
-0.03600494936108589,
0.7184914946556091,
-0.04958304017782211,
-0.120391264557... | |
sample of the full hi-res version.
You probably want to avoid on-the-fly image manipulation unless you have a low number of clients and a very beefy server. | [
0.5666765570640564,
-0.12467444688081741,
-0.05926714837551117,
0.3038366436958313,
0.12858641147613525,
-0.13766071200370789,
-0.05621147155761719,
0.19122259318828583,
-0.25719568133354187,
-0.3218083083629608,
0.2967126965522766,
0.5622022747993469,
-0.23405930399894714,
-0.281840175390... | |
My ASP.NET always starts like this with the internal server:
<http://localhost:50793/Website/>
I use FckEditor which points to <http://localhost:50793/fckeditor>
How do I configure the server that it servers my folder "Website" as the root?
First thing you will need to do is compress and watermark the images before u... | [
0.1127425953745842,
-0.25614675879478455,
0.6671440005302429,
-0.031114334240555763,
-0.49954086542129517,
0.10096383094787598,
0.2524847984313965,
0.2593127489089966,
-0.5699027180671692,
-0.7892858386039734,
0.026261676102876663,
0.06922822445631027,
-0.08210501074790955,
0.1608767807483... | |
compressed and watermarked) along side a small sample of the full hi-res version.
You probably want to avoid on-the-fly image manipulation unless you have a low number of clients and a very beefy server. | [
0.26146286725997925,
-0.0048317378386855125,
0.2902158200740814,
0.47448262572288513,
0.25455883145332336,
0.14801542460918427,
-0.4262861907482147,
-0.06365467607975006,
-0.24974022805690765,
-0.42999890446662903,
0.1380212903022766,
0.5876678824424744,
-0.04539313539862633,
-0.2687746584... | |
I know that within a view I can render an action from the same controller using Html.RenderPartial. However, I need to render the output from an action under a different controller. What is the best way to do this? I would prefer to do this directly within the view, rather than doing it in the controller and saving the... | [
0.4209924638271332,
-0.12165709584951401,
0.6736335158348083,
-0.06953717023134232,
-0.07491829991340637,
0.23794592916965485,
0.0041833240538835526,
-0.042806241661310196,
-0.06185819208621979,
-0.8686280846595764,
0.03616376221179962,
0.5508294701576233,
-0.06720330566167831,
0.190193355... | |
order to user it in your view:
```
<add namespace="Microsoft.Web.Mvc"/>
``` | [
0.24402594566345215,
0.2525843381881714,
0.38097625970840454,
0.12940339744091034,
0.08883845061063766,
-0.11264314502477646,
0.1084923967719078,
0.06823968142271042,
-0.01709229312837124,
-0.5449565052986145,
-0.11224868893623352,
0.31596481800079346,
-0.06290513277053833,
0.1448665559291... | |
I'm a student about to start my exam project, where I will be responsible for the server implementation of an online game targeting the flash player.
I have a hard time to decide wether i should write my own lightweight server in Erlang or use the open source Red5.
My experience is that java-developers tend to overco... | [
0.0723162367939949,
0.36157548427581787,
0.17074890434741974,
0.1335122287273407,
-0.16703827679157257,
-0.35786986351013184,
0.028900250792503357,
-0.03433460369706154,
-0.18134170770645142,
-0.6831631660461426,
0.28486183285713196,
0.584743857383728,
-0.2015986144542694,
-0.1894524544477... | |
question is should i write my own Erlang flash server or use the existing Red5?
Edit: I think i need to decide what my goals are: to just set up an online game or learn how to implement a multiuser server from scratch.
I'd say use Red5 if you are ok with programming java - it might feel trivial to implement your own s... | [
0.34348562359809875,
0.12515002489089966,
-0.025619514286518097,
0.26937463879585266,
-0.30719950795173645,
-0.13330228626728058,
-0.05769791081547737,
-0.03436864912509918,
-0.2962222099304199,
-0.6190078854560852,
0.3931795656681061,
0.5589756369590759,
-0.16616244614124298,
-0.252052575... | |
own server by all means go for it!
Is also depends on the goal of your project - do you have to demonstrate you can get an online game going (go for Red5), or do you have to demonstrate you can program a distributed multiuser game server? (go for your own project progammed in Erlang)
BTW: I'm using <http://www.smartf... | [
0.3555282652378082,
-0.11484253406524658,
0.21503248810768127,
0.1890476942062378,
0.06268595159053802,
-0.3453064262866974,
-0.009773867204785347,
0.050065603107213974,
-0.5623255968093872,
-0.4921016991138458,
0.11436162889003754,
0.3921889066696167,
-0.22570812702178955,
-0.359961897134... | |
I'm getting some weird behaviour recompiling some applications in 2009 that used widestrings at various points.
In a Delphi 2009 App is Widestring identical to String?
No, they are not idenitical.
`WideString` is just a wrapper for the ActiveX/COM `BSTR` type. You need it when working with with strings in ActiveX/CO... | [
-0.4316640794277191,
-0.22401119768619537,
0.6217910051345825,
-0.1318623274564743,
-0.41779208183288574,
-0.19331875443458557,
0.0033103127498179674,
0.16453373432159424,
-0.3920567035675049,
-0.524953305721283,
-0.027027545496821404,
0.4698222279548645,
-0.4806698262691498,
0.12048632651... | |
just like `AnsiString` is.
You should use `(Unicode)String` wherever possible, and only use `WideString` for COM interop, or dealing with legacy libraries that use `WideString` for Unicode support. | [
-0.2911478877067566,
-0.17415037751197815,
0.10790568590164185,
-0.04128741845488548,
-0.04717962443828583,
-0.4940316677093506,
0.002851598896086216,
0.29399871826171875,
-0.2839999198913574,
-0.595834493637085,
-0.5012223124504089,
0.4457075595855713,
-0.2349162995815277,
-0.200926959514... | |
How to make this work in Opera? I found this piece of code for Opera, but it doesn't work for me:
```
function AddToFavorites(title, url) {
if (window.sidebar) { // Mozilla Firefox Bookmark
window.sidebar.addPanel(title, url,"");
return false;
}
else if( window.external ) { // IE Favorit... | [
0.3712622821331024,
0.10676053166389465,
0.6969603896141052,
-0.2354406714439392,
0.35425564646720886,
-0.14835788309574127,
0.2306075543165207,
-0.4857593774795532,
0.17136676609516144,
-0.6189129948616028,
-0.09774307906627655,
0.7154388427734375,
-0.5184366703033447,
0.20507752895355225... | |
{ // Opera Hotlist
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click(); | [
-0.07525762170553207,
-0.23922087252140045,
0.2040163278579712,
-0.3291773498058319,
0.4401841461658478,
0.2975485026836395,
0.3964000940322876,
-0.49893587827682495,
0.2467219978570938,
-0.309247761964798,
-0.8013539910316467,
0.5614084005355835,
-0.37963971495628357,
0.2878502607345581,
... | |
return false;
}
}
```
The Dragonfly error console is silent, no errors are occuring.
*If* you insist on it, then do it without dynamically generated redundant links:
```
<a href="http://real.url.example.com" title="Bookmark me, pleaeease!"
rel="sidebar"
onclick="return !addToFav(this.href,this.title)"... | [
0.24510352313518524,
-0.047317150980234146,
0.431735634803772,
-0.20233787596225739,
0.10057386010885239,
-0.34873661398887634,
0.5099310278892517,
0.15817125141620636,
-0.012744924984872341,
-0.6014958620071411,
-0.3327150046825409,
0.9036848545074463,
-0.28963491320610046,
0.063369072973... | |
I'm having trouble coming up with the proper syntax for allowing either a string or a NULL to be passed to the database. Here's my code:
```
string insertString = String.Format(
@"INSERT INTO upload_history (field1, field2, field3)
VALUES ('{0}', '{1}', '{2}')",
varField1, varField2, varField3);
```
I u... | [
0.268623948097229,
0.3541403114795685,
0.11649582535028458,
-0.26422595977783203,
0.08600997179746628,
0.09704054147005081,
0.20304569602012634,
-0.15454311668872833,
-0.01719418726861477,
-0.31098583340644836,
0.1918959766626358,
0.3460545539855957,
-0.3529437184333801,
0.1853629201650619... | |
conditionally add single quotes to my variables?
Don't concatenate the string (`string.Format`) - use parameters (`@p1` etc) - then you can pass `DBNull.Value` to mean null to SQL Server
```
SqlCommand cmd = new SqlCommand();
cmd.CommandText = @"INSERT INTO upload_history (field1, field2, field3)
VALUES (@p1, @p2,... | [
0.31612327694892883,
-0.10849034041166306,
0.26559093594551086,
-0.07351355999708176,
-0.14304803311824799,
0.06486418843269348,
0.40311312675476074,
-0.17616865038871765,
-0.017849167808890343,
-0.23237435519695282,
-0.02221541479229927,
0.4652422368526459,
-0.42892470955848694,
0.1463703... | |
In some screen capture software when you press a key it's possible for the client to select a portion of the screen. How can I implement that in my software written in framework 2.0 .Net?
Here is a image of what I would like to do : <http://img341.imageshack.us/img341/3782/portionpb9.png> you see, I can select a porti... | [
0.5932239294052124,
-0.24268852174282074,
0.46548202633857727,
0.11385215818881989,
-0.05980674922466278,
-0.0635945200920105,
-0.01100048329681158,
-0.255951851606369,
-0.430761456489563,
-0.7185643315315247,
0.34618496894836426,
0.4442480504512787,
-0.035419367253780365,
0.08572436869144... | |
want : <http://www.codeplex.com/cropper>
You might be able to take a piece of their code into you application. Here is a image from code plex :
[alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=cropper&DownloadId=8026](http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName... | [
0.6548050045967102,
-0.030092652887105942,
0.44420018792152405,
-0.00794818252325058,
0.22111725807189941,
0.3483584523200989,
-0.04973889887332916,
-0.430789977312088,
-0.4638979732990265,
-0.5149922966957092,
-0.19235382974147797,
0.43922364711761475,
-0.20148026943206787,
-0.06109505519... | |
Do you build all your login, account creation, password recovery, etc. into your Flex app, or do you keep all of that in web pages and only redirect to the .swf on successful login?
We do it all in Flex in a pretty complex app, there's no reason to divert to HTML. Since Flex talks (stateless) HTTP to the backend if you... | [
0.5051238536834717,
-0.07873651385307312,
0.06489718705415726,
0.24725323915481567,
-0.10268202424049377,
-0.3191647529602051,
0.25355422496795654,
0.0737401619553566,
-0.4748672544956207,
-0.7867196798324585,
-0.1508738100528717,
0.6033436059951782,
-0.15105508267879486,
-0.17313362658023... | |
I configured apache on 4 ports (with virtual hosts as some ports used HTTPS) and the aim is to redirect post requests to different servlets running in a TOMCAT instance on some other machine. The calls are made from a `httpclient` (java client) . When I run the client it throws the error 301 Error: Moved Permanently. N... | [
-0.11967983096837997,
0.10284566134214401,
0.40703269839286804,
-0.20254816114902496,
-0.37536728382110596,
0.08229833841323853,
0.8614073991775513,
-0.25971436500549316,
-0.09098660200834274,
-0.5249667167663574,
0.05679937079548836,
0.3060947358608246,
-0.47912687063217163,
0.22380509972... | |
get mod proxy working with mod rewrite and now I dont get the 302 error, but as it always happens to a newbie there is this another problem.
HTTP POST requests are not working. When I issue the post request, the proxy fails as it goes on to look for index.htm.
My httpd.conf snippet
```
<VirtualHost *:3331>
Serve... | [
-0.19436809420585632,
-0.07720072567462921,
0.5740239024162292,
-0.2633688151836395,
-0.04182057082653046,
-0.03316586837172508,
0.8610022664070129,
-0.4447738826274872,
-0.16087064146995544,
-0.8200061917304993,
0.0033678202889859676,
0.9559170007705688,
-0.22358787059783936,
-0.138897299... | |
if one intends to rewrite URL's in the virtual hosts then JK mount has to be reloaded for each virtual host.
My URL rewrites look like this
RewriteEngine on
RewriteCond %{SERVER\_PORT} 4342
RewriteRule ^/$ /Lang/Englangservices/Alapbhet\_service [L,PT]
Thanks everyone one for their inputs. | [
0.0029603401198983192,
0.25653624534606934,
0.6412327289581299,
0.03200547769665718,
-0.07575325667858124,
-0.031837597489356995,
0.5172738432884216,
0.043887294828891754,
0.03908512741327286,
-0.8752319812774658,
-0.0627644807100296,
0.46456649899482727,
0.04302988201379776,
0.20045377314... | |
In a Java project (SWT desktop app), I want to inform the user about events through animated notification box (actually, it's not required to be animated). Something like MSN or any other IM client.
There is [JToaster](http://jtoaster.sourceforge.net/) for Swing, but I wonder if there isn't any other implementation ba... | [
0.6179258823394775,
-0.3878229558467865,
0.5597095489501953,
0.04377737641334534,
-0.11823593825101852,
-0.08287672698497772,
0.012639774940907955,
0.30677899718284607,
-0.3006660044193268,
-0.565771758556366,
0.30574730038642883,
0.4156017601490021,
0.02960500493645668,
-0.184936702251434... | |
Here's what I did:
1. I've opened a C++ Builder 6 - project in C++ Builder 2009.
2. Auto-converted it to a C++ Builder 2009 project.
3. Told it (*C++ Builder 2009*) to build everything.
Here's what *it* did:
1. Successfully compiled everything.
2. Failed to complete ILINK32, exiting with
```
"Error: Unresolved ext... | [
0.34704601764678955,
0.027323275804519653,
0.35307472944259644,
-0.14676006138324738,
-0.23487095534801483,
-0.24776634573936462,
0.8361614346504211,
-0.1819484382867813,
-0.2780299782752991,
-0.2833292484283447,
-0.04783831164240837,
0.6085971593856812,
-0.1794530600309372,
0.152155563235... | |
I have several large csv files with thousands of columns that I need to import and then remove entire columns based contents of the column. Is there an easy way to handle this in Ruby?
I could transpose the data and then just delete rows but I was wondering if there was a more syntactically sugary way of doing it.
You... | [
0.38620737195014954,
0.17853975296020508,
0.21040605008602142,
-0.3115949034690857,
-0.24273209273815155,
0.1357877105474472,
0.1968103051185608,
-0.3117706775665283,
-0.18347516655921936,
-0.531095027923584,
0.0734717845916748,
0.4380832612514496,
-0.5366998910903931,
0.07899127900600433,... | |
I have the following code:
```
<script type="text/javascript">
function SubmitForm()
{
form1.submit();
}
function ShowResponse()
{
}
</script>
.
.
.
<div>
<a href="#" onclick="SubmitForm();">Click</a>
</div>
```
I want to capture the html response of... | [
0.31799522042274475,
0.004323526751250029,
0.5937126874923706,
-0.2044178992509842,
-0.2627091407775879,
-0.03516131266951561,
0.1494835615158081,
-0.7459895014762878,
0.2359766662120819,
-0.6397249698638916,
-0.10254700481891632,
0.4373316168785095,
-0.23996995389461517,
0.002862868364900... | |
do this easily with plain javascript. When you post a form, the form inputs are sent to the server and your page is refreshed - the data is handled on the server side. That is, the `submit()` function doesn't actually return anything, it just sends the form data to the server.
If you really wanted to get the response ... | [
0.36623334884643555,
-0.16877000033855438,
0.38837671279907227,
-0.006005906965583563,
-0.5181840658187866,
-0.2293950915336609,
-0.24621975421905518,
0.21492230892181396,
-0.20887728035449982,
-0.85396409034729,
0.009401747025549412,
0.43780606985092163,
0.07997364550828934,
-0.1865468919... | |
jQuery called [Form](http://malsup.com/jquery/form/) which will do exactly what it sounds like you want.
Here's how you'd use jQuery and that plugin:
```
$('#myForm')
.ajaxForm({
url : 'myscript.php', // or whatever
dataType : 'json',
success : function (response) {
alert("The ... | [
0.4473244547843933,
-0.2722031772136688,
0.6075083613395691,
0.02443329617381096,
-0.3373510241508484,
-0.11098769307136536,
0.1312555968761444,
0.03727444261312485,
0.00004435828304849565,
-0.5083732008934021,
-0.08288640528917313,
0.5702757835388184,
-0.1834435760974884,
-0.0830288678407... | |
The build.xml has a *test* and a *build* target. The *test* target obviously depends on the *build* target.
How can I run the test target only, **temporarily** skipping the compilation, without modifying the build.xml file ?
I'm asking because the compilation is too long, and kept up-to-date by a continuous integra... | [
0.7558717727661133,
0.18785421550273895,
0.08043859153985977,
0.0185548048466444,
-0.2932248115539551,
0.028712891042232513,
0.18105176091194153,
-0.15880779922008514,
0.006100810598582029,
-0.9321894645690918,
0.1939581334590912,
0.6216176748275757,
-0.17638413608074188,
-0.19067071378231... | |
has no dependency, and the public target has the "do-" target as a dependency.
For example:
```
<target name="compile" depends="init, do-compile" description="Compiles all of the source code" />
<target name="do-compile">
<javac destdir="${classes.dir}" debug="true" encoding="ISO-8859-1">
<src re... | [
0.19274643063545227,
-0.029658887535333633,
-0.01712331920862198,
-0.2635756731033325,
0.022231437265872955,
-0.08696121722459793,
0.018611358478665352,
-0.4123769700527191,
0.0014475813368335366,
-0.6994544267654419,
-0.3007298707962036,
0.598865807056427,
-0.4836300015449524,
0.122453071... | |
I could replicate the problem with various shells under FreeBSD, GNU/Linux, and Solaris. It had me head-scratching for more than an hour, so I decided to post the question here.
Due to the piping the `read` is executed in its own subshell.
```
echo foo | while read a; do echo $a; done
```
will do what you expect it ... | [
0.5196183323860168,
0.24821195006370544,
0.12055317312479019,
-0.3667680323123932,
-0.053590327501297,
-0.14729012548923492,
0.3512987494468689,
-0.28882989287376404,
-0.025073053315281868,
-0.3152403235435486,
-0.025981329381465912,
0.3709738552570343,
-0.45603981614112854,
-0.01666497997... | |
I am trying to add enhancements to a 4 year old VC++ 6.0 program. The debug build runs from the command line but not in the debugger: it crashes with an access violation inside printf(). If I skip the printf, then it crashes in malloc() (called from within fopen()) and I can't skip over that.
This means I cannot run i... | [
0.39583781361579895,
0.5433123111724854,
0.23780882358551025,
-0.34960371255874634,
0.10616647452116013,
-0.12745673954486847,
0.6970666646957397,
-0.031566228717565536,
-0.05987410247325897,
-0.652839720249176,
-0.11877155303955078,
0.7736296057701111,
-0.35890236496925354,
0.233437851071... | |
at this low level stuff!
Here is the call stack after the access violation:
```
_heap_alloc_dbg(unsigned int 24, int 2, const char * 0x0046b3d8 `string', int 225) line 394 + 8 bytes
_nh_malloc_dbg(unsigned int 24, int 0, int 2, const char * 0x0046b3d8 `string', int 225) line 242 + 21 bytes
_malloc_dbg(unsigned int 24... | [
-0.3092169463634491,
0.33710044622421265,
0.6141990423202515,
0.0823962539434433,
0.20551985502243042,
0.13414129614830017,
0.5058383941650391,
-0.2107824832201004,
0.13956162333488464,
-0.393690824508667,
-0.2594503164291382,
0.4185038208961487,
-0.23838911950588226,
0.21528849005699158,
... | |
104 + 15 bytes
open_new_log(const char * 0x00468000 `string') line 66 + 14 bytes
log_open(const char * 0x00468000 `string', int 0) line 106 + 9 bytes
Xlog_open(const char * 0x00468000 `string', int 0) line 51 + 13 bytes
service_start(unsigned long 1, char * * 0x009a0e50) line 3152 + 12 bytes
service_init2(char * 0x0047... | [
-0.3190215826034546,
0.05708908289670944,
0.7269765138626099,
-0.32304587960243225,
0.06419932842254639,
0.5656675100326538,
0.6463344693183899,
0.10882864892482758,
-0.3417210578918457,
-0.8391943573951721,
-0.5460153818130493,
0.08048369735479355,
-0.28890490531921387,
0.1115141734480857... | |
3131
mainCRTStartup() line 206 + 25 bytes
KERNEL32! 7c817067()
```
Here is the debug dissassembly up to the operation that fails:
```
0041EA7E jmp _heap_alloc_dbg+2B3h (0041eb23)
0041EA83 mov edx,dword ptr [_lTotalAlloc (004b4294)]
0041EA89 add edx,dword ptr [nSize]
0041EA8C mov ... | [
-0.9228155612945557,
0.007441910449415445,
0.5892301201820374,
-0.03797974810004234,
-0.014389533549547195,
0.5866574645042419,
0.8523090481758118,
-0.3658791780471802,
-0.2821613550186157,
-0.6869067549705505,
-0.3853479325771332,
0.5264107584953308,
-0.435905396938324,
-0.363684237003326... | |
[nSize]
0041EA9A mov [_lCurAlloc (004b429c)],eax
0041EA9F mov ecx,dword ptr [_lCurAlloc (004b429c)]
0041EAA5 cmp ecx,dword ptr [_lMaxAlloc (004b42a0)]
0041EAAB jbe _heap_alloc_dbg+249h (0041eab9)
0041EAAD mov edx,dword ptr [_lCurAlloc (004b429c)]
0041EAB3 mov ... | [
-0.7955217957496643,
0.2656136155128479,
0.26075732707977295,
-0.13762719929218292,
0.10408579558134079,
0.2722756266593933,
0.2836526036262512,
-0.4651677906513214,
-0.141606867313385,
-0.7024454474449158,
-0.5767802596092224,
0.374330997467041,
-0.22972066700458527,
0.09342959523200989,
... | |
[_pFirstBlock (004b4298)],0
0041EAC0 je _heap_alloc_dbg+25Fh (0041eacf)
0041EAC2 mov eax,[_pFirstBlock (004b4298)]
0041EAC7 mov ecx,dword ptr [pHead]
0041EACA mov dword ptr [eax+4],ecx
```
Here is our source for that calls fopen() and fails in malloc()
```
FILE *open_new_log(... | [
-0.24440662562847137,
0.2288910150527954,
0.5393826365470886,
-0.26602256298065186,
0.26219409704208374,
0.16981004178524017,
0.580173671245575,
-0.46280142664909363,
-0.07940710335969925,
-0.6020142436027527,
-0.5680831074714661,
0.5563533902168274,
-0.4738912284374237,
-0.080660954117774... | |
++retry < 300 )
Sleep( 1000 );
return( fp );
}
```
The error I get is
```
Unhandled exception inPISCOOP.exe: 0xC00000005: Access Violation
```
Regards,
--- Alistair.
You can use [`_CrtSetDbgFlag()`](http://msdn.microsoft.com/en-us/library/5at7yxcs(VS.71).aspx) to enable a bunch of useful heap debuggi... | [
-0.14420802891254425,
0.15224745869636536,
0.3806358277797699,
-0.0183071531355381,
-0.08430507779121399,
0.0005154517129994929,
0.300020694732666,
-0.20103535056114197,
-0.37643861770629883,
-0.5202339291572571,
-0.2704143524169922,
0.6580135226249695,
-0.3314588963985443,
0.1405598819255... | |
I see a lot of people have .NET 2.0 or even 1.1 as a requirement for their projects. In my own workplace there is also lots of skepticism for upgrading to the latest and greatest .NET framework.
As a programmer I feel it is very frustrating working with the older frameworks when you know that you could have done this... | [
0.7888424396514893,
0.2916603088378906,
-0.24443455040454865,
-0.0647033229470253,
-0.08072198182344437,
-0.43626728653907776,
0.38584569096565247,
0.18951071798801422,
0.05894777551293373,
-0.7645443081855774,
0.12427333742380142,
0.5747269988059998,
-0.216371089220047,
0.2506539523601532... | |
what you have tried to forget when you have the constraint of working with older versions.
What are the reasons for hanging on to the old versions when they should be compatible and how can you convince people to upgrade?
First, understand the reasons why businesses are slow to upgrade.
Computer systems are not a str... | [
0.3889019787311554,
0.16142146289348602,
-0.09163258224725723,
0.6265383958816528,
0.4213891923427582,
0.07159729301929474,
-0.007813815958797932,
0.16514575481414795,
-0.31177055835723877,
-0.5351313352584839,
0.09954187273979187,
0.7496635913848877,
0.0904669463634491,
0.3103675246238708... | |
resources to keep upgrading to the latest version for likely but not certain and not major gains, with the possibility of a lot of breakage. For most companies, this is not a win. It's safer to adopt things after they have been out there for a while. They miss some upside but avoid a chance of a disastrous downside.
G... | [
0.4260227382183075,
0.29357171058654785,
0.08914493769407272,
0.4732339382171631,
0.25666695833206177,
-0.09685245901346207,
0.18936192989349365,
0.18029728531837463,
-0.09660395979881287,
-0.8368811011314392,
0.05979088693857193,
0.968031108379364,
0.3547203242778778,
-0.17224238812923431... | |
and therefore what the company can save. (They won't pay attention to a figure you make up, might possibly pay attention to one somebody well known makes up, and are more likely to believe something supported by a study.) Acknowledge the downsides, and show what the likely costs are going to be, and find ways to limit ... | [
0.7285005450248718,
0.30752238631248474,
-0.05850633606314659,
0.22617436945438385,
0.07868027687072754,
-0.06889786571264267,
0.04560587927699089,
0.09014517813920975,
0.05793103203177452,
-0.3301139771938324,
-0.10988597571849823,
0.6988024115562439,
0.25230079889297485,
-0.4333060383796... | |
the company to pay for new toys, and lose a lot of credibility.
You can sometimes get what you want, but it helps to know how to ask for it. | [
0.3619704842567444,
0.0170309916138649,
0.32822826504707336,
0.43507084250450134,
0.030331585556268692,
0.019157541915774345,
-0.28310292959213257,
0.22895857691764832,
-0.24418886005878448,
-0.017102545127272606,
0.07406406849622726,
0.6057311296463013,
0.2710598409175873,
0.1278122663497... | |
In Python properties are used instead of the Java-style getters, setters. So one rarely sees get... or set.. methods in the public interfaces of classes.
But in cases were a property is not appropriate one might still end up with methods that behave like getters or setters. Now my questions: Should these method names ... | [
0.42542123794555664,
0.019661106169223785,
-0.2968057096004486,
0.1361793577671051,
-0.3949551582336426,
-0.22956186532974243,
0.43609943985939026,
0.10639102756977081,
-0.3482668697834015,
-0.38486239314079285,
-0.3495113253593445,
0.5641849637031555,
-0.3829672932624817,
-0.0451005510985... | |
this? What would you prefer as an API user?
Example: Say we have an object representing multiple cities. One might have a method `get_city_by_postalcode(postalcode)` or one could use the shorter name `city_by_postalcode`. I tend towards the later.
I think shorter is better, so I tend to prefer the later. But what's im... | [
0.6858843564987183,
-0.16386055946350098,
0.22910894453525543,
0.4621925354003906,
-0.29661837220191956,
-0.1813974529504776,
-0.01584368757903576,
0.1570327877998352,
-0.3486430048942566,
-0.7616879343986511,
-0.011948688887059689,
0.20685584843158722,
-0.4364719092845917,
0.0959763750433... | |
I understand that boxing and unboxing is about casting (real type to object... object to real type). But I do not understand what the MSDN say about it with the Nullable. Here is the text I do not understand:
> When a nullable type is boxed, the common language runtime automatically boxes the underlying value of the N... | [
0.4417406916618347,
0.3320401906967163,
-0.33900561928749084,
-0.28838425874710083,
-0.32810723781585693,
-0.13333259522914886,
0.3593323826789856,
-0.22576873004436493,
0.10931723564863205,
-0.34145253896713257,
-0.19719435274600983,
0.45526447892189026,
-0.6789416074752808,
-0.1679731011... | |
the underlying value. [Source](http://msdn.microsoft.com/en-us/library/b3h38hb0.aspx)
When you change your object to a real type, the real type variable that was nullable will be the type of object? I do not get it?
What it's saying is that if you do:
```
int? x = 5;
object y = x; // Boxing
```
You end up with a bo... | [
0.2028031200170517,
0.20491023361682892,
0.2880985736846924,
-0.07787031680345535,
-0.16001881659030914,
-0.17139770090579987,
0.41640153527259827,
0.05394269526004791,
-0.03511873260140419,
-0.41417473554611206,
-0.06124715879559517,
0.393633633852005,
-0.44797617197036743,
0.409475326538... | |
I've had to move my page title into my node to accommodate a client need, but I'm unable to now get a title to display on a page view of my views list. The argument I have to display title on edit, admin and track pages is:
```
<?php if ($title && ((arg(2) == 'track') || (arg(2) == 'edit') ||
(arg(0) == 'admin'))):... | [
0.008516447618603706,
0.4366281032562256,
0.7365573048591614,
-0.24437814950942993,
-0.102271668612957,
0.024526216089725494,
0.22065332531929016,
-0.24543540179729462,
-0.2818112075328827,
-0.5071830749511719,
0.05387488752603531,
0.5660985708236694,
-0.30657023191452026,
0.41464251279830... | |
so have a lot of content types)?
---
Sniffing out other possibilities...
I know that I can create different page templates for my content-types, but can I create one different page template for ALL my CCK content-types?
Here's the code I'd through into template.php to get the ability to add individual content-type ... | [
0.3844965398311615,
-0.17980536818504333,
0.5120875239372253,
-0.018272288143634796,
0.10110197216272354,
-0.1851259469985962,
0.15357547998428345,
-0.4630405604839325,
-0.1343897134065628,
-0.583372175693512,
0.06899721175432205,
0.5243894457817078,
-0.4153597056865692,
0.1796696633100509... | |
return $vars;
}
```
Cheers
Steve
OK - I found my own solution that didn't require creating 20 plus page templates. For the above example, I added the condition of `!node->type` to my query, since view's don't provide a node-type, then went through the site ensuring that title's were disabled at the page view level... | [
0.1819760650396347,
0.44309088587760925,
0.4689340591430664,
-0.0061538852751255035,
-0.08123378455638885,
-0.11946108192205429,
0.3700500726699829,
-0.39397120475769043,
-0.37731337547302246,
-0.21759457886219025,
-0.14022418856620789,
0.7186025381088257,
-0.1434227079153061,
0.0258593894... | |
I'm using Zend Studio 6.1 for Eclipse, which comes bundled with the Subversive plug-in.
My repo layout is:
```
/trunk/
/branches/
/tags/
```
My application code is in:
```
/trunk/application
```
I'm trying to add some view templates in:
```
/trunk/application/views/tags/index.tpl
```
BUT Subversive won't let ... | [
0.3851636052131653,
-0.29074734449386597,
0.4258962571620941,
-0.22784632444381714,
-0.1998051255941391,
-0.21036972105503082,
0.09892037510871887,
-0.1843412220478058,
-0.17063327133655548,
-0.6741156578063965,
-0.01216975413262844,
0.7331792712211609,
-0.3681192398071289,
0.0662138313055... | |
my views must be in /views/tags
I could rename the controller to something other than 'tags', but that sucks, because a tag is a tag, not a schmag ;)
Any ideas on how to get around this?
I finally got it working.
I can only assume it's a bug in the Zend Studio for Eclipse's Subversive plugin.
If I try to commit by ... | [
0.3857244849205017,
-0.2285575270652771,
0.43914204835891724,
0.20055702328681946,
-0.11831273138523102,
-0.25078147649765015,
0.13129037618637085,
-0.11298733949661255,
-0.3187406659126282,
-0.4760534465312958,
0.3320956528186798,
0.582201361656189,
0.019939349964261055,
0.106393992900848... | |
I have a KTerminalInterface (from kparts) in my qt/kdelib app, and I run a command within it.
The problem is: how can I know if the program is terminated? I need to know it because at its end I must reset some variable.
Does anyone got a similar problem?!?
It isn't possible to communicate with the process once launch... | [
-0.24677260220050812,
-0.01492986734956503,
0.7203351259231567,
-0.06708594411611557,
0.03829249367117882,
0.01813369244337082,
0.41179534792900085,
0.018942805007100105,
-0.18921500444412231,
-0.5433902144432068,
-0.21645769476890564,
0.5229074358940125,
-0.42175453901290894,
0.3754754960... | |
communicate with it, and detect when it terminates. See the [QProcess](http://doc.trolltech.com/4.4/qprocess.html) parts of its API. | [
0.2508441209793091,
0.21158625185489655,
0.4660279452800751,
0.03839947283267975,
0.16229884326457977,
-0.06231776252388954,
0.1565907746553421,
0.3816865384578705,
0.12252919375896454,
-0.295102596282959,
-0.46603211760520935,
0.23787491023540497,
-0.4804450273513794,
0.28524839878082275,... | |
I have a coldfusion web site I need to change. Have no idea or experience with this environment (I do know ASP.NET). All I need to do is to write a condition based on the referral value (the URL) of the page, and redirect to another page in some cases.
Can anyone give me an example of the syntax that would perform this... | [
0.16608567535877228,
0.25569501519203186,
0.45327824354171753,
-0.08310002088546753,
0.015109900385141373,
-0.033900316804647446,
0.34215492010116577,
-0.009627428837120533,
0.0836239829659462,
-0.7341300249099731,
0.050180159509181976,
0.07853714376688004,
-0.42323392629623413,
0.30328854... | |
<cflocation url="my_new_url">
</cfif>
```
...my example uses a regex search (`reFind()` or `reFindNoCase()`) to check the referring URL...but you could also check it as a list with `/` as a delimiter (using `listContainsNoCase()`) depending on what you're looking for. | [
0.5816680192947388,
0.02279162034392357,
0.6584199070930481,
0.07843289524316788,
-0.30127614736557007,
-0.24318145215511322,
0.006584698799997568,
0.1446046680212021,
-0.23070518672466278,
-0.5463389158248901,
0.1477869749069214,
0.6233434081077576,
-0.20951664447784424,
0.332501709461212... | |
**The cause was probably that I ran out of disk space, causing everything to work strangely. I will leave this question up anyways in case anyone else has a similar issue.**
I have a few PHP scripts that have hung for a long time, but apparently they are not really using much CPU time as they don't get killed. Still t... | [
0.6455842852592468,
0.24198175966739655,
0.36721867322921753,
0.1103477030992508,
-0.25813788175582886,
-0.1220598965883255,
0.4304211735725403,
0.47625696659088135,
-0.53139728307724,
-0.7445850372314453,
0.28159645199775696,
0.5092553496360779,
0.09900332987308502,
0.07787444442510605,
... | |
maximum CPU time a script can run. What I want is to limit all PHP scripts run by my web server (lighttpd) not in CPU time, but clock time.
In case it matters, this is the PHP part from my lighttpd config file.
```
fastcgi.server = (".php" => ((
"bin-path" => "/opt/local/bin/php5-cgi",
"socket" => "/tmp/php.socket"... | [
-0.07217346876859665,
0.01716654561460018,
0.48174434900283813,
-0.21521316468715668,
-0.12152102589607239,
0.03999575600028038,
0.34947022795677185,
-0.00845806859433651,
-0.4532160758972168,
-0.6103777289390564,
0.2650396227836609,
0.6184135675430298,
-0.18975231051445007,
-0.10255157202... | |
my max-procs.
```
legend
. = connect, C = close, E = hard error
r = read, R = read-POST, W = write, h = handle-request
q = request-start, Q = request-end
s = response-start, S = response-end
388 connections
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhh... | [
-0.16202802956104279,
0.34184643626213074,
0.7236366271972656,
0.4853222668170929,
0.12857848405838013,
0.10570503771305084,
0.11944863945245743,
-0.15286153554916382,
-0.18667252361774445,
-0.6671728491783142,
0.16557492315769196,
0.5798619985580444,
0.09583454579114914,
0.229517027735710... | |
I don't have to constantly babysit would be much appreciated!
All of the other examples would work...also if you're looking to redirect based on a referral from an external site, you may want to check CGI.HTTP\_REFERER. Check out the CGI scope for several other options.
```
<cfif reFindNoCase('[myRegex]',cgi.http_refe... | [
0.775585949420929,
-0.03703852742910385,
0.3066164255142212,
0.0729062482714653,
-0.004952843766659498,
0.015276665799319744,
0.25355660915374756,
0.1996251344680786,
-0.04597446694970131,
-0.473162442445755,
-0.0808839276432991,
0.5427449345588684,
-0.20987384021282196,
0.0927551016211509... | |
I'm looking into a restful design and would like to use the HTTP methods (`POST`, `GET`, ...) and HTTP headers as much as possible. I already found out that the HTTP methods `PUT` and `DELETE` are not supported from the browser.
Now I'm looking to get different representations of the same resource and would like to do... | [
0.6015508770942688,
0.14174935221672058,
0.13710293173789978,
-0.010338381864130497,
-0.19226200878620148,
0.22062593698501587,
0.38306328654289246,
-0.10306742787361145,
0.07062532007694244,
-0.7076832056045532,
0.1353989690542221,
0.6218647956848145,
-0.2173921912908554,
0.30957829952239... | |
a [type attribute](http://www.w3.org/TR/html401/struct/links.html#adef-type-A), that can have a mime type, looked like a good candidate but the header was still the browser default (in Firefox it can be changed in `about:config` with the `network.http.accept.default` key).
I don't think it's possible to do it in the wa... | [
0.19010907411575317,
-0.03839201107621193,
0.4481666684150696,
-0.09048396348953247,
-0.16669246554374695,
-0.18771088123321533,
0.1557055115699768,
-0.1260383427143097,
0.04297773167490959,
-0.5634560585021973,
-0.06742807477712631,
0.2748233377933502,
-0.2817479372024536,
-0.040551245212... | |
magic on the server side, then.
Or use Javascript as James suggests. | [
0.4865105450153351,
-0.19495445489883423,
0.08357836306095123,
0.033964380621910095,
-0.2758386433124542,
0.09840826690196991,
0.13005399703979492,
0.14095333218574524,
-0.08310640603303909,
-0.5224063396453857,
-0.1035086065530777,
0.5807948112487793,
0.1984572559595108,
-0.36229190230369... | |
I can split editor panes horizontally or vertically, but it does not seem possible to view code in two separate physical windows. I am aware that Idea can open multiple **projects** in separate windows, but I'd like to be able to do this for two files in a **single** project.
One answer suggested unpinning the tab, b... | [
0.37656354904174805,
-0.21385055780410767,
0.30076393485069275,
-0.11601529270410538,
-0.27784398198127747,
0.10969866812229156,
-0.04337267950177193,
-0.14013421535491943,
-0.5184841752052307,
-0.7577218413352966,
0.08448819071054459,
0.4630131721496582,
-0.20588751137256622,
0.1492260396... | |
some trick I am not aware of to make this happen?
Unfortunately there is no way (as of IDEA 8.0.1) to do what you're asking for. As you pointed out, you can split the editor pane but there is always exactly one editor per IDEA project.
UPDATE: As of IDEA 10 (currently the latest is 10.5), the answer is yes, you can :-... | [
0.44537097215652466,
-0.011336378753185272,
0.5601593255996704,
0.22105032205581665,
0.10382331907749176,
-0.10026034712791443,
0.01625850424170494,
-0.3648892939090729,
-0.2600301206111908,
-0.5742084980010986,
-0.020076340064406395,
0.2825891971588135,
-0.11865133792161942,
0.19193917512... | |
We use a customized installation of SugarCRM and I need to make a change to the "Convert Lead to Contact" form. On the form, only "last name" is marked as required, but if the user does not enter a salutation or first name, Sugar will throw an SQL error on the insert (because salutation and first name are required fiel... | [
0.10266312211751938,
0.052435096353292465,
0.43381333351135254,
-0.018154915422201157,
0.10601543635129929,
-0.1864420473575592,
0.16231723129749298,
-0.06613582372665405,
0.10256356745958328,
-0.5838140845298767,
0.09087685495615005,
0.39792242646217346,
-0.2401702105998993,
-0.0721284672... | |
"salutation" to the 'required\_fields' array in "modules/Contacts/field\_arrays.php", did not help.
Update: This is on SugarCRM 5.1. This work is happening during the upgrade to 5.1.
Update: Added the following line to "modules/Contacts/vardefs.php" the "email\_and\_name1" array, did not help.
```
'required' => 't... | [
-0.16555723547935486,
0.21990737318992615,
0.6465253233909607,
-0.37745559215545654,
-0.13095398247241974,
0.06103382259607315,
0.2713013291358948,
-0.0003489263472147286,
0.03993970900774002,
-0.5509577989578247,
0.050104040652513504,
0.6448549628257751,
-0.34053945541381836,
-0.113098539... | |
I need to all of timestamps in a column the same amount.
I want to write an sql statement like:
update sometable set timecol = timecol + <4 months>;
If you open a connection in Visual Studio, you can run sprocs and queries in debug mode. i.e. you can go step by step over a query with intellisense and see the values in... | [
0.3178498446941376,
-0.08154841512441635,
0.4698275923728943,
0.06322411447763443,
0.2821986675262451,
-0.026406293734908104,
0.1160556748509407,
-0.22371242940425873,
-0.3015478849411011,
-0.5986107587814331,
0.1402360051870346,
0.4036269187927246,
-0.12023267894983292,
0.0993752107024192... | |
I have a .NET webform that has a file upload control that is tied to a regular expression validator. This validator needs to validate that only certain filetypes should be allowed for upload (jpg,gif,doc,pdf)
The current regular expression that does this is:
```
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG|.... | [
0.3254876434803009,
-0.3392361104488373,
0.5517712235450745,
0.18654534220695496,
-0.0841682180762291,
-0.3392329812049866,
0.3687547445297241,
0.053404271602630615,
-0.22466637194156647,
-0.5453570485115051,
0.20506733655929565,
0.6604722142219543,
-0.4819648861885071,
-0.0457660779356956... | |
As input I get an int (well, actually a string I should convert to an int).
This int should be converted to bits.
For each bit position that has a 1, I should get the position.
In my database, I want all records that have an int value field that has this position as value.
I currently have the following nai... | [
-0.0911203995347023,
0.022804781794548035,
0.27305200695991516,
0.06773453950881958,
-0.03333106264472008,
0.22882874310016632,
0.012643150985240936,
-0.22038336098194122,
0.11715526878833771,
-0.742103099822998,
0.13267076015472412,
0.5934304594993591,
-0.20630083978176117,
0.280231565237... | |
Should I use Boolean[] ?
Then, how can I fill this array?
Lastly, if previous statements are solved, I should just return bits[position]
I feel like this should somehow be solved with bitmasks, but I don't know where to start..
Any help would be appreciated
Your feeling is correct. This should be solved with bitmasks... | [
0.038125693798065186,
-0.08884109556674957,
0.3264758586883545,
0.19076229631900787,
-0.17330369353294373,
-0.006911934819072485,
0.025448856875300407,
-0.051178090274333954,
-0.25819534063339233,
-0.2592870593070984,
-0.004338305909186602,
0.5624261498451233,
-0.1759706437587738,
-0.02620... | |
use the & operator. Bitwise & is only true if both bits are set. For example if you had two bytes 109 and 33, the result of & would be
```
0110 1101
& 0010 0001
-----------
0010 0001
```
If you just want to see if a bit is set in an int, you & it with a number that has only the bit you're checking set (ie 1, 2, ... | [
0.3593842387199402,
-0.054070595651865005,
0.5731931328773499,
-0.2401677519083023,
0.12592731416225433,
0.25701501965522766,
0.3033604025840759,
-0.4916086494922638,
-0.16387037932872772,
-0.6854731440544128,
-0.24400140345096588,
0.6659729480743408,
-0.30373215675354004,
-0.2144572436809... | |
1;
int position = 0;
do {
if (input & mask != 0) {
result.Add(position);
}
mask <<= 1;
position++;
} while (mask != 0);
return result;
}
``` | [
-0.2375912219285965,
-0.3419131934642792,
0.44773706793785095,
-0.4452589750289917,
0.007954115979373455,
0.17408660054206848,
0.2632174491882324,
-0.4428638517856598,
0.03890116140246391,
-0.49008098244667053,
-0.5224795937538147,
0.47394564747810364,
-0.3332522511482239,
-0.1623646616935... | |
I have a question about [this question](https://stackoverflow.com/questions/372812/how-do-get-some-of-the-object-from-a-list-without-linq). I posted a reply there but since it's been marked as answered, I don't think I'll get a response to my post there.
> I am running C# framework 2.0 and I
> would like to get some ... | [
0.37731659412384033,
-0.024919556453824043,
0.3924081325531006,
0.14249780774116516,
-0.1369302123785019,
-0.4028948247432709,
0.21870732307434082,
-0.20757322013378143,
-0.38434600830078125,
-0.23138917982578278,
0.09749134629964828,
0.2662423849105835,
-0.08721659332513809,
0.08385684341... | |
guaranteed to be sorted prior to the search, do any of the methods provided in the original post ensure that they are looking at a smaller subset of the original list?
EDIT: One thing to note is that I'm not trying to do anything here. I just want to know if the solutions provided in another question truly do what the... | [
0.31874582171440125,
-0.15258242189884186,
0.18469059467315674,
0.40613675117492676,
0.1936524659395218,
-0.32141879200935364,
0.31054356694221497,
-0.11023391038179398,
-0.5068003535270691,
-0.3856390416622162,
-0.3211699426174164,
0.3962162137031555,
-0.26996341347694397,
-0.076719939708... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.