I've just started learning Lisp and I can't figure out how to compile and link lisp code to an executable.
Im using clisp and "clisp -c" produces two files .fas and .lib, what do I do next to get an exeutable?
I've been up and down the Wikipedia API, but I can't figure out if there's a nice way to fetch the excerpt of an article (usually the first paragraph). It would be nice to get the HTML formatting of that paragraph, too.
The only way I currently see of getting something that resembles a snippet is by performing a fulltext search (example), but that's not really what I want (too short).
Is there any other way to fetch the first paragraph of a Wikipedia article than barbarically parsing HTML/WikiText?
So what I'm trying to do here is get the headers of a given URL so I can determine the mime-type. I want to be able to see if http://somedomain/foo/ will return an html document or a jpg image for example. Thus, I need to figure out how to send a HEAD request so that I can read the mime-type without having to download the content. Does anyone know of an easy way of doing this?
I am developing a Crystal Report in Visual Studio 2008.
I am trying to implement optional parameters so that a user does not have to specify a value or range for a particular field. Essentially, this means there is no filtering done on that field if the user wishes.
However, I can't seem to figure out how to do this. Does anyone have any ideas?
Let me know if more information is required.
I can't figure out how to forward declare a windows struct. The definition is
typedef struct _CONTEXT
{
....
} CONTEXT, *PCONTEXT
I really don't want to pull into this header, as it gets included everywhere.
I've tried
struct CONTEXT
and
struct _CONTEXT
with no luck (redefinition of basic types with the actuall struct in winnt.h.
What would be the reason for the following errors though the syntax was right and I have included the coreservices framework in which some data type and constants are declared.
" c.c:22: error: syntax error before ‘CFFileDescriptorRef’
c.c:22: warning: no semicolon at end of struct or union
c.c:24: error: syntax error before ‘}’ token
c.c:24: warning: data definition has no type or storage class
lipo: can't figure out the architecture type of: /var/folders/fF/fFgga6+-E48RL+iXKLFmAE+++TI/-Tmp-//ccFzQIAj.out "
I'm writing a Visual Studio editor extension using the VS 2010 SDK RC. I'd like to be able to figure out what the references of the current project are. How do I get access to the project corresponding to the current editor?
The documentation on editor extensions doesn't seem to include information on how to access non-editor parts of Visual Studio. I did some searching and it looks like in VS2008 you could write add-ins that would access the project system, but I'm trying to get at this functionality from a MEF editor extension.
I'm in a strange situation where I have a value of 0.5 and I want to convert the values from 0.5 to 1 to be a percentage and from 0.5 to 0 to be a negative percentage.
As it says in the title 0.4 should be -20%, 0.3 should be -40% and 0.1 should be -80%.
I'm sure this is a simple problem, but my mind is just refusing to figure it out :)
Can anyone help? :)
I'm trying to figure out the jQuery statement to rename "apple" with "orange:"
<a id="#alvin" href="http://www.camille.com"><ins class="xxx">Anna</ins>apple</a>
Can this be done easily?
I am still trying to figure out the right architecture for a complex ASP.NET MVC web application.
I looked in a lot of example code and everywhere it's done differently.
I would really appreciate your thoughts on this.
Another Question: Would you use Linq to SQL or the Entity Framework?
Thanks,
-Ben
Hi All,
I am able to record and create audio files using AudioFileCreateWithURL in the AudioToolbox Framework.
I want to figure out if there is any way to edit the .caf sound files. I want to insert another recoreded audio inside the main audio file.
Any thoughts or suggestions how to proceed ??
Thanks.
I have a CSV dump from another DB that looks like this (id, name, notes):
1001,John Smith,15 Main Street
1002,Jane Smith,"2010 Rockliffe Dr.
Pleasantville, IL
USA"
1003,Bill Karr,2820 West Ave.
The last field may contain carriage returns and commas, in which case it is surrounded by double quotes.
I use this code to import CSV into my table:
BULK INSERT CSVTest
FROM 'c:\csvfile.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
SQL Server 2005 bulk insert cannot figure out that carriage returns inside quotes are not row terminators.
How to overcome?
This piece of code gives a syntax error at the colon of "elif process.loop(i, len(list_i) != 'repeat':" and I can't seem to figure out why.
class process:
def loop(v1, v2):
if v1 < v2 - 1:
return 'repeat'
def isel(chr_i, list_i):
for i in range(len(list_i)):
if chr_i == list_i[i]:
return list_i[i]
elif process.loop(i, len(list_i) != 'repeat':
return 'error'()
Hello Everyone,
I have started working on a software synthesizer (or keyboard). I have decided to use Java because of the available Jfugue API. I am trying to figure out how to go about creating the actual keys (notes) of the keyboard user interface, but I am stuck. I have tried to create an interface by dragging/dropping black and white rectangular buttons onto the panel, but that doesn't seem to work. Could someone point me into the right direction?
As far as i know every element in HTML associated with padding(left, right, top, bottom) , margin(left, right, top, bottom) which will create the box model for that so that we can figure it out its actual position with respect to document.
any idea over it?
I'm having a huge block trying to understand "trees" while making a Tic-Tac-Toe bot. I understand the concept, but I can't figure out to implement them.
Can someone show me an example of how a tree should be generated for such a case? Or a good tutorial on generating trees? I guess the hard part is generating partial trees. I know how to implement generating a whole tree, but not parts of it.
I'm building my first ASP.NET MVC website, and I'm trying to figure out how to implement a 404 page.
Should I create a controller called "404Controller?" If so, how do I then register this Controller with IIS so that it redirects 404s to that page? Also, in a situation where something is not found (in the database, for example) by some other Controller code, how would I redirect the request to my 404 page?
I'm trying to figure out a way to make demos for a program I've written with xlib, and I came across this, but, according to the author page:
This extension is not intended to support general journaling and playback of user actions.
Does anyone know of any functions in xlib that are intended to support playback of user actions? Does it even exist? Or could I just use this without any real problems?
I am working with Zend_Auth and cookie/session persistence. I can't seem to figure out how to force an authentication with this class.
Is there any way to force Zend_Auth to believe it has authenticated as a user?
I am not been able to update any of the attributes in one of my feature classes using the Arc FM Attribute editor, but I am able to update it thru the ESRI Attribute editor.
Please lemme know if somebody knows the reason.
I am using Arc SDE 9.3.1 with ArcFM 9.3 and ArcMap 9.3
Note:I am in selection Tab and not in Target tab.
Please let me know if sombody can figure out the reason.
Vinay
[email protected]
I am trying per instructions here:
http://www.innovation.ch/java/HTTPClient/advanced_info.html
However, if I am using HTTP Builder, the following lines
System.setProperty("HTTPClient.cookies.save","true")
System.setProperty("HTTPClient.cookies.jar","/home/misha/.httpclient_cookies")
do not seem to create a file:
~/.httpclient_cookies
I will post a solution as always when figure it out.
:)
Misha
I am having trouble with paths in ruby on rails
My Routes:
map.resources :companies do |company|
company.resources :customers do |customer|
customer.resources :jobs
end
end
Currently I am creating the paths by hand:
<td><%= link_to 'Show', "/companies/#{params[:company_id]}/users/#{user.id}" %></td>
<td><%= link_to 'Edit', "/companies/#{params[:company_id]}/users/#{user.id}/edit" %></td>
For some reason I cant figure out how to get new_company_user to work I keep getting errors.
The routes are all there I just need help with dynamically creating them by using the API
To create a scheduled class, I call the schtasks command from my code, passing it the necessary arguments. Yet, I can't really figure out how to create a task without the user having to input his password.
Hello all,
I am working on writing a simple python application for linux (maemo). However I am getting SyntaxError: invalid syntax on line 23: with open(file,'w') as fileh:
The code can be seen here: http://pastebin.com/MPxfrsAp
I can not figure out what is wrong with my code, I am new to python and the "with" statement. So, what is causing this code to error, and how can I fix it? Is it something wrong with the "with" statement?
Thanks!
I am unable to figure out how to connect to the MySQL database from Pentaho Design Studio. I created a process action to get data from relational. In the JDBC option is asking for JDBC driver - how do I specify that? Or any other method of connecting to the db?
Thanks...