What is the root directory of Apache Web Server? I am using Windows XP. My Apache server is installed at: C:\Program Files\Apache Software Foundation\ I want to host a server and its manual says: move all files and subdirectories from that directory to the root directory of the web server
After reading both : difference between "void 0 " and "undefined" , https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/void I still have some questions. I've read that window.undefined can be overwritten vwhere void operator will return the undefined value always But the example which caught my eyes was the one in MDN : <a href="javascript:void(0);">Click here to do nothing</a> In order to do nothing , I always thought I should write : href="javascript:return false;" And this leads me to another question : (at Href context !) : javascript:void(0); vs javascript:return fals
In hibernate I used findById() and findAll() in Dao layer.findById() method working as I expected, but findAll() always returns empty result set,I still couldn't figure out the reason, any one could help me to solve this issue, Note: There is no exception, returns only empty list Here is my code Find All method public List<T> findAll() { Query query = getSession().createQuery("SELECT obj FROM " + persistentClass.getSimpleName() + " obj"); return query.list() } Find by Id method public T findById(Long id) { T result = (T) getSession().get(getPersistentClass(), id); return result; } getSession m
I am getting the following type of error. I know it has something to do with me improperly accessing memory, but I don't exactly how. Please help me see where I have gone wrong. *note I have simplified my function and it is not obvious what the variables are doing, I just need to know how I am implementing the function incorrectly or where I am misusing memory access. int my_function(char const *file_name, size_t max) { myStruct.pStore = fopen(file_name,"w+"); //pStore is a FILE* myStruct.max = max; // fill the with zeros ('0') int numberOfZeros = max*SIZE; char zeros[numberOfZeros]; int i=0;
I have a trigger that updates one of the inserted fields (RootId) with the value of the identity primary key (MessageId) of the same inserted record. The update should only happen when the RootId field of the inserted record is 0. The trigger looks like this: ALTER TRIGGER [dbo].[Trigger_RootIdUpdate] ON [dbo].[Messages] AFTER INSERT AS BEGIN SET NOCOUNT ON; DECLARE @MessageId Int SELECT @MessageId = I.MessageId FROM INSERTED I UPDATE Messages SET RootId = @MessageId WHERE MessageId = @MessageId AND MessageId = 0 END I use it in Azure and when I insert a row, it gives me the following error: T
I'm come around with the following code to disable to formatting while cell copy paste operation- Private Sub Worksheet_Change(ByVal Target As Range) With Application .EnableEvents = False myValue = Target.Formula .Undo Target.Formula = myValue .EnableEvents = True End With End If Application.CutCopyMode = False End Sub Code works perfect but it insert many other issues in the sheet. Not able to use the undo/redo functionality Not able to change the focus of cell in single click. Any idea would be appreciated.
Reposted due to no replies. I'm having some trouble setting a custom canonical title using the Wordpress SEO API: http://yoast.com/wordpress-seo-api-docs/ I have a custom post type called designs which uses a custom URL rewrite. It takes the base page /design/ and adds the design name to it like /design/a-design/. The canonical in Wordpress SEO by default is the /design/ page. What I want to do is write a function which determines if it is a design page and return a different canonical. I can test whether it's a design page by doing if ($design == ""){ and I tried to use the custom permalink U
I hope this problem is extremely simple and it's just me being an idiot. I am new to SOAP and am attempting to set up a SOAP WebService (using Java and Spring) and then using the tool SoapUI I attempt to send a SOAP request to my Web service. However I always get 404 Not Found errors when I submit my request. I suspect / hope that I have just set my Endpoint incorrectly in SoapUI, but I don't know what value I should be putting there. Can anyone help? These are the steps I have taken to setup my WebApp with SOAP support: 1) I am using an existing WebApp (which has existing REST Web Services) r
I have been working on a MVC3 project. I have just created a sample email sending job with Quartz.Net in my application. This time, I need to build a job scheduling system in my MVC3 project. The scenario is completely based on UI. It means, the users of the system have to enter the scheduling frequencies, like defining a Job or scheduling time through the UI. I tried Quartz.Net 2.0.1. I don't have any ideas for combining Quartz.Net with UI for scheduling. Are there any possibilities to attach a scheduler with UI? Please suggest a way for me to do this.
I'm selecting two id columns but get error specified: org.hibernate.QueryException: **query specified join fetching, but the owner of the fetched association was not present in the select list** [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=r,role=null,tableName=REVISIONS,tableAlias=revision1_,origin=ENTITY_CHANGED_IN_REVISION entitychan0_,columns={entitychan0_.REV_ID ,className=ru.csbi.registry.domain.envers.Revision}}] [ select ec.id as entityChangeId, r.id as revisionId from ru.csbi.registry.domain.envers.EntityChange as ec inner join fetch ec.r
I am trying to understand the process of how an apk is installed on Android, specifically the Android SDK emulator via adb install (where i am testing). In searching I have found no satisfactory answer outside of "the apk is simply copied to /data/app and is installed when you run it. This is not satisfactory to me as it does not explain how the apk's icon appears on the menu amongst other issues. Coming from a Windows background, running an .exe or installer to install a program modifies registries, files, services, etc.... I need to understand if this or something similar occurrs when an apk
If I run a program, just like #include <stdio.h> int main(int argc, char *argv[], char *env[]) { printf("My references are at %p, %p, %p\n", &argc, &argv, &env); } We can see that those regions are actually in the stack. But what else is there? If we ran a loop through all the values in Linux 3.5.3 (for example, until segfault) we can see some weird numbers, and kind of two regions, separated by a bunch of zeros, maybe to try to prevent overwriting the environment variables accidentally. Anyway, in the first region there must be a lot of numbers, such as all the frames for each function call.
I'm trying to run a .bat file on a windows server 2008 R2 64bit with IIS version 6.1 SP1. On my local machine everything goes well but on server nothing happens, except for a process that gets created (cms.exe *32). From my search the main problem is permissions. I read in several places that IIS for default blocks access to batch files for security reasons. I do understand the problem but in my case there would be no security issue so i would like to still run my file. The solutions i found passed by implementing impersonation which means: Change web.config -> identity impersonate="true" Chan
I have a excel file and defined two column Date,Result in it. I want insert data in it with c#. I use this code : string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + System.AppDomain.CurrentDomain.BaseDirectory + "\\Data\\sms log.xlsx;Extended Properties=Excel 12.0;"; OleDbConnection myConnection = new OleDbConnection(connectionString); if(myConnection.State==System.Data.ConnectionState.Closed) myConnection.Open(); OleDbCommand myCommand = new System.Data.OleDb.OleDbCommand(); myCommand.Connection = myConnection; myCommand.CommandText =string .Format( "Insert into TABL
I am having problems loading a set of csv data with sql loader. i have a control file that contains the data and i have already created the target table in oracle 10g. when i run this following command, C:\Users\lee\sqlloadertest> sqlldr scott/tiger@MYDB,CONTROL='Ad.ctl' it produces SQL*Loader: Release 10.2.0.3.0 - Production on Tue Sep 11 17:46:43 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Commit point reached - logical record count 52 when i check the Address table, it shows no rows created, meaning the table was not populated
I'm trying to get the following function to work by calling it from a spreadsheet cell: =IsFormula(A1) function IsFormula(aCell) { return cell.getFormula().length != 0 } What should I do?
I am a naive developer and I am building up my concepts, I was asked to create a sample application in wcf, and so I am asking a bit subjective question here. I want to know the diffrence and functionality of the above two, in which terms we prefer one over other?
I got a question regarding shifting bits within an unsigned integer. I've got two unsigned integers, let's say var1 and var2. I need to take the left most var1 bits of var2 and move them to the right most position. So if var1 is 12 and var2 is 0x13ac8d08 that would result in var2 becoming 0xc8d0813a. Can anyone help me how to do that in C#?
Is there any way to write the following statement using some kind of safe navigation operator? echo $data->getMyObject() != null ? $data->getMyObject()->getName() : ''; So that it looks like this: echo $data->getMyObject()?->getName();
I'm passing the div value to a window.open popup that should resize height according to content, however when i used auto it just opens a new window. I tried this code but wouldn't work function openPopup() { var divText = document.getElementById("pass").outerHTML; var myWindow = window.open('', '', 'width=500,height=auto'); var doc = myWindow.document; doc.open(); doc.write(divText); doc.close(); }
I get an InputConnectionWrapper warning everytime I turn off the screen when my app is visible. I don't know why, because I don't use InputConnection. Here is the LogCat Output. 09-07 14:21:31.716: W/IInputConnectionWrapper(24197): getExtractedText on inactive InputConnection 09-07 14:21:31.724: W/IInputConnectionWrapper(24197): getExtractedText on inactive InputConnection 09-07 14:21:31.724: W/IInputConnectionWrapper(24197): getTextBeforeCursor on inactive InputConnection 09-07 14:21:31.724: W/IInputConnectionWrapper(24197): getTextAfterCursor on inactive InputConnection 09-07 14:21:31.724: W
I'm attempting to read an input file line by line which contains fields delimited by periods. I want to put them into an array of arrays so I can loop through them later on. The input appears to be ok, but 'pushing' that onto the array (inData) doesn't appear to be working. The code goes : Input file: GSDB.GOSALESDW_DIST_INVENTORY_FACT.MONTH_KEY GSDB.GOSALESDW_DIST_INVENTORY_FACT.ORGANIZATION_KEY infile=${1} OIFS=$IFS IFS=":" cat ${infile} | while read line do line=${line//\./:} inarray=(${line}) # echo ${inarray[@]} # echo ${#inarray[@]} # echo ${inarray[0]} # echo ${inarray[1]} # echo ${inar
Well, I'm quite new to testing but I would like to take programming to next level and begin testing, no unit-test but high level testing. Like this for example: Insert a job and check if it's valid by checking it's input with the result. Or another example: Insert a job and worker X started it: now I will check both the job and worker's properties to know if they are in a valid state. But this is very very complex so I've been thinking of doing an Environment and instance one in each test, each environment creates an instance of the server and allocates an empty database to work with; For exam
I want to show data in grid view using 3 tables in SQL database. first I created Model public class common { public Artist Artist { get; set; } public Album Album { get; set; } public Genre Genre { get; set; } } Then This is the Controller public ActionResult Show1() { var query = from a in DB.Album join b in DB.Artists on a.ArtistId equals b.ArtistId join c in DB.Genre on a.GenreId equals c.GenreId where (b.ArtistId == 2) select new common { Album = a, Artist = b, Genre = c }; return View(query.ToList()); } } After that this is my View @model IEnumerable<test1.Models.common> @{ ViewBag.Title
I have this error: LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (Login timeout expired). The SQL statement that was issued has failed And here is my code, what is wrong? DECLARE @FileName VARCHAR(50); DECLARE @VendorID VARCHAR(50); DECLARE @sql VARCHAR(2000); DECLARE @Local_File_FullPath VARCHAR(100); SET @FileName = 'Extgt_skinny_file.txt.pgp' Set @VendorID = 'ET' Select @Local_File_FullPath = dw03_path FROM GMAC_META.dbo.VENDOR_XFER_METADATA where vendor_id = @VendorID SET @sql = 'dtexec /SQL "\EMAP_FTP_XFER_CHECK" /SET \Package.Variables[User::FileName].Properties[V
Is there a way to slice only the first and last item in a list? For example; If this is my list: >>> some_list ['1', 'B', '3', 'D', '5', 'F'] I want to do this (obviously [0,-1] is not valid syntax): >>> first_item, last_item = some_list[0,-1] >>> print first_item '1' >>> print last_item 'F' Some things I have tried: In [3]: some_list[::-1] Out[3]: ['F', '5', 'D', '3', 'B', '1'] In [4]: some_list[-1:1:-1] Out[4]: ['F', '5', 'D', '3'] In [5]: some_list[0:-1:-1] Out[5]: [] ...
I've been trying to embed YouTube videos inside my phonegap Android app using the new YouTube iframe API. The embed itself working and a YouTube window pops in with the preview picture and the play button in the center. The problem is when I click the button to start streaming the video the embed doesn't play the video - just loads the preview picture in and does nothing. The code used is below if it helps. & lt;iframe title="YouTube video player" class="YouTube-player" type="text/HTML" width="320" height="194" src="http://www.youtube.com/embed/xxxxxxxx" frameborder="0"></iframe> I read from a
How can i convert an apk into a zip flashable in clockWorkMod? I tried using ApkInstaller. It didn't work. Keep getting the error; "installation aborted".
I have a code that contains an ASPxGridView and a ASPxCheckBox and Label within in like: <dx:ASPxGridView ID="gvTableSearchHomes" runat="server" DataSourceID="XmlHomes" Width="341px" CssClass="tableViewSearchGrid" ClientInstanceName="gvTableSearchHomes" AutoGenerateColumns="False" EnableRowsCache="false" KeyFieldName="ID"> <%--<Columns>--%> <%-- DXCOMMENT: Within ASPxGridView, add a column whose values will participate in filtering --%> <%--<dx:GridViewDataTextColumn FieldName="Address"> <PropertiesTextEdit NullText="Search your home"></PropertiesTextEdit> <Settings AllowAutoFilterTextInputTim
This applies to both 2008 and 2010 versions (and probably earlier ones too). Also to both C++ and C# projects. An initial build (after reboot) runs at normal speed and with reasonably good CPU utilisation. After "some time" (ie using the computer for "stuff"), a subsequent build might run very, very slowly and with very low CPU utilisation. The only fix I have found seems to be a reboot, then the cycle starts all over again. This happens on both WPF and non-WPF projects, though it's 10 times worse with WPF. This has happened to me on different machines, even working for different organisations