hi all,
is it possible to write database methods in properties file, like some database queries and can be accessed using servlets which may reduce the code?
please any body help
I want define a functions that accepts &rest - parameters and delegates them to another function.
(html "blah" "foo" baz) = "blahfoobaz"
I did not find a better way than this one:
(defun html (&rest values)
(concatenate 'string
""
(reduce #'(lambda(a b) (concatenate 'string a b)) values :initial-value "")
""))
But this looks somewhat glumbsy to me, since line 4 does no more than concatenating the &rest parameter "values". I tried (concatenate 'string "" (values-list values) "") but this does not seem to work (SBCL). Could someone give me an advice?
Kind regards
This works:
view layout [
box white 728x90 effect reduce [ 'gradient 0x1 sky]
font [align: 'center size: 40 color: red] "Your banner text"
]
But how do I add other lines ?
Thank you.
By what i understand String and StringBuilder objects both allocate contiguous memory underneath.
My program runs for days buffering several output in a String object. This sometimes cause outofmemoryexception which i think is because of non availability of contiguous memory. my string size can go upto 100MBs and i m concatenating new string frequently this causes new string object being allocated. i can reduce new string object creation by using Stringbuilder but that would not solve my problem entirely
Is there an alternative to a contiguous string object?
How do these filters affect the output of imagepng() in PHP?
PNG_NO_FILTER
PNG_FILTER_NONE
PNG_FILTER_SUB
PNG_FILTER_UP
PNG_FILTER_AVG
PNG_FILTER_PAETH
PNG_ALL_FILTERS
The documentation simply says, "A special PNG filter, used by the imagepng() function" for each of them.
It seems that using PNG_NO_FILTER will reduce the filesize of the output, but other than that, I am unsure as to how it is affected. Any insight would be really appreciated.
Hello,
For a Facebook-like site, ie. which is write-intensive and delivers user-customized pages, I'd like to build a prototype to investigate whether the document-centric NoSQL architecture would be a good alternative to sharding and reduce the load on the single master (+ multiple slaves) that we currently use and is the bottleneck.
Does someone know of a good article that would give actual, simple examples of going from a relational layout in MySQL to a NoSQL layout?
Thank you.
let's say I have a config.txt which contains:
"param11" "param12"
"param21" "param22"
I'll load it in memory with
config: load %config.txt
I can save it back with
save %config.txt config
So far so good. Now the problem occurs for me when I want to add
"param31" "param32"
I have tried
append config reduce [newline "param31" "param32"]
save %config.txt config
But that doesn't give the expected result
"param11" "param12"
"param21" "param22"
"param31" "param32"
but this instead
"param11" "param12"
"param21" "param22" #"^/" "param31" "param32"
So how to ?
Hi there,
is there a way to reduce the space between two sections of a UITableView? There are about 15 pixel between every single section I have. I did already try to return 0 for -tableView:heightForFooterInSection: and -tableView:heightForHeaderInSection: but that doesn't change anything.
Any suggestions? Thanks in advance.
–f
I've written an Html Helper called DetailsForm to reduce repetition when displaying fields in a view. Within a view - actually a partial view, ascx file - I can refer to it like this:
Storyboard.Helpers.DetailsForm.LabelAndData(Html, m => m.id)
But would like to refer to it like this:
LabelAndData(Html, m => m.id)
A 'using' directive doesn't seem to be allowed in the ascx file. Is there an equivalent?
Hi i am working on some high resolution display features in which have to draw the vertical line , i am using Moveto() and lineTO() , but it is much time taking...
can anyone suggest me , what we can use instead of it ...to optimize the performance...
see the scene is , in order to draw 100 Vertical lines it is taking 84ms time, we need to reduce it to 5 ms something..
please refer me any alternate fot that.
Thanks,
Mukesh
I am developing an iPad application where i want to reduce the textsize in a segment in a UISegmentController.Please help. I also want to change the selected segment color. currently the default color we get when a segment is selected is blue. I want to change it to red. Please help me if anyone is aware of these solutions. I am trying to use a Xib file to make the segments.
It's common to declared contained objects as a pointers to that class, while "forward declarating" them in header file. This in order to reduce physical dependencies in code.
For example
class B; // forward declaration
class A {
private:
B* pB;
};
Would it be good idea to declare such a member as shared_ptr, instead of naked pointer?
I would prefer scoped_ptr, but AFAIKit it won't be in standard.
I has a table as shown in this figure:
The latex code for the table is:
\begin{table}
\begin{tabular}{ | c | c | }
\hline
\includegraphics[scale=0.45]{../0_1.eps} & 1.10 2.20 3.30 4.40 \\
\hline
\end{tabular}
\end{table}
I would like to make the four numbers appear in different line inside the second cell, in order to reduce its width. I wonder how to do it?
Thanks and regards!
I'm a newbie at networking. I understand the concept of multicast, but was wondering if it's reliable on the open/public internet?
It seems like sort of an edge case that different backbones or ISPs might intentionally break to reduce router load or generally segment the network for practical high-use applications.
Is my fear reasonable?
P.S. Follow-up question here:
http://stackoverflow.com/questions/256125/best-tutorial-for-application-multicasting
How can you stop the dev team from padding their numbers when it comes to creating task times? How is there any motivation for them to do their work if there are no real deadlines and they are just measured against their velocity.
Get the job done by this deadline
vs
Get the job done whenever we will reduce scope, quality or increase resources
Inserting (pasting from clipboard) of text constants in the Delphi code editor requires some manual "postprocessing" ...
split up long text into multiple lines (and insert the string concatenation symbol)
escape quotes (replace single quotes with double quotes)
enclose the string with quotes
keep original white space (leadinng blanks, line feeds)
Is there a IDE plugin available which helps to reduce these manual steps?
Which is better in respect to performance and memory utilization?
// + Operator
oMessage.Subject = "Agreement, # " + sNumber + ", Name: " + sName;
// String.Format
oMessage.Subject = string.Format("Agreement, # {0}, Name: {1}", sNumber, sName);
My preference is memory utilization. The + operator is used throughout the application. String.Format and StringBuilder is rarely use. I want to reduce the amount of memory fragmentation caused by excessive string allocations.
For example, I have a few python scripts, that link together and some libraries for it that need to be imported. I'm trying to reduce it to only one script.
So instead of:
import library.py
Can I just take the coding from library.py and put into the main script?
How can I reduce the amount of similar commands into a loop?
Something like
pictureBox7.BackColor = Color.FromArgb(187, 187, 187);
pictureBox9.BackColor = Color.FromArgb(187, 187, 187);
pictureBox10.BackColor = Color.FromArgb(187, 187, 187);
pictureBox11.BackColor = Color.FromArgb(187, 187, 187);
pictureBox12.BackColor = Color.FromArgb(187, 187, 187);
pictureBox13.BackColor = Color.FromArgb(187, 187, 187);
G2g for now, will add on later.
Hey,
I'm working on some old(ish) software in PHP that maintains a $cache array to reduce the number of SQL queries. I was thinking of just putting memcached in its place and I'm wondering whether or not to get rid of the internal caching. Would there still be a worthwihle performance increase if I keep the internal caching, or would memcached suffice?
I realize that it would probably require boosting antenna power and thus reduce battery life but, if I am prepared to accept that, can I programatically extend wifi range?
I am developing an iPad application where i want to reduce the textsize in a segment in a UISegmentController.Please help. I also want to change the selected segment color. currently the default color we get when a segment is selected is blue. I want to change it to red. Please help me if anyone is aware of these solutions
We use a fucking ridiculous amount of goddamn bandwith man. It really pisses me off because now I have to fucking upgrade my goddamn account and my site doesn't make jack shit for money.
So how the fuck can I automatically reduce the whitespace and shit? I'm GZipping the output already.
Is there any interpreter that takes a string or even a custom object as input and execute it on my datasource?
I cannot use linq to object because query always changes and the report i'm working on, has about 6000 queries which i can reduce to 9 if i find some tool doing that for me.
Opensource is very applicable.
thanks in advance.
I have a site that sells cars. On the frontend, I want to only show cars that are published, and on the backend I want to show all cars. Whether a car is published or not depends on a number of factors, so I wanted to create a view to simplify this.
My question is, can I reduce duplication by dynamically telling NHibernate to sometimes use the "PublishedCar" view and something use the "AllCar" view when querying/fetching Car entities?