text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

What's the cleanest way to handle a case such as this:

func a() string {
    /* doesn't matter */

b *string = &a()

This generates the error:

cannot take the address of a()

My understanding is that Go automatically promotes a local variable to the heap if its address is taken. Here it's clear that the address of the return value is to be taken. What's an idiomatic way to handle this?

share|improve this question

5 Answers 5

up vote 4 down vote accepted

The address operator returns a pointer to something having a "home", e.g. a variable. The value of the expression in your code is "homeless". if you really need a *string, you'll have to do it in 2 steps:

tmp := a(); b := &tmp

Note that while there are completely valid use cases for *string, many times it's a mistake to use them. In Go string is a value type, but a cheap one to pass around (a pointer and and an int). String's value is immutable, changing a *string changes where the "home" points to, not the string value, so in most cases *string is not needed at all.

share|improve this answer
or return a *string from a() –  thwd May 10 '12 at 18:05
you can also take the address of a composite literal, which doesn't have a "home" –  newacct May 10 '12 at 22:53
Composite literal doesn't necessarily have a home, but the specs guarantee that a composite literal which address is taken by the & operator has a "home" (no other option possible anyway, otherwise there would be no address to take). –  zzzz May 11 '12 at 7:11

See the relevant section of the Go language spec. & can only be used on:

  1. Something that is addressable: variable, pointer indirection, slice indexing operation, field selector of an addressable struct, array indexing operation of an addressable array; OR
  2. A composite literal

What you have is neither of those, so it doesn't work.

I'm not even sure what it would mean even if you could do it. Taking the address of the result of a function call? Usually, you pass a pointer of something to someone because you want them to be able to assign to the thing pointed to, and see the changes in the original variable. But the result of a function call is temporary; nobody else "sees" it unless you assign it to something first.

If the purpose of creating the pointer is to create something with a dynamic lifetime, similar to new() or taking the address of a composite literal, then you can assign the result of the function call to a variable and take the address of that.

share|improve this answer
If a function returns a non-pointer value, it seems clear to me that its assumed the return value is stored on the stack. But if you immediately take the address of the return value, I don't see any ambiguity of promoting storage for the return onto the heap, as per normal? Hell, since the caller frame hasn't had any opportunity to make use of the return value yet, the caller could easily copy the result directly into the heap upon return. –  Matt Joiner May 11 '12 at 10:02
+1 for the spec reference –  Matt Joiner May 12 '12 at 9:24

In the end you are proposing that Go should allow you to take the address of any expression, for example:

i,j := 1,2
var p *int = &(i+j)

The current Go compiler prints the error: cannot take the address of i + j

In my opinion, allowing the programmer to take the address of any expression:

  • Doesn't seem to be very useful (that is: it seems to have very small probability of occurrence in actual Go programs).
  • It would complicate the compiler and the language spec.

It seems counterproductive to complicate the compiler and the spec for little gain.

share|improve this answer
Hm this actually makes a lot of sense. I overlooked the fact that the function call is an expression. –  Matt Joiner May 11 '12 at 12:44
The error message appears to be pretty clear about how Go interprets &(i + j), but maybe not. It'd be reasonable (maybe not in Go) for a programmer to interpret this as meaning "the address of the value resulting from the execution of the expression (i + j)", and some actually are interpreting it like that. (I've no opinion as to whether Go is right or wrong... but is 'a' an expression? &a works for it, '&(a)' works too :-) So, is Go objecting to an expression or a stack allocated value (and simply calling it by the name "i + j")? Does it matter? –  hutch May 11 '12 at 15:37
@hutch Go (at least in the current implementation) is objecting to the expression. From programmer viewpoint it doesn't matter how the compiler is doing it. –  Atom May 11 '12 at 17:52

I recently was tied up in knots about something similar.

First talking about strings in your example is a distraction, use a struct instead, re-writing it to something like:

func a() MyStruct {
    /* doesn't matter */

var b *MyStruct = &a()

This won't compile because you can't take the address of a(). So do this:

func a() MyStruct {
    /* doesn't matter */

tmpA := a()
var b *MyStruct = &tmpA

This will compile, but you've returned a MyStruct on the stack, allocated sufficient space on the heap to store a MyStruct, then copied the contents from the stack to the heap. If you want to avoid this, then write it like this:

func a2() *MyStruct {
  /* doesn't matter as long as MyStruct is created on the heap (e.g. use 'new') */

var a *MyStruct = a2()

Copying is normally inexpensive, but those structs might be big. Even worse when you want to modify the struct and have it 'stick' you can't be copying then modifying the copies.

Anyway, it gets all the more fun when you're using a return type of interface{}. The interface{} can be the struct or a pointer to a struct. The same copying issue comes up.

share|improve this answer

a() doesn't point to a variable as it is on the stack. You can't point to the stack (why would you ?).

You can do that if you want

va := a()
b := &va

But what your really want to achieve is somewhat unclear.

share|improve this answer
Well no, now I believe va will be stored on the heap. –  Matt Joiner May 10 '12 at 18:18
Can someone confirm that in the example code given, va will be stored on the heap because of the address operator on the following line? –  Matt Joiner May 11 '12 at 12:45
The real question seems to be "will the value of va be cleaned by the GC if the declaring block is garbaged but b still exists ?". Isn't it ? I think the value won't be garbaged due to the pointer in b. –  Denys Séguret May 11 '12 at 12:56
A round about way of saying "yes, unless its not required". –  Matt Joiner May 11 '12 at 17:11

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


Content-Type: application/http; msgtype=response

WARC-Type: response

text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need to XOR one integer a against array of integers q (max of 100,000). i.e. if i am looping, I will

a XOR q[0]

a XOR q[1]

a XOR q[100000]

(100,000 times)

I will have a series of such a to be XORed.

I am writing a console application which will be pass the required input.

I am using the built-in C# ^ operator to do the XOR operation. Is there any other way?

Would converting the integer to a byte array and then XORing each bit and figuring out the end result be a good idea?

Input (don't keep the spaces between the two lines)

15 8

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

10 6 10

1023 7 7

33 5 8

182 5 10

181 1 13

5 10 15

99 8 9

33 10 14

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XOR
    class Solution
        static void Main(string[] args)

            List<TestCase> testCases = ReadLine();
            CalculationManager calculationManager = new CalculationManager();

            foreach (var testCase in testCases)
                var ints = testCase.Queries.AsParallel().Select(query => calculationManager.Calculate(query, testCase.SequenceOfIntegers)).ToList();

        private static List<TestCase> ReadLine()
            int noOfTestCases = Convert.ToInt32(Console.ReadLine());
            var testCases = new List<TestCase>();

            for (int i = 0; i < noOfTestCases; i++)
                string firstLine = Console.ReadLine();
                string[] firstLineSplit = firstLine.Split(' ');
                int N = Convert.ToInt32(firstLineSplit[0]);
                int Q = Convert.ToInt32(firstLineSplit[1]);

                var testCase = new TestCase
                                       Queries = new List<Query>(),
                                       SequenceOfIntegers = ReadLineAndGetSequenceOfIntegers()

                for (int j = 0; j < Q; j++)
                    var buildQuery = ReadLineAndBuildQuery();

            return testCases;

        private static List<int> ReadLineAndGetSequenceOfIntegers()
            string secondLine = Console.ReadLine();
            List<int> sequenceOfIntegers = secondLine.Split(' ').ToArray().Select(x => Convert.ToInt32(x)).ToList();
            return sequenceOfIntegers;

        private static Query ReadLineAndBuildQuery()
            var query = Console.ReadLine();
            List<int> queryIntegers = query.Split(' ').ToArray().Select(x => Convert.ToInt32(x)).ToList();
            Query buildQuery = ReadLineAndBuildQuery(queryIntegers[0], queryIntegers[1], queryIntegers[2]);
            return buildQuery;

        private static Query ReadLineAndBuildQuery(int a, int p, int q)
            return new Query { a = a, p = p, q = q };

    class CalculationManager
        public int Calculate(Query query, List<int> sequenceOfIntegers)
            var possibleIntegersToCalculate = FindPossibleIntegersToCalculate(sequenceOfIntegers, query.p, query.q);
            int maxXorValue = possibleIntegersToCalculate.AsParallel().Max(x => x ^ query.a);
            return maxXorValue;

        private IEnumerable<int> FindPossibleIntegersToCalculate(List<int> sequenceOfIntegers, int p, int q)
            return sequenceOfIntegers.GetRange(p - 1, (q - p) + 1).Distinct().ToArray();

    class TestCase
        public List<int> SequenceOfIntegers { get; set; }
        public List<Query> Queries { get; set; }

    class Query
        public int a { get; set; }
        public int p { get; set; }
        public int q { get; set; }
share|improve this question
Nothing is going to be faster than the built-in operator. –  alpha123 May 12 '12 at 23:01
what are you trying to achieve? There might be a faster way depending on that –  BrokenGlass May 12 '12 at 23:02
You trying to do an "encryption" function which this? –  Marc B May 12 '12 at 23:03
C# has built-in array bounds checking, doesn't it? That will slow the thing right down. You need to write it in assembly language, or at the very least C or C++. –  TonyK May 12 '12 at 23:05
@TonyK not true: the JIT can eliminate bounds checks on classic vector "for" loops, or alternatively: use unsafe code and avoid the bounds check in the first place. –  Marc Gravell May 12 '12 at 23:08

4 Answers 4

Using the ^ bit-wise xor operator is the fastest way to xor integers.

The operation is translated to a single atomic processor operation.

As you can see in the disassembly:

        int i = 4;
00000029  mov         dword ptr [ebp-3Ch],4
        i ^= 3;
00000030  xor         dword ptr [ebp-3Ch],3

So if you wish to make your code run faster, you should change the algorithm / approach (as suggested by Marc Gravell), not the xor method.

share|improve this answer

The only thing I'd even try (if there was reason to think the int approach was too slow) would be to use unsafe code to treat each int[] as a long*, and use 64-bit arithmetic (again, using ^) instead of 32, half the iterations, and a bit less indirection. IIRC that is pretty much what I did for some web-socket code (applying web-socket masks for client-to-server messages is a bulk XOR). You'd need to be careful for the last few bytes, obviously.

share|improve this answer
@YoryeNathan nicely done –  Marc Gravell May 12 '12 at 23:31
Marc, you know that there is a problem referencing your name with '@'? I suspect it is because of the special character in your nickname. –  Yorye Nathan May 12 '12 at 23:34
There was a small bug in the code I've posted. Here it is now, fixed: pastebin.com/iXmTHS51 and by the way, I've tested speeds for this method vs unsafe with int* method, and the long generally takes 65% the time that the int does. So +1 for thinking about it! –  Yorye Nathan May 12 '12 at 23:54
There's no problem with @MarcGravell... –  Cody Gray May 13 '12 at 8:39

If you have to xor more elements called a (as you said) against the array you can speed this up the following way:

int x = q[0]
for(int i = 1; i < q.Length; i++)
   x ^= q[i]

a1 ^= x
a2 ^= x

EDIT: Sorry, than basically the other way around

int x = a1 ^ a2 ^ ... an
for(int i = 0; i < q.Length; i++)
     q[i] ^= x
share|improve this answer
This does not solve the OP's question. Pay attention to details. –  Yorye Nathan May 12 '12 at 23:47
Still doesn't solve. x is a simple mask. It is given. And anyway, you wouldn't expect him to hardcode a1 ^ a2 ^ ... an, right?! What YOU have implemented, assuming the first line is actually implemented with a loop to perform that logic, xors each element with the xor of all elements. –  Yorye Nathan May 12 '12 at 23:55
And even if you fix your algorithm, it STILL doesn't solve the OP's question, because he already had that solution. He was looking for a faster way than a simple loop. –  Yorye Nathan May 12 '12 at 23:57
Hardcoding only if there are a few one ;). If there are n elements of a, and q has a length of 100000 my algorithm needs n + 100000 iterations, while the one he discribed needs n * 100000 –  raisyn May 13 '12 at 0:01
"Assuming the first line is actually implemented with a loop to perform that logic, xors each element with the xor of all elements." Xoring an element with all elements is the same thing as xor an element with the "xoring" of all elements –  raisyn May 13 '12 at 0:08

XOR is a fast operation so your application will be limited by the rate you can generate the integers.

If you just xor them as they become available the xor time will be neglectable regardless of method.

e.g. if you read the integers from a text file. The disk io + parse time will be several magnitudes bigger than the xor time. The operating system will also use read-ahead which in practice means that it fetches the next batch of integers while you process the current batch. This means that parsing + xor adds no extra time to the overall processing time except for the last batch.

share|improve this answer

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.

warcinfo:
robots: classic
hostname: ip-10-180-206-219.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-22
operator: CommonCrawl Admin
description: Wide crawl of the web for May 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have this simple program:

// Include libraries

#include <iostream>
#include <string>
#include <vector>

using namespace std;

// Include locals

// Start

#define NUMBER 600851475143

int main(int argc, const char* argv[])
    long long int ans = 0;
    long long int num = NUMBER;

    vector<int> factors;

        // Get lowest factor

        for (int i = 1; i <= num; ++i)
            if (!(num % i))

                num /= i;
    } while (num > 1);

    cout << "Calculated to 1.\n";

    int highestFactor = numeric_limits<int>::min();

    for (int i = 0; i < factors.size(); ++i)
        if (factors[i] > highestFactor)
            highestFactor = factors[i];

    ans = highestFactor;

    cout << ans << endl;

    return EXIT_SUCCESS;

compiling with g++ -O2 -c -o prob3.o prob3.cpp proved successful, but when I ran it I saw nothing and it just kept running and I had to Ctrl-C (force-kill) it in the end. When I try to add

int main(int argc, const char* argv[])
    cout << "Test\n";

to the program, Test didn't get printed too. It's like my program is not executed at all.

Any help or advice is appreciated!

I forgot prime numbers started at 2. Change for (int i = 1 to for (int i = 2.

share|improve this question
Do you see it as running in your task manager/ps ? –  amit Dec 20 '12 at 15:21
Your compile command won't produce an executable, just an object file. Do you have a link step as well? –  Fred Larson Dec 20 '12 at 15:21
Try cout << "Test" << endl; endl flushes the stream, which for once (i.e., it's rare) is a good thing to do. –  Jerry Coffin Dec 20 '12 at 15:21
@FredLarson yes I did. It was in the makefile. –  ihsoy ih Dec 20 '12 at 15:23
@ihsoyih: Ok, I just wanted to make sure it wasn't a silly build issue. –  Fred Larson Dec 20 '12 at 15:27

4 Answers 4

up vote 7 down vote accepted

Those nested loops are going to loop forever. The inner for loop will only ever execute once because of the break so it will only ever do num /= 1. That means num never decreases and so num > 1 will never be false. I suppose you just need to wait longer!

The reason you're not seeing "Test" is probably because you haven't flushed the output. Try:

std::cout << "Test" << std::endl;
share|improve this answer
Ahh, it's flushing now. Thanks! I'll just have to check my loop... –  ihsoy ih Dec 20 '12 at 15:25
@ihsoyih I updated. It's not just taking a long time, it's taking forever. –  Joseph Mansfield Dec 20 '12 at 15:26
@ihsoyih just change the 1 in the inner loop to a 2. –  Jacob Abrahams Dec 20 '12 at 15:28
Thanks guys! I updated 1 to 2. I forgot prime numbers start at 2 :P –  ihsoy ih Dec 20 '12 at 15:35

Your program is simply running. It takes a long time to execute.

For the cout << "Test\n";, it's a matter of the cout stream not being flushed: what you wrote to the stream is still in your program memory and not yet flushed to the system to be printed.

share|improve this answer

Have you tried to start your for condition from 2? The module function doesn't have sense if start from 1.

if (!(num % i))

Num / 1 give 0, so you're not enter in the if condition

share|improve this answer
lol, yeah. Mathematic's problem. –  ihsoy ih Dec 20 '12 at 15:38

Your loop is an infinite loop. The first factor you find is 1 (since num % 1 is 0) and as such you divide num by 1 which results in num which re-enters the for loop, which does the same again and again.

Also with this fixed (initialize i in the loop with 2), your inner for loop is most likely an infinite loop and/or causing UB. Otherwise (as the others stated) it is "just" running very long. For the case where it is different (assuming most common platforms here). This depends on the value you are trying to factor, if the first factor is smaller than std::numeric_limits<int>::max() then this does not apply. Lets call those primes BIGPRIME (600851475149 would be a good example).

long long int is at least 64bit in size. int is unlikely to be bigger than 32bit on most platforms, so when it is not bigger on your platform it can only go up to std::numeric_limits<int>::max() which is (again assuming the common 32bit platform here) 2147483647 which is in turn promoted in the comparison to long long int but keeps its value, which is always smaller than BIGPRIME. Always increasing i does never get anywhere, and once you are at max() you enter UB land as signed integers don't wrap in C++. Your code might infinite loop there, or do some things like recording -1 as a valid factor, or make you pregnant.

You can easily observe that by adding some

if( 0 == (i%100000000)){ std::cout << i << std::endl; }

into the for loop.

share|improve this answer

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I try to get the Subgroup of a Group in the standard Cognos Namespace.

Quering the Contentstore to get ALL groups works fine. The standard methodes to get "members" of objects return the users or only the "root" group (the group I want the subgroups of). Nothing else....

Am I doing something wrong or is it just "not to be done" ?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I found a way of doing it:

Assuming you have the searchpath for the group you want the subgroups of. Query the contentstore for it with following PropEnum:

PropEnum[] props = {
    PropEnum.members };

As result you get a BaseClass[] object (with only one element though...). Import com.cognos.developer.schemas.bibus._3.Group <--- this is part of the Cognos SDK libraries and now you can cast the object[0] to Group.

object.getMembers().getValue()[] is an array of all members INCLUDING groups, roles, accounts.

In java it looks like this (query for the object already done):

Group group = (Group)object[0];
BaseClass obj = null;
for (int i = 0; i < group.getMembers().getValue().length; i++){
   obj = group.getMembers().getValue();
share|improve this answer

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Is there a shorter way to write this?

var needed = /\$\[\w+\]/mi;

Why do I have to pass the pattern back into the regex when I've already declared it in the first line?!

share|improve this question
What makes you think you do? –  Anon. Feb 12 '10 at 1:14
If I don't include the pattern again, the regex takes about twice as long. –  JamesBrownIsDead Feb 12 '10 at 1:16

2 Answers 2

up vote 7 down vote accepted

There are two ways of defining regular expressions in JavaScript — one through an object constructor and one through a literal. The object can be changed at runtime, but the literal is compiled at load of the script, and provides better performance.

var txt=new RegExp(pattern,modifiers);

or more simply:

var txt=/pattern/modifiers;

This is the same thing that cobbai is saying. In short, you do not have to do both.

share|improve this answer

from MDC:

The literal notation provides compilation of the regular expression when the expression is evaluated

so /\$\[\w+\]/mi is a compiled regex already.

share|improve this answer

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

How to convert String to Double value in jasper Reports? I am having two fields in .jrxml file like below

<field name="secRate" class="java.lang.String"/>
<field name="secPrice" class="java.lang.String"/>

i need to subtract both the field

     $V{Variable} = $F{secRate} - SF{secPrice}

i tried this way but not working

      (new Double(Double.parseDouble($F{mktVal})))

any idea? please help me guys..

share|improve this question

1 Answer 1

up vote 3 down vote accepted
new Double(Double.parseDouble($F{secRate}) + Double.parseDouble($F{secPrice}))
share|improve this answer
thanks buddy.. its working fine.. –  Manu Sep 10 '10 at 11:09
can you tell me how to do it for BigDecimal as well. –  Manu Sep 10 '10 at 11:10
I cannot express how much this helped me! I use jasperSoft Studio and it was very particular about how this expression was worded. I will also add that I made the mistake of trying to change the class of the fields to java.lang.Double when java.lang.String is what you really want. I kept getting java.text.ParseException: Unparseable number: "" before. Maybe that will help someone else out there! –  OrwellHindenberg Jul 11 '14 at 17:12

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I would like my canvas application to obtain time-zones of my user's friends.

I tried doing it with the Graph API but all I can get is their names, locales and a few more (even when using the access_token). When using FQL the timezone field is always empty.

  1. Is there a way to achieve this?
  2. If so, could you please point me in the right direction?

share|improve this question

1 Answer 1

I guess this is not possible, only the following fields were retrieved when calling $this->facebook->api("/friend_ID");:

    [id] =>
    [name] =>
    [first_name] =>
    [last_name] =>
    [link] =>
    [gender] =>
    [locale] =>
    [updated_time] =>

Now in the documentation, the above fields are the fields marked Publicly available, in time the timezone field is Available to everyone on Facebook which sounds like the same but apparently it's not, anyway I've found this interesting article for a moderator on the facebook forums (not a developer!!)

Also tried the old rest lib, first get a list of your friends from the console and then add your ID and put them in the test console of the users.getinfo method, UIDs looks like your_id,friend_id,friend_id,friend_id,friend_id and fields timezone you'll only get your timezone.

share|improve this answer
Thanks for your help! That's what I thought. However, link and last_updated fields are marked as Available to everyone on Facebook, not Publicly Available... They are inconsistent. I guess I'll use the bugzilla and see what Facebook say –  Bartek Dec 29 '10 at 20:30

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need a cmd script that deletes the first line in my text file. The scenario is the following: I take a txt file from FTP everyday, the problem is that it comes with blank line at the top then the headers of the file. Since I'm importing that file automatically into an access table, that blank line is causing me problems.

So, I need a script that deletes the blank line and saves the file.

share|improve this question
windows, *nix, mac etc? –  Preet Sangha Mar 1 '09 at 22:20
@Preet, he does say "cmd". I assume that means Windows. –  Paul Tomblin Mar 1 '09 at 22:21
yes but I read that as typing shorthand for 'command' as a general term, not specifically windows –  Preet Sangha Mar 1 '09 at 22:32

5 Answers 5

Windows/command prompt:

more +1 filename.ext > otherfilename.ext

That seems to work fine, however it appears that this also converts tab characters into multiple spaces.. I needed to remove the first line of a tab-delimited file before importing into postgres. That failed due to the automatic conversion of tabs to spaces by more...

share|improve this answer
+1: Nice to see that Microsoft has improved the more command. I had noticed that other commands where improved a lot, but missed this one. –  Renze de Waal Mar 1 '09 at 23:08
-1: Have you tried with a file with lines of more than 15 Mb? It doesn't work at all –  user869097 Aug 13 '11 at 13:19

You didn't specify a platform. Here's how to do it in any *NIX environment (and Windows+Cygwin):

sed -i~ 1d target-file
share|improve this answer
Windows 2000 platform –  Samar Mar 1 '09 at 22:30
The same as above, it didn't worked with a very long line i.e. 24000000 characters or more –  user869097 Aug 13 '11 at 13:20

To remove the first line, I would use

tail -n +2 source-file > target-file

If you want this on Windows, download the gnu utils to obtain a tail command. +2 means "Start at the second line".

share|improve this answer
If the source and target files are the same (which is likely), this clobbers that file. –  Adam Rosenfield Mar 1 '09 at 22:59
You're right they should not be the same. However, they can be chosen by whoever writes the script. –  Renze de Waal Mar 1 '09 at 23:05

In windows without extra tools:

findstr /V /R "^$" filename.whatever

No extra tools needed

share|improve this answer
@Preet_Sangha i couldn't get this to work. is there something i'm missing? –  FistOfFury Jun 10 '13 at 20:10
What happens? What is the input and what is output? –  Preet Sangha Jun 10 '13 at 21:34

I needed to do something similar today and this was what I came up with:

FOR /F "tokens=* skip=1" %A IN ('type "input_file.ext"') DO @echo %A>>"output_file.ext"

This has the advantage over the more +1 solution in that tab characters will be preserved. However, on large files this method is a lot slower than others. Also - leading spaces will be left-trimmed, which may or may not be a problem.

share|improve this answer

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.


text:
Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need to get the name of a file from its full path, in vc++. How can I get this? I need only the file name. Can I use Split method to get this? If not how can I get the file name from the full path of the file?

share|improve this question

3 Answers 3

up vote 1 down vote accepted
String^ fileName = "C:\\mydir\\myfile.ext";
String^ path = "C:\\mydir\\";
String^ result;
result = Path::GetFileName( fileName );
Console::WriteLine( "GetFileName('{0}') returns '{1}'", fileName, result );

See Path::GetFileName Method

share|improve this answer
I cannot hard code the file name. It changes. Then how can I give path like this. –  Nelson T Joseph Nov 8 '11 at 9:55
Who told you to hardcode .Above is just a kickoff example , you can modify it as you need . –  Muse Nov 8 '11 at 9:59

Find the last \ or /1 using one of the standard library string/char * search methods. Then extract the following text. Remember to special case where the / or \ is the last character.

1 The Windows API, for most purposes2 supports both.

1 The exception is when using long paths starting \\?\ to break 260 character limit on paths.

share|improve this answer

Directory::GetFiles Method (String, String) Returns the names of files (including their paths) that match the specified search pattern in the specified directory.

share|improve this answer
Note that link-only answers are discouraged, SO answers should be the end-point of a search for a solution (vs. yet another stopover of references, which tend to get stale over time). Please consider adding a stand-alone synopsis here, keeping the link as a reference. –  kleopatra Mar 7 '14 at 15:24

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.


WARC-Truncated: length

text:
Monday, September 20, 2010

The bonfire of the vanities

In 1490 a Dominican priest Girolamo Savonarola entered Florence on a mission from the church. He had spent years alone in his cell in a monastery studying the scriptures and was appalled at the evils and excesses of the renaissance society. With the fabulous wealth of the Di Medici bankrolling the explosion of art, fashion and luxury in Florence standing in contrast to the poverty of the common man, Florence was a place of shocking contrasts. There was a plague called the French Pox (syphilis) and a growing resentment of the ruling classes by the ordinary citizens. The coming millennium (1500) was fueling a movement that speculated that the end of times was at hand. Savonarola was a gifted and fiery speaker though possessed of a small voice and unimposing figure. He preached the coming of the last days and claimed communication with God and the saints.

Savonarola denounced the sinfulness of the Florentines, he proclaimed the faults in the church itself and denounced the ruler of Florence, Lorenzo Di Medici. His sermons were wildly popular among the rich and the poor alike and he drew crowds of thousands. Lorenzo gave fortunes to the poor and attempted to win over Savonarola. Unable to convince the fiery priest to desist in his criticism of the Di Medici rule, Lorenzo ordered him to stop or he would be expelled from the city. Savonarola"s reply was that Di Medici must repent and stated that he, although not a citizen would remain in Florence and Lorenzo would be forced to quit the city. Lorenzo sickened and from his death bed called Savonarola to come so he might be absolved of his sins. The priest made three requests of Lorenzo. The ruler was to confess and believe that God would forgive his sins. The second was to return to the people wealth that Savonarola felt Lorenzo had come by immorally and the third was that Lorenzo must return to Florence the rights that they had possessed before the rise of the DiMedici. The last, Lorenzo refused, rolled over to face the wall and died.

Savonarola continued to preach and prophesied the destruction of the Florentine state by a force that would come over the Alps. Charles the VIII of France arrived at the head of an army and fulfilled Savonarola's predictions. The French expelled the Medici and set up a republic with the consent of the Florentines. Savonarola was charged with administering that. Florence became a theocracy and named Christ as their king. The city was swept up in a fervor of repentance. Woman discarded their fabulous gowns and began dressing simply in drab colors. The taverns and gambling houses emptied and were closed.

This new Puritanism encouraged, even required the citizens to bring the trappings of "earthly vanity" to the Piazza Della Signoria to be burned. They brought playing cards and books that were deemed secular, fashionable gowns, cosmetics, wigs and mirrors and musical instruments, then ancient sculpture and finally fine paintings. Into the enormous bonfire on February 7, 1497 went the works of Fra Bartolemo, and Lorenzo Di Credi and probably Sandro Bottecelli, possibly by the artists own hand. Florence burned great art and private libraries. Plenty of the citizens of Florence were fed into bonfires for good measure.

As Florence's economic conditions worsened though, the people began to realize that Savonarola's anti business policies of opposition to free trading and profit were partly if not mostly to blame. There were riots and the taverns reopened to a thirsty city, too sober on repentance.

The Pope excommunicated Savonarola who had become a nuisance to him and ordered the priest arrested. After a bloody riot that resulted in the death of Savonarola's guards he surrendered and was charged with heresy, false prophesy and other charges. He and two of his closest aides were tortured. Broken on the rack Savonarola confessed and was condemned to death. The three were hung from a large wooden cross by chains over a bonfire on the same site as the burnings of the "vanities". The charred remains of the three were broken up and reburned until nothing was left and thrown in the Arno, beside the Ponte Vecchio to deprive his followers of relics.

Savonarola and the Bonfire of the vanities are remembered as an example of fanaticism. Their destruction of art and books remains a cautionary tale of the excesses of a theocracy turning on beauty and worldly pleasures. Artists, writers and lovers of aesthetics should remember this cautionary story and be aware there are forces in the world that are no friends to beauty and intellect. The soldiers of repression and narrow asceticism may seem powerless, but then suddenly gain strength and destructive force. The freedoms to make and enjoy art, to enjoy the beauty of fashion and poetry, music and the gaiety of wine and celebration are not perpetual and assured. They flourish in freedom and are a decoration to liberty.

Above is the music of Mansour, banned from his native Iran and living in California, part of the diaspora of Iranian artists. This is a great tune. I am fond of Iranian pop music.

MCG said...

...same as it ever was. Worst of all within visual art itself, on BOTH sides of the fence.

Tacook516 said...

Hi Stape,
Freedom is very fragile, it depends on the 'golden rule' for it's survival. The day I was born the Holocaust was occuring to the east and the bombing of Heroshima in the west and my dear father was trying to survive as an officer in a German POW camp near Auschwitz. During that terrible year the Germans kept pulling back toward the 'homeland' (now that's a word that makes us old folks cringe!) they marched the prisoners several hundred miles in mid winter, many of them walked barefoot to save their boots for an escape. They ended up in Stalag 1, and on my first birthday, the Russians, after taking all their officers across the road and executing them ( Stalin didn't want anyone who had contact with the west returning to the 'motherland') turned the survivors over to the Americans, their allies in the war. My father weighed 68 lbs, he survived because in chewing the wood in the barracks to stave off hunger pain, he discovered a nest of termites. He always said to us, "Beware the big lie" when something is said by public figures and printed in the press over and over people begin to believe it. Good people will do things they would never think they could do. When hate is the solution, someone is benefiting by gaining power and money.
People forget history so soon, when my great grandparents opened their hotel in San Francisco in the mid 1800's, to serve the gold rush the state of California was 99% Spanish or indians. Now we have hate mail going to Hispanic families who's ancestors were here before the 'white' man!
A group at the Palm Springs Art Museum wanted to have a life drawing session, you wouldn't believe the hate mail, using their 'religious' belief to rationalize hate!
I grew up in the middle east, there are people in our country who would outdo any Mullah if they could get into power. Books, paintings, people up in smoke.
Oh dear Stape I'm afraid you touched a nerve in me, my father and his compatriots sacrificed so much so that all of us could be free to disagree, and still be respected, Terry

Karla said...

$13,479,406,575,118.15 said...

A tyrant is a tyrant is a tyrant. We want to protect "our rights" but not " their rights". Selective freedom is worse of all. And freedom at the expense of repressed others is no freedom at all: it's the tyranny of fear.

It's a very worthwhile post. This scenario has taken place many times and with many fires within our our beloved country. Banned in Boston bonfires: It's funny now but it was not very funny then. This righteous Boston, primarily Protestant movement was aimed at the Irish and Italian Catholic immigrants. Its effects lasting well into the 50's. My father, an American citizen, was arrested at the age of 12 for selling newspapers at the docks in East Boston because he was of Italian descent and Italy was allied with Hitler.

Simone said...

"...Savonarola's anti-business policies." Was he into liberation theology? (lol)

In the interest of clarity Savonarola's fanatical tyranny was in no way reflective of the Church's social positions at the time. The Church had done a lot to preserve and sustain arts, the sciences, books and intellectual pursuits throughout the middle ages. Untold volumes were preserved for antiquity by the Church. Were it not for the Church the fine arts of painting, sculpture and architecture would not have flourished so.

Although a tyrant himself, Lorenzo Di Medici was not oppressive and militant as was Savonarola. He used his diplomatic skills in an effort to unify the five Italian states especially against the possible invasion by the French.
His influence throughout Italy made him a the natural target of the French who in turn found a willing ally in Savonarola. If I had my guess I would say that the French used Savonarola to disrupt Florence. Most historians discount the story of Lorenzo being refused absolution on his death bed and speculate that he died a Catholic in good standing. In fact one of his son's eventually became pope as did one of his nephews. He was a splendid patron of the arts and of scholars.
That may be why the tyrannical Savonarola targeted the arts and books.

If stories of Florentine citizens being cast into the bonfires are true that was the doing of a maniacal tyrant who was excommunicated on moral grounds rather than doctrinal grounds. Technically, not a heretic but his violent threats against the Pope and the Roman Curia sealed his fate. The Pope and members of the Curia were present for his trial which was apparently conducted by civil authorities with his sentencing carried out by civil authorities. It was ultimately an uprising of the citizenry that drove the French out of Florence. That didn't settle it though. Authority changed hands from members of the Medici and the Republic for decades. Finally Cosimo di Medici ruled as a Monarch in the name of Spain. Eventually he gave himself over to a life of vice that would have enraged Savonarola...

Good post!

Marc Dalessio said...

To add insult to injury they've erected a statue of him in a square with his name in the middle of the artist's quarter of Florence (well, it was supposed to be the artist's quarter, all the streets are named after painters).

I've enjoyed painting the statue over the years, it's quite picturesque.

Stapleton Kearns said...

I would like to have separate buckets instead of a fence.

Stapleton Kearns said...

That's quite a story and a legacy of caution.
I am surprised that a church wrote letters against a figure group. Were they really hateful or just disagreeing with the action? Hate is a hard thing to define. Sometimes the definition requires the accusation of thought-crime.

Stapleton Kearns said...

Is that your phone number?

Stapleton Kearns said...

I was thinking more of the ayatollahs and the Taliban than the Episcopalians and Presbyterians. It is a matter of degree.

Stapleton Kearns said...

No church has come close to equaling the Catholics for support of the arts.
The protestant church has banished art from their churches pretty much, except for the occasional felt applique banner.
I actually consulted both Charles Spurgeon and the Catholic encyclopedia plus several other sources to write the post. I liked the Lorenzo story, but as you say it is doubted by some.
I did cavil on the Botticelli story though. Only one fuzzy story per post.

Stapleton Kearns said...

Yeah whats with that? At least it's a pretty good sculpture.Isn't there some other sculpture around there too?

Joanne Licsko said...

Your post was excellent and thought provoking. By demonizing the rich, and in the attempt to redistribute the wealth in this country, I see the support of art and artists greatly diminished.


text:
Youth group hikes five miles with cross 3.26

Posted in 2008 March

In 13 years of Good Friday walks, this year’s tops them all for weather conditions.

“We have walked in light rain and snow flurries,” said Our Lady of Mercy church youth leader Anita Van Zile, “however, this year’s snowstorm tops the list for the worse weather.”

She walked from Harrison Lake State Park into Fayette with nearly 20 church members—mostly from the youth group—just as Friday’s snowstorm unleashed its fury.

“We average about 30 participants annually, but one year had close to 60 people,” Van Zile said. “In good weather, we have had baby strollers with toddlers, and also some senior citizens. Bad weather definitely reduces the numbers.”

Van Zile was aware of a Good Friday walk tradition in Carey, Ohio, and she wanted to bring it closer to home. The first year, in 1996, the Fayette Community Walk for Life started at the home of Jane and Bob Momyer and covered seven miles on the way into town. She cut it down to five miles by moving the start to the south shelter house at Harrison Lake.

A lenten lunch is eaten at Willie and Lucy Rodriguez’s home on the way into town, with food donated by parishioners.

Along the way, walkers take turns carrying a large cross made by Ron Eisel from trees in his woods.

Jerry Van Zile drove in front of the walkers Friday for safety in the snowstorm and Dorothy McDowell took her usual place at the back of the pack. Members of the church youth group help organize the annual event, Van Zile said, giving them exposure to working with the church.

“The walk is a sign of our respect for life and to recognize that life is a gift from God,” Van Zile said. “We invite others to walk with us, carry the weight of the wood and take time for reflection while doing so. The day is intended to share in friendships, for reflection and to make Good Friday something special.”

Weekly newspaper serving SE Michigan and NW Ohio - State Line Observer ©2006-2015


text:
Diana Thompson with glasses

Author Diana Thompson wearing Sony Access Glasses

Captioning in public venues – A tool for persons with hearing loss

By Diana Thompson

Do you, a friend, or family member have trouble understanding some or all the words at the theatre, the movies, or other public event?  Captioning enables persons with hearing loss to fully understand what is being said. When a performance is captioned the spoken words are simultaneously displayed on a screen or other device, which can be read.

Since 2008 the non-profit “Washington State Communication Access Project” has worked successfully to enable persons with hearing loss to enjoy public venues through captioned performances.   For example, as a result of their efforts in Seattle, The 5th Avenue Theatre, the Paramount Theatre, and the Seattle Repertory Theatre all have some captioned performances. Upcoming captioned performances include Oliver on December 15th at 7:00 P.M at The 5th Avenue  and  Evita  on January 5th at 6:30 PM at the Paramount.  Additional information is available through the theatres or the following website: http://loopseattle.org/home/upcoming-events/   Remember to ask for seats in the captioned area.

Captioned movies are available in an increasing number of venues throughout Washington including Seattle, Bellevue, Kent, Everett, Olympia, Vancouver, Port Orchard, Federal Way, Silverdale, Burlington, Kennewick and Bellingham. Theatres in the Regal chain provide captions through Sony Access glasses, while other theatres generally utilize CaptiView, a small OLED display on a support arm that fits into the seat cup holder.  To check whether a theatre shows captioned movies or a specific movie is captioned, contact the theatre or use a movie chain website such as: http://www.regmovies.com/Theatres ; http://www.cinemark.com/closed-caption-list ; http://www.landmarktheatres.com/Market/Seattle/Seattle_Frameset.htm ; http://www.amctheatres.com/movie-theatres  The initials “cc” indicate closed captioning.

Other captioned venues include the Seattle Arts and Lectures Literary Arts Series  at Town Hall, designated performances at the Oregon Shakespeare festival, and the home games of the  Seahawks, Sounders and Huskies.  At least six Washington State ferries, including those used on the Seattle-Bainbridge route, display travel-related information on video screens.


text:
Candy buy back

Posted: October 30, 2012 - 10:47pm

McLellan Dental, 1100-2 S. Ponce de Leon Blvd., will conduct its third annual Halloween candy buy back beginning Thursday and continuing through Nov. 9. Kids are invited to bring in extra Halloween candy for cash trade-in for a candy conversion rate of $1 per pound.

The dental office offers healthy snacks in place of Halloween sugar goodies.

All candy collected by the office is sent to those in the military.

Your rating: None


text:
Huge great white shark tracked off Jacksonville Beach

Posted: January 8, 2013 - 4:43pm

Morris News Service

This posting was made on the Ocearch Facebook page about midnight Monday: “Jacksonville Beach, FL residents and beach users please read. Mary Lee is a 16 1/2 ft, 3,500lbs mature female white shark. Her most recent position is off 6th Ave S and 1st St. S in the surf break off Jacksonville Beach, FL.’”

A couple of hours later, some slightly more reassuring news: “Mary Lee moves slightly N and a little more offshore. She is off Neptune Beach, FL. near Jacksonville.”

Later Tuesday morning: “As of 7:49am EST Mary Lee has moved east, away from the beach.”

And on that path? It takes her closer to Genie, who’s hanging around farther off the coast of Jacksonville. Genie, by the way, is 14 feet, 8 inches long and weighs 2,292 pounds, a puny thing compared to Mary Lee.

Just how big is Mary Lee? I compared her to the car I drive, a Honda Fit. She’s about three feet longer and 1,000 pounds heavier.

We know all this because of Ocearch’s Global Shark Tracker system, which lets you see the location of tagged sharks around the world. Mary Lee and Gene were both tagged off Cape Cod in September and have been heading south since.

This tracking system is pretty addictive — and you can bet I’ve bookmarked it on my computer. After a long run of junky, small surf, I’ve been itching to get in the water. And forecasts now call for a real groundswell in Northeast Florida this weekend. I think, though, that I’ll check what Mary Lee’s up to before — or if — I paddle out.

Your rating: None
Comments (4) Add comment
ADVISORY: Users are solely responsible for opinions they post here and for following agreed-upon rules of civility. Posts and comments do not reflect the views of this site. Posts and comments are automatically checked for inappropriate language, but readers might find some comments offensive or inaccurate. If you believe a comment violates our rules, click the "Flag as offensive" link below the comment.
justwondering 01/08/13 - 05:39 pm

This is the best fishing app I have seen. Guarantees you will be on the big ones. Thanks.

blaaaa 01/08/13 - 08:40 pm

How many GW's that are not tagged are hunting around? Your guess is as good as anyones.............

kidrock 01/08/13 - 10:24 pm
Very cool app

Incredible that they can track a massive fish in the ocean. Scary to think about the undocumented ones out there. I love the ocean but I have a huge fear of what lurks under the waters. Anything just bumps or grazes me I just freeze..oh God this is it..death by fish.

Back to Top


text:
Lewis to receive a Governors Award

Published Thursday, July 28, 2005

LOS ANGELES (AP) -- Jerry Lewis is getting the television academy's prestigious Governors Award in recognition for his work on behalf of muscular dystrophy.

Lewis, national chairman of the Muscular Dystrophy Association, was chosen for the prestigious award by the Academy of Television Arts & Sciences' Board of Governors in recognition of his work for the Muscular Dystrophy Association Telethon.

The award will be presented to the 79-year-old entertainer during the Primetime Creative Arts Emmy Awards on Sept. 10. The 57th Annual Primetime Emmy Awards will be televised Sept. 18 on CBS.

"Television has few traditions as impactful on the lives of viewers as the annual Jerry Lewis telethon. This year, he hopes to reach the $2 billion mark for research programs of the Muscular Dystrophy Association," Gary Goldberger, chairman of the Governors Award nominating committee, said in a statement Tuesday.

Past recipients include Walter Cronkite, Johnny Carson, Lucille Ball, Bob Hope and Alistair Cooke.

Lewis has hosted the Labor Day telethon for nearly 40 years. It will be held this year in Beverly Hills on Sept. 4-5.

In 1966, the telethon was shown on one TV station and raised about $1 million in pledges. This year, the show will be aired on 200 stations, will be shown on the Internet, and could generate over $60 million for the first time. Last year, $59.4 million was pledged.

StAugustine AllAccess

Trending this week:

© 2015. All Rights Reserved.  Terms of Service | Privacy Policy / About Our Ads


text:
Pasuunarasva Jul 17, 2013 @ 8:53am
Click Play and BOOM it stopped working
So i just got this from the summersales and the first gaming was fantastic. After a day or so we had a electrical issue, our house electricity went off and well my PC went off. So when the power came back and i started the computer, did the casual things i do in this situation and then i went to play CitiesXl Platinum. And it asked me to use either 2 cloud files, wich had about 3 hours of differential. I ofc clicked the newest there and then clicked play and boom! it crashes. I have already deleted my game folder and tried reinstall the logs a few times and it still doesnt play. (by reinstalling the logs i mean i dont have my logs from that faithful day anymore) I have searched steam, youtube, the cities wikia for solutions... ive tried what i have been able to try and still. I paid 15 euros for this game so im rly ♥♥♥♥♥♥ off. Only thing i can be happy is that i didnt buy this with its full price.
Date Posted: Jul 17, 2013 @ 8:53am
Posts: 0


text:
Laser Trigger 2
12 Comentarii
< >
Wolf bytes 14 ian., 2013 @ 11:39am
Also nice job though!
Wolf bytes 14 ian., 2013 @ 11:39am
The one higher up cube was a challenge, but do-able.
Was this suppose to be solved without portal bumping? [I used portal bumping for the last weighted sphere]
stormsend 14 ian., 2013 @ 2:30am
Very nice. Not too hard like most of mine . Grabbing those cubes in the air was the challenge for me. The rest was pretty easy. Thanks.
toncica 3 ian., 2013 @ 3:49pm
Alternative solution without the balls:
Easy and fun map :)
Much shorter than I expected.
The part with the balls vere a bit annoying because they got in the way for the lasers and locked me inside the room.
Spartasaurus Rex 31 dec., 2012 @ 11:42am
easier than expected
GCBro- A Strange Case 31 dec., 2012 @ 10:05am
great tests come in size and you have made a splended might be wrong
Mr Fraggle (UK) 30 dec., 2012 @ 7:27am
A most interesting map.Well done.
madvtdm 30 dec., 2012 @ 7:16am
That was total fun. I wouldn't have minded putting the cubes in order at the end to align the beam 'cause before I knew it, it was over.
daloboy 28 dec., 2012 @ 9:39am
Well done!
Please try one of mine and comment! Thanks.
david.elvin 28 dec., 2012 @ 7:31am
good one worth a ten/ten
Lynx16 26 dec., 2012 @ 11:44pm
That was very well set up.


text:
This game has been Greenlit by the Community!

The community has shown their interest in this game. Valve has reached out to this developer to start moving things toward release on Steam.

Lonely Kids Studio  [developer] Oct 6, 2013 @ 8:29am
Discussions and Feedbacks

If you have any questions or feedbacks about SoundBurst! feel free to post here.


text:
Following 22 Tea Drinkers

LauraR 98 followers

I am a tea lover and have reviewed teas on for quite a while and...

Dorothy 112 followers

Feel free to add me on Steepster, I’ll probably add you back. :)
 &...

Danny 18 followers

Avid Tea Drinker but I don’t get a thermometer a timer and a measuring ...

Michelle Butler Hallett 140 followers

Writer and tea fiend. Author of DELUDED <span class...

Meghann M 249 followers

Live in the cornfields of IL, but not too far from the city. Expecting a bab...

cody 65 followers

20-something. Semi-professional baker. Loves black teas and rooibos. Discover...

LiberTEAS 873 followers

I am obsessed with tea!

 I’m currently trying to take over 52...

TeaEqualsBliss 1573 followers

Near Vegan. Tea Lover. Yoga. Crafter. Music. Sports. Travel. Radio. &...

Caitlin 77 followers

Tea has always been a part of my life. A cup of tea was always the solution t...

Paul M Tracy 115 followers

avid reader and fitness freak – my tasting notes are brutally honest an...

Hello, Steepster!

I’m a twenty-something who attends Concordia University studying English Lit and Irish Studies. I also work at an online store that sells party supplies and costumes! My life is literally a party everyday!

Besides my work/school I’m also a comic book lover. I love attending conventions and have, in the past, done so in costume! (In 2009 it was Sally Jupiter). I also co-author a web comic called Abe and Kroenen and plan on being the author for a couple more upcoming projects. You can check those all out on my website/blog if you’re interested!

Now! About tea!

Formerly an avid coffee drinker I realised that 1. I didn’t really like the taste and 2. I really wasn’t ever getting enough sleep. The switch to tea was, at first, a painful one as extensively my knowledge of tea reached only so far as what was available at Tim Hortons and what my grandmothers kept in their cupboards.

I had a roommate, however, that never drank coffee—and slowly but surely I found myself converted. Then, just last summer, I stumbled upon DavidsTea and my life was changed forever.

Besides David’s, I also visit Teaopia whenever I’m back in Ontario, I’ve recently uncovered Camellia Sinensis in Montreal and new place that I’m yet to try—Milly’s Boutique!

I’m also a strong believer in Twinings and The Stash Company, and I’ve recently ordered some teas from 52teas, The Republic of Tea and Andrews & Dunham and I’m eagerly awaiting their arrival!

P.S. I love to write, and I love tea so expect me to chatter about in my reviews quite a bit!

Current Favorite Teas:
Cocoa Paradiso by David’s Tea
Coco Chai Rooibos by David’s Tea
Lady Grey by Twinings
Rooibos Chai Organic by Camellia Sinensis

Montreal, QC (Formerly Cambridge, Ontario)

Following These People

Moderator Tools

Mark as Spammer


text:
drank Rooibos Lemon Cloud by Adagio Teas
207 tasting notes

Just realized that it has been a long time since I’ve had a rooibos tea in the evening. Tonight’s the night :)

This tea is so delicious. Creamy lemon yum. My favorite way to drink rooibos is with milk and honey.

Catching up on Tivo from the week and enjoying a good cuppa. Great way to finish the weekend :)

Login or sign up to leave a comment.

People who liked this

Login or sign up to leave a comment.

A cup of tea, a blanket, and a book – my 3 favorite things.

Generally my favorite teas tend to be oolong, black, or green.

My tea ratings reflect my feelings about the tea. That’s just how I roll.

My profile picture is of my mom and I. She is my best friend and the person who introduced me to tea and tea cup collecting.

Middle of a Cornfield, OH

Following These People

Moderator Tools

Mark as Spammer


text:
Long Life Oolong

Tea type
Oolong Tea
Almonds, Apricot Pieces, Artificial Flavouring, Natural Flavours, Oolong Tea, Orange Peel, Peach, Safflower Petals
Apricot, Nuts, Orange Zest, Peach, Burnt, Fruit Punch, Nutty, Almond, Fruity, Floral, Vegetal, Cantaloupe, Citrus Zest, Mineral, Sweet, Cream, Oats, Orange, Orchid, Pear
Sold in
Loose Leaf
Not available
Edit tea info Last updated by partea
Average preparation
195 °F / 90 °C 4 min, 45 sec 12 oz / 362 ml

Currently unavailable

We don't know when or if this item will be available.

From Our Community

2 Images

51 Want it Want it

  • +36

274 Own it Own it

  • +259

233 Tasting Notes View all

Live long and prosper

Peach-scented oolong has long been popular in China – possibly because, in ancient legends, magical peaches were consumed by the gods to achieve immortality. The best way to make it? Place organic oolong in an airtight room with baskets of peaches to scent it. Then add peach and apricot
pieces, almond slices, orange peel and safflower petals. Immortality never tasted so sweet.

About DAVIDsTEA View company

Company description not available.

233 Tasting Notes

658 tasting notes

I’ve finally come back to this tea. It was one of my first DT teas, but I just don’t find myself wanting it often. Today I made it chilled. The amazing weather has got me loving the cold tea.

This smells criminally good, dry. But iced it’s very similar to how I find it hot; underwhelming. It’s pleasant enough but I think the over-the-top incredible smell always clouds my judgement and makes me try to imagine it tastes better than it actually does. It’s really just okay. I want the peach to come through more but something about the balance of all the flavours seems a bit off. I don’t know. Nice tea, but not one I’ll likely re-stock.

Login or sign up to leave a comment.

501 tasting notes

Um. No. Just no. This is all peach and almond. The almond is slightly more dominant than the peach. They’re both fairly natural-tasting, but way way way too strong. An almond aftertaste lingered on my palate long after the sip and long after I was done with the cup. I couldn’t taste the tea base at all. The best I can say for this beverage is that the flavors are distinctly themselves (i.e., the almond tastes like almond, not marzipan, and the peach tastes like peach, not generic stone fruit).

Two wrapped sachets of this tea came in the sampler I picked up at David’s Boxing Day sale. I pawned the other one off on my officemate first chance I got. This is a total miss for me.

Login or sign up to leave a comment.

2067 tasting notes

Tea #3 from the traveling tea box, I’m making good progress on it today.

I wish there would have been enough of this to cold steep, but it looks like there was only about 2 tablespoons in the package and I need at least 6 for my pitcher. I loved the combination of peach, apricot, and almond, those are some of my favorite flavors to find in a tea. I couldn’t really taste the almond or the orange peel in the final brew. This tea didn’t wow me, and tasted a bit artificial, but it was still nice to try it.

200 °F / 93 °C 5 min, 0 sec

Login or sign up to leave a comment.

286 tasting notes

Finished off the last of the sample of this one that Courtney sent me. It’s very, VERY fruity, and I thoroughly enjoyed the infusions I had, but not one that I will need in my cupboard.

At least not right now, while I have Coconut Oolong and Vanilla Orchid Oolong, which I prefer.

3 min, 0 sec

Login or sign up to leave a comment.

676 tasting notes

Meh…normally I like this tea, but today, not so much. I think it is partly as this was a tea to go today, and it was put directly into my timolino. First, I don’t think there was enough agave in it; second, it took forever for it to cool, and that was with the lid off, that even after about 30 minutes or more of chatting with my friend, it still burnt my tongue(!); third, it got bitter after being in the main compartment under the strainer for so long.

None of these things are the fault of the tea, just the circumstances that they were prepared and drunk in.

Sorry to hear that. Bad tea experiences like that are a serious mood killer :(

It’s ok, I know I like it. But yeah, a little of a downer.

Login or sign up to leave a comment.

100 tasting notes

Another wonderful sample from Awkward Soul! I’m really enjoying trying all these new teas.

Right after I poured the hot water over the teaball, I took a good sniff and smelled peaches and grass. Interesting! Once it cooled, the first half of the cup all I tasted was fresh, juicy peaches with a hint of apricot. No almond or orange peel or oolong. Toward the end of the cup I started to taste the earthy, grassy oolong. That was fine, but I preferred the juicy peachy part! :-) I never did get the flavor of almonds or orange peel. Anyway, this was a nice tea to try, and I’d recommend it for stone fruit lovers who like the grassy, earthy taste of oolong.

205 °F / 96 °C 5 min, 30 sec

Login or sign up to leave a comment.

254 tasting notes

I was somewhat excited to try this. I do like my oolongs simple with nothing added.. but I figured I might as well try this too.
Dry: Smells pretty peachy apricot wonderful. Yum. Nice pieces of almond and orange peel.
Liquor: Um.. okay ew. For some reason the color of the ‘tea’ has turned into an electric yellowish amber that reminds me of the antiseptic liquid they apply just before surgery to sterilize the area. I hope they didn’t add a dye to this tea under ‘flavouring’. Guh! The peach is definitely present, same with some apricot tones. I sense a little oolong playing around under all the stone fruit tastes. Oh boy..I don’t even like to swirl my cup to try and cool down the tea as all I see against the white of the mug is antiseptic wash >.

200 °F / 93 °C 4 min, 30 sec

Login or sign up to leave a comment.

2157 tasting notes

Another DavidsTea sample thanks to DaisyChubb! Thanks for sending me the last of your packet of this to try, you are too kind! This one smells peachy peachy peachy dry. It’s not what I would consider an absolutely natural smelling aroma—it’s not what most peaches smell like when bitten into—but it’s still a very pleasant one. The slightly rolled green oolong leaves are mostly buried in a relatively fine powder of flower petals, with some obvious fruit and almond chunks in the mix. Steeped, the aroma of the peach has transformed into a more natural profile, like the smell of baked peaches. This mental picture is helped by the buttery oolong scent that has joined it. The liquor is murky with an odd color that looks reddish amber in the middle but intense yellow on the edges. I find it hard to believe that there isn’t also saffron in this mix, but it doesn’t show up in the ingredients.

I’m unsure if I got a good tea:extras ratio here because there was so much flower petal powder in the bag, I just dumped the rest of it into my steeping basket. Still, it’s a nicely flavored tea, with different flavors that are distinct but also work together pretty well. That tart, fruity peach flavor is there of course, along with an almondy nuttiness. I don’t get as much buttery flavor as I did scent, and the green, fresh notes I would expect from the oolong are a bit suppressed here. There is a kind of rich, almost savory note in the back of the aftertaste at times… which also makes me think of saffron. Overall a pretty tasty cup of tea, especially for anyone who’s a huge peach fan.

Update: I tried a second steep of this after rinsing some of the “yellow” off and got a cup that actually looked like tea (clear orangey-yellow), and tasted like tart, fresh peaches with a lightly vegetal, greenish accompaniment. I do think I prefer it in this second steep.

195 °F / 90 °C 3 min, 0 sec

Login or sign up to leave a comment.

159 tasting notes

I really like this tea, it is full of peach taste and almonds and I love oolong tea, so this is a great tea for me.

Login or sign up to leave a comment.

158 tasting notes

This is a very good, earthy, natural tasting flavored tea. The peach and apricot flavors blend very well with the tea base. I really like the hint of citrus. Can’t wait to have this one again.

200 °F / 93 °C 7 min, 0 sec

Login or sign up to leave a comment.


text:
House Ceylon

Tea type
Black Tea
Not available
Not available
Sold in
Not available
Not available
Not available
Edit tea info Last updated by threewhales
Average preparation
2 min, 45 sec

Currently unavailable

We don't know when or if this item will be available.

From Our Community

1 Image

0 Want it Want it

0 Own it Own it

3 Tasting Notes View all

From Drink The Leaf

Great color and aromas and a natural sweetness on the finish. A smooth and great everyday tea. If you are not familiar with Ceylon tea, try our house blend. A great toffee color, aromas of honey, dried apples, and caramel – a natural sweetness on the finish.
Region: Sri Lanka
Steeping Instructions: 1 tsp per 6oz water/203°F/3~5 min

About Drink The Leaf View company

Company description not available.

3 Tasting Notes

304 tasting notes

Breakfast tea this morning. Added milk and stevia. This tea is good, but very one note. I think the Ceylon Black from DTL may be better than this one…but the jury is still out…

3 min, 0 sec

Login or sign up to leave a comment.

1015 tasting notes

There is a nice natural honey sweetness to this tea but it isn’t at all complex. It is very smooth but I tend to prefer my breakfast teas a bit bolder, edgier, and more complex.

Login or sign up to leave a comment.


text:
steve losh

I’m Steve. I’m from Rochester, NY.
I do a lot of different things.

If you want to get in touch with me you can email me or find me on BitBucket, GitHub, Twitter, Forrst, or Flickr.

I went to Rochester Institute of Technology for a degree in Computer Science.

I’ve done a lot of different things in the field so far. Right now the things that are captivating me are artificial intelligence and clean, simple, useful web applications.

I find programming beautiful. That might sound strange, but there are aspects of programming and math that I can’t describe any other way.

You can take a look at my projects to see some of the major stuff I’ve worked on, or cut to the chase and look at my BitBucket account.

I like photographing people. Other things as well, but especially people. I tend to gravitate toward the “art” aspects of photography more than the “journalism” aspects, but I can appreciate both.

I shoot digital and film (35mm and medium format) depending on my time limits and mood. I develop film in my bathroom and print it in a rented darkroom. When I print digital I use a lab nearby; I don’t have the money for a professional printer just yet.

I post most of what I take on my Flickr account.

I teach blues dancing here in Rochester as part of Lady Luck Blues. I started blues dancing a few years ago and haven’t stopped since. My favorite aspect of dancing is connection and blues seems to bring that out more than any other dance.

I’ve also been swing dancing for about seven years. My first love is Lindy Hop; I go to classes, workshops and exchanges as often as my schedule and budget will allow.

Lately I’ve begun getting my feet wet in tango. Whether it’ll ever become as important to me as blues or Lindy remains to be seen.

I play electric and upright bass. I’ve played in a metal band in the past, but right now my focus is on jazz and blues.

I DJ at swing and blues dances fairly often. My taste is pretty broad, and I’ll cater to whatever the floor wants, but I tend to personally enjoy slightly down-tempo, small-group music. Let me know if you need a DJ for a dance.

About the Site

If you want to know more about my site you should check out the blog post about how I rewrote it.


text:
The Reverend Earl Nance Jr.

Workers salvage bricks, after the once grand Bethlehem Lutheran Church in north St. Louis fell into neglect and collapsed.

Falling Churches and Falling Church Attendance

The collapse last week of an historic church in north St. Louis is calling attention to the historic collapse in church attendance citywide.

Police interviewing witnesses of a shooting along the Delmar Loop on Saturday, March 31st, 2012. (KMOX/Michael Calhoun)

Minister says Teen Mobs and Violence Symptom of Parental Void

Nance say it could be a “long, hot summer,” unless…

The Reverend Earl Nance Junior (KMOX/file photo)

The Reverend Earl Nance Junior Suffers Heart Attack

Nance has been on life support for weeks

Listen Live


text:
View Single Post
Join Date: Jun 2012
Posts: 4,225
# 10
01-08-2013, 10:55 AM
Well don't just sit there and wait for him to shoot you, as soon as his ship is turning to get you in his forward firing arc GTFO. Brace for impact also works very well.

...could also be your build- my tac/raptor usually withstands this attack. Usually.
KBF Lord MalaK
Awoken Dead

Now shaddup about the queues, it's a BUG


text:
View Single Post
Career Officer
Join Date: Aug 2012
Posts: 91
# 2 Toon Builds
02-18-2013, 02:04 PM
OK so I run a TAC, and an ENG in a TAC ship build, however I also have a fleetmate that won't touch TAC with a ten foot pole and is great in STFs with a Sci or an Eng.

so what I know of the Atrox is Make use of your pets, use the targeting subsystems ability on the cubes, but is useless on like generators, gateways, etc.

Beams are your best weapon, of any energy type you like. Limited turn rate lends to broadside attacks. Throw a tac team and beam overload in your TAC slots, depending on what you choose for eng and sci abilities.

Reminder, only one Borg Cutting Beam can be put on a ship at a time, so no need to buy more than one.

Spec your captain into sci abilities that drain shields, repulse isn't bad either especially in STFs. Let the TACs use their DPS to blow the ships to pieces, but use your SCI abilities to give them the extra time (repulsars), or drop the tragets shields to open up the hull.

The Atrox carrier is sexy, yes, but also a viable option to fly in STFs, if you know what you're doing.


text:
Top of Page

Top Nav
HOME  >  NASCAR Merchandise Gear  >  NASCAR Merchandise T-Shirts (97 items)  >  Product ID: 1120890
Main Content
Chase Authentics NASCAR Hall of Fame Class of 2012 Inductee T-Shirt

Chase Authentics NASCAR Hall of Fame Class of 2012 Inductee T-Shirt

Out of Stock

Regular: $24.95

Sale: $9.99

Now: $9.99 (extra 30% off)

(No reviews)

  • 100% Cotton fabric
  • Crew neckline
  • Inductees: Cale Yarborough, Darrell Waltrip, Dale Inman, Richie Evans and Glen Wood
  • Made in Honduras and USA
  • NASCAR and Hall of Fame graphics printed on front
  • Officially licensed
  • Short-sleeve shirt

Merchandise Customers also liked:

Have a Suggestion?

Help us make our site better for everyone! Let us know you've found something wrong or frustrating on this page and we will improve it. Please mark each that apply.

If you have a question for customer service or if you would just like to leave us some feedback, please view our FAQs.

Comments or Examples:
Examples: Missing information such as dimensions and model number, typos, inaccuracies, etc. Please note: we will not respond to questions posted in this form.

Special event items are produced by manufacturers only after the outcome of a game or event. These are advanced sale items and will ship immediately after they are received in our warehouse.
Manufacturer direct items are shipped directly from the manufacturer. These items are not available for international or expedited shipping.
Customized items can be personalized with options such as your name, your favorite number, and/or designs. Some options may be limited by league rules.


text:
Jenni Bowlin Studio - Fiskars - Squeeze Punch - Large - Jenni's Label

Jenni Bowlin Studio - Fiskars - Squeeze Punch - Large - Jenni's Label

All Fiskars Products ON SALE TODAY! View Details

Availability: In Stock
Your Price: $15.39

Added to your Favorite Products. View Favorites
Added to your Wish List. View Wish List
Login or Sign Up to add to your Wish List or Favorites.

Description & Information

Add distinctive style to craft projects of all kinds with a Squeeze Punch from Fiskars. A specially engineered squeeze motion with ergonomic handles has made their punches the only punches to be awarded the Arthritis Foundation Ease-of-Use Commendation. In addition, an open punch head lets the user see where they are punching for a perfect punch every time with no more wasted paper. The Fiskars Squeeze Punches even nest for convenient storage. Other features include:
  • Easy-to-squeeze design makes it ideal for extended use.
  • Ergonomic handles provide comfort and control for mistake-free results.
  • Printed shape provides easy identification to help you find the punch you’re looking for quickly.
  • Large punch design fits inside a 1.5" circle.
  • For use with 65-lb. cardstock or lower.
  • SKU: jbs-100310 UPC: 020335042360

    Projects Using This Product

    Eggs by Megan Klauer for Jenni Bowlin Studio
    Enamel Dot Storage
    Rare Moment Of Calm
    New Coats, New Boots, Lookin' Cute
    Thank You by Elizabeth Carney
    Journaling {Bible} Romans 1:19-20

    Product Reviews and Ratings

    No reviews for this product yet.

    Related Content