Git newbie here, quick question. I mistakenly added files using the command "git add file". I have not yet run "git commit". Is there a way to remove these files from the commit?
I have just broken up a Spring bean configuration file into smaller external files and have used the the "import" directive to include them in my Spring Test application context XML file.
But whenever I reference one of the beans from the imported files I get a warning within Eclipse/STS/Spring XML editor complaining that "referenced bean 'foo' not found"
Is this is a bug or is it me? It's really annoying because I don't want to disable the warning, yet at my company we try to eliminate all warnings.
I'm hand-editing HTML files in a plain text editor (vim) via SharePoint Designer. Problem is, as soon as I save the files, SharePoint automatically adds width and height attributes to all the img-tags.
Anyone know if it's possible to disable this "feature"?
I don't want it to mess around with my code. Yeah, shouldn't be using SharePoint Designer then, I know - problem is that's not an option.
In php we use includes. So variables defined in one file and then their scope spans included files too.
Zend studio has no idea how to get the type of the variable I am using inside an included file, this is very annoying when the variable type is a big class.
Is there a way to hint the ide about variable types? in included files?
In a new app, I plan to let users download their own files and stored them inside iPhone. The process is typically:
iPhone present a web page by UIWebView, in which there are several links to .zip files
the user browser the page and click on one of the .zip file link
iPhone downloads the file into the iPhone document folder, closes WebView, acknowledges the user when download is complete
How can that be done? Thanks
I just installed Google's Page Speed plugin to Firebug, and everything looks good except for caching. I have set headers to cache my JS and CSS files, but it says the images aren't being cached. How can I make sure the images get cached for 30 days? These are static images, so I can't just add the headers with PHP like I did with the other files.
Hi folks:
If anybody ever used TortoiseSVN to merge .NET resource files (.resx) from branch to trunk?
From my experience, WinMerge fails to do the mergence of files of Unicode.
Thank you.
I would like to know what you think is the best web-based File Explorer to manage files in a remote server through HTTP / Web.
It would be preferable to have PHP or Flash technology, but any good suggestion would do.
More generally, how would you allow someone to manage files on a remote server with HTTP being the only open outgoing port?
Hi all,
I am building this iphone app for a client and they have a large set of flash video files that they need to play/stream to the iphone. I understand that the iphone doesnt natively support flv playback but isnt there anything I can do to get around this problem?
In case it helps, they are using the akamai flash player on their website to play these video files.
Thanks in advance.
When including the line
*.py diff=python
in a local .gitattributes file, git diff produces nice labels for the different diff hunks of Python files (with the name of the function where the lines changed take place, etc.).
Is is possible to ask git to use this diff mode for all Python files across all git projects? I tried to set a global ~/.gitattributes, but it is not used by local git repositories. Is there a more convenient method than initializing each new git project with a ln -s ~/.gitattributes?
:bn , :bp just switches buffers
I want something like ctrl-o, which has a 'stack' of marks it jumps through.
However, I want it to ignore marks in the same file ... i.e
i want ctrl-my-o to be ctrl-o until you hit a different file
and ctrl-my-i to be ctrl-i until you hit a different file
Is there somethig like this in vim?
I want to ignore all directories "_notes" throughout a repository. _notes is generated by dreamweaver and is not part of the project itself, but these directories are scattered throughout the project.
Somehow ^_notes$ is not doing the job in .hgignore ... Do I have to direct .hgignore to each and every directory "_notes" or does it do it recursively?
I am not quite sure about the man pages
We have a browser based application written in PHP in which I want to drag-n-drop files from the windows explorer or directly email attachments(this would be very cool). On dropping the files in the browser application, it should save it on a particular folder on the server. Any help on how this can be achieved would be really appreciated.
When I run the custom tool to create the cs files for SubSonic all the templates now inject a letter g to the top of the cs files. To get this to compile I need to remove the g from the ActiveRecord.cs, Struts.cs, Context.cs and StoredProcedures.cs. Anyone else run into this? I am using MySQL.
I have recently published a web service to my site through visual studios ... I was so dumb to select delete existing files option ...
Can anyone please help me out how do i get back my deleted files from the server...
Hi,
When I decompile my CHM file use microsoft html help workshop. It generates HHC,HHK and bunch of HTML files but no HHP file. When I create an HHP file using new project option and then compile it to create another CHM file. Now these two CMH files are not of same size and they behave differently. Am I missing something here? I am simply decompiling and re-compiling the same CHM file but the result is different.
I have a project which can be compiled with Visual Studio, GCC and with some embedded compilers. Sources are shared, but each platform requires separate makefiles, project files, solutions etc. There are two ways I can organize them:
Intermixed in a single hierarchy of folders
With separate folders for platform-dependent files
The first solution creates some confusion about which file belongs to which platform, but the second causes some repetition of the folders structure (some compilers require each project to have a separate folder).
Which do you think is better?
I know JavaScript regular expressions can ignore case for the entire match, but what about just the first character? Then tuesday would match Tuesday but not TUESDAY.
I've got this SQL query:
SELECT Foo, Bar, SUM(Values) AS Sum
FROM SomeTable
GROUP BY Foo, Bar
ORDER BY Foo DESC, Sum DESC
This results in an output similar to this:
47 1 100
47 0 10
47 2 10
46 0 100
46 1 10
46 2 10
44 0 2
I'd like to have only the first row per Foo and ignore the rest.
47 1 100
46 0 100
44 0 2
How do I do that?
I am trying to filter for an object that has a Title field and I want to ignore case. Is there a way to make sure case sensitivity of turned off?
| Where-Object {$_.Title -like "myString"}
What are your favorite linting tools for verilog?
I am currently looking for a good verilog linting tool. And preferably one that can be configured to either handle or ignore certain vendor specific primitives like LUT's, PLL's, etc.
I recently tried verilator-3.810, but out of the box it needs a little help with the primitives.
So what (linting) tools do you use to deal with the not-so-strict syntax of verilog?
I have a bunch of (50+) XML files in a directory that I would like to insert into a SQL server 2008 table.
How can I create a SQL script from the command prompt or Powershell that will let me insert the files into a simple table with the following schema:
XMLDataFiles (
xmlFileName varchar(255)
, content xml
)
All I need is for something to generate a script with a bunch of insert statements. Right now, I'm contemplating writing a silly little .NET console app to write the SQL script.
Thanks.
When I load jQueryUI on a Windows XP machine using Firefox 3.6.3, I get a bunch of css errors:
Error in parsing value for 'filter' Lines 18, 76, 77.
Unknown property 'border-top-left-radius' Line 274.
Unknown property 'border-top-right-radius' Line 275.
unknown property 'zoom' Lines 300,306,336,345,385,408.
Q: Should I just ignore these errors?