Need Help creating Icon overlays for my SVN Client
Hi I am currently writing an cross platform SVN client. I have icon overlay working in windows and linux. This is a small image that sits on top of the normal icon in finder and represents the current state of the file, e.i out of sync, up to date, un-versioned. But am really struggling trying to get it to work in OSX. At this point I only want it to work in snow leopard. This is where I have got to so far.
I managed to create a QL plugin that worked. The only issue with QL plugins is that you have to specify what file types your plugin works for, (my sample worked for gifs). Unfortunately I don't know that as it needs to work for every file and folder on the system that contains a subfolder called .svn. So with a week of reading I have come to the decision that the only real way around this is to override the QLThumbnailImageCreate function that finder calls and replace it with my own if I find a .svn or call the original if not. However if this is the only route I have not been able to get any code to work that will replace the function with my own.
If any one can show me an example of switching that function, or has an alternative solution. Or knows the LSItemContentTypes type that means my plugin will fire for every single file, then I would be very happy. I've spent no more than 2 days getting this to work on windows and linux, but I've spent soooo many hours on OSX. Any help would be great.
DanUK wrote:
Thanks for your reply etresoft. I know it definitely is possible because the application dropbox does it.
I'm not so sure. People working on the SC Plugin SVN program have been trying to do that for years. I don't know if they have ever gotten it to work.
But unfortunately its not open source so I can find out how they did it. The only other way I can do it is to monitor file system changes and then set a custom icon. But this has many draw backs. such as custom icons are persistant and will remain even when my software has been uninstalled.
I think you should really look into using labels. An SVN/CVS user probably isn't going to be using icon view anyway. Labels will be far more useful in real life. Custom icons are just a gimmick.
I using QT Creator to write the software so if you fancy a go I can share the project with you.
Perhaps we should stick to our respective SCM programs. I'm not a fan of QT either
Similar Messages
-
Need help creating Vector table for specific class
I am trying to create a Vector table of class Node and I think I understand the concept but in practice I am not
sure why the compiler complains about non-static reference on statement mv.table.add(new Node(names[n]). Please help. I can not get this thing to work.
import java.util.*;
class MyVector {
Vtable table;
public static void main(String[] args){
MyVector mv = new MyVector();
String names[] = {"one","two","three","four","five"};
for (int n;n<names.length;n++)
mv.table.add(new Node(names[n])); //<-ERROR
table.list();
if (table.del("de")) System.out.println("deleted");
table.list();
public MyVector(){
System.out.println("MyVector_C");
table = new Vtable();
public class Node {
private String name;
public Node(){name=new String("Null");}
public Node(String s){name=s;}
public void setName(String s){name=s;}
public String getName(){return name;}
public String toString(){return "[Node:"+name+"]";}
public class Vtable extends Vector {
private Vector v;
public Vtable(){v=new Vector();}
public void add(Node n){v.add(n);}
public Node getNode(String s){
Iterator i=v.iterator();
while(i.hasNext()){
Node n;
n = (Node)i.next();
if (s.equals((String)n.name))
return(n);
return null;
public void list(){
Iterator i=v.iterator();
while (i.hasNext()){System.out.println((Node)i.next());}
public Boolean del(String s) {
Iterator i=v.iterator();
while(i.hasNext()){
Node n = (Node)i.next();
if (s.equals((String)n.name)) {
v.remove(n);
return(true);
return(false);
}public class Vtable extends Vector {
private Vector v;
public Vtable(){v=new Vector();}
public void add(Node n){v.add(n);}
public Node getNode(String s){
Iterator i=v.iterator();
while(i.hasNext()){
Node n;
n = (Node)i.next();
if (s.equals((String)n.name))
return(n);
return null;
I get ur problem...
When VTable extends Vector all u have to do is...
VTable table=new VTable();
table.add(new node(..));
There is no need to get the Vector obj in picture as VTable extends Vector...
I guess, this helps u. -
Need Help Creating A Script For Labeling Finder Files from Indesign
Trying to figure out a way to have a script run in InDesign CS4 that will label a text file RED after it's been imported into InDesign.
We import numerous text files into an InDesign template. Since there are several text files in the same folder, we need to somehow "mark off" that we've imported that file and move to the next one to import. I have created an Automator "service" with a keyboard shortcut to label the file Red in the finder but it would be great if we could have this happen automatically after we import into InDesign.
If we import the wrong text file by accident and it gets missed in proofing, it costs us a lot of money with the printer.
Thanks for any ideas.
JimYou know, these guys are absolutely right in their assessment that this is a good place for event listeners. You would need three scripts though.
Something like...
Label Placed Files Red.scpt
--Put this in a folder called IDScripts in your Documents folder
main(evt)
on main(myEvent)
tell application "Adobe InDesign CS4"
set placedFilePath to full name of myEvent
set placedFilePath to placedFilePath as alias
end tell
tell application "Finder"
--This turns the file color red
set label index of placedFilePath to 2
end tell
end main
And these two are in your InDesign scripts folder...
Start Placed File Finder Labelling.scpt
--Installs the afterImport event listener for the Label Placed Files Red script.
tell application "Adobe InDesign CS4"
set myHandler to path to documents folder
set myScriptName to "Label Placed Files Red.scpt"
set myHandler to "" & myHandler & "IDScripts:" & myScriptName
try
set myHandler to myHandler as alias
make event listener with properties {event type:"afterImport", handler:myHandler, captures:true}
display dialog "Placed File Labelling: ON" buttons "OK" default button 1
on error
display dialog "ERROR: Couldn't start handler!" & return & return & "Make sure the \"" & myScriptName & "\" script in a folder called \"IDScripts\" inside your Documents folder and try again" buttons "OK" default button 1
end try
end tell
Stop Placed File Finder Labelling.scpt
--Removes the afterImport event listener for the Label Placed Files Red script.
tell application "Adobe InDesign CS4"
set myHandler to path to documents folder
set myScriptName to "Label Placed Files Red.scpt"
set myHandler to "" & myHandler & "IDScripts:" & myScriptName
set myHandler to myHandler as alias
set myResult to remove event listener event type "afterImport" handler myHandler with captures
if (myResult is false) then
display dialog "ERROR: Couldn't remove handler! Are you sure it is active?" & return & return & "If so, please quit and relaunch InDesign to get rid of it." buttons "OK" default button 1
else
display dialog "Placed File Labelling: OFF" buttons "OK" default button 1
end if
end tell -
Help! Help!~I need to create a room for a Robot to move in!!
I need to create a room for a robot to move around in. How do I go about doing this?
Im not sure where to start.
ThanxsCould you define a shape and just have the robot check its proximity to the wall?
I did something similar a couple of years ago where my hunter bots had to chase the rabbit bots and the rabbit bots ate the grass... you get the picture
The hunters were able to see the rabbits and they were attracted to the area with most of them. The rabbits were able to see the grass and the hunters and were attracted to grass but if a hunter was in sight, that was overridden and they moved away from the hunters.
The controllers were simple neural nets which were set up through GAs.
How will your robot detect the walls? I mean, will it be able to pinpoint its position in the room or will it only have visual info (it will "see" the wall to its right etc)?
If the first, I would be inclined to use some shape and just check for the position of the robot compared to the boundaries.
If the second, I would make the shape out of a whole load of Point objects and arrange them in the shape of the room. The benefit is that you will be able to specify some vision function based on how many Points are within his field of vision, and then get the net to learn that the optimum value is x... or something like that. It has been a few years since I did that stuff. -
Do I need to create a view for this?
Hi Ihave got 2 tables emp and project
In emp tabe:
emp_no
family name
given name
In porgect table:
emp_no
status(assigned,unassigned)
start_date
end_date
emp_no Family_name given_name
1 Smith John
In project table same employee can have many assigement eg
emp_no status start_date end_date
1 assigned 01-may-08 01-july-08
1 assigned 01-sep-08 01-july-09
1 unassigned 01-july-09 01-oct-09
In the form:
there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
retrive records which have end date between field1 and field2.
The following fields are needed to get from database:
emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
Requirements:
1. project.start_date and project.end_date must be the latest project_end_date for the same emp
so in the above sample date
2. No. of time assigned is a count of total of number records which have status='assign'
So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
Smith John 01-sep-08 01-july-09 2
What is the best approach to get:
1 The lastest project(latest end_date) for the emp
2. get No.of time assigned.
Do I need to create a view for this? If yes, any sample sql code this this?
Thanks for your helpHi W1zard,
Thanks for your reply. Could you clarify the following points for me:
1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
Q1: where I pit this code? in pre-query trigger in detail block?
2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
create or replace force view v_emp as
select emp.family_name, emp.given_name, project.start_date, project.end_date
from emp, project
where emp.emp_no = project.emp_no
Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
max(project.end_date) somewhere in create view to make sure only one record for one employee.
Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
where I put this customerised sql so when user click excute query. My sql will run and display one the form?
REally appreciated your help!
Michael -
What is the need of creating partner functions for sales document type.
Hi SAP (SD-GURUS),
Actually we create partner functions before creating customer ex: sold to party, ship to party, bill to party, and payer.
These partner functions are going to be copied into sales order while processing sales order.
Again what is the need of creating partner functions for sales document type.
Thanks&Regards
sreenivas peruruThere are some Partners you could enter at Sales ORder Level. E.g. Sales Person, Employee Responsible, Forwarding Agent, Broker, etc.
Thus these partner Determination need to be carried out at Sales Order Level & not at Customer Master level.
So we have to configure partner Determination for various levels e.g. Customer Master, Sales Order, Delivery level etc...
Hope this helps...
THanks,
Jignesh Mehta -
Need to Create a Check for Plant in WBS & Plant in Network
Dear Guru's,
While creating Project (CJ01) my users are creating in a Plant, and while creating network for the same project/WBS, they are using different Plant Code.
Since my Profit center is related to the plant in CJ01,
and because of wrong Plant in network, all my PR/ PO is going in a different Profit center, which is creating a huge problem while auditing.
I need to Create a Check for Plant in WBS & Plant in Network...!!
Kindly suggest me the ways to do it and how to do it...Hi Deepa,
The Check you are trying to create between Plant defined at Project def and network level that should be same can be achieved through validation at the network level by using a user exit at network level.
While creating the network you can change the plant value not equal to the value at proj def/network profile may be one of the reason is since the network type is defined for more than one plant (OPUV).
While creating validations at network level we do not have the option of setting the prerequisite/check using WBS or Proj def fields (i.e. PROJ-, PRPS- fields) so we need to create a user exit at the network level.
I am not sure but logically u can have a user exit for both prerequisite and check steps of the validation.
You need to create the user exit in program ZGGBR000.
Please take help from your Abaper for the same.
OPSI-Network header-Validation- Step - Prerequisite u2013 Check u2013 Message.
Prerequisite
If Proj Profile = u2018XXXu2019 and Network Profile = u2018XXu2019 (or as per your logic if need be use a exit)
CHECK.
PROJ-WERKS = CAUFVD-WERKS (This logic needs to be defined in user exit and set the same user exit at the check.)
Once you define the user exit in ZGGBR000, it will be available in the tab u2018exitsu2019 at the Prerequisite and Check levels.
The name of the form pool (e.g., ZGGBR000) that contains your user exit must be stored in table T80D.
It is important that you make declare the code generation program for your user exit; how many and what type of parameters you are using for the user exit. You do this by entering your newly defined user exits in the form routine GET_EXIT_TITLES. Found in program ZGGBR000.
Check with your Abaper to check on all the aboveu2026
Message:
Plant at Network level should be same as at Project def level.
Hope it helps you,All the best..
Regards
Vinayak. -
Need help in developing BADI for IT0001
Hi All,
I need help in developing BADI for IT0001.
On IT0001 create or change, there is need to update IT0017 with following data from IT0001
-Company Code
-Cost center
-Business Area
-Begin and End Date.
Other fields from IT0017 need to be derived from Position and update in IT0017.
Please guide me how I can address this. I do not want to go for dynamic action, as it is not getting evoked during background jobs.
I am new to BADI development and will appreciate step by step instructions.
ThanksHi,
follow the below steps to achive
Steps:
1. Execute Business Add-In(BADI) transaction SE18
2. Enter BADI name i.e. HRPAD00INFTY and press the display
button
3. Select menu option Implementation->Create
4. Give implementation a name such as Z_HRPAD00INFTY
5. You can now make any changes you require to the BADI within this
implementation, for example choose the Interface tab there are 3 methods avialble
6. Double click on the method you want to change, you can now enter
any code you require.
7. Please note to find out what import and export parameters a
method has got return the original BADI definition
(i.e. HRPAD00INFTY) and double click on the method name
for example within HRPAD00INFTY contract is a method
8. When changes have been made activate the implementation
<b>Reward points</b>
Regards -
Do we need to create two zones for Two HBA for a host connected with SAN ?
Hi,While creating Zone , Do we need to create two zones for Two HBA for a host connected with SAN ? Or a zone is enough for
a host which having Two HBAs...We have two 9124s for our SAN fabric...
As I found like one zone below, I little bit confused that , if a host having two HBA connected with SAN, should I expect two zones for every Host?
from the zone set, I gave the command show zoneset
zone name SQLSVR-X-NNN_CX4 vsan 1
pwwn 50:06:NN:NN:NN:NN:NN:NN
pwwn 50:06:NN:NN:NN:NN:NN:NN
pwwn 10:00:NN:NN:NN:NN:NN:NN
But I found only one zone for the server's HBA2:by the same time in the fabric I found switches A & B showing the WWNs of those HBAs on its
connected N port...Its not only for this server alone, but for all hosts..Can you help me to clarify on this please..that should we need to create one zone for
one HBA?if u have two independent fabrics between hosts and storage, i think the below confs are recommended.
Scenario 1: 2 HBAs single port each ( redundancy across HBA / Storage port )
HBA1 - port 0 ---------> Fabric A ----------> Storage port ( FAx/CLx )
HBA2 - port 0 ---------> Fabirc B ----------> Storage port ( FAy/CLy )
Scenario 2: 2 HBAs of dual port each
HBA1 - port 0 -------> Fabric A ---------> Storage port ( FAx/CLx )
HBA2 - port0 ---------> Fabric A ---------> Storage port ( FAs/CLs )
HBA1 - port 1 --------> Fabric A --------> Storage port ( FAy/CLy )
HBA2 - port 1 ---------> Fabric B --------> Storage port ( FAt/CLt )
the zone which is in your output is VSAN 1. if its a production VSAN, Cisco doesn't recomends to use VSAN 1 ( default vsan ) for production. -
Uber Noob Needs Help Creating website!
I need help creating my webpage: It has a textbox on it were
the user enters a URL and it then redirects the end user to that
URL when they press the GO Button. It also has a check box saying
"Hide my IP", If the end user clicks this box and then clicks go
they will be directed to the website they stateted in the Textbox
but this time it shall mask there IP Address so they can bypass
proxys and surf anonomosly. Please can someone give me some HTML
code i could use for this site or a Link to a website that can give
me the code.I assume the application is connecting to Oracle using an application ID/password. If so, check to see if that user has a private synonyn to the table. If so drop it since you have a public synonym.
Verify that the public synonym is in fact correct. Drop and recreate the public synonym if you cannot select against the synonym name using an ID that can perform select * from inhouse.icltm where rownum = 1. That is if this other user cannot issue select * from icltm where rownum = 1 without an error.
Check that the application ID has the necessary object privileges on the table.
Queries you need
select * from dba_synonyms
where table_owner = 'INHOUSE'
and table_name = 'ICLTM'
You may find both public and private synonms. Either fix or delete. (Some may reference someelses.icltm table if one exists)
select * from dba_tab_privs
where table_name = 'ICLTM'
and owner = 'INHOUSE'
Note - it is possible to create mixed case or lower case object names in Oracle by using double quotes around the name. Do not do this, but do look to see that this was not done.
You could also query dba_objects for all object types that have the object_name = 'ICLTM'
HTH -- Mark D Powell -- -
We are a family of 4, each with their own apple device. Is it best for us to set up individual apple ID's for things like ITunes? If we do can the same e-mail address be used for all of them or do we need to create e-mails for the kids?
Thank-you1. Yes, it is.
2. You may be able to use the same address by adding a plussed suffix to it, such as [email protected] If that doesn't work, create separate emails.
(103279) -
Do we need to create message interfaces for idocs and rfcs thatare imported
do we need to create message interfaces for idocs and rfcs thatare imported
from sap server
in scenarios from sap system to file or vice versa
i knew that we need not create message types
do we also skip creating message interfaceshi,
you create an abstract message interface for IDOC only if you want to use
them in a BPM (integration process)
for more about IDOCs have a look at my book:
<a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Do I need to create new group for standby redo log files?
I have 10 group of redo log files with 2 members for each group for my primary database , Do I need to create new group for standby redo log files for the standby database
Group# Members
==============
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
If So, The following statment is correct? or nto
ALTER DATABASE ADD STANDBY LOGFILE GROUP 1 ('D:\Databases\epprod\StandbyRedoLog\REDO01.LOG',D:\Databases\epprod\StandbyRedoLog\REDO01_1.LOG');
please correct me if am doin mistake
becuase when I issue the statment I getting error message sayin the group is already created.Thanks John
I just find the answer
Yes, it's recomeded to add new group , for instnace If I have 10 group from 1 to 10 then the standby shoudl be from 11 to 20
Thanks I found the answer. -
I need help scrolling and highlighting for a vast amount of pics that I'm trying to transfer. I have a macbook pro osx 10.5.8
I need help scrolling and highlighting for a vast amount of pics that I'm trying to transfer. I have a macbook pro osx 10.5.8
-
i need to create an ID for each of my daughters it says DO NOT MEET MINIMUM AGE REQUIREMENT very frustrated
If u haven't resolved this issue yet, I just did.
What I did:
1. Toggle the hold switch (turn it on and off)
2. Reset to 'Disk Mode'
by pressing the 'Play' and center buttons
simultaneously
(it may take a couple of trials to get it right)
3. Update iPod with latest iTunes in Disk mode.
4. Incase the 'Can't find firmware' error msg is displayed,
follow the instructions in the link given below:
http://docs.info.apple.com/article.html?artnum=304309
Toshiba SatelliteA30-203, Compaq Presario 3000 Windows XP Pro
Maybe you are looking for
-
How I fixed my Powerbook G4 Trackpad Button
I'd like to share a solution I've found to a problem that plagued me. For months, my trackpad would intermittently act sticky. I thought it was the trackpad itself, but as the problem became more frequent and intense, I realized that it was the butto
-
JDK 1.6 - XML, Xerces and DOMParser - Help?
Please bear with me while I try to explain this thoroughly.... I perviously wrote a JSP page using the following: Tomcat 5.5.x JDK 1.5x imports: org.w3c.dom.*, org.apache.xerces.parsers.*, org.xml.sax.* I have since upgraded to: Tomcat 6.0.x JDK 1.6x
-
Order confirmation issue output through output device sent email
Hi: We set a output device type is eMail. When I print out order confirmation that I can to select output device 'email' and will display a field of email address to input email address. That is work in PRD, but in the DEV alway can't displ
-
pourquoi un diaporama en lecture automatique ne redémarre pas après un arrêt manuel (transition de diapositive manuelle) ?
-
I made a path how can I select it
i made a path how can I select it